OSDN Git Service

ASoC: tas2552: Correct the Speaker Driver Playback Volume (PGA_GAIN)
authorPeter Ujfalusi <peter.ujfalusi@ti.com>
Thu, 4 Jun 2015 13:04:27 +0000 (16:04 +0300)
committerMark Brown <broonie@kernel.org>
Fri, 5 Jun 2015 17:53:35 +0000 (18:53 +0100)
commitdd6ae3bcfe0fa9cf1bdb6f952c617f2070c57b37
treea3406e819c31f574f72bf5a5b0304c15d4f5d983
parent609e71313bddd217808eea2ddd5d0faecaa07131
ASoC: tas2552: Correct the Speaker Driver Playback Volume (PGA_GAIN)

The last parameter for DECLARE_TLV_DB_SCALE() is to tell if the gain will
be muted or not when it is set to raw 0. IN this case it is not muted.
The PGA_GAIN is in 0-4 bits in the register. Fix the offset in the
SOC_SINGLE_TLV() for this.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/tas2552.c