diff options
author | Hans de Goede <hdegoede@redhat.com> | 2021-04-02 16:07:46 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2021-04-02 17:13:23 +0200 |
commit | 3d534537648bd7d7a82f2becc9ded99a4b228a6a (patch) | |
tree | 2611f7f639516cff421fab2eb46121f2a6a77501 /sound/soc/codecs/rt5670.h | |
parent | ASoC: rt5670: Add a quirk for the Dell Venue 10 Pro 5055 (diff) | |
download | linux-3d534537648bd7d7a82f2becc9ded99a4b228a6a.tar.xz linux-3d534537648bd7d7a82f2becc9ded99a4b228a6a.zip |
ASoC: rt5670: Add a rt5670_components() helper
The rt5670 codec driver uses DMI quirks to configure the DMIC data-pins,
which means that it knows which DMIC interface is used on a specific
device.
ATM we duplicate this DMI matching inside the UCM profiles to select
the right DMIC interface. Add a rt5670_components() helper which the
machine-driver can use to set the components string of the card so
that UCM can get the info from the components string.
This way we only need to add new DMI quirks in one place.
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Acked-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://lore.kernel.org/r/20210402140747.174716-6-hdegoede@redhat.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs/rt5670.h')
-rw-r--r-- | sound/soc/codecs/rt5670.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/soc/codecs/rt5670.h b/sound/soc/codecs/rt5670.h index 6fb3c369ee98..5b230897f630 100644 --- a/sound/soc/codecs/rt5670.h +++ b/sound/soc/codecs/rt5670.h @@ -2024,4 +2024,6 @@ void rt5670_jack_suspend(struct snd_soc_component *component); void rt5670_jack_resume(struct snd_soc_component *component); int rt5670_set_jack_detect(struct snd_soc_component *component, struct snd_soc_jack *jack); +const char *rt5670_components(void); + #endif /* __RT5670_H__ */ |