ALSA: hda: Code refactoring snd_hda_pick_fixup()
authorTakashi Iwai <tiwai@suse.de>
Mon, 23 Aug 2021 07:37:20 +0000 (09:37 +0200)
committerTakashi Iwai <tiwai@suse.de>
Mon, 23 Aug 2021 08:59:01 +0000 (10:59 +0200)
commit73355ddd87758865fde6c97b96298ddcd44fdc3b
tree9cbd1d511cbde1bf9d7416c046b06452a4175b36
parent23c671be97b9e49846d03ceb0bce3731f4b869ac
ALSA: hda: Code refactoring snd_hda_pick_fixup()

This contains a slight code refactoring of snd_hda_pick_fixup():
- Unify the ID setup
- Unify the debug print message
- Use snd_pci_quirk_lookup_id() for the codec SSID matching

Mostly for simplifying the code flow but also it makes easier to add
the codec alias handling in the upcoming patch.

Link: https://lore.kernel.org/r/20210823073722.14873-2-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/hda_auto_parser.c