projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
381c942
)
rk2928:acodec: 修复有时只有一个声道输出或输出声音变小错误.
author
Zheng Yang
<zhengyang@rock-chips.com>
Sat, 13 Oct 2012 03:10:58 +0000
(11:10 +0800)
committer
Zheng Yang
<zhengyang@rock-chips.com>
Sat, 13 Oct 2012 03:10:58 +0000
(11:10 +0800)
sound/soc/codecs/rk2928_codec.c
patch
|
blob
|
history
diff --git
a/sound/soc/codecs/rk2928_codec.c
b/sound/soc/codecs/rk2928_codec.c
index 931e66e817e891dd33b6fbfee4899e3be8caf909..8db61f6e73622f25f41827f13f2696d95c6b1b92 100755
(executable)
--- a/
sound/soc/codecs/rk2928_codec.c
+++ b/
sound/soc/codecs/rk2928_codec.c
@@
-155,6
+155,8
@@
static int rk2928_audio_trigger(struct snd_pcm_substream *substream, int cmd,
// rk2928_write(codec, CODEC_REG_DAC_GAIN, v_GAIN_DAC(DAC_GAIN_3DB_P));
if(!rk2928_data.hdmi_enable)
rk2928_write(codec, CODEC_REG_DAC_MUTE, v_MUTE_DAC(0));
+ rk2928_write(codec, CODEC_REG_ADC_SOURCE, 0x03);
+ rk2928_write(codec, CODEC_REG_ADC_SOURCE, 0x00);
rk2928_data.mute = 0;
if(rk2928_data.spkctl != INVALID_GPIO) {
gpio_direction_output(rk2928_data.spkctl, GPIO_HIGH);