mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-01 22:58:50 -04:00
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.
This commit is contained in:
parent
5bf3a0c454
commit
42b9b0eb4c
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue