projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1e28005
)
ALSA: ice1712: Remove redundant code in stac9460_dac_vol_put
author
Zhu Jun
<zhujun2@cmss.chinamobile.com>
Wed, 9 Oct 2024 06:53:45 +0000
(23:53 -0700)
committer
Takashi Iwai
<tiwai@suse.de>
Thu, 10 Oct 2024 12:22:34 +0000
(14:22 +0200)
The variable 'ovol' is never referenced in the code, just remove it.
Signed-off-by: Zhu Jun <zhujun2@cmss.chinamobile.com>
Link:
https://patch.msgid.link/20241009065345.6669-1-zhujun2@cmss.chinamobile.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/ice1712/prodigy192.c
patch
|
blob
|
blame
|
history
diff --git
a/sound/pci/ice1712/prodigy192.c
b/sound/pci/ice1712/prodigy192.c
index 096ec76f5304672ba838a9ddd45d5e282ae3b294..a12dafbf53ab24b1ce341fca4d63e60d4e423c8e 100644
(file)
--- a/
sound/pci/ice1712/prodigy192.c
+++ b/
sound/pci/ice1712/prodigy192.c
@@
-170,14
+170,9
@@
static int stac9460_dac_vol_put(struct snd_kcontrol *kcontrol, struct snd_ctl_el
tmp = stac9460_get(ice, idx);
ovol = 0x7f - (tmp & 0x7f);
change = (ovol != nvol);
- if (change) {
- ovol = (0x7f - nvol) | (tmp & 0x80);
- /*
- dev_dbg(ice->card->dev, "DAC Volume: reg 0x%02x: 0x%02x\n",
- idx, ovol);
- */
+ if (change)
stac9460_put(ice, idx, (0x7f - nvol) | (tmp & 0x80));
- }
+
return change;
}