From 3b7a9941a9741833596a8e90bd235d16e643252f Mon Sep 17 00:00:00 2001 From: Thierry Bultel Date: Fri, 28 Sep 2018 15:59:25 +0200 Subject: bluetooth: set audio rate to 44100 44100 seems to be the most common sample rate. Fis is a temporary fix, because the actual sample rate may differ and depend on the information available at the bluetooth transport level. Handing it dynamically means some significant changes in softmixer: - instanciate the rate converter on playback in all the cases - either been able to modify it after creation, or if not possible, close and restart the output PCM plugin stack. Change-Id: I6bd900fd539251b60b97bbaf15e1390bf49c13e0 Signed-off-by: Thierry Bultel --- plugins/lib/bluetooth/hal-bt-mixer-link.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/lib/bluetooth/hal-bt-mixer-link.h b/plugins/lib/bluetooth/hal-bt-mixer-link.h index 6fc90f6..0550339 100644 --- a/plugins/lib/bluetooth/hal-bt-mixer-link.h +++ b/plugins/lib/bluetooth/hal-bt-mixer-link.h @@ -52,7 +52,7 @@ \"volume\": 80,\ \"mute\": false,\ \"params\": {\ - \"rate\" : 48000,\ + \"rate\" : 44100,\ \"format\": \"S16_LE\",\ \"channels\": 2\ }\ @@ -62,4 +62,4 @@ // HAL controllers handle mixer bt calls functions int HalBtMixerLinkSetBtStreamingSettings(AFB_ApiT apiHandle, char *mixerApiName, unsigned int btStreamStatus, char *hci, char *btAddress); -#endif /* _HAL_BT_MIXER_LINK_INCLUDE_ */ \ No newline at end of file +#endif /* _HAL_BT_MIXER_LINK_INCLUDE_ */ -- cgit 1.2.3-korg