alsa: move codec config to acp-device

Just like the latency, move the codecs to the device Route param.
This way, it is easier for the session manager to save and restore
the codecs as part of the Route settings.
This commit is contained in:
Wim Taymans 2021-09-02 10:05:33 +02:00
parent 1a93165e84
commit 80628f38e7
4 changed files with 151 additions and 20 deletions

View file

@ -209,6 +209,7 @@ struct acp_device {
#define ACP_DEVICE_HW_VOLUME (1<<1)
#define ACP_DEVICE_HW_MUTE (1<<2)
#define ACP_DEVICE_UCM_DEVICE (1<<3)
#define ACP_DEVICE_IEC958 (1<<4)
uint32_t flags;
const char *name;
@ -227,6 +228,8 @@ struct acp_device {
struct acp_port **ports;
int64_t latency_ns;
uint32_t codecs[32];
uint32_t n_codecs;
};
struct acp_card_profile {