audio: Fix WBS sample rate usage
authorMartin Hoffmann <martin.de@myself.com>
Wed, 26 Jul 2017 10:10:37 +0000 (12:10 +0200)
committerJan Altensen <info@stricted.net>
Tue, 5 Feb 2019 18:57:17 +0000 (19:57 +0100)
commitf1a3539e2d24990886f47dfb3b6076c96b8f8a8c
tree3d7c5a1fdc6e08f8ebd091e139b6dc00b0e6183a
parent2b9386fb2676c76ea910ba0169d373d37534f245
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
audio/voice.c