summaryrefslogtreecommitdiff
path: root/sound/firewire/amdtp-stream.h
diff options
context:
space:
mode:
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>2020-05-08 13:36:34 +0900
committerTakashi Iwai <tiwai@suse.de>2020-05-08 09:46:37 +0200
commit1a4be183b3fc9eca6ef0cca68b6698f4484f6b5f (patch)
tree67c3ee3ab310515faf1de57931af47cb5c983a01 /sound/firewire/amdtp-stream.h
parent25babf297c570ecec28451a580987fa08b49fa92 (diff)
ALSA: firewire-lib: pool ideal sequence of syt offset and data block
In current implementation, sequence of syt offset and the number of data blocks is generated when packets for outgoing stream are going to be queued. This commit generates and pools the sequence independently of the processing of outgoing packets for future extension. Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp> Link: https://lore.kernel.org/r/20200508043635.349339-10-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.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/sound/firewire/amdtp-stream.h b/sound/firewire/amdtp-stream.h
index 84a01efa5a85..11cff4cafd90 100644
--- a/sound/firewire/amdtp-stream.h
+++ b/sound/firewire/amdtp-stream.h
@@ -138,6 +138,8 @@ struct amdtp_stream {
struct {
// To calculate CIP data blocks and tstamp.
unsigned int transfer_delay;
+ unsigned int seq_index;
+
unsigned int data_block_state;
unsigned int last_syt_offset;
unsigned int syt_offset_state;
@@ -292,6 +294,10 @@ struct amdtp_domain {
struct seq_desc *seq_descs;
unsigned int seq_size;
unsigned int seq_tail;
+
+ unsigned int data_block_state;
+ unsigned int syt_offset_state;
+ unsigned int last_syt_offset;
};
int amdtp_domain_init(struct amdtp_domain *d);