ASoC: Intel: cht_bsw_nau8824: Set card.components string
authorHans de Goede <hdegoede@redhat.com>
Sat, 2 Oct 2021 21:14:59 +0000 (23:14 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 4 Oct 2021 14:55:30 +0000 (15:55 +0100)
Set the card.components string using the new nau8824_components() helper
which returns a components string based on the DMI quirks inside the
nau8824 codec driver.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Link: https://lore.kernel.org/r/20211002211459.110124-4-hdegoede@redhat.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/boards/cht_bsw_nau8824.c

index da534a0b21336a1985f313ece6ea22142745b492..bad32d2bdf89088314824ba219e5d6246d00ab7d 100644 (file)
@@ -278,6 +278,8 @@ static int snd_cht_mc_probe(struct platform_device *pdev)
                snd_soc_card_cht.driver_name = DRIVER_NAME;
        }
 
+       snd_soc_card_cht.components = nau8824_components();
+
        /* set pm ops */
        if (sof_parent)
                pdev->dev.driver->pm = &snd_soc_pm_ops;