Skip to content

BL_INTERNAL: sound: codecs: tas2562: refactor volume control get function

Vitor Sato Eschholz requested to merge vsatoes/MAN-236 into mtk-android12-5.10

tas2562_volume_control_get() assumes that Digital Volume is only changed using the correspondent ALSA Control. However, it can also be changed by directly writing to DVC_CFG[1-4] registers, or by a software reset.

To ensure tas2562_volume_control_get() returns the current digital volume level of the amplifier, update the function so that it reads the registers instead of returning the data internally stored.

Signed-off-by: Vitor Sato Eschholz vsatoes@baylibre.com

Closes MAN-236

Merge request reports

Loading