diff options
author | Takashi Sakamoto <o-takashi@sakamocchi.jp> | 2020-05-08 13:36:33 +0900 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2020-05-08 09:46:18 +0200 |
commit | 25babf297c570ecec28451a580987fa08b49fa92 (patch) | |
tree | a39171811e953d20db431998ed4c55cdd9b17126 /sound/firewire/amdtp-stream.h | |
parent | 274fc3558133d33311b22a962d0f362ddd281b51 (diff) | |
download | linux-25babf297c570ecec28451a580987fa08b49fa92.tar.gz linux-25babf297c570ecec28451a580987fa08b49fa92.tar.bz2 linux-25babf297c570ecec28451a580987fa08b49fa92.zip |
ALSA: firewire-lib: add cache for packet sequence to AMDTP domain structure
For future extension, storage is required to store packet sequence in
incoming AMDTP stream to recover media clock for outgoing AMDTP stream.
This commit adds the storage to AMDTP domain for this purpose. The
packet sequence is represented by 'struct seq_desc' which has two
members; syt_offset and the number of data blocks. The size of storage
is decided according to the size of packet queue.
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Link: https://lore.kernel.org/r/20200508043635.349339-9-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 477fbfe713e5..84a01efa5a85 100644 --- a/sound/firewire/amdtp-stream.h +++ b/sound/firewire/amdtp-stream.h @@ -276,6 +276,11 @@ static inline bool amdtp_stream_wait_callback(struct amdtp_stream *s, msecs_to_jiffies(timeout)) > 0; } +struct seq_desc { + unsigned int syt_offset; + unsigned int data_blocks; +}; + struct amdtp_domain { struct list_head streams; @@ -283,6 +288,10 @@ struct amdtp_domain { unsigned int events_per_buffer; struct amdtp_stream *irq_target; + + struct seq_desc *seq_descs; + unsigned int seq_size; + unsigned int seq_tail; }; int amdtp_domain_init(struct amdtp_domain *d); |