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

Commit f9e51fb0 authored by Jean-François Têtu's avatar Jean-François Têtu Committed by Greg Kroah-Hartman
Browse files

ASoC: codecs: msm8916-wcd-analog: fix micbias level




[ Upstream commit 664611e7e02f76fbc5470ef545b2657ed25c292b ]

The macro used to set the microphone bias level causes the
snd_soc_write() call to overwrite other fields in the CDC_A_MICB_1_VAL
register. The macro also does not return the proper level value
to use. This fixes this by preserving all bits from the register
that are not the level while setting the level.

Signed-off-by: default avatarJean-François Têtu <jean-francois.tetu@savoirfairelinux.com>
Acked-by: default avatarSrinivas Kandagatla <srinivas.kandagatla@linaro.org>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
Signed-off-by: default avatarSasha Levin <alexander.levin@verizon.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 16e1626e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment