mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2026-06-08 03:01:52 -04:00
spa: alsa: Use some #defines instead of raw strings
Makes it easier to find instances where these keys are used.
This commit is contained in:
parent
a6ad8b3b62
commit
bb634fb0f9
1 changed files with 3 additions and 2 deletions
|
|
@ -6,6 +6,7 @@
|
||||||
#include "alsa-mixer.h"
|
#include "alsa-mixer.h"
|
||||||
#include "alsa-ucm.h"
|
#include "alsa-ucm.h"
|
||||||
|
|
||||||
|
#include <spa/monitor/device.h>
|
||||||
#include <spa/utils/string.h>
|
#include <spa/utils/string.h>
|
||||||
#include <spa/utils/json.h>
|
#include <spa/utils/json.h>
|
||||||
#include <spa/utils/cleanup.h>
|
#include <spa/utils/cleanup.h>
|
||||||
|
|
@ -1957,9 +1958,9 @@ struct acp_card *acp_card_new(uint32_t index, const struct acp_dict *props)
|
||||||
impl->disable_mixer_path = spa_atob(s);
|
impl->disable_mixer_path = spa_atob(s);
|
||||||
if ((s = acp_dict_lookup(props, "api.alsa.ignore-dB")) != NULL)
|
if ((s = acp_dict_lookup(props, "api.alsa.ignore-dB")) != NULL)
|
||||||
impl->ignore_dB = spa_atob(s);
|
impl->ignore_dB = spa_atob(s);
|
||||||
if ((s = acp_dict_lookup(props, "device.profile-set")) != NULL)
|
if ((s = acp_dict_lookup(props, SPA_KEY_DEVICE_PROFILE_SET)) != NULL)
|
||||||
profile_set = s;
|
profile_set = s;
|
||||||
if ((s = acp_dict_lookup(props, "device.profile")) != NULL)
|
if ((s = acp_dict_lookup(props, SPA_KEY_DEVICE_PROFILE)) != NULL)
|
||||||
profile = s;
|
profile = s;
|
||||||
if ((s = acp_dict_lookup(props, "api.acp.auto-profile")) != NULL)
|
if ((s = acp_dict_lookup(props, "api.acp.auto-profile")) != NULL)
|
||||||
impl->auto_profile = spa_atob(s);
|
impl->auto_profile = spa_atob(s);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue