Skip to content

Commit

Permalink
ASoC: tas2770: Fix volume scale
Browse files Browse the repository at this point in the history
The scale starts at -100dB, not -128dB.

Signed-off-by: Hector Martin <marcan@marcan.st>
Signed-off-by: Mark Brown <broonie@kernel.org>
Link: https://patch.msgid.link/20250208-asoc-tas2770-v1-1-cf50ff1d59a3@kernel.org
Signed-off-by: Mark Brown <broonie@kernel.org>
  • Loading branch information
Hector Martin authored and Mark Brown committed Feb 16, 2025
1 parent 571b69f commit 579cd64
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sound/soc/codecs/tas2770.c
Original file line number Diff line number Diff line change
Expand Up @@ -506,7 +506,7 @@ static int tas2770_codec_probe(struct snd_soc_component *component)
}

static DECLARE_TLV_DB_SCALE(tas2770_digital_tlv, 1100, 50, 0);
static DECLARE_TLV_DB_SCALE(tas2770_playback_volume, -12750, 50, 0);
static DECLARE_TLV_DB_SCALE(tas2770_playback_volume, -10050, 50, 0);

static const struct snd_kcontrol_new tas2770_snd_controls[] = {
SOC_SINGLE_TLV("Speaker Playback Volume", TAS2770_PLAY_CFG_REG2,
Expand Down

0 comments on commit 579cd64

Please sign in to comment.