OSDN Git Service
(root)
/
android-x86
/
kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
57a4451
)
ALSA: ad1889: Fix right attenuation proc output
author
Takashi Iwai
<tiwai@suse.de>
Tue, 29 Oct 2013 14:39:37 +0000
(15:39 +0100)
committer
Takashi Iwai
<tiwai@suse.de>
Tue, 29 Oct 2013 14:39:37 +0000
(15:39 +0100)
The right attenuation bits aren't needed to be shifted.
Spotted by coverity CID 11427.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/ad1889.c
patch
|
blob
|
history
diff --git
a/sound/pci/ad1889.c
b/sound/pci/ad1889.c
index
d2b9d61
..
b680d03
100644
(file)
--- 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
reg = ad1889_readw(chip, AD_DS_WADA);
snd_iprintf(buffer, "Right: %s, -%d dB\n",
(reg & AD_DS_WADA_RWAM) ? "mute" : "unmute",
- (
(reg & AD_DS_WADA_RWAA) >> 8
) * 3);
+ (
reg & AD_DS_WADA_RWAA
) * 3);
reg = ad1889_readw(chip, AD_DS_WAS);
snd_iprintf(buffer, "Wave samplerate: %u Hz\n", reg);