diff options
| author | Mark Brown <broonie@kernel.org> | 2025-10-21 21:05:28 +0300 |
|---|---|---|
| committer | Mark Brown <broonie@kernel.org> | 2025-10-21 21:05:28 +0300 |
| commit | e0fb9464295bca2aa92835d02147d3265a83689a (patch) | |
| tree | 31c3329411d927ffac3758633ccacc67f2a4d328 /include | |
| parent | 8c465b1669bfeaaf0ebd504b96d689e2a2810874 (diff) | |
| parent | d742ebcfe524dc54023f7c520d2ed2e4b7203c19 (diff) | |
| download | linux-e0fb9464295bca2aa92835d02147d3265a83689a.tar.xz | |
ASoC: use snd_kcontrol_chip() instead of
Merge series from Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>:
We would like to hide struct snd_soc_dapm_context from driver. So we need
cleanup code first. Current ASoC have very similar functions (A)(B).
(A) snd_soc_kcontrol_component()
(B) snd_soc_dapm_kcontrol_component()
(B) is using very picky way to get component but using it is necessary in
ASoC. But (A) is just wrapper function to snd_kcontrol_chip(), and directly
using it without wrapper is very common way on ALSA.
This patch-set doesn't merge patches for each vender etc, because it makes
backport difficult.
Diffstat (limited to 'include')
| -rw-r--r-- | include/sound/soc.h | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/include/sound/soc.h b/include/sound/soc.h index ddc508ff7b9b..1aebf14fcf80 100644 --- a/include/sound/soc.h +++ b/include/sound/soc.h @@ -1305,22 +1305,6 @@ static inline unsigned int snd_soc_enum_item_to_val(const struct soc_enum *e, return e->values[item]; } -/** - * snd_soc_kcontrol_component() - Returns the component that registered the - * control - * @kcontrol: The control for which to get the component - * - * Note: This function will work correctly if the control has been registered - * for a component. With snd_soc_add_codec_controls() or via table based - * setup for either a CODEC or component driver. Otherwise the behavior is - * undefined. - */ -static inline struct snd_soc_component *snd_soc_kcontrol_component( - struct snd_kcontrol *kcontrol) -{ - return snd_kcontrol_chip(kcontrol); -} - int snd_soc_util_init(void); void snd_soc_util_exit(void); |
