提交 1422408b 编写于 作者: K Kuninori Morimoto 提交者: Mark Brown

ASoC: ak4642: simultaneous playback/recorde support

Signed-off-by: NKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Acked-by: NLiam Girdwood <lrg@slimlogic.co.uk>
Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
上级 fe3e2e7f
...@@ -220,7 +220,7 @@ static int ak4642_dai_startup(struct snd_pcm_substream *substream, ...@@ -220,7 +220,7 @@ static int ak4642_dai_startup(struct snd_pcm_substream *substream,
ak4642_write(codec, 0x0e, 0x19); ak4642_write(codec, 0x0e, 0x19);
ak4642_write(codec, 0x09, 0x91); ak4642_write(codec, 0x09, 0x91);
ak4642_write(codec, 0x0c, 0x91); ak4642_write(codec, 0x0c, 0x91);
ak4642_write(codec, 0x00, 0x64); snd_soc_update_bits(codec, 0x00, 0x64, 0x64);
snd_soc_update_bits(codec, PW_MGMT2, PMHP_MASK, PMHP); snd_soc_update_bits(codec, PW_MGMT2, PMHP_MASK, PMHP);
snd_soc_update_bits(codec, PW_MGMT2, HPMTN, HPMTN); snd_soc_update_bits(codec, PW_MGMT2, HPMTN, HPMTN);
} else { } else {
...@@ -242,7 +242,7 @@ static int ak4642_dai_startup(struct snd_pcm_substream *substream, ...@@ -242,7 +242,7 @@ static int ak4642_dai_startup(struct snd_pcm_substream *substream,
ak4642_write(codec, 0x08, 0xe1); ak4642_write(codec, 0x08, 0xe1);
ak4642_write(codec, 0x0b, 0x00); ak4642_write(codec, 0x0b, 0x00);
ak4642_write(codec, 0x07, 0x21); ak4642_write(codec, 0x07, 0x21);
ak4642_write(codec, 0x00, 0x41); snd_soc_update_bits(codec, 0x00, 0x41, 0x41);
ak4642_write(codec, 0x10, 0x01); ak4642_write(codec, 0x10, 0x01);
} }
...@@ -259,12 +259,12 @@ static void ak4642_dai_shutdown(struct snd_pcm_substream *substream, ...@@ -259,12 +259,12 @@ static void ak4642_dai_shutdown(struct snd_pcm_substream *substream,
/* stop headphone output */ /* stop headphone output */
snd_soc_update_bits(codec, PW_MGMT2, HPMTN, 0); snd_soc_update_bits(codec, PW_MGMT2, HPMTN, 0);
snd_soc_update_bits(codec, PW_MGMT2, PMHP_MASK, 0); snd_soc_update_bits(codec, PW_MGMT2, PMHP_MASK, 0);
ak4642_write(codec, 0x00, 0x40); snd_soc_update_bits(codec, 0x00, 0x64, 0x40);
ak4642_write(codec, 0x0e, 0x11); ak4642_write(codec, 0x0e, 0x11);
ak4642_write(codec, 0x0f, 0x08); ak4642_write(codec, 0x0f, 0x08);
} else { } else {
/* stop stereo input */ /* stop stereo input */
ak4642_write(codec, 0x00, 0x40); snd_soc_update_bits(codec, 0x00, 0x41, 0x40);
ak4642_write(codec, 0x10, 0x00); ak4642_write(codec, 0x10, 0x00);
ak4642_write(codec, 0x07, 0x01); ak4642_write(codec, 0x07, 0x01);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册