summaryrefslogtreecommitdiffstats
path: root/include/sound/soc.h
diff options
context:
space:
mode:
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>2018-01-28 21:58:25 -0500
committerMark Brown <broonie@kernel.org>2018-02-12 04:37:29 -0500
commitc95869e5c04fb0000370e7310dc892b417b8128a (patch)
tree763b95d1c497deb0d68d898d60bf7c8934d0f0a4 /include/sound/soc.h
parent7928b2cbe55b2a410a0f5c1f154610059c57b1b2 (diff)
ASoC: ac97: replace codec to component
Now we can replace Codec to Component. Let's do it. Note: xxx_codec_xxx() -> xxx_component_xxx() .idle_bias_off = 0 -> .idle_bias_on = 1 .ignore_pmdown_time = 0 -> .use_pmdown_time = 1 - -> .endianness = 1 - -> .non_legacy_dai_naming = 1 To keep compatibilty, this patch adds snd_soc_xxx_ac97_codec() macro. These will be removed when all codec code was removed. Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'include/sound/soc.h')
-rw-r--r--include/sound/soc.h13
1 files changed, 10 insertions, 3 deletions
diff --git a/include/sound/soc.h b/include/sound/soc.h
index 747fd583b9dc..6a11b0239f74 100644
--- a/include/sound/soc.h
+++ b/include/sound/soc.h
@@ -586,10 +586,17 @@ int snd_soc_test_bits(struct snd_soc_codec *codec, unsigned int reg,
586 unsigned int mask, unsigned int value); 586 unsigned int mask, unsigned int value);
587 587
588#ifdef CONFIG_SND_SOC_AC97_BUS 588#ifdef CONFIG_SND_SOC_AC97_BUS
589struct snd_ac97 *snd_soc_alloc_ac97_codec(struct snd_soc_codec *codec); 589#define snd_soc_alloc_ac97_codec(codec) \
590struct snd_ac97 *snd_soc_new_ac97_codec(struct snd_soc_codec *codec, 590 snd_soc_alloc_ac97_component(&codec->component)
591#define snd_soc_new_ac97_codec(codec, id, id_mask) \
592 snd_soc_new_ac97_component(&codec->component, id, id_mask)
593#define snd_soc_free_ac97_codec(ac97) \
594 snd_soc_free_ac97_component(ac97)
595
596struct snd_ac97 *snd_soc_alloc_ac97_component(struct snd_soc_component *component);
597struct snd_ac97 *snd_soc_new_ac97_component(struct snd_soc_component *component,
591 unsigned int id, unsigned int id_mask); 598 unsigned int id, unsigned int id_mask);
592void snd_soc_free_ac97_codec(struct snd_ac97 *ac97); 599void snd_soc_free_ac97_component(struct snd_ac97 *ac97);
593 600
594int snd_soc_set_ac97_ops(struct snd_ac97_bus_ops *ops); 601int snd_soc_set_ac97_ops(struct snd_ac97_bus_ops *ops);
595int snd_soc_set_ac97_ops_of_reset(struct snd_ac97_bus_ops *ops, 602int snd_soc_set_ac97_ops_of_reset(struct snd_ac97_bus_ops *ops,