提交 3c2ef841 编写于 作者: K Kuninori Morimoto 提交者: Mark Brown

ASoC: fsi: Add specified ID for soc-audio

Specified ID is necessary, when some codecs are used with FSI.
Signed-off-by: NKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Acked-by: NLiam Girdwood <lrg@slimlogic.co.uk>
Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
上级 d9478374
...@@ -12,6 +12,9 @@ ...@@ -12,6 +12,9 @@
* published by the Free Software Foundation. * published by the Free Software Foundation.
*/ */
#define FSI_PORT_A 0
#define FSI_PORT_B 1
/* flags format /* flags format
* 0xABCDEEFF * 0xABCDEEFF
......
...@@ -29,7 +29,7 @@ static int fsi_ak4642_dai_init(struct snd_soc_codec *codec) ...@@ -29,7 +29,7 @@ static int fsi_ak4642_dai_init(struct snd_soc_codec *codec)
static struct snd_soc_dai_link fsi_dai_link = { static struct snd_soc_dai_link fsi_dai_link = {
.name = "AK4642", .name = "AK4642",
.stream_name = "AK4642", .stream_name = "AK4642",
.cpu_dai = &fsi_soc_dai[0], /* fsi */ .cpu_dai = &fsi_soc_dai[FSI_PORT_A],
.codec_dai = &ak4642_dai, .codec_dai = &ak4642_dai,
.init = fsi_ak4642_dai_init, .init = fsi_ak4642_dai_init,
.ops = NULL, .ops = NULL,
...@@ -53,7 +53,7 @@ static int __init fsi_ak4642_init(void) ...@@ -53,7 +53,7 @@ static int __init fsi_ak4642_init(void)
{ {
int ret = -ENOMEM; int ret = -ENOMEM;
fsi_snd_device = platform_device_alloc("soc-audio", -1); fsi_snd_device = platform_device_alloc("soc-audio", FSI_PORT_A);
if (!fsi_snd_device) if (!fsi_snd_device)
goto out; goto out;
......
...@@ -24,7 +24,7 @@ static int fsi_da7210_init(struct snd_soc_codec *codec) ...@@ -24,7 +24,7 @@ static int fsi_da7210_init(struct snd_soc_codec *codec)
static struct snd_soc_dai_link fsi_da7210_dai = { static struct snd_soc_dai_link fsi_da7210_dai = {
.name = "DA7210", .name = "DA7210",
.stream_name = "DA7210", .stream_name = "DA7210",
.cpu_dai = &fsi_soc_dai[1], /* FSI B */ .cpu_dai = &fsi_soc_dai[FSI_PORT_B],
.codec_dai = &da7210_dai, .codec_dai = &da7210_dai,
.init = fsi_da7210_init, .init = fsi_da7210_init,
}; };
...@@ -47,7 +47,7 @@ static int __init fsi_da7210_sound_init(void) ...@@ -47,7 +47,7 @@ static int __init fsi_da7210_sound_init(void)
{ {
int ret; int ret;
fsi_da7210_snd_device = platform_device_alloc("soc-audio", -1); fsi_da7210_snd_device = platform_device_alloc("soc-audio", FSI_PORT_B);
if (!fsi_da7210_snd_device) if (!fsi_da7210_snd_device)
return -ENOMEM; return -ENOMEM;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册