ALSA: hda - Judge playback stream from stream id in azx_via_get_position()
authorTakashi Iwai <tiwai@suse.de>
Tue, 7 Jun 2011 10:26:56 +0000 (12:26 +0200)
committerTakashi Iwai <tiwai@suse.de>
Tue, 7 Jun 2011 10:26:56 +0000 (12:26 +0200)
commitb4a655e81d4d1d12abc92d29dfb7550e66a08799
treeac8646cbcc6363fc9d33273b16995a4078062aea
parenta810364a0424c297242c6c66071a42f7675a5568
ALSA: hda - Judge playback stream from stream id in azx_via_get_position()

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