forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-01-31 f70575805708cabdedea7498aaa3f710fde4d920
kernel/sound/soc/fsl/phycore-ac97.c
....@@ -1,14 +1,8 @@
1
-/*
2
- * phycore-ac97.c -- SoC audio for imx_phycore in AC97 mode
3
- *
4
- * Copyright 2009 Sascha Hauer, Pengutronix <s.hauer@pengutronix.de>
5
- *
6
- * This program is free software; you can redistribute it and/or modify it
7
- * under the terms of the GNU General Public License as published by the
8
- * Free Software Foundation; either version 2 of the License, or (at your
9
- * option) any later version.
10
- *
11
- */
1
+// SPDX-License-Identifier: GPL-2.0+
2
+//
3
+// phycore-ac97.c -- SoC audio for imx_phycore in AC97 mode
4
+//
5
+// Copyright 2009 Sascha Hauer, Pengutronix <s.hauer@pengutronix.de>
126
137 #include <linux/module.h>
148 #include <linux/moduleparam.h>
....@@ -26,15 +20,17 @@
2620 static const struct snd_soc_ops imx_phycore_hifi_ops = {
2721 };
2822
23
+SND_SOC_DAILINK_DEFS(hifi,
24
+ DAILINK_COMP_ARRAY(COMP_CPU("imx-ssi.0")),
25
+ DAILINK_COMP_ARRAY(COMP_CODEC("wm9712-codec", "wm9712-hifi")),
26
+ DAILINK_COMP_ARRAY(COMP_PLATFORM("imx-ssi.0")));
27
+
2928 static struct snd_soc_dai_link imx_phycore_dai_ac97[] = {
3029 {
3130 .name = "HiFi",
3231 .stream_name = "HiFi",
33
- .codec_dai_name = "wm9712-hifi",
34
- .codec_name = "wm9712-codec",
35
- .cpu_dai_name = "imx-ssi.0",
36
- .platform_name = "imx-ssi.0",
3732 .ops = &imx_phycore_hifi_ops,
33
+ SND_SOC_DAILINK_REG(hifi),
3834 },
3935 };
4036