mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-02 09:01:50 -05:00
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:
parent
1a93165e84
commit
80628f38e7
4 changed files with 151 additions and 20 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue