forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-01-31 f70575805708cabdedea7498aaa3f710fde4d920
kernel/sound/soc/samsung/s3c24xx_simtec_tlv320aic23.c
....@@ -1,11 +1,6 @@
1
-/* sound/soc/samsung/s3c24xx_simtec_tlv320aic23.c
2
- *
3
- * Copyright 2009 Simtec Electronics
4
- *
5
- * This program is free software; you can redistribute it and/or modify
6
- * it under the terms of the GNU General Public License version 2 as
7
- * published by the Free Software Foundation.
8
-*/
1
+// SPDX-License-Identifier: GPL-2.0
2
+//
3
+// Copyright 2009 Simtec Electronics
94
105 #include <linux/module.h>
116 #include <sound/soc.h>
....@@ -57,14 +52,17 @@
5752 return 0;
5853 }
5954
55
+SND_SOC_DAILINK_DEFS(tlv320aic23,
56
+ DAILINK_COMP_ARRAY(COMP_CPU("s3c24xx-iis")),
57
+ DAILINK_COMP_ARRAY(COMP_CODEC("tlv320aic3x-codec.0-001a",
58
+ "tlv320aic3x-hifi")),
59
+ DAILINK_COMP_ARRAY(COMP_PLATFORM("s3c24xx-iis")));
60
+
6061 static struct snd_soc_dai_link simtec_dai_aic23 = {
6162 .name = "tlv320aic23",
6263 .stream_name = "TLV320AIC23",
63
- .codec_name = "tlv320aic3x-codec.0-001a",
64
- .cpu_dai_name = "s3c24xx-iis",
65
- .codec_dai_name = "tlv320aic3x-hifi",
66
- .platform_name = "s3c24xx-iis",
6764 .init = simtec_tlv320aic23_init,
65
+ SND_SOC_DAILINK_REG(tlv320aic23),
6866 };
6967
7068 /* simtec audio machine driver */