]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb11b0043e4fdab31ae69b7e849f51596b0274f96
tree2611f7f639516cff421fab2eb46121f2a6a77501
parent2b89987d9a528937a822caf97ae4030fb61c732b
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