From 79810624a1702a07e382d306ac09966d03c34b20 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B9=80=EA=B7=9C=ED=98=95?= Date: Tue, 13 Jun 2017 18:16:58 +0900 Subject: [PATCH] =?UTF-8?q?=3D=20Codec=20Power=20Management=20=EB=A1=9C=20?= =?UTF-8?q?=EC=9D=B8=ED=95=B4=20Button.wav=20=EC=9E=AC=EC=83=9D=EC=8B=9C?= =?UTF-8?q?=20=EB=B3=BC=EB=A5=A8=20=EC=88=9C=EA=B0=84=EC=A0=81=EC=9C=BC?= =?UTF-8?q?=EB=A1=9C=20=EB=82=AE=EA=B2=8C=20=EC=9E=AC=EC=83=9D=EB=90=98?= =?UTF-8?q?=EB=8A=94=20=EB=AC=B8=EC=A0=9C=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- kernel/linux-imx6_3.14.28/sound/soc/codecs/sgtl5000.c | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/kernel/linux-imx6_3.14.28/sound/soc/codecs/sgtl5000.c b/kernel/linux-imx6_3.14.28/sound/soc/codecs/sgtl5000.c index 63a1fc1..e994d7d 100644 --- a/kernel/linux-imx6_3.14.28/sound/soc/codecs/sgtl5000.c +++ b/kernel/linux-imx6_3.14.28/sound/soc/codecs/sgtl5000.c @@ -259,7 +259,9 @@ static const struct snd_soc_dapm_widget sgtl5000_dapm_widgets[] = { mic_bias_event, SND_SOC_DAPM_POST_PMU | SND_SOC_DAPM_PRE_PMD), - SND_SOC_DAPM_PGA("HP", SGTL5000_CHIP_ANA_POWER, 4, 0, NULL, 0), + // fix larche@falinux.com 2017-06-13 +// SND_SOC_DAPM_PGA("HP", SGTL5000_CHIP_ANA_POWER, 4, 0, NULL, 0), + SND_SOC_DAPM_PGA("HP", SND_SOC_NOPM, 0, 0, NULL, 0), SND_SOC_DAPM_PGA("LO", SGTL5000_CHIP_ANA_POWER, 0, 0, NULL, 0), SND_SOC_DAPM_MUX("Capture Mux", SND_SOC_NOPM, 0, 0, &adc_mux), @@ -278,8 +280,9 @@ static const struct snd_soc_dapm_widget sgtl5000_dapm_widgets[] = { SND_SOC_DAPM_ADC("ADC", "Capture", SGTL5000_CHIP_ANA_POWER, 1, 0), SND_SOC_DAPM_DAC("DAC", "Playback", SGTL5000_CHIP_ANA_POWER, 3, 0), - SND_SOC_DAPM_PRE("VAG_POWER_PRE", power_vag_event), - SND_SOC_DAPM_POST("VAG_POWER_POST", power_vag_event), + // del larche@falinux.com 2017-06-13 +// SND_SOC_DAPM_PRE("VAG_POWER_PRE", power_vag_event), +// SND_SOC_DAPM_POST("VAG_POWER_POST", power_vag_event), }; /* routes for sgtl5000 */ @@ -1179,7 +1182,9 @@ static int sgtl5000_set_power_regs(struct snd_soc_codec *codec) ana_pwr = snd_soc_read(codec, SGTL5000_CHIP_ANA_POWER); ana_pwr |= SGTL5000_DAC_STEREO | SGTL5000_ADC_STEREO | - SGTL5000_REFTOP_POWERUP; + SGTL5000_REFTOP_POWERUP | + SGTL5000_HP_POWERUP | + SGTL5000_VAG_POWERUP; // add larche@falinux.com (SGTL5000_HP_POWERUP|SGTL5000_VAG_POWERUP) 2017-06-13 lreg_ctrl = snd_soc_read(codec, SGTL5000_CHIP_LINREG_CTRL); if (vddio < 3100 && vdda < 3100) { -- 2.1.4