diff options
| author | sbrissen <sbrissen@hotmail.com> | 2014-02-22 16:40:16 -0500 |
|---|---|---|
| committer | sbrissen <sbrissen@hotmail.com> | 2014-02-22 16:40:16 -0500 |
| commit | f8b76af3a3da4708c6270965026dfc5b46aae66c (patch) | |
| tree | c5dd60629ee52ca8af9476e592b53d5b4121320a /audio/audio_hw.c | |
| parent | 5bd06c5853f400dfb448f2bb7a2c0d63caa83bbe (diff) | |
| download | device_samsung_t0lte-f8b76af3a3da4708c6270965026dfc5b46aae66c.tar.gz device_samsung_t0lte-f8b76af3a3da4708c6270965026dfc5b46aae66c.tar.bz2 device_samsung_t0lte-f8b76af3a3da4708c6270965026dfc5b46aae66c.zip | |
t0lte: boost audio incall
-speakerphone was being clipped, scale back the index
and increase the overall boost (includes out-of-call audio)
-increase the other incall outputs
Change-Id: I7a9748afd5c9ace41909a02c842bda946687b9b9
Diffstat (limited to 'audio/audio_hw.c')
| -rwxr-xr-x | audio/audio_hw.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/audio/audio_hw.c b/audio/audio_hw.c index 5dac457..d4aca93 100755 --- a/audio/audio_hw.c +++ b/audio/audio_hw.c @@ -211,6 +211,7 @@ static int (*csd_wide_voice)(uint8_t); static int (*csd_slow_talk)(uint8_t); static int (*csd_fens)(uint8_t); static int (*csd_volume_index)(int); +static int (*csd_volume)(int); static int (*csd_start_voice)(int,int,int); static int (*csd_stop_voice)(int); static int (*csd_client_volume)(int); @@ -533,7 +534,7 @@ static void set_incall_device(struct m0_audio_device *adev) case AUDIO_DEVICE_OUT_EARPIECE: rx_dev_id = DEVICE_HANDSET_RX_ACDB_ID; tx_dev_id = DEVICE_HANDSET_TX_ACDB_ID; - voice_index = 5; + voice_index = 6; break; case AUDIO_DEVICE_OUT_SPEAKER: case AUDIO_DEVICE_OUT_ANLG_DOCK_HEADSET: @@ -541,13 +542,13 @@ static void set_incall_device(struct m0_audio_device *adev) case AUDIO_DEVICE_OUT_AUX_DIGITAL: rx_dev_id = DEVICE_SPEAKER_MONO_RX_ACDB_ID; tx_dev_id = DEVICE_SPEAKER_TX_ACDB_ID; - voice_index = 9; + voice_index = 7; break; case AUDIO_DEVICE_OUT_WIRED_HEADSET: case AUDIO_DEVICE_OUT_WIRED_HEADPHONE: rx_dev_id = DEVICE_HEADSET_RX_ACDB_ID; tx_dev_id = DEVICE_HEADSET_TX_ACDB_ID; - voice_index = 5; + voice_index = 6; break; case AUDIO_DEVICE_OUT_BLUETOOTH_SCO: case AUDIO_DEVICE_OUT_BLUETOOTH_SCO_HEADSET: @@ -564,7 +565,7 @@ static void set_incall_device(struct m0_audio_device *adev) default: rx_dev_id = DEVICE_HANDSET_RX_ACDB_ID; tx_dev_id = DEVICE_HANDSET_TX_ACDB_ID; - voice_index = 5; + voice_index = 6; break; } @@ -2720,9 +2721,7 @@ static int adev_set_voice_volume(struct audio_hw_device *dev, float volume) { struct m0_audio_device *adev = (struct m0_audio_device *)dev; - adev->voice_volume = volume; - - ALOGD("%s: Voice Index: %i", __func__, voice_index); + ALOGD("%s: Voice Index: %i Volume: %f", __func__, voice_index, volume); if (adev->mode == AUDIO_MODE_IN_CALL) { if (csd_volume_index == NULL) { |
