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:
b5c49d4
)
ASoC: tlv320aic32x4 fix initialization of micpga routing
author
Wolfram Sang
<
[email protected]
>
Thu, 6 Oct 2011 18:53:36 +0000
(20:53 +0200)
committer
Mark Brown
<
[email protected]
>
Thu, 6 Oct 2011 19:00:11 +0000
(20:00 +0100)
Checking the pdata-flags used 'or', so the check is always true. Use 'and' to
correctly mask the flags.
Signed-off-by: Wolfram Sang <
[email protected]
>
Cc: Javier Martin <
[email protected]
>
Cc: Liam Girdwood <
[email protected]
>
Cc: Mark Brown <
[email protected]
>
Signed-off-by: Mark Brown <
[email protected]
>
sound/soc/codecs/tlv320aic32x4.c
patch
|
blob
|
history
diff --git
a/sound/soc/codecs/tlv320aic32x4.c
b/sound/soc/codecs/tlv320aic32x4.c
index e93b9d1ae1dde9eb6046e34f95a32936e0f63b2f..a68982e0a1ae0547366e2c778e1019137f3e73d9 100644
(file)
--- a/
sound/soc/codecs/tlv320aic32x4.c
+++ b/
sound/soc/codecs/tlv320aic32x4.c
@@
-685,10
+685,10
@@
static int aic32x4_probe(struct snd_soc_codec *codec)
}
/* Mic PGA routing */
- if (aic32x4->micpga_routing
|
AIC32X4_MICPGA_ROUTE_LMIC_IN2R_10K) {
+ if (aic32x4->micpga_routing
&
AIC32X4_MICPGA_ROUTE_LMIC_IN2R_10K) {
snd_soc_write(codec, AIC32X4_LMICPGANIN, AIC32X4_LMICPGANIN_IN2R_10K);
}
- if (aic32x4->micpga_routing
|
AIC32X4_MICPGA_ROUTE_RMIC_IN1L_10K) {
+ if (aic32x4->micpga_routing
&
AIC32X4_MICPGA_ROUTE_RMIC_IN1L_10K) {
snd_soc_write(codec, AIC32X4_RMICPGANIN, AIC32X4_RMICPGANIN_IN1L_10K);
}