38 lines
1.3 KiB
Diff
38 lines
1.3 KiB
Diff
From b08aaba46e041eb087fdb515a32de3245cfec25e Mon Sep 17 00:00:00 2001
|
|
From: brian <brian@vamrs.com>
|
|
Date: Fri, 25 Oct 2019 17:16:58 +0800
|
|
Subject: [PATCH 77/97] sound: codecs: es8316: enabled gpio2 clock output
|
|
|
|
Signed-off-by: brian <brian@vamrs.com>
|
|
---
|
|
sound/soc/codecs/es8316.c | 6 ++++++
|
|
1 file changed, 6 insertions(+)
|
|
|
|
diff --git a/sound/soc/codecs/es8316.c b/sound/soc/codecs/es8316.c
|
|
index e2a14976d8d2..5ff35a9b427d 100644
|
|
--- a/sound/soc/codecs/es8316.c
|
|
+++ b/sound/soc/codecs/es8316.c
|
|
@@ -702,6 +702,9 @@ static int es8316_pcm_startup(struct snd_pcm_substream *substream,
|
|
ES8316_CLKMGR_DAC_ANALOG_EN);
|
|
msleep(50);
|
|
} else {
|
|
+ snd_soc_update_bits(codec,
|
|
+ ES8316_GPIO_SEL_REG4D,0x02,0x2);
|
|
+
|
|
snd_soc_update_bits(codec,
|
|
ES8316_ADC_PDN_LINSEL_REG22, 0xC0, 0x20);
|
|
snd_soc_update_bits(codec, ES8316_CLKMGR_CLKSW_REG01,
|
|
@@ -738,6 +741,9 @@ static void es8316_pcm_shutdown(struct snd_pcm_substream *substream,
|
|
ES8316_CLKMGR_DAC_ANALOG_MASK,
|
|
ES8316_CLKMGR_DAC_ANALOG_DIS);
|
|
} else {
|
|
+ snd_soc_update_bits(codec,
|
|
+ ES8316_GPIO_SEL_REG4D,0x02,0x0);
|
|
+
|
|
snd_soc_write(codec, ES8316_ADC_PDN_LINSEL_REG22, 0xc0);
|
|
snd_soc_update_bits(codec, ES8316_CLKMGR_CLKSW_REG01,
|
|
ES8316_CLKMGR_ADC_MCLK_MASK |
|
|
--
|
|
2.25.1
|
|
|