forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-01-31 f70575805708cabdedea7498aaa3f710fde4d920
kernel/sound/soc/samsung/s3c24xx_simtec_hermes.c
....@@ -1,11 +1,6 @@
1
-/* sound/soc/samsung/s3c24xx_simtec_hermes.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>
....@@ -68,14 +63,17 @@
6863 return 0;
6964 }
7065
66
+SND_SOC_DAILINK_DEFS(tlv320aic33,
67
+ DAILINK_COMP_ARRAY(COMP_CPU("s3c24xx-iis")),
68
+ DAILINK_COMP_ARRAY(COMP_CODEC("tlv320aic3x-codec.0-001a",
69
+ "tlv320aic3x-hifi")),
70
+ DAILINK_COMP_ARRAY(COMP_PLATFORM("s3c24xx-iis")));
71
+
7172 static struct snd_soc_dai_link simtec_dai_aic33 = {
7273 .name = "tlv320aic33",
7374 .stream_name = "TLV320AIC33",
74
- .codec_name = "tlv320aic3x-codec.0-001a",
75
- .cpu_dai_name = "s3c24xx-iis",
76
- .codec_dai_name = "tlv320aic3x-hifi",
77
- .platform_name = "s3c24xx-iis",
7875 .init = simtec_hermes_init,
76
+ SND_SOC_DAILINK_REG(tlv320aic33),
7977 };
8078
8179 /* simtec audio machine driver */