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

Commit c6cd7d7e authored by Takashi Iwai's avatar Takashi Iwai Committed by Linus Torvalds
Browse files

[ALSA] hda-intel - Fix Oops with ATI HDMI devices

The driver gets Oops with ATI HDMI devices due to the wrong calculation
of index for playback streams.  This patch fixes it.  Reference:
	https://bugtrack.alsa-project.org/alsa-bug/view.php?id=3746



Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent c598195a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1818,7 +1818,7 @@ static int __devinit azx_create(struct snd_card *card, struct pci_dev *pci,
		 */
		chip->playback_streams = (gcap & (0xF << 12)) >> 12;
		chip->capture_streams = (gcap & (0xF << 8)) >> 8;
		chip->playback_index_offset = (gcap & (0xF << 12)) >> 12;
		chip->playback_index_offset = chip->capture_streams;
		chip->capture_index_offset = 0;
	} else {
		/* gcap didn't give any info, switching to old method */