projects
/
deliverable
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a810364
)
ALSA: hda - Judge playback stream from stream id in azx_via_get_position()
author
Takashi Iwai
<tiwai@suse.de>
Tue, 7 Jun 2011 10:26:56 +0000
(12:26 +0200)
committer
Takashi Iwai
<tiwai@suse.de>
Tue, 7 Jun 2011 10:26:56 +0000
(12:26 +0200)
Instead of checking the azx_dev index with a fixed number (4), check
the stream direction of the assigned substream.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/hda_intel.c
patch
|
blob
|
blame
|
history
diff --git
a/sound/pci/hda/hda_intel.c
b/sound/pci/hda/hda_intel.c
index 45cd02f1ad880a33c564c0491139837e1d3b28d2..5f2d05a8d0eb0257ed6cdd4a88797c42b31c046b 100644
(file)
--- a/
sound/pci/hda/hda_intel.c
+++ b/
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;
}
This page took
0.027681 seconds
and
5
git commands to generate.