Skip to content

Commit

Permalink
[ALSA] HDA driver - do not set mute flag for dB scale (follow HDA spe…
Browse files Browse the repository at this point in the history
…cification)

Signed-off-by: Jaroslav Kysela <perex@suse.cz>
  • Loading branch information
Jaroslav Kysela committed Sep 23, 2006
1 parent b7c6b03 commit bc6c531
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions sound/pci/hda/hda_codec.c
Original file line number Diff line number Diff line change
Expand Up @@ -856,13 +856,6 @@ int snd_hda_mixer_amp_tlv(struct snd_kcontrol *kcontrol, int op_flag,
val2 = (((caps & AC_AMPCAP_STEP_SIZE) >> AC_AMPCAP_STEP_SIZE_SHIFT) + 1) * 25;
val1 = -((caps & AC_AMPCAP_OFFSET) >> AC_AMPCAP_OFFSET_SHIFT);
val1 = ((int)val1) * ((int)val2);
if (caps & AC_AMPCAP_MUTE)
val2 |= 0x10000;
if ((val2 & 0x10000) == 0 && dir == HDA_OUTPUT) {
caps = query_amp_caps(codec, nid, HDA_INPUT);
if (caps & AC_AMPCAP_MUTE)
val2 |= 0x10000;
}
if (put_user(SNDRV_CTL_TLVT_DB_SCALE, _tlv))
return -EFAULT;
if (put_user(2 * sizeof(unsigned int), _tlv + 1))
Expand Down

0 comments on commit bc6c531

Please sign in to comment.