forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-01-31 f70575805708cabdedea7498aaa3f710fde4d920
kernel/sound/soc/cirrus/simone.c
....@@ -1,33 +1,32 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * simone.c -- ASoC audio for Simplemachines Sim.One board
34 *
45 * Copyright (c) 2010 Mika Westerberg
56 *
67 * Based on snappercl15 machine driver by Ryan Mallon.
7
- *
8
- * This program is free software; you can redistribute it and/or modify
9
- * it under the terms of the GNU General Public License version 2 as
10
- * published by the Free Software Foundation.
118 */
129
1310 #include <linux/init.h>
1411 #include <linux/module.h>
1512 #include <linux/platform_device.h>
13
+#include <linux/soc/cirrus/ep93xx.h>
1614
1715 #include <sound/core.h>
1816 #include <sound/pcm.h>
1917 #include <sound/soc.h>
2018
2119 #include <asm/mach-types.h>
22
-#include <mach/hardware.h>
20
+
21
+SND_SOC_DAILINK_DEFS(hifi,
22
+ DAILINK_COMP_ARRAY(COMP_CPU("ep93xx-ac97")),
23
+ DAILINK_COMP_ARRAY(COMP_CODEC("ac97-codec", "ac97-hifi")),
24
+ DAILINK_COMP_ARRAY(COMP_PLATFORM("ep93xx-ac97")));
2325
2426 static struct snd_soc_dai_link simone_dai = {
2527 .name = "AC97",
2628 .stream_name = "AC97 HiFi",
27
- .cpu_dai_name = "ep93xx-ac97",
28
- .codec_dai_name = "ac97-hifi",
29
- .codec_name = "ac97-codec",
30
- .platform_name = "ep93xx-ac97",
29
+ SND_SOC_DAILINK_REG(hifi),
3130 };
3231
3332 static struct snd_soc_card snd_soc_simone = {