diff options
author | Takashi Iwai <tiwai@suse.de> | 2013-10-29 10:39:37 -0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2013-10-29 10:39:37 -0400 |
commit | 9bd0f5c042e218c0573e730d181287abecd6b18b (patch) | |
tree | 0d757148bb92829c52c25e4f36ed59e2a39ce2be | |
parent | 57a4451d26eef4ccbf3b32fd116295f001c18cb4 (diff) |
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>
-rw-r--r-- | sound/pci/ad1889.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/pci/ad1889.c b/sound/pci/ad1889.c index d2b9d617aee5..b680d03e2419 100644 --- a/sound/pci/ad1889.c +++ b/sound/pci/ad1889.c | |||
@@ -739,7 +739,7 @@ snd_ad1889_proc_read(struct snd_info_entry *entry, struct snd_info_buffer *buffe | |||
739 | reg = ad1889_readw(chip, AD_DS_WADA); | 739 | reg = ad1889_readw(chip, AD_DS_WADA); |
740 | snd_iprintf(buffer, "Right: %s, -%d dB\n", | 740 | snd_iprintf(buffer, "Right: %s, -%d dB\n", |
741 | (reg & AD_DS_WADA_RWAM) ? "mute" : "unmute", | 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 | reg = ad1889_readw(chip, AD_DS_WAS); | 744 | reg = ad1889_readw(chip, AD_DS_WAS); |
745 | snd_iprintf(buffer, "Wave samplerate: %u Hz\n", reg); | 745 | snd_iprintf(buffer, "Wave samplerate: %u Hz\n", reg); |