ALSA: hda - Skip card registration when no codec is found
authorTakashi Iwai <tiwai@suse.de>
Wed, 28 Jun 2017 10:45:34 +0000 (12:45 +0200)
committerTakashi Iwai <tiwai@suse.de>
Wed, 28 Jun 2017 10:45:34 +0000 (12:45 +0200)
commit17890880bbf7bac8171054c7dca7a5162b23c5c2
treecc1103f6e79fc2f3058c97a5050b1a68f849a035
parentd94815f917da770d42c377786dc428f542e38f71
ALSA: hda - Skip card registration when no codec is found

It's nonsense to register a card object when no codec is bound on it,
as we don't support the deferred codec binding.  Instead of
registering an empty card object, just skip the registration by
returning an error from azx_codec_configure().

Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/hda_controller.c