mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-10-29 05:40:25 -04:00
tlv: ignore xdir when type is DB_MINMAX_MUTE
Muting caused by rounding is meaningless, and it is also inconvenient for upper-layer applications to handling muting issues caused by DB_MINMAX_MUTE or xdir. Thus, the restriction on xdir is removed.
This commit is contained in:
parent
3a97718124
commit
b18e40e63a
1 changed files with 1 additions and 1 deletions
|
|
@ -369,7 +369,7 @@ int snd_tlv_convert_from_dB(unsigned int *tlv, long rangemin, long rangemax,
|
|||
min = tlv[SNDRV_CTL_TLVO_DB_MINMAX_MIN];
|
||||
max = tlv[SNDRV_CTL_TLVO_DB_MINMAX_MAX];
|
||||
if (db_gain <= min)
|
||||
if (db_gain > SND_CTL_TLV_DB_GAIN_MUTE && xdir > 0 &&
|
||||
if (db_gain > SND_CTL_TLV_DB_GAIN_MUTE &&
|
||||
type == SND_CTL_TLVT_DB_MINMAX_MUTE)
|
||||
*value = rangemin + 1;
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue