linux/sound/firewire
Takashi Sakamoto 875becf841 ALSA: firewire: process packets in 'struct snd_pcm_ops.ack' callback
In recent commit for ALSA PCM core, some arrangement is done for
'struct snd_pcm_ops.ack' callback. This is called when appl_ptr is
explicitly moved in intermediate buffer for PCM frames, except for
some cases described later.

For drivers in ALSA firewire stack, usage of this callback has a merit to
reduce latency between time of PCM frame queueing and handling actual
packets in recent isochronous cycle, because no need to wait for software
IRQ context from isochronous context of OHCI 1394.

If this works well in a case that mapped page frame is used for the
intermediate buffer, user process should execute some commands for ioctl(2)
to tell the number of handled PCM frames in the intermediate buffer just
after handling them. Therefore, at present, with a combination of below
conditions, this doesn't work as expected and user process should wait for
the software IRQ context as usual:
 - when ALSA PCM core judges page frame mapping is available for status
   data (struct snd_pcm_mmap_status) and control data
   (struct snd_pcm_mmap_control).
 - user process handles PCM frames by loop just with 'snd_pcm_mmap_begin()'
   and 'snd_pcm_mmap_commit()'.
 - user process uses PCM hw plugin in alsa-lib to operate I/O without
   'sync_ptr_ioctl' option.

Unfortunately, major use case include these three conditions.

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2017-06-07 07:53:32 +02:00
..
bebob ALSA: firewire: process packets in 'struct snd_pcm_ops.ack' callback 2017-06-07 07:53:32 +02:00
dice ALSA: firewire: process packets in 'struct snd_pcm_ops.ack' callback 2017-06-07 07:53:32 +02:00
digi00x ALSA: firewire: process packets in 'struct snd_pcm_ops.ack' callback 2017-06-07 07:53:32 +02:00
fireface ALSA: firewire: process packets in 'struct snd_pcm_ops.ack' callback 2017-06-07 07:53:32 +02:00
fireworks ALSA: firewire: process packets in 'struct snd_pcm_ops.ack' callback 2017-06-07 07:53:32 +02:00
motu ALSA: firewire: process packets in 'struct snd_pcm_ops.ack' callback 2017-06-07 07:53:32 +02:00
oxfw ALSA: firewire: process packets in 'struct snd_pcm_ops.ack' callback 2017-06-07 07:53:32 +02:00
tascam ALSA: firewire: process packets in 'struct snd_pcm_ops.ack' callback 2017-06-07 07:53:32 +02:00
amdtp-am824.c ALSA: firewire: remove support for 16 bit PCM samples in playback substream 2017-05-22 16:24:08 +02:00
amdtp-am824.h ALSA: firewire: remove support for 16 bit PCM samples in playback substream 2017-05-22 16:24:08 +02:00
amdtp-stream-trace.h ALSA: firewire_lib: add tracepoints for packets without CIP headers 2017-04-11 08:30:43 +02:00
amdtp-stream.c ALSA: firewire: process packets in 'struct snd_pcm_ops.ack' callback 2017-06-07 07:53:32 +02:00
amdtp-stream.h ALSA: firewire: process packets in 'struct snd_pcm_ops.ack' callback 2017-06-07 07:53:32 +02:00
cmp.c ALSA: firewire-lib: fix kerneldoc errors 2014-11-18 18:10:23 +01:00
cmp.h ALSA: firewire-lib: Add a new function to check others' connection 2014-05-26 14:22:46 +02:00
fcp.c ALSA: firewire-lib/bebob/oxfw: improve response evaluation for AV/C commands 2017-04-05 21:37:23 +02:00
fcp.h ALSA: firewire-lib: Add some AV/C general commands 2014-05-26 14:23:13 +02:00
isight.c ALSA: pcm: Add snd_pcm_stop_xrun() helper 2014-11-09 18:20:40 +01:00
iso-resources.c ALSA: firewire-lib: leave unit reference counting completely 2015-03-10 15:27:19 +01:00
iso-resources.h firewire: octlet AT payloads can be stack-allocated 2011-05-10 22:53:44 +02:00
Kconfig ALSA: fireface: add support for Fireface 400 2017-04-05 21:31:54 +02:00
lib.c ALSA: firewire-lib/firewire-tascam: localize async midi port 2017-04-14 14:50:26 +02:00
lib.h ALSA: firewire-lib/firewire-tascam: localize async midi port 2017-04-14 14:50:26 +02:00
Makefile ALSA: fireface: add skeleton for RME Fireface series 2017-04-05 21:31:24 +02:00
packets-buffer.c sound: Add export.h for THIS_MODULE/EXPORT_SYMBOL where needed 2011-10-31 19:31:22 -04:00
packets-buffer.h ALSA: add LaCie FireWire Speakers/Griffin FireWave Surround driver 2011-03-15 08:42:22 +01:00