projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
afad95f
)
ASoC: ak4104: Use snd_soc_write() rather than internal write function
author
Mark Brown
<
[email protected]
>
Fri, 17 Feb 2012 20:05:51 +0000
(12:05 -0800)
committer
Mark Brown
<
[email protected]
>
Thu, 23 Feb 2012 15:14:14 +0000
(15:14 +0000)
Signed-off-by: Mark Brown <
[email protected]
>
Acked-by: Daniel Mack <
[email protected]
>
sound/soc/codecs/ak4104.c
patch
|
blob
|
history
diff --git
a/sound/soc/codecs/ak4104.c
b/sound/soc/codecs/ak4104.c
index d6d9e40cbdeecc9fc4d4cfd9b6e5269300e247ce..34a840c5d2b79de186bc48d95a6988546d0f8f49 100644
(file)
--- a/
sound/soc/codecs/ak4104.c
+++ b/
sound/soc/codecs/ak4104.c
@@
-148,7
+148,7
@@
static int ak4104_hw_params(struct snd_pcm_substream *substream,
/* set the IEC958 bits: consumer mode, no copyright bit */
val |= IEC958_AES0_CON_NOT_COPYRIGHT;
-
ak4104_spi
_write(codec, AK4104_REG_CHN_STATUS(0), val);
+
snd_soc
_write(codec, AK4104_REG_CHN_STATUS(0), val);
val = 0;
@@
-167,7
+167,7
@@
static int ak4104_hw_params(struct snd_pcm_substream *substream,
return -EINVAL;
}
- return
ak4104_spi
_write(codec, AK4104_REG_CHN_STATUS(3), val);
+ return
snd_soc
_write(codec, AK4104_REG_CHN_STATUS(3), val);
}
static const struct snd_soc_dai_ops ak4101_dai_ops = {