]> git.itanic.dy.fi Git - linux-stable/commit
ASoC: rt5645: Add a rt5645_components() helper
authorHans de Goede <hdegoede@redhat.com>
Sun, 26 Nov 2023 21:40:22 +0000 (22:40 +0100)
committerMark Brown <broonie@kernel.org>
Thu, 21 Dec 2023 21:00:46 +0000 (21:00 +0000)
commit4cd7654553b3cf1ce5a7560f0492f0431785dfae
tree25fa4ade5907bb53350a8016d27ee97a62a4234a
parentb4635b9cd9ae48050d72b645cc53175788bebf52
ASoC: rt5645: Add a rt5645_components() helper

The rt5645 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 rt5645_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>
Link: https://msgid.link/r/20231126214024.300505-6-hdegoede@redhat.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/rt5645.c
sound/soc/codecs/rt5645.h