]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: pcm core - Avoid jiffies check for devices with BATCH flag
authorTakashi Iwai <tiwai@suse.de>
Tue, 28 Apr 2009 10:07:08 +0000 (12:07 +0200)
committerTakashi Iwai <tiwai@suse.de>
Tue, 28 Apr 2009 13:10:16 +0000 (15:10 +0200)
commit6a677c0e87f8e59d6b7a97602b5a26ead0c90759
tree54e6ed455de1f011b7da25234553c4b61f4a3f08
parent89ed9008108b07798b2182e98849303272043111
ALSA: pcm core - Avoid jiffies check for devices with BATCH flag

The hardware devices with SNDRV_PCM_INFO_BATCH flag can't give the
precise current position.  And such hardwares have often big FIFO
in addition to the ring buffer, and it screws up the jiffies check
in pcm_lib.c.

This patch adds a simple check of info flag so that the driver skips
the jiffies check in snd_pcm_period_elapsed() when BATCH flag is set.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/core/pcm_lib.c