diff options
Diffstat (limited to 'sound/pci/hda/hda_intel.c')
| -rw-r--r-- | sound/pci/hda/hda_intel.c | 45 | 
1 files changed, 22 insertions, 23 deletions
| diff --git a/sound/pci/hda/hda_intel.c b/sound/pci/hda/hda_intel.c index 3fbba2e51e36..e34a4d5d047c 100644 --- a/sound/pci/hda/hda_intel.c +++ b/sound/pci/hda/hda_intel.c @@ -180,7 +180,7 @@ MODULE_PARM_DESC(power_save, "Automatic power-saving timeout "  static bool pm_blacklist = true;  module_param(pm_blacklist, bool, 0644); -MODULE_PARM_DESC(pm_blacklist, "Enable power-management blacklist"); +MODULE_PARM_DESC(pm_blacklist, "Enable power-management denylist");  /* reset the HD-audio controller in power save mode.   * this may give more power-saving, but will take longer time to @@ -283,13 +283,12 @@ enum {  /* quirks for old Intel chipsets */  #define AZX_DCAPS_INTEL_ICH \ -	(AZX_DCAPS_OLD_SSYNC | AZX_DCAPS_NO_ALIGN_BUFSIZE |\ -	 AZX_DCAPS_SYNC_WRITE) +	(AZX_DCAPS_OLD_SSYNC | AZX_DCAPS_NO_ALIGN_BUFSIZE)  /* quirks for Intel PCH */  #define AZX_DCAPS_INTEL_PCH_BASE \  	(AZX_DCAPS_NO_ALIGN_BUFSIZE | AZX_DCAPS_COUNT_LPIB_DELAY |\ -	 AZX_DCAPS_SNOOP_TYPE(SCH) | AZX_DCAPS_SYNC_WRITE) +	 AZX_DCAPS_SNOOP_TYPE(SCH))  /* PCH up to IVB; no runtime PM; bind with i915 gfx */  #define AZX_DCAPS_INTEL_PCH_NOPM \ @@ -305,13 +304,13 @@ enum {  #define AZX_DCAPS_INTEL_HASWELL \  	(/*AZX_DCAPS_ALIGN_BUFSIZE |*/ AZX_DCAPS_COUNT_LPIB_DELAY |\  	 AZX_DCAPS_PM_RUNTIME | AZX_DCAPS_I915_COMPONENT |\ -	 AZX_DCAPS_SNOOP_TYPE(SCH) | AZX_DCAPS_SYNC_WRITE) +	 AZX_DCAPS_SNOOP_TYPE(SCH))  /* Broadwell HDMI can't use position buffer reliably, force to use LPIB */  #define AZX_DCAPS_INTEL_BROADWELL \  	(/*AZX_DCAPS_ALIGN_BUFSIZE |*/ AZX_DCAPS_POSFIX_LPIB |\  	 AZX_DCAPS_PM_RUNTIME | AZX_DCAPS_I915_COMPONENT |\ -	 AZX_DCAPS_SNOOP_TYPE(SCH) | AZX_DCAPS_SYNC_WRITE) +	 AZX_DCAPS_SNOOP_TYPE(SCH))  #define AZX_DCAPS_INTEL_BAYTRAIL \  	(AZX_DCAPS_INTEL_PCH_BASE | AZX_DCAPS_I915_COMPONENT) @@ -322,19 +321,18 @@ enum {  #define AZX_DCAPS_INTEL_SKYLAKE \  	(AZX_DCAPS_INTEL_PCH_BASE | AZX_DCAPS_PM_RUNTIME |\ -	 AZX_DCAPS_SYNC_WRITE |\  	 AZX_DCAPS_SEPARATE_STREAM_TAG | AZX_DCAPS_I915_COMPONENT)  #define AZX_DCAPS_INTEL_BROXTON		AZX_DCAPS_INTEL_SKYLAKE  /* quirks for ATI SB / AMD Hudson */  #define AZX_DCAPS_PRESET_ATI_SB \ -	(AZX_DCAPS_NO_TCSEL | AZX_DCAPS_SYNC_WRITE | AZX_DCAPS_POSFIX_LPIB |\ +	(AZX_DCAPS_NO_TCSEL | AZX_DCAPS_POSFIX_LPIB |\  	 AZX_DCAPS_SNOOP_TYPE(ATI))  /* quirks for ATI/AMD HDMI */  #define AZX_DCAPS_PRESET_ATI_HDMI \ -	(AZX_DCAPS_NO_TCSEL | AZX_DCAPS_SYNC_WRITE | AZX_DCAPS_POSFIX_LPIB|\ +	(AZX_DCAPS_NO_TCSEL | AZX_DCAPS_POSFIX_LPIB|\  	 AZX_DCAPS_NO_MSI64)  /* quirks for ATI HDMI with snoop off */ @@ -343,7 +341,7 @@ enum {  /* quirks for AMD SB */  #define AZX_DCAPS_PRESET_AMD_SB \ -	(AZX_DCAPS_NO_TCSEL | AZX_DCAPS_SYNC_WRITE | AZX_DCAPS_AMD_WORKAROUND |\ +	(AZX_DCAPS_NO_TCSEL | AZX_DCAPS_AMD_WORKAROUND |\  	 AZX_DCAPS_SNOOP_TYPE(ATI) | AZX_DCAPS_PM_RUNTIME)  /* quirks for Nvidia */ @@ -1519,7 +1517,7 @@ static bool check_hdmi_disabled(struct pci_dev *pci)  #endif /* SUPPORT_VGA_SWITCHEROO */  /* - * white/black-listing for position_fix + * allow/deny-listing for position_fix   */  static const struct snd_pci_quirk position_fix_list[] = {  	SND_PCI_QUIRK(0x1028, 0x01cc, "Dell D820", POS_FIX_LPIB), @@ -1612,7 +1610,7 @@ static void assign_position_fix(struct azx *chip, int fix)  }  /* - * black-lists for probe_mask + * deny-lists for probe_mask   */  static const struct snd_pci_quirk probe_mask_list[] = {  	/* Thinkpad often breaks the controller communication when accessing @@ -1660,9 +1658,9 @@ static void check_probe_mask(struct azx *chip, int dev)  }  /* - * white/black-list for enable_msi + * allow/deny-list for enable_msi   */ -static const struct snd_pci_quirk msi_black_list[] = { +static const struct snd_pci_quirk msi_deny_list[] = {  	SND_PCI_QUIRK(0x103c, 0x2191, "HP", 0), /* AMD Hudson */  	SND_PCI_QUIRK(0x103c, 0x2192, "HP", 0), /* AMD Hudson */  	SND_PCI_QUIRK(0x103c, 0x21f7, "HP", 0), /* AMD Hudson */ @@ -1685,7 +1683,7 @@ static void check_msi(struct azx *chip)  		return;  	}  	chip->msi = 1;	/* enable MSI as default */ -	q = snd_pci_quirk_lookup(chip->pci, msi_black_list); +	q = snd_pci_quirk_lookup(chip->pci, msi_deny_list);  	if (q) {  		dev_info(chip->card->dev,  			 "msi for device %04x:%04x set to %d\n", @@ -2085,11 +2083,11 @@ static void pcm_mmap_prepare(struct snd_pcm_substream *substream,  #endif  } -/* Blacklist for skipping the whole probe: +/* Denylist for skipping the whole probe:   * some HD-audio PCI entries are exposed without any codecs, and such devices   * should be ignored from the beginning.   */ -static const struct pci_device_id driver_blacklist[] = { +static const struct pci_device_id driver_denylist[] = {  	{ PCI_DEVICE_SUB(0x1022, 0x1487, 0x1043, 0x874f) }, /* ASUS ROG Zenith II / Strix */  	{ PCI_DEVICE_SUB(0x1022, 0x1487, 0x1462, 0xcb59) }, /* MSI TRX40 Creator */  	{ PCI_DEVICE_SUB(0x1022, 0x1487, 0x1462, 0xcb60) }, /* MSI TRX40 */ @@ -2112,8 +2110,8 @@ static int azx_probe(struct pci_dev *pci,  	bool schedule_probe;  	int err; -	if (pci_match_id(driver_blacklist, pci)) { -		dev_info(&pci->dev, "Skipping the blacklisted device\n"); +	if (pci_match_id(driver_denylist, pci)) { +		dev_info(&pci->dev, "Skipping the device on the denylist\n");  		return -ENODEV;  	} @@ -2203,7 +2201,7 @@ out_free:   * So we keep a list of devices where we disable powersaving as its known   * to causes problems on these devices.   */ -static const struct snd_pci_quirk power_save_blacklist[] = { +static const struct snd_pci_quirk power_save_denylist[] = {  	/* https://bugzilla.redhat.com/show_bug.cgi?id=1525104 */  	SND_PCI_QUIRK(0x1849, 0xc892, "Asrock B85M-ITX", 0),  	/* https://bugzilla.redhat.com/show_bug.cgi?id=1525104 */ @@ -2249,9 +2247,9 @@ static void set_default_power_save(struct azx *chip)  	if (pm_blacklist) {  		const struct snd_pci_quirk *q; -		q = snd_pci_quirk_lookup(chip->pci, power_save_blacklist); +		q = snd_pci_quirk_lookup(chip->pci, power_save_denylist);  		if (q && val) { -			dev_info(chip->card->dev, "device %04x:%04x is on the power_save blacklist, forcing power_save to 0\n", +			dev_info(chip->card->dev, "device %04x:%04x is on the power_save denylist, forcing power_save to 0\n",  				 q->subvendor, q->subdevice);  			val = 0;  		} @@ -2354,7 +2352,6 @@ static int azx_probe_continue(struct azx *chip)  	if (azx_has_pm_runtime(chip)) {  		pm_runtime_use_autosuspend(&pci->dev); -		pm_runtime_allow(&pci->dev);  		pm_runtime_put_autosuspend(&pci->dev);  	} @@ -2748,6 +2745,8 @@ static const struct pci_device_id azx_ids[] = {  	  .driver_data = AZX_DRIVER_GENERIC | AZX_DCAPS_PRESET_ATI_HDMI },  	/* Zhaoxin */  	{ PCI_DEVICE(0x1d17, 0x3288), .driver_data = AZX_DRIVER_ZHAOXIN }, +	/* Loongson */ +	{ PCI_DEVICE(0x0014, 0x7a07), .driver_data = AZX_DRIVER_GENERIC },  	{ 0, }  };  MODULE_DEVICE_TABLE(pci, azx_ids); | 
