a2dp: allow codec to hold Props params

Initial Props value are parsed from device settings, further changes are triggered by 'set_param' on a2dp node.
Codec can then use props to tweak its transcoder.
This commit is contained in:
Huang-Huang Bao 2021-03-20 14:53:18 +08:00 committed by Wim Taymans
parent 6512c2b5f6
commit 1d390addb1
7 changed files with 123 additions and 23 deletions

View file

@ -235,7 +235,7 @@ static int codec_enum_config(const struct a2dp_codec *codec,
static void *codec_init(const struct a2dp_codec *codec, uint32_t flags,
void *config, size_t config_len, const struct spa_audio_info *info,
const struct spa_dict *settings, size_t mtu)
void *props, size_t mtu)
{
struct impl *this;
a2dp_aac_t *conf = config;