spa: alsa: actually set the channel map when use-chmap=true

When using channel maps, the active map should be set using
snd_pcm_set_chmap(). This has to be called when stream is in prepared
state.

Track which of the maps the selected format has set, and set it in
do_prepare().
This commit is contained in:
Pauli Virtanen 2025-12-30 19:29:41 +02:00 committed by Wim Taymans
parent bb0efd777f
commit e91a79dab7
2 changed files with 106 additions and 2 deletions

View file

@ -280,6 +280,8 @@ struct state {
struct spa_list driver_link;
struct rt_state rt;
snd_pcm_chmap_t *alsa_chmap;
};
struct spa_pod *spa_alsa_enum_propinfo(struct state *state,