projects
/
deliverable
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5b8620b
)
ALSA: hda - Allow capture-only configuration
author
Takashi Iwai
<tiwai@suse.de>
Fri, 6 Dec 2013 08:30:14 +0000
(09:30 +0100)
committer
Takashi Iwai
<tiwai@suse.de>
Fri, 6 Dec 2013 08:31:40 +0000
(09:31 +0100)
We have blindly assumed that all valid configurations should have
either analog or digital playback, but there can be capture-only
configurations. The parser shouldn't escape in such a case.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/hda_generic.c
patch
|
blob
|
blame
|
history
diff --git
a/sound/pci/hda/hda_generic.c
b/sound/pci/hda/hda_generic.c
index 2729e881541d1139d0d5492aeb4abfcc2147b7a9..5ba3106b9712890492032bdb83e8fcb57e3547cc 100644
(file)
--- a/
sound/pci/hda/hda_generic.c
+++ b/
sound/pci/hda/hda_generic.c
@@
-4334,7
+4334,8
@@
int snd_hda_gen_parse_auto_config(struct hda_codec *codec,
spec->no_analog = 1;
goto dig_only;
}
- return 0; /* can't find valid BIOS pin config */
+ if (!cfg->num_inputs && !cfg->dig_in_pin)
+ return 0; /* can't find valid BIOS pin config */
}
if (!spec->no_primary_hp &&
This page took
0.026313 seconds
and
5
git commands to generate.