Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ALSA: ad1889: Fix right attenuation proc output

The right attenuation bits aren't needed to be shifted.

Spotted by coverity CID 11427.

Signed-off-by: Takashi Iwai <tiwai@suse.de>

+1 -1
+1 -1
sound/pci/ad1889.c
··· 739 739 reg = ad1889_readw(chip, AD_DS_WADA); 740 740 snd_iprintf(buffer, "Right: %s, -%d dB\n", 741 741 (reg & AD_DS_WADA_RWAM) ? "mute" : "unmute", 742 - ((reg & AD_DS_WADA_RWAA) >> 8) * 3); 742 + (reg & AD_DS_WADA_RWAA) * 3); 743 743 744 744 reg = ad1889_readw(chip, AD_DS_WAS); 745 745 snd_iprintf(buffer, "Wave samplerate: %u Hz\n", reg);