From: Axel Lin <axel.lin@gmail.com>
To: linux-kernel@vger.kernel.org
Cc: Vladimir Barinov <vbarinov@embeddedalley.com>,
alsa-devel@alsa-project.org,
Mark Brown <broonie@opensource.wolfsonmicro.com>,
Liam Girdwood <lrg@ti.com>
Subject: [PATCH 2/3] ASoC: tlv320aic3x: Convert codec->hw_read to snd_soc_read
Date: Fri, 14 Oct 2011 09:37:00 +0800 [thread overview]
Message-ID: <1318556220.6379.3.camel@phoenix> (raw)
In-Reply-To: <1318556120.6379.1.camel@phoenix>
codec->hw_read is broken now, let's covert to snd_soc_read.
Signed-off-by: Axel Lin <axel.lin@gmail.com>
---
sound/soc/codecs/tlv320aic3x.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/sound/soc/codecs/tlv320aic3x.c b/sound/soc/codecs/tlv320aic3x.c
index be55b7f..7a49390 100644
--- a/sound/soc/codecs/tlv320aic3x.c
+++ b/sound/soc/codecs/tlv320aic3x.c
@@ -137,7 +137,10 @@ static int aic3x_read(struct snd_soc_codec *codec, unsigned int reg,
if (reg >= AIC3X_CACHEREGNUM)
return -1;
- *value = codec->hw_read(codec, reg);
+ codec->cache_bypass = 1;
+ *value = snd_soc_read(codec, reg);
+ codec->cache_bypass = 0;
+
cache[reg] = *value;
return 0;
--
1.7.4.1
next prev parent reply other threads:[~2011-10-14 1:37 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-10-14 1:35 [PATCH 1/3] ASoC: alc5623: Convert codec->hw_read to snd_soc_read Axel Lin
2011-10-14 1:37 ` Axel Lin [this message]
2011-10-14 19:35 ` [PATCH 2/3] ASoC: tlv320aic3x: " Mark Brown
2011-10-14 19:44 ` Vladimir Barinov
2011-10-14 1:37 ` [PATCH 3/3] ASoC: wm8991: " Axel Lin
2011-10-14 1:39 ` [PATCH 3/3] ASoC: wm8961: " Axel Lin
2011-10-14 19:36 ` Mark Brown
2011-10-14 1:41 ` [PATCH 3/3] ASoC: wm8991: " Axel Lin
2011-10-14 19:34 ` [PATCH 1/3] ASoC: alc5623: " 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=1318556220.6379.3.camel@phoenix \
--to=axel.lin@gmail.com \
--cc=alsa-devel@alsa-project.org \
--cc=broonie@opensource.wolfsonmicro.com \
--cc=linux-kernel@vger.kernel.org \
--cc=lrg@ti.com \
--cc=vbarinov@embeddedalley.com \
/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).