aboutsummaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2008-02-22 12:47:12 -0500
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2008-02-22 17:20:09 -0500
commitc6cd7d7efe2302697a3cbde718e8e3b0d88ba706 (patch)
treec7eefacd4713c35312cdb2312619d143f096384d /sound
parentc598195a2d32dc5388c636260c16e07ebee9b051 (diff)
[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: Takashi Iwai <tiwai@suse.de> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'sound')
-rw-r--r--sound/pci/hda/hda_intel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/pci/hda/hda_intel.c b/sound/pci/hda/hda_intel.c
index a1098bb875de..4be36c84b36c 100644
--- a/sound/pci/hda/hda_intel.c
+++ b/sound/pci/hda/hda_intel.c
@@ -1818,7 +1818,7 @@ static int __devinit azx_create(struct snd_card *card, struct pci_dev *pci,
1818 */ 1818 */
1819 chip->playback_streams = (gcap & (0xF << 12)) >> 12; 1819 chip->playback_streams = (gcap & (0xF << 12)) >> 12;
1820 chip->capture_streams = (gcap & (0xF << 8)) >> 8; 1820 chip->capture_streams = (gcap & (0xF << 8)) >> 8;
1821 chip->playback_index_offset = (gcap & (0xF << 12)) >> 12; 1821 chip->playback_index_offset = chip->capture_streams;
1822 chip->capture_index_offset = 0; 1822 chip->capture_index_offset = 0;
1823 } else { 1823 } else {
1824 /* gcap didn't give any info, switching to old method */ 1824 /* gcap didn't give any info, switching to old method */