mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-02 09:01:50 -05:00
acp: use some existing keys and add some new ones
This commit is contained in:
parent
79937676a4
commit
7f7a8ccc88
2 changed files with 7 additions and 5 deletions
|
|
@ -1111,13 +1111,13 @@ struct acp_card *acp_card_new(uint32_t index, const struct acp_dict *props)
|
|||
impl->use_ucm = true;
|
||||
|
||||
if (props) {
|
||||
if ((s = acp_dict_lookup(props, "use-ucm")) != NULL)
|
||||
if ((s = acp_dict_lookup(props, "api.alsa.use-ucm")) != NULL)
|
||||
impl->use_ucm = (strcmp(s, "true") == 0 || atoi(s) == 1);
|
||||
if ((s = acp_dict_lookup(props, "profile-set")) != NULL)
|
||||
profile_set = s;
|
||||
if ((s = acp_dict_lookup(props, "ignore-dB")) != NULL)
|
||||
if ((s = acp_dict_lookup(props, "api.alsa.ignore-dB")) != NULL)
|
||||
ignore_dB = (strcmp(s, "true") == 0 || atoi(s) == 1);
|
||||
if ((s = acp_dict_lookup(props, "profile")) != NULL)
|
||||
if ((s = acp_dict_lookup(props, "device.profile-set")) != NULL)
|
||||
profile_set = s;
|
||||
if ((s = acp_dict_lookup(props, "device.profile")) != NULL)
|
||||
profile = s;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue