ALSA: firewire-lib: complete AM824 data block processing layer
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>
Sat, 19 Sep 2015 02:22:02 +0000 (11:22 +0900)
committerTakashi Iwai <tiwai@suse.de>
Tue, 29 Sep 2015 10:51:20 +0000 (12:51 +0200)
commitdf075feefbd347f13fba5198294cda619532c237
tree6fbde961132507f27c5fde6f5693139e6ac37ee4
parent49c7b3fcd9f0a0125e8cd8212d5576382198eeb2
ALSA: firewire-lib: complete AM824 data block processing layer

This commit moves the codes related to data block processing from packet
streaming layer to AM824 layer.

Each driver initializes amdtp stream structure for AM824 data block by
calling amdtp_am824_init(). Then, a memory block is allocated for AM824
specific structure. This memory block is released by calling
amdtp_stream_destroy().

When setting streaming parameters, it calls amdtp_am824_set_parameters().
When starting packet streaming, it calls amdtp_stream_start(). When
stopping packet streaming, it calls amdtp_stream_stop().

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/firewire/amdtp-am824.c
sound/firewire/amdtp-am824.h
sound/firewire/amdtp-stream.c
sound/firewire/amdtp-stream.h