diff options
author | Martin Hoffmann <martin.de@myself.com> | 2017-07-26 12:10:37 +0200 |
---|---|---|
committer | Jan Altensen <info@stricted.net> | 2019-02-05 19:57:17 +0100 |
commit | f1a3539e2d24990886f47dfb3b6076c96b8f8a8c (patch) | |
tree | 3d7c5a1fdc6e08f8ebd091e139b6dc00b0e6183a | |
parent | 2b9386fb2676c76ea910ba0169d373d37534f245 (diff) | |
download | android_hardware_samsung-f1a3539e2d24990886f47dfb3b6076c96b8f8a8c.tar.gz android_hardware_samsung-f1a3539e2d24990886f47dfb3b6076c96b8f8a8c.tar.bz2 android_hardware_samsung-f1a3539e2d24990886f47dfb3b6076c96b8f8a8c.zip |
audio: Fix WBS sample rate usage
Fixes: BUGBASH-302
Correctly use 16khz for the WBS-SCO pcm_config.
No more garbled or mute in-call sound on bt.
Apply together with a device specific port of:
https://review.lineageos.org/#/c/177996/
and REMOVE any definitions of
SCO_WBS_SAMPLE_RATE
https://review.lineageos.org/#/c/178371/
This requires testing for all devices using:
android_hardware_samsung
(universal audio HAL part)
Change-Id: I84fb1b234bf2880bf98bf99f1e4ff6c05500b0e3
-rw-r--r-- | audio/voice.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/audio/voice.c b/audio/voice.c index a4b6542..d058359 100644 --- a/audio/voice.c +++ b/audio/voice.c @@ -73,10 +73,9 @@ struct pcm_config pcm_config_voice_sco = { .format = PCM_FORMAT_S16_LE, }; -/* SCO WB and NB uses 8kHz for now, 16kHz it's on TO DO*/ struct pcm_config pcm_config_voice_sco_wb = { .channels = 1, - .rate = SCO_DEFAULT_SAMPLING_RATE, + .rate = SCO_WB_SAMPLING_RATE, .period_size = SCO_PERIOD_SIZE, .period_count = SCO_PERIOD_COUNT, .format = PCM_FORMAT_S16_LE, |