linux/sound/firewire/digi00x
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-dot.c ALSA: firewire: remove support for 16 bit PCM samples in playback substream 2017-05-22 16:24:08 +02:00
digi00x-hwdep.c ALSA: firewire-digi00x: enclose identifiers referred by single function 2017-01-05 16:58:07 +01:00
digi00x-midi.c ALSA: firewire-digi00x: allow user space applications to read/write MIDI messages for all ports 2017-04-05 21:34:11 +02:00
digi00x-pcm.c ALSA: firewire: process packets in 'struct snd_pcm_ops.ack' callback 2017-06-07 07:53:32 +02:00
digi00x-proc.c ALSA: firewire-digi00x: add proc node to show clock status 2015-09-30 15:35:31 +02:00
digi00x-stream.c ALSA: firewire-digi00x: add support for MIDI ports corresponding to isochronous packet streaming 2015-10-11 18:26:04 +02:00
digi00x-transaction.c ALSA: firewire-digi00x: remove transaction handler for unknown purpose 2017-04-05 21:34:13 +02:00
digi00x.c ALSA: firewire-digi00x: add support for console models of Digi00x series 2017-04-05 21:34:08 +02:00
digi00x.h ALSA: firewire: remove support for 16 bit PCM samples in playback substream 2017-05-22 16:24:08 +02:00
Makefile ALSA: firewire-digi00x: add support for MIDI ports corresponding to isochronous packet streaming 2015-10-11 18:26:04 +02:00