mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-28 06:34:12 +08:00
ASoC: topology: Rename SOC_TPLG_PASS_MIXER to _CONTROL
Name of SOC_TPLG_PASS_MIXER pass is bit confusing, suggesting that it may only apply to mixers. As it is used for all control types, change name to SOC_TPLG_PASS_CONTROL. Signed-off-by: Amadeusz Sławiński <amadeuszx.slawinski@linux.intel.com> Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com> Reviewed-by: Cezary Rojewski <cezary.rojewski@intel.com> Link: https://lore.kernel.org/r/20220401120200.4047867-5-amadeuszx.slawinski@linux.intel.com Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
4fad3cc6eb
commit
5e2cd47a36
@ -40,7 +40,7 @@
|
||||
*/
|
||||
#define SOC_TPLG_PASS_MANIFEST 0
|
||||
#define SOC_TPLG_PASS_VENDOR 1
|
||||
#define SOC_TPLG_PASS_MIXER 2
|
||||
#define SOC_TPLG_PASS_CONTROL 2
|
||||
#define SOC_TPLG_PASS_WIDGET 3
|
||||
#define SOC_TPLG_PASS_PCM_DAI 4
|
||||
#define SOC_TPLG_PASS_GRAPH 5
|
||||
@ -360,7 +360,7 @@ static void remove_mixer(struct snd_soc_component *comp,
|
||||
{
|
||||
struct snd_card *card = comp->card->snd_card;
|
||||
|
||||
if (pass != SOC_TPLG_PASS_MIXER)
|
||||
if (pass != SOC_TPLG_PASS_CONTROL)
|
||||
return;
|
||||
|
||||
if (dobj->ops && dobj->ops->control_unload)
|
||||
@ -376,7 +376,7 @@ static void remove_enum(struct snd_soc_component *comp,
|
||||
{
|
||||
struct snd_card *card = comp->card->snd_card;
|
||||
|
||||
if (pass != SOC_TPLG_PASS_MIXER)
|
||||
if (pass != SOC_TPLG_PASS_CONTROL)
|
||||
return;
|
||||
|
||||
if (dobj->ops && dobj->ops->control_unload)
|
||||
@ -392,7 +392,7 @@ static void remove_bytes(struct snd_soc_component *comp,
|
||||
{
|
||||
struct snd_card *card = comp->card->snd_card;
|
||||
|
||||
if (pass != SOC_TPLG_PASS_MIXER)
|
||||
if (pass != SOC_TPLG_PASS_CONTROL)
|
||||
return;
|
||||
|
||||
if (dobj->ops && dobj->ops->control_unload)
|
||||
@ -2467,7 +2467,7 @@ static int soc_tplg_load_header(struct soc_tplg *tplg,
|
||||
case SND_SOC_TPLG_TYPE_MIXER:
|
||||
case SND_SOC_TPLG_TYPE_ENUM:
|
||||
case SND_SOC_TPLG_TYPE_BYTES:
|
||||
hdr_pass = SOC_TPLG_PASS_MIXER;
|
||||
hdr_pass = SOC_TPLG_PASS_CONTROL;
|
||||
elem_load = soc_tplg_kcontrol_elems_load;
|
||||
break;
|
||||
case SND_SOC_TPLG_TYPE_DAPM_GRAPH:
|
||||
|
Loading…
Reference in New Issue
Block a user