forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-01-05 071106ecf68c401173c58808b1cf5f68cc50d390
kernel/sound/soc/txx9/txx9aclc-generic.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * Generic TXx9 ACLC machine driver
34 *
....@@ -5,10 +6,6 @@
56 *
67 * Based on RBTX49xx patch from CELF patch archive.
78 * (C) Copyright TOSHIBA CORPORATION 2004-2006
8
- *
9
- * This program is free software; you can redistribute it and/or modify
10
- * it under the terms of the GNU General Public License version 2 as
11
- * published by the Free Software Foundation.
129 *
1310 * This is a very generic AC97 sound machine driver for boards which
1411 * have (AC97) audio at ACLC (e.g. RBTX49XX boards).
....@@ -21,13 +18,15 @@
2118 #include <sound/soc.h>
2219 #include "txx9aclc.h"
2320
21
+SND_SOC_DAILINK_DEFS(hifi,
22
+ DAILINK_COMP_ARRAY(COMP_CPU("txx9aclc-ac97")),
23
+ DAILINK_COMP_ARRAY(COMP_CODEC("ac97-codec", "ac97-hifi")),
24
+ DAILINK_COMP_ARRAY(COMP_PLATFORM("txx9aclc-pcm-audio")));
25
+
2426 static struct snd_soc_dai_link txx9aclc_generic_dai = {
2527 .name = "AC97",
2628 .stream_name = "AC97 HiFi",
27
- .cpu_dai_name = "txx9aclc-ac97",
28
- .codec_dai_name = "ac97-hifi",
29
- .platform_name = "txx9aclc-pcm-audio",
30
- .codec_name = "ac97-codec",
29
+ SND_SOC_DAILINK_REG(hifi),
3130 };
3231
3332 static struct snd_soc_card txx9aclc_generic_card = {