From 42b9b0eb4cb9fe30c9ea38ef25a271039b721d1e Mon Sep 17 00:00:00 2001 From: Sanchayan Maity Date: Wed, 7 May 2025 18:29:01 +0530 Subject: [PATCH] bluez5-dbus: Fix the audio channel position for ASHA For stereo to work, we need to advertise the channel position based on whether the side is left or right. --- spa/plugins/bluez5/bluez5-dbus.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spa/plugins/bluez5/bluez5-dbus.c b/spa/plugins/bluez5/bluez5-dbus.c index ace1c2ed8..231815773 100644 --- a/spa/plugins/bluez5/bluez5-dbus.c +++ b/spa/plugins/bluez5/bluez5-dbus.c @@ -4180,7 +4180,7 @@ static int setup_asha_transport(struct spa_bt_remote_endpoint *remote_endpoint, transport->volumes[SPA_BT_VOLUME_ID_TX].active = true; transport->volumes[SPA_BT_VOLUME_ID_TX].volume = DEFAULT_TX_VOLUME; transport->n_channels = 1; - transport->channels[0] = SPA_AUDIO_CHANNEL_MONO; + transport->channels[0] = transport->asha_right_side ? SPA_AUDIO_CHANNEL_FR : SPA_AUDIO_CHANNEL_FL; spa_bt_device_add_profile(transport->device, transport->profile); spa_bt_device_connect_profile(transport->device, transport->profile);