提交 b42b4afb 编写于 作者: T Takashi Iwai

ALSA: hda - Define the DCAPS preset for the old Intel chipsets

Just for improving readability.
Signed-off-by: NTakashi Iwai <tiwai@suse.de>
上级 2e3d4de1
...@@ -276,6 +276,10 @@ enum { ...@@ -276,6 +276,10 @@ enum {
(((chip)->driver_caps & AZX_DCAPS_SNOOP_MASK) >> 10) (((chip)->driver_caps & AZX_DCAPS_SNOOP_MASK) >> 10)
#define AZX_DCAPS_SNOOP_TYPE(type) ((AZX_SNOOP_TYPE_ ## type) << 10) #define AZX_DCAPS_SNOOP_TYPE(type) ((AZX_SNOOP_TYPE_ ## type) << 10)
/* quirks for old Intel chipsets */
#define AZX_DCAPS_INTEL_ICH \
(AZX_DCAPS_OLD_SSYNC | AZX_DCAPS_BUFSIZE)
/* quirks for Intel PCH */ /* quirks for Intel PCH */
#define AZX_DCAPS_INTEL_PCH_NOPM \ #define AZX_DCAPS_INTEL_PCH_NOPM \
(AZX_DCAPS_BUFSIZE | AZX_DCAPS_COUNT_LPIB_DELAY |\ (AZX_DCAPS_BUFSIZE | AZX_DCAPS_COUNT_LPIB_DELAY |\
...@@ -2054,31 +2058,30 @@ static const struct pci_device_id azx_ids[] = { ...@@ -2054,31 +2058,30 @@ static const struct pci_device_id azx_ids[] = {
/* Braswell */ /* Braswell */
{ PCI_DEVICE(0x8086, 0x2284), { PCI_DEVICE(0x8086, 0x2284),
.driver_data = AZX_DRIVER_PCH | AZX_DCAPS_INTEL_PCH }, .driver_data = AZX_DRIVER_PCH | AZX_DCAPS_INTEL_PCH },
/* ICH */ /* ICH6 */
{ PCI_DEVICE(0x8086, 0x2668), { PCI_DEVICE(0x8086, 0x2668),
.driver_data = AZX_DRIVER_ICH | AZX_DCAPS_OLD_SSYNC | .driver_data = AZX_DRIVER_ICH | AZX_DCAPS_INTEL_ICH },
AZX_DCAPS_BUFSIZE }, /* ICH6 */ /* ICH7 */
{ PCI_DEVICE(0x8086, 0x27d8), { PCI_DEVICE(0x8086, 0x27d8),
.driver_data = AZX_DRIVER_ICH | AZX_DCAPS_OLD_SSYNC | .driver_data = AZX_DRIVER_ICH | AZX_DCAPS_INTEL_ICH },
AZX_DCAPS_BUFSIZE }, /* ICH7 */ /* ESB2 */
{ PCI_DEVICE(0x8086, 0x269a), { PCI_DEVICE(0x8086, 0x269a),
.driver_data = AZX_DRIVER_ICH | AZX_DCAPS_OLD_SSYNC | .driver_data = AZX_DRIVER_ICH | AZX_DCAPS_INTEL_ICH },
AZX_DCAPS_BUFSIZE }, /* ESB2 */ /* ICH8 */
{ PCI_DEVICE(0x8086, 0x284b), { PCI_DEVICE(0x8086, 0x284b),
.driver_data = AZX_DRIVER_ICH | AZX_DCAPS_OLD_SSYNC | .driver_data = AZX_DRIVER_ICH | AZX_DCAPS_INTEL_ICH },
AZX_DCAPS_BUFSIZE }, /* ICH8 */ /* ICH9 */
{ PCI_DEVICE(0x8086, 0x293e), { PCI_DEVICE(0x8086, 0x293e),
.driver_data = AZX_DRIVER_ICH | AZX_DCAPS_OLD_SSYNC | .driver_data = AZX_DRIVER_ICH | AZX_DCAPS_INTEL_ICH },
AZX_DCAPS_BUFSIZE }, /* ICH9 */ /* ICH9 */
{ PCI_DEVICE(0x8086, 0x293f), { PCI_DEVICE(0x8086, 0x293f),
.driver_data = AZX_DRIVER_ICH | AZX_DCAPS_OLD_SSYNC | .driver_data = AZX_DRIVER_ICH | AZX_DCAPS_INTEL_ICH },
AZX_DCAPS_BUFSIZE }, /* ICH9 */ /* ICH10 */
{ PCI_DEVICE(0x8086, 0x3a3e), { PCI_DEVICE(0x8086, 0x3a3e),
.driver_data = AZX_DRIVER_ICH | AZX_DCAPS_OLD_SSYNC | .driver_data = AZX_DRIVER_ICH | AZX_DCAPS_INTEL_ICH },
AZX_DCAPS_BUFSIZE }, /* ICH10 */ /* ICH10 */
{ PCI_DEVICE(0x8086, 0x3a6e), { PCI_DEVICE(0x8086, 0x3a6e),
.driver_data = AZX_DRIVER_ICH | AZX_DCAPS_OLD_SSYNC | .driver_data = AZX_DRIVER_ICH | AZX_DCAPS_INTEL_ICH },
AZX_DCAPS_BUFSIZE }, /* ICH10 */
/* Generic Intel */ /* Generic Intel */
{ PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_ANY_ID), { PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_ANY_ID),
.class = PCI_CLASS_MULTIMEDIA_HD_AUDIO << 8, .class = PCI_CLASS_MULTIMEDIA_HD_AUDIO << 8,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册