From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
To: Mark Brown <broonie@opensource.wolfsonmicro.com>
Cc: Linux-ALSA <alsa-devel@alsa-project.org>,
Liam Girdwood <lrg@slimlogic.co.uk>
Subject: [PATCH 2/3 v2] ASoC: sh: fsi: Add fsi_get_priv_frm_dai function
Date: Thu, 20 Jan 2011 11:45:48 +0900 [thread overview]
Message-ID: <w3psjwopa1v.wl%kuninori.morimoto.gx@renesas.com> (raw)
In-Reply-To: <w3pwrm0pa3u.wl%kuninori.morimoto.gx@renesas.com>
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Acked-by: Liam Girdwood <lrg@slimlogic.co.uk>
---
v1 -> v2
- based on current Mark's for-2.6.39 branch
- add Acked-by from Liam
sound/soc/sh/fsi.c | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/sound/soc/sh/fsi.c b/sound/soc/sh/fsi.c
index 2b06402..1d0a16e 100644
--- a/sound/soc/sh/fsi.c
+++ b/sound/soc/sh/fsi.c
@@ -252,9 +252,8 @@ static struct snd_soc_dai *fsi_get_dai(struct snd_pcm_substream *substream)
return rtd->cpu_dai;
}
-static struct fsi_priv *fsi_get_priv(struct snd_pcm_substream *substream)
+static struct fsi_priv *fsi_get_priv_frm_dai(struct snd_soc_dai *dai)
{
- struct snd_soc_dai *dai = fsi_get_dai(substream);
struct fsi_master *master = snd_soc_dai_get_drvdata(dai);
if (dai->id == 0)
@@ -263,6 +262,11 @@ static struct fsi_priv *fsi_get_priv(struct snd_pcm_substream *substream)
return &master->fsib;
}
+static struct fsi_priv *fsi_get_priv(struct snd_pcm_substream *substream)
+{
+ return fsi_get_priv_frm_dai(fsi_get_dai(substream));
+}
+
static u32 fsi_get_info_flags(struct fsi_priv *fsi)
{
int is_porta = fsi_is_port_a(fsi);
--
1.7.1
next prev parent reply other threads:[~2011-01-20 2:45 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-01-12 6:22 [PATCH 0/3] ASoC: fsi/ak4642/da7210: select sound format from fsi-codecs Kuninori Morimoto
2011-01-12 6:23 ` [PATCH 1/3] ASoC: ak4642: add SND_SOC_DAIFMT_FORMAT support Kuninori Morimoto
2011-01-12 6:23 ` [PATCH 2/3] ASoC: sh: fsi: Add fsi_get_priv_frm_dai function Kuninori Morimoto
2011-01-12 6:24 ` [PATCH 3/3] ASoC: sh: fsi: Add snd_soc_dai_set_fmt support Kuninori Morimoto
2011-01-12 14:53 ` Mark Brown
2011-01-13 0:09 ` Kuninori Morimoto
2011-01-13 22:28 ` Paul Mundt
2011-01-20 2:44 ` [PATCH 0/3 v2] ASoC: fsi/ak4642/da7210: select sound format from fsi-codecs Kuninori Morimoto
2011-01-20 2:45 ` [PATCH 1/3 v2] ASoC: ak4642: add SND_SOC_DAIFMT_FORMAT support Kuninori Morimoto
2011-01-20 2:45 ` Kuninori Morimoto
2011-01-20 2:45 ` Kuninori Morimoto [this message]
2011-01-20 2:45 ` [PATCH 2/3 v2] ASoC: sh: fsi: Add fsi_get_priv_frm_dai function Kuninori Morimoto
2011-01-20 2:46 ` [PATCH 3/3 v2] ASoC: sh: fsi: Add snd_soc_dai_set_fmt support Kuninori Morimoto
2011-01-20 2:46 ` Kuninori Morimoto
2011-01-21 19:02 ` [PATCH 0/3 v2] ASoC: fsi/ak4642/da7210: select sound format from fsi-codecs Mark Brown
2011-01-12 11:12 ` [PATCH 0/3] " Liam Girdwood
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=w3psjwopa1v.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).