linux/sound/firewire/tascam
Takashi Sakamoto d716742243 ALSA: firewire-tascam: queue events for change of control surface
Units of TASCAM FireWire series transfer image of states of the unit in
tx isochronous packets. Demultiplexing of the states from the packets
is done in software interrupt context regardless of any process context.
In a view of userspace applications, it needs to have notification
mechanism to catch change of the states.

This commit implements a queue to store events for the notification. The
image of states includes fluctuating data such as level of gain/volume
for physical input/output and position of knobs. Therefore the events
are queued corresponding to some control features only.

Furthermore, the queued events are planned to be consumed by userspace
applications via ALSA hwdep interface. This commit suppresses event
queueing when no applications open the hwdep interface.

However, the queue is maintained in an optimistic scenario, thus without
any care against overrrun. This is reasonable because target events are
useless just to handle PCM frames. It starts queueing when an usespace
application opens hwdep interface, thus it's expected to read the queued
events steadily.

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2018-11-23 15:31:12 +01:00
..
amdtp-tascam.c ALSA: firewire-tascam: queue events for change of control surface 2018-11-23 15:31:12 +01:00
Makefile ALSA: firewire-tascam: add support for MIDI functionality 2015-10-12 14:16:18 +02:00
tascam-hwdep.c ALSA: firewire-tascam: queue events for change of control surface 2018-11-23 15:31:12 +01:00
tascam-midi.c ALSA: firewire-tascam: support drain callback for MIDI playback substream 2017-04-14 14:50:43 +02:00
tascam-pcm.c ALSA: pcm: Nuke snd_pcm_lib_mmap_vmalloc() 2018-07-18 08:24:29 +02:00
tascam-proc.c sound: Use octal not symbolic permissions 2018-05-28 11:27:20 +02:00
tascam-stream.c ALSA: firewire-tascam: Fix to handle error from initialization of stream data 2017-01-03 11:36:34 +01:00
tascam-transaction.c locking/atomics: COCCINELLE/treewide: Convert trivial ACCESS_ONCE() patterns to READ_ONCE()/WRITE_ONCE() 2017-10-25 11:01:08 +02:00
tascam.c ALSA: firewire: simplify cleanup process when failing to register sound card 2018-10-10 12:11:50 +02:00
tascam.h ALSA: firewire-tascam: queue events for change of control surface 2018-11-23 15:31:12 +01:00