[d-kernel] [PATCH 33/33] ASoC: Intel: sof-essx8336: force card->name for the es8326 codec
kovalev на altlinux.org
kovalev на altlinux.org
Пн Июл 29 08:10:22 MSK 2024
From: Vasiliy Kovalev <kovalev на altlinux.org>
This is done for the subsequent correct configuration of UCM alsa.
Thanks to the Aquarius developers for this workaround.
Signed-off-by: Vasiliy Kovalev <kovalev на altlinux.org>
---
sound/soc/intel/boards/sof_es8336.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/sound/soc/intel/boards/sof_es8336.c b/sound/soc/intel/boards/sof_es8336.c
index db958e3911d9d3..bd07b90e1ed2cb 100644
--- a/sound/soc/intel/boards/sof_es8336.c
+++ b/sound/soc/intel/boards/sof_es8336.c
@@ -724,8 +724,10 @@ static int sof_es8336_probe(struct platform_device *pdev)
dai_links[0].codecs->name = codec_name;
/* also fixup codec dai name if relevant */
- if (!strncmp(mach->id, "ESSX8326", SND_ACPI_I2C_ID_LEN))
+ if (!strncmp(mach->id, "ESSX8326", SND_ACPI_I2C_ID_LEN)) {
dai_links[0].codecs->dai_name = "ES8326 HiFi";
+ card->name = "essx8326";
+ }
} else {
dev_err(dev, "Error cannot find '%s' dev\n", mach->id);
return -ENXIO;
--
2.33.8
Подробная информация о списке рассылки devel-kernel