summaryrefslogtreecommitdiffstats
path: root/sound/soc
diff options
context:
space:
mode:
authorMark Brown2013-05-14 14:53:19 +0200
committerMark Brown2013-05-14 14:53:19 +0200
commit0335cd6c4f7e8d8d6f2644f5dc8a1028182055de (patch)
tree60d143bf2161461e8c81ae8a91cce084d46200bc /sound/soc
parentLinux 3.10-rc1 (diff)
parentASoC: da7213: Fix setting dmic_samplephase and dmic_clk_rate (diff)
downloadkernel-qcow2-linux-0335cd6c4f7e8d8d6f2644f5dc8a1028182055de.tar.gz
kernel-qcow2-linux-0335cd6c4f7e8d8d6f2644f5dc8a1028182055de.tar.xz
kernel-qcow2-linux-0335cd6c4f7e8d8d6f2644f5dc8a1028182055de.zip
Merge remote-tracking branch 'asoc/fix/da7213' into asoc-linus
Diffstat (limited to 'sound/soc')
-rw-r--r--sound/soc/codecs/da7213.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sound/soc/codecs/da7213.c b/sound/soc/codecs/da7213.c
index 41230ad1c3e0..4a6f1daf911f 100644
--- a/sound/soc/codecs/da7213.c
+++ b/sound/soc/codecs/da7213.c
@@ -1488,17 +1488,17 @@ static int da7213_probe(struct snd_soc_codec *codec)
DA7213_DMIC_DATA_SEL_SHIFT);
break;
}
- switch (pdata->dmic_data_sel) {
+ switch (pdata->dmic_samplephase) {
case DA7213_DMIC_SAMPLE_ON_CLKEDGE:
case DA7213_DMIC_SAMPLE_BETWEEN_CLKEDGE:
- dmic_cfg |= (pdata->dmic_data_sel <<
+ dmic_cfg |= (pdata->dmic_samplephase <<
DA7213_DMIC_SAMPLEPHASE_SHIFT);
break;
}
- switch (pdata->dmic_data_sel) {
+ switch (pdata->dmic_clk_rate) {
case DA7213_DMIC_CLK_3_0MHZ:
case DA7213_DMIC_CLK_1_5MHZ:
- dmic_cfg |= (pdata->dmic_data_sel <<
+ dmic_cfg |= (pdata->dmic_clk_rate <<
DA7213_DMIC_CLK_RATE_SHIFT);
break;
}