.. | .. |
---|
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> |
---|
12 | 6 | |
---|
13 | 7 | #include <linux/module.h> |
---|
14 | 8 | #include <linux/moduleparam.h> |
---|
.. | .. |
---|
26 | 20 | static const struct snd_soc_ops imx_phycore_hifi_ops = { |
---|
27 | 21 | }; |
---|
28 | 22 | |
---|
| 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 | + |
---|
29 | 28 | static struct snd_soc_dai_link imx_phycore_dai_ac97[] = { |
---|
30 | 29 | { |
---|
31 | 30 | .name = "HiFi", |
---|
32 | 31 | .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", |
---|
37 | 32 | .ops = &imx_phycore_hifi_ops, |
---|
| 33 | + SND_SOC_DAILINK_REG(hifi), |
---|
38 | 34 | }, |
---|
39 | 35 | }; |
---|
40 | 36 | |
---|