linux/sound/firewire/oxfw
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
..
Makefile ALSA: oxfw: add scs1x layer 2015-12-22 11:51:27 +01:00
oxfw-command.c ALSA: firewire-lib/bebob/oxfw: improve response evaluation for AV/C commands 2017-04-05 21:37:23 +02:00
oxfw-hwdep.c ALSA: oxfw: Add hwdep interface 2014-12-10 10:50:00 +01:00
oxfw-midi.c ALSA: firewire: Constify snd_rawmidi_ops 2017-01-12 12:50:38 +01:00
oxfw-pcm.c ALSA: firewire: process packets in 'struct snd_pcm_ops.ack' callback 2017-06-07 07:53:32 +02:00
oxfw-proc.c ALSA: oxfw: some signedness bugs 2014-12-15 10:03:21 +01:00
oxfw-scs1x.c ALSA: oxfw: enclose identifiers referred by single function for scs1x feature 2017-01-14 09:31:57 +01:00
oxfw-spkr.c ALSA: oxfw: move model-specific parameters from common structure 2015-12-22 11:50:31 +01:00
oxfw-stream.c ALSA: firewire-lib: enable the same feature as CIP_SKIP_INIT_DBC_CHECK flag 2016-05-10 17:04:01 +02:00
oxfw.c ALSA: oxfw: fix regression to handle Stanton SCS.1m/1d 2017-04-05 21:35:14 +02:00
oxfw.h sched/headers: Prepare to move signal wakeup & sigpending methods from <linux/sched.h> into <linux/sched/signal.h> 2017-03-02 08:42:32 +01:00