ASoC: rt5670: Add a rt5670_components() helper
authorHans de Goede <hdegoede@redhat.com>
Fri, 2 Apr 2021 14:07:46 +0000 (16:07 +0200)
committerMark Brown <broonie@kernel.org>
Fri, 2 Apr 2021 15:13:23 +0000 (16:13 +0100)
commit3d534537648bd7d7a82f2becc9ded99a4b228a6a
tree2611f7f639516cff421fab2eb46121f2a6a77501
parent84cb0d5581b6a7bd5d96013f67e9f2eb0c7b4378
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>
sound/soc/codecs/rt5670.c
sound/soc/codecs/rt5670.h