linux-next: merge conflict between drm-misc and sound trees

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Dear Stephen,

when rebuilding linux-next you're going to see a merge conflict in:

  sound/pci/hda/hda_intel.c

betwen commit:

  1ba8f9d30817 ("ALSA: hda: Add a power_save blacklist")

from the sound tree and commit:

  07f4f97d7b4b ("vga_switcheroo: Use device link for HDA controller")

from the drm-misc tree.

I recommend fixing it up like below.


-- >8 --
@@@ -2284,16 -2298,22 +2303,30 @@@
  	chip->running = 1;
  	azx_add_card_list(chip);
  
 +	/*
 +	 * The discrete GPU cannot power down unless the HDA controller runtime
 +	 * suspends, so activate runtime PM on codecs even if power_save == 0.
 +	 */
 +	if (use_vga_switcheroo(hda))
 +		list_for_each_codec(codec, &chip->bus)
 +			codec->auto_runtime_pm = 1;
 +
- 	snd_hda_set_power_save(&chip->bus, power_save * 1000);
+ 	val = power_save;
+ #ifdef CONFIG_PM
+ 	if (val == -1) {
+ 		const struct snd_pci_quirk *q;
+ 
+ 		val = CONFIG_SND_HDA_POWER_SAVE_DEFAULT;
+ 		q = snd_pci_quirk_lookup(chip->pci, power_save_blacklist);
+ 		if (q && val) {
+ 			dev_info(chip->card->dev, "device %04x:%04x is on the power_save blacklist, forcing power_save to 0\n",
+ 				 q->subvendor, q->subdevice);
+ 			val = 0;
+ 		}
+ 	}
+ #endif /* CONFIG_PM */
+ 	snd_hda_set_power_save(&chip->bus, val * 1000);
 -	if (azx_has_pm_runtime(chip) || hda->use_vga_switcheroo)
 +	if (azx_has_pm_runtime(chip))
  		pm_runtime_put_autosuspend(&pci->dev);
  
  out_free:
_______________________________________________
dri-devel mailing list
dri-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/dri-devel




[Index of Archives]     [Linux DRI Users]     [Linux Intel Graphics]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux