mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-01 22:58:50 -04:00
bluez5: set channel information for hfp/hsp transports
Fixes volume problems.
This commit is contained in:
parent
04a13471fb
commit
302282ef59
3 changed files with 9 additions and 0 deletions
|
|
@ -36,6 +36,7 @@
|
|||
#include <spa/support/dbus.h>
|
||||
#include <spa/support/plugin.h>
|
||||
#include <spa/utils/type.h>
|
||||
#include <spa/param/audio/raw.h>
|
||||
|
||||
#include "defs.h"
|
||||
|
||||
|
|
@ -125,6 +126,8 @@ static struct spa_bt_transport *_transport_create(struct spa_bt_backend *backend
|
|||
t->backend = backend;
|
||||
t->profile = profile;
|
||||
t->codec = codec;
|
||||
t->n_channels = 1;
|
||||
t->channels[0] = SPA_AUDIO_CHANNEL_MONO;
|
||||
t->enabled = true;
|
||||
|
||||
finish:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue