ALSA: hda - Add AZX_DRIVER_SKL for simplification
authorTakashi Iwai <tiwai@suse.de>
Wed, 14 Jun 2017 05:26:00 +0000 (07:26 +0200)
committerTakashi Iwai <tiwai@suse.de>
Tue, 20 Jun 2017 05:53:28 +0000 (07:53 +0200)
commita4b4793f640b72af3e2bb2a1ad79725c103d5e40
treed91a18d023b370229a36babc54080fdd7fe8f9f1
parent7fc8e7c1d9787ab8cb0f91adb3bc9c2c64c00ef8
ALSA: hda - Add AZX_DRIVER_SKL for simplification

We checked the quirks specific to the recent Intel chips by checking
the PCI IDs manually, but it's becoming messy with lots of IS_SKL()
and other macros, as the amount accumulated.

For simplification, here the new AZX_DRIVER_SKL type is introduced,
and check chip->driver_type instead of the manual PCI ID.  The short
name for this is still "HDA Intel PCH", so that it doesn't break the
existing user-space unnecessarily.

Suggested-by: Vinod Koul <vinod.koul@intel.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/hda_intel.c