[alsa-devel] [PATCH - alsa-lib] tlv: Check dB range only within the control's volume range
Jaroslav Kysela
perex at perex.cz
Wed May 19 08:55:40 CEST 2010
On Wed, 19 May 2010, Peter Ujfalusi wrote:
> The DB_RANGE need to be used on some HW, since the gain on
> volume control is not continuous, and has to be divided into
> several sub DB_SCALE ranges.
> ASoC has a feature to override the HW default volume range,
> and in this case when the volume range is less than the
> HW maximum we do not need to go through the whole DB_RANGE,
> but we need to stop where the kcontrol's maximum tell us.
>
> Signed-off-by: Peter Ujfalusi <peter.ujfalusi at nokia.com>
Unfortunately, it does not look like a clean way in my eyes. If the driver
pushes some limits to the control (volume) range, it should do it also
for TLVs.
Jaroslav
-----
Jaroslav Kysela <perex at perex.cz>
Linux Kernel Sound Maintainer
ALSA Project, Red Hat, Inc.
More information about the Alsa-devel
mailing list