linux-hardened/sound/firewire/tascam
Takashi Sakamoto a0c049a647 ALSA: firewire-tascam: update isochronous resources when starting packet streaming after bus reset
After bus reset, isochronous resource manager releases all of allocated
isochronous resources. The nodes to restart packet streaming should
request reallocation of the resources.

However, between the bus-reset and invocation of 'struct fw_driver.update'
handler, ALSA PCM application can detect this situation by XRUN because
the target device cancelled to transmit packets once bus-reset occurs.

Due to the above mechanism, ALSA firewire-tascam driver just stops
packet streaming in the update handler, thus pcm.prepare handler
should request the reallocation.

This commit requests the reallocation in pcm.prepare callback when
bus generation is changed.

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2019-06-11 11:36:20 +02:00
..
amdtp-tascam.c ALSA: firewire-lib: use union for directional parameters 2019-05-22 12:28:00 +02:00
Makefile ALSA: firewire-tascam: add support for MIDI functionality 2015-10-12 14:16:18 +02:00
tascam-hwdep.c ALSA: firewire-tascam: notify events of change of state for userspace applications 2018-11-23 15:31:15 +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: firewire-tascam: reserve/release isochronous resources in pcm.hw_params/hw_free callbacks 2019-06-11 11:36:19 +02:00
tascam-proc.c ALSA: firewire: Remove superfluous snd_info_register() calls 2019-02-06 18:11:38 +01:00
tascam-stream.c ALSA: firewire-tascam: update isochronous resources when starting packet streaming after bus reset 2019-06-11 11:36:20 +02: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: reserve/release isochronous resources in pcm.hw_params/hw_free callbacks 2019-06-11 11:36:19 +02:00