]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: PCM midlevel: improve fifo_size handling
authorJaroslav Kysela <perex@perex.cz>
Mon, 27 Apr 2009 07:44:40 +0000 (09:44 +0200)
committerTakashi Iwai <tiwai@suse.de>
Fri, 29 May 2009 09:47:33 +0000 (11:47 +0200)
commit6cc8f95eea5ddc1857b23ea69deab50d4ca02cf5
tree7d0a5c4eeeeb69623066eccb363f35e0f2e3fda6
parent09fa0c34ac44225f3fd1b9e0fabbe37c76d8cd2c
ALSA: PCM midlevel: improve fifo_size handling

Move the fifo_size assignment to hw->ioctl callback to allow lowlevel
drivers overwrite the default behaviour.

fifo_size is in frames not bytes as specified in asound.h and alsa-lib's
documentation, but most hardware have fixed byte based FIFOs. Introduce
internal SNDRV_PCM_INFO_FIFO_IN_FRAMES.

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
include/sound/asound.h
include/sound/pcm.h
sound/core/pcm_lib.c
sound/core/pcm_native.c