Skip to content

Commit

Permalink
techpack: audio: 4.0: tas2562: Fix Amp output level control
Browse files Browse the repository at this point in the history
TAS2562 datasheet specifies that amp_level value is represented
by bits[5:1] with maximal value 0x1c (values 0x1d-0x1f are
marked as reserved. Fix maximum and shift value of associated sound
control accordingly (max value 0x1c and shift 1).

Signed-off-by: Ivan Vecera <[email protected]>
Change-Id: I77be6a744ba4de8a51c91eba5602e4fdfb88b3ac
  • Loading branch information
ivecera authored and Arjun-Ingole committed Apr 25, 2022
1 parent cb1f95f commit 20edb2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion techpack/audio/4.0/asoc/codecs/tas2562/tas2562-codec.c
Original file line number Diff line number Diff line change
Expand Up @@ -1079,7 +1079,7 @@ static const struct soc_enum spk_enum[] = {

static const struct snd_kcontrol_new tas2562_snd_controls[] = {
SOC_SINGLE_TLV("Amp Output Level", TAS2562_PLAYBACKCONFIGURATIONREG0,
1, 0x16, 0,
1, 0x1c, 0,
tas2562_digital_tlv),
SOC_SINGLE_EXT("SmartPA System Mute", SND_SOC_NOPM, 0, 0x0001, 0,
tas2562_system_mute_ctrl_get, tas2562_system_mute_ctrl_put),
Expand Down

0 comments on commit 20edb2a

Please sign in to comment.