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

Commit 9558dd82 authored by Walter Yang's avatar Walter Yang Committed by Gerrit - the friendly Code Review server
Browse files

ASoC: msm8x16-wcd: Config HPH PA gain for high impedance headset



For headphone/headset with impedance greater than 48ohm, HPH PA
gain of internal codec should also be set as 0dB.

CRs-Fixed: 1092417
Change-Id: Ie46bca513cd8bfdc91ca8b9a5fec6066b7969f1c
Signed-off-by: default avatarWalter Yang <yandongy@codeaurora.org>
parent 1446cd5f
Loading
Loading
Loading
Loading
+2 −7
Original line number Diff line number Diff line
@@ -4078,11 +4078,6 @@ void wcd_imped_config(struct snd_soc_codec *codec,
			 __func__);
		return;
	}
	if (value >= wcd_imped_val[ARRAY_SIZE(wcd_imped_val) - 1]) {
		pr_err("%s, invalid imped, greater than 48 Ohm\n = %d\n",
			__func__, value);
		return;
	}

	codec_version = get_codec_version(msm8x16_wcd);

@@ -4093,9 +4088,9 @@ void wcd_imped_config(struct snd_soc_codec *codec,
		case CONGA:
			/*
			 * For 32Ohm load and higher loads, Set 0x19E
			 * bit 5 to 1 (POS_6_DB_DI). For loads lower
			 * bit 5 to 1 (POS_0_DB_DI). For loads lower
			 * than 32Ohm (such as 16Ohm load), Set 0x19E
			 * bit 5 to 0 (POS_1P5_DB_DI)
			 * bit 5 to 0 (POS_M4P5_DB_DI)
			 */
			if (value >= 32)
				snd_soc_update_bits(codec,