
29 Apr
2015
29 Apr
'15
4:40 p.m.
At Wed, 29 Apr 2015 00:47:16 +0200, Gabriele Martino wrote:
@@ -4653,6 +4667,7 @@ return -ENOMEM; codec->spec = spec; spec->codec = codec;
spec->quirk = snd_pci_quirk_lookup(codec->bus->pci, ca0132_quirks);
spec->dsp_state = DSP_DOWNLOAD_INIT; spec->num_mixers = 1;
@@ -4670,6 +4685,12 @@
ca0132_config(codec);
- /* Apply detected quirks */
- if (spec->quirk->value == QUIRK_ALIENWARE) {
Add a NULL check. Or, rather just record only quirk->value as spec->quirk.
quirk = snd_pci_quirk_lookup(pci, quirks); if (quirk) spec->quirk = quirk->value;
....
if (spec->quirk == QUIRK_ALIENWARE) ....
Takashi