From 2dfb8ade2d11483be894e17ae0b6071ea58a5482 Mon Sep 17 00:00:00 2001 From: Takashi Iwai Date: Tue, 7 Jun 2011 12:26:56 +0200 Subject: [PATCH] --- yaml --- r: 257653 b: refs/heads/master c: b4a655e81d4d1d12abc92d29dfb7550e66a08799 h: refs/heads/master i: 257651: c25b64dc8502de7d9c634d348ec4bd6394d4e0d8 v: v3 --- [refs] | 2 +- trunk/sound/pci/hda/hda_intel.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index 1d1a1bc0a509..ad5fc38e1483 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: a810364a0424c297242c6c66071a42f7675a5568 +refs/heads/master: b4a655e81d4d1d12abc92d29dfb7550e66a08799 diff --git a/trunk/sound/pci/hda/hda_intel.c b/trunk/sound/pci/hda/hda_intel.c index 45cd02f1ad88..5f2d05a8d0eb 100644 --- a/trunk/sound/pci/hda/hda_intel.c +++ b/trunk/sound/pci/hda/hda_intel.c @@ -1866,7 +1866,7 @@ static unsigned int azx_via_get_position(struct azx *chip, unsigned int fifo_size; link_pos = azx_sd_readl(azx_dev, SD_LPIB); - if (azx_dev->index >= 4) { + if (azx_dev->substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { /* Playback, no problem using link position */ return link_pos; }