projects
/
GitHub
/
LineageOS
/
android_kernel_samsung_universal7580.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
40c20fa
)
ALSA: hda - Fix double creation of SPDIF input controls
author
Takashi Iwai
<tiwai@suse.de>
Mon, 6 Jul 2009 13:01:09 +0000
(15:01 +0200)
committer
Takashi Iwai
<tiwai@suse.de>
Mon, 6 Jul 2009 13:01:09 +0000
(15:01 +0200)
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/patch_cirrus.c
patch
|
blob
|
blame
|
history
diff --git
a/sound/pci/hda/patch_cirrus.c
b/sound/pci/hda/patch_cirrus.c
index 2187383cdfd67299e305c5dfc9230cbec5b094e2..404c120991bf38e60662c937de9764883f19a110 100644
(file)
--- a/
sound/pci/hda/patch_cirrus.c
+++ b/
sound/pci/hda/patch_cirrus.c
@@
-471,12
+471,9
@@
static int parse_digital_input(struct hda_codec *codec)
struct auto_pin_cfg *cfg = &spec->autocfg;
int idx;
- if (!cfg->dig_in_pin)
- return 0;
- spec->dig_in = get_adc(codec, cfg->dig_in_pin, &idx);
- if (!spec->dig_in)
- return 0;
- return snd_hda_create_spdif_in_ctls(codec, spec->dig_in);
+ if (cfg->dig_in_pin)
+ spec->dig_in = get_adc(codec, cfg->dig_in_pin, &idx);
+ return 0;
}
/*