[alsa-devel] Intel HDA / ca0132: support for Alienware 15 Creative Sound Core3D-EX
Takashi Iwai
tiwai at suse.de
Wed Apr 29 15:40:03 CEST 2015
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
More information about the Alsa-devel
mailing list