linux/sound/firewire/motu
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
..
amdtp-motu-trace.h ALSA: firewire-motu: add tracepoints for messages for unique protocol 2017-04-11 08:30:47 +02:00
amdtp-motu.c ALSA: firewire-motu: mark trace helpers as __maybe_unused 2017-04-20 12:50:45 +02:00
Makefile ALSA: firewire-motu: add tracepoints for SPH in IEC 61883-1 fashion 2017-04-11 08:30:45 +02:00
motu-hwdep.c ALSA: firewire-motu: enable to read transaction cache via hwdep interface 2017-03-28 12:34:06 +02:00
motu-midi.c ALSA: firewire-motu: add hwdep interface 2017-03-28 12:34:02 +02:00
motu-pcm.c ALSA: firewire: process packets in 'struct snd_pcm_ops.ack' callback 2017-06-07 07:53:32 +02:00
motu-proc.c ALSA: firewire-motu: add proc node to show current statuc of clock and packet formats 2017-03-28 12:33:51 +02:00
motu-protocol-v2.c ALSA: firewire-motu: add support for MOTU 828mk2 as a model with protocol version 2 2017-03-28 12:34:08 +02:00
motu-protocol-v3.c ALSA: firewire-motu: remove invalid bitshift for register value 2017-04-05 21:36:11 +02:00
motu-stream.c ALSA: firewire-motu: add hwdep interface 2017-03-28 12:34:02 +02:00
motu-transaction.c ALSA: firewire-motu: enable to read transaction cache via hwdep interface 2017-03-28 12:34:06 +02:00
motu.c ALSA: firewire-motu: add support for MOTU 828mk3 (FireWire/Hybrid) as a model with protocol version 3 2017-03-28 12:34:13 +02:00
motu.h ALSA: firewire-motu: add support for MOTU 828mk3 (FireWire/Hybrid) as a model with protocol version 3 2017-03-28 12:34:13 +02:00