Skip to content

Commit

Permalink
ASoC: twl6040: Disconnect AUX output pads on digital mute
Browse files Browse the repository at this point in the history
Disconnect also the path to AUXL from the HF path during digital_mute to
avoid pop noise leakage to Line-out pads.

Signed-off-by: Peter Ujfalusi <[email protected]>
Signed-off-by: Mark Brown <[email protected]>
  • Loading branch information
Peter Ujfalusi authored and broonie committed May 18, 2016
1 parent 29cf67b commit 45c0470
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions include/linux/mfd/twl6040.h
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@
#define TWL6040_HFDACENA (1 << 0)
#define TWL6040_HFPGAENA (1 << 1)
#define TWL6040_HFDRVENA (1 << 4)
#define TWL6040_HFSWENA (1 << 6)

/* VIBCTLL/R (0x18/0x1A) fields */

Expand Down
4 changes: 2 additions & 2 deletions sound/soc/codecs/twl6040.c
Original file line number Diff line number Diff line change
Expand Up @@ -983,9 +983,9 @@ static void twl6040_mute_path(struct snd_soc_codec *codec, enum twl6040_dai_id i
if (mute) {
/* Power down drivers and DACs */
hflctl &= ~(TWL6040_HFDACENA | TWL6040_HFPGAENA |
TWL6040_HFDRVENA);
TWL6040_HFDRVENA | TWL6040_HFSWENA);
hfrctl &= ~(TWL6040_HFDACENA | TWL6040_HFPGAENA |
TWL6040_HFDRVENA);
TWL6040_HFDRVENA | TWL6040_HFSWENA);
}

twl6040_reg_write(twl6040, TWL6040_REG_HFLCTL, hflctl);
Expand Down

0 comments on commit 45c0470

Please sign in to comment.