Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c841ad2a authored by David Henningsson's avatar David Henningsson Committed by Takashi Iwai
Browse files

ALSA: hda - Try to allow haswell HDMI audio even without powerwell



If compiled without CONFIG_SND_HDA_I915, the audio driver cannot
request power well. However, if the power well is on for other
reasons, maybe audio can still work. Therefore, do not skip the
card completely if compiled without CONFIG_SND_HDA_I915.

Signed-off-by: default avatarDavid Henningsson <david.henningsson@canonical.com>
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent cd5302c0
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -3855,11 +3855,13 @@ static int azx_probe_continue(struct azx *chip)

	/* Request power well for Haswell HDA controller and codec */
	if (chip->driver_caps & AZX_DCAPS_I915_POWERWELL) {
#ifdef CONFIG_SND_HDA_I915
		err = hda_i915_init();
		if (err < 0) {
			snd_printk(KERN_ERR SFX "Error request power-well from i915\n");
			goto out_free;
		}
#endif
		hda_display_power(true);
	}