diff options
author | Takashi Sakamoto <o-takashi@sakamocchi.jp> | 2019-07-22 12:36:58 +0900 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2019-07-22 16:05:03 +0200 |
commit | 04130cf8e296bfbd65d2673a5975bd0f200b941d (patch) | |
tree | c17f43ede20c8685af5e206f623586e17d6ffb16 /sound/firewire/amdtp-stream.h | |
parent | 600c8018df605a91575aef6811cf927e2d933d30 (diff) | |
download | linux-04130cf8e296bfbd65d2673a5975bd0f200b941d.tar.gz linux-04130cf8e296bfbd65d2673a5975bd0f200b941d.tar.bz2 linux-04130cf8e296bfbd65d2673a5975bd0f200b941d.zip |
ALSA: firewire-lib: add list of packet descriptor
In current implementation of ALSA IEC 61883-1/6 packet streaming engine,
16 packets are handled in one interrupt of isochronous context of OHCI
1394.
Overall packet processing runs for each. However, this is not better in
a point to split the processing into several parts.
This commit is an attempt to add intermediate representation for
parameters required for the parts.
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/firewire/amdtp-stream.h')
-rw-r--r-- | sound/firewire/amdtp-stream.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/sound/firewire/amdtp-stream.h b/sound/firewire/amdtp-stream.h index 5996cc60f166..73c492c9a5d5 100644 --- a/sound/firewire/amdtp-stream.h +++ b/sound/firewire/amdtp-stream.h @@ -94,6 +94,14 @@ enum amdtp_stream_direction { AMDTP_IN_STREAM }; +struct pkt_desc { + u32 cycle; + u32 syt; + unsigned int data_blocks; + unsigned int data_block_counter; + __be32 *ctx_payload; +}; + struct amdtp_stream; typedef unsigned int (*amdtp_stream_process_data_blocks_t)( struct amdtp_stream *s, @@ -110,6 +118,7 @@ struct amdtp_stream { struct fw_iso_context *context; struct iso_packets_buffer buffer; int packet_index; + struct pkt_desc *pkt_descs; int tag; union { struct { |