Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 843d10d5 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "ASoC: wcd9330: Enable compander for right channel on speaker path"

parents 41ab4cb4 c76ee3fe
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -933,6 +933,8 @@ static int tomtom_config_gain_compander(struct snd_soc_codec *codec,
	case COMPANDER_0:
		snd_soc_update_bits(codec, TOMTOM_A_SPKR_DRV1_GAIN,
				    1 << 2, !enable << 2);
		snd_soc_update_bits(codec, TOMTOM_A_SPKR_DRV2_GAIN,
				    1 << 2, !enable << 2);
		break;
	case COMPANDER_1:
		snd_soc_update_bits(codec, TOMTOM_A_RX_HPH_L_GAIN,
@@ -1010,9 +1012,8 @@ static int tomtom_config_compander(struct snd_soc_dapm_widget *w,
	if (!tomtom->comp_enabled[comp])
		return 0;

	/* Compander 0 has single channel */
	mask = (comp == COMPANDER_0 ? 0x01 : 0x03);
	enable_mask = (comp == COMPANDER_0 ? 0x02 : 0x03);
	/* Compander 0 has two channels */
	mask = enable_mask = 0x03;
	buck_mv = tomtom_codec_get_buck_mv(codec);

	switch (event) {