From 42494b9f9a1f587f2057d552e85a1277bad0f954 Mon Sep 17 00:00:00 2001 From: Rudolf Tammekivi Date: Thu, 6 Jun 2013 12:05:39 +0300 Subject: [PATCH] audio/msm7x30: Allow devices with mono speaker to function. If the device has both speakers, stereo will be used. Change-Id: Ia73a00f09fff56d58f9cd9a29723251734353f83 --- legacy/msm7x30/AudioHardware.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/legacy/msm7x30/AudioHardware.cpp b/legacy/msm7x30/AudioHardware.cpp index 43dda91..44ae10e 100644 --- a/legacy/msm7x30/AudioHardware.cpp +++ b/legacy/msm7x30/AudioHardware.cpp @@ -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 @@ -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)