From 278e543a32d42157e2dd95ba3ee3fe16d0a08ea4 Mon Sep 17 00:00:00 2001 From: Dieter Luecking Date: Fri, 15 Mar 2019 11:49:45 +0100 Subject: [PATCH] asoc: csra66x0: Disable volume ramping in codec CSRA66x0 codec enables internal volume ramping on power up. This leads to missing audio at beginning of playback. Disable feature on codec init. Change-Id: Ib3085cd06eeb2797bee4e74d8e34e5d0b0fa535f Signed-off-by: Dieter Luecking --- asoc/codecs/csra66x0/csra66x0.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/asoc/codecs/csra66x0/csra66x0.c b/asoc/codecs/csra66x0/csra66x0.c index 4b650bf580..e0e702f565 100644 --- a/asoc/codecs/csra66x0/csra66x0.c +++ b/asoc/codecs/csra66x0/csra66x0.c @@ -754,6 +754,9 @@ static int csra66x0_init(struct csra66x0_priv *csra66x0) snd_soc_component_write(component, CSRA66X0_CH2_VOLUME_1_FA, SPK_VOLUME_M20DB_MSB); + /* disable volume ramping */ + snd_soc_component_write(component, CSRA66X0_VOLUME_CONFIG_FA, 0x27); + snd_soc_component_write(component, CSRA66X0_DEAD_TIME_CTRL, 0x0); snd_soc_component_write(component, CSRA66X0_DEAD_TIME_THRESHOLD_0, 0xE7);