bluez5: set channel information for hfp/hsp transports

Fixes volume problems.
This commit is contained in:
Pauli Virtanen 2021-03-02 22:15:21 +02:00
parent 04a13471fb
commit 302282ef59
3 changed files with 9 additions and 0 deletions

View file

@ -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: