Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Unverified Commit 4bda8a4b authored by Martin Hoffmann's avatar Martin Hoffmann Committed by Danny Wood
Browse files

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
parent b6382ffc
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -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,