From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
To: Mark Brown <broonie@opensource.wolfsonmicro.com>,
Linux-ALSA <alsa-devel@alsa-project.org>
Cc: Liam Girdwood <lrg@slimlogic.co.uk>
Subject: [PATCH 2/2] ASoC: fsi-ak4642/fsi-da7210: modify dai link settings for card detect
Date: Mon, 30 Aug 2010 20:47:19 +0900 (JST) [thread overview]
Message-ID: <w3pmxs4jp9x.wl%kuninori.morimoto.gx@renesas.com> (raw)
In-Reply-To: <w3ppqx0jpbk.wl%kuninori.morimoto.gx@renesas.com>
This patch modify dai link
- platform_name: sh_fsi/sh_fsi2 are used for FSI driver
- codec_name: ak4642/ak4643 are used for ak4642 driver
This is quick hack. I should modify it more wisely in future
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
---
sound/soc/sh/fsi-ak4642.c | 7 ++++++-
sound/soc/sh/fsi-da7210.c | 2 +-
2 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/sound/soc/sh/fsi-ak4642.c b/sound/soc/sh/fsi-ak4642.c
index 9e107a9..53836ca 100644
--- a/sound/soc/sh/fsi-ak4642.c
+++ b/sound/soc/sh/fsi-ak4642.c
@@ -31,8 +31,13 @@ static struct snd_soc_dai_link fsi_dai_link = {
.stream_name = "AK4642",
.cpu_dai_name = "fsia-dai", /* fsi A */
.codec_dai_name = "ak4642-hifi",
- .platform_name = "fsi-pcm-audio",
+#ifdef CONFIG_MACH_AP4EVB
+ .platform_name = "sh_fsi2.0",
+ .codec_name = "ak4642-codec.0-0013",
+#else
+ .platform_name = "sh_fsi.0",
.codec_name = "ak4642-codec.0-0012",
+#endif
.init = fsi_ak4642_dai_init,
.ops = NULL,
};
diff --git a/sound/soc/sh/fsi-da7210.c b/sound/soc/sh/fsi-da7210.c
index 4f9298f..b527015 100644
--- a/sound/soc/sh/fsi-da7210.c
+++ b/sound/soc/sh/fsi-da7210.c
@@ -27,7 +27,7 @@ static struct snd_soc_dai_link fsi_da7210_dai = {
.stream_name = "DA7210",
.cpu_dai_name = "fsib-dai", /* FSI B */
.codec_dai_name = "da7210-hifi",
- .platform_name = "fsi-pcm-audio",
+ .platform_name = "sh_fsi.0",
.codec_name = "da7210-codec.0-001a",
.init = fsi_da7210_init,
};
--
1.7.0.4
next prev parent reply other threads:[~2010-08-30 11:47 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-08-30 11:46 [PATCH 0/2] ASoC: fsi: modify bug fix Kuninori Morimoto
2010-08-30 10:40 ` [PATCH 1/2] ASoC: fsi: modify compile error Kuninori Morimoto
2010-08-30 14:35 ` Liam Girdwood
2010-08-30 11:47 ` Kuninori Morimoto [this message]
2010-08-30 14:37 ` [PATCH 2/2] ASoC: fsi-ak4642/fsi-da7210: modify dai link settings for card detect Liam Girdwood
2010-08-31 0:32 ` [PATCH 0/2] ASoC: fsi: modify bug fix Kuninori Morimoto
2010-08-31 12:31 ` Mark Brown
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=w3pmxs4jp9x.wl%kuninori.morimoto.gx@renesas.com \
--to=kuninori.morimoto.gx@renesas.com \
--cc=alsa-devel@alsa-project.org \
--cc=broonie@opensource.wolfsonmicro.com \
--cc=lrg@slimlogic.co.uk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).