From bb634fb0f9f193b527f6e4de42e7c316a87fab07 Mon Sep 17 00:00:00 2001 From: Arun Raghavan Date: Fri, 5 Jun 2026 12:10:08 -0700 Subject: [PATCH] spa: alsa: Use some #defines instead of raw strings Makes it easier to find instances where these keys are used. --- spa/plugins/alsa/acp/acp.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/spa/plugins/alsa/acp/acp.c b/spa/plugins/alsa/acp/acp.c index fa4c199b2..ca7cb1a12 100644 --- a/spa/plugins/alsa/acp/acp.c +++ b/spa/plugins/alsa/acp/acp.c @@ -6,6 +6,7 @@ #include "alsa-mixer.h" #include "alsa-ucm.h" +#include #include #include #include @@ -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); if ((s = acp_dict_lookup(props, "api.alsa.ignore-dB")) != NULL) 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; - if ((s = acp_dict_lookup(props, "device.profile")) != NULL) + if ((s = acp_dict_lookup(props, SPA_KEY_DEVICE_PROFILE)) != NULL) profile = s; if ((s = acp_dict_lookup(props, "api.acp.auto-profile")) != NULL) impl->auto_profile = spa_atob(s);