Skip to content

Commit

Permalink
audio/msm7x30: Allow devices with mono speaker to function.
Browse files Browse the repository at this point in the history
If the device has both speakers, stereo will be used.

Change-Id: Ia73a00f09fff56d58f9cd9a29723251734353f83
  • Loading branch information
Blefish authored and mikeNG committed Sep 26, 2014
1 parent 9e2bb78 commit 42494b9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion legacy/msm7x30/AudioHardware.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ static uint32_t SND_DEVICE_HEADPHONE_AND_SPEAKER=18;

static uint32_t DEVICE_HANDSET_RX = 0; // handset_rx
static uint32_t DEVICE_HANDSET_TX = 1;//handset_tx
static uint32_t DEVICE_SPEAKER_RX = 2; //speaker_stereo_rx
static uint32_t DEVICE_SPEAKER_RX = 2; //speaker_mono_rx/speaker_stereo_rx
static uint32_t DEVICE_SPEAKER_TX = 3;//speaker_mono_tx
static uint32_t DEVICE_HEADSET_RX = 4; //headset_stereo_rx
static uint32_t DEVICE_HEADSET_TX = 5; //headset_mono_tx
Expand Down Expand Up @@ -519,6 +519,8 @@ AudioHardware::AudioHardware() :
index = DEVICE_HANDSET_RX;
else if(strcmp((char* )name[i],"handset_tx") == 0)
index = DEVICE_HANDSET_TX;
else if(strcmp((char* )name[i],"speaker_mono_rx") == 0)
index = DEVICE_SPEAKER_RX;
else if(strcmp((char* )name[i],"speaker_stereo_rx") == 0)
index = DEVICE_SPEAKER_RX;
else if(strcmp((char* )name[i],"speaker_mono_tx") == 0)
Expand Down

0 comments on commit 42494b9

Please sign in to comment.