projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d3d982f
)
ALSA: hda - don't compare with yourself in fill_input_pin_labels
author
David Henningsson
<david.henningsson@canonical.com>
Fri, 18 Jan 2013 14:43:02 +0000
(15:43 +0100)
committer
Takashi Iwai
<tiwai@suse.de>
Fri, 18 Jan 2013 14:49:04 +0000
(15:49 +0100)
Just stumbled over this one while reading the code.
Signed-off-by: David Henningsson <david.henningsson@canonical.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/hda_generic.c
patch
|
blob
|
history
diff --git
a/sound/pci/hda/hda_generic.c
b/sound/pci/hda/hda_generic.c
index 10b14a925ddb82aa063fe96b5461ef2b2da262bc..e4e71fa8d87cd0d5076555b95c060cc4b2ed5ae9 100644
(file)
--- a/
sound/pci/hda/hda_generic.c
+++ b/
sound/pci/hda/hda_generic.c
@@
-2558,7
+2558,7
@@
static int fill_input_pin_labels(struct hda_codec *codec)
label = hda_get_autocfg_input_label(codec, cfg, i);
idx = 0;
- for (j = i; j >= 0; j--) {
+ for (j = i
- 1
; j >= 0; j--) {
if (spec->input_labels[j] &&
!strcmp(spec->input_labels[j], label)) {
idx = spec->input_label_idxs[j] + 1;