diff options
author | Takashi Sakamoto <o-takashi@sakamocchi.jp> | 2020-05-08 13:36:28 +0900 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2020-05-08 09:44:43 +0200 |
commit | 2472cfb3232caf8f68e4d93ae830c569b0bbc25b (patch) | |
tree | c7b8add39cb3ec172027730545c1dc4726246262 /sound/firewire/amdtp-stream.h | |
parent | 10aa8e4acf51b12a2db4ee2baaed67f70fbee9c2 (diff) | |
download | linux-2472cfb3232caf8f68e4d93ae830c569b0bbc25b.tar.gz |
ALSA: firewire-lib: add reference to domain structure from stream structure
In current implementation, AMDTP domain structure and AMDTP stream
structure has one way of reference from the former to the latter. For
future extension, bidirectional reference is needed.
This commit adds a member into stream structure to refer to domain
structure to which the stream belongs.
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Link: https://lore.kernel.org/r/20200508043635.349339-4-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 | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sound/firewire/amdtp-stream.h b/sound/firewire/amdtp-stream.h index f2d44e2dc3c8..477fbfe713e5 100644 --- a/sound/firewire/amdtp-stream.h +++ b/sound/firewire/amdtp-stream.h @@ -108,6 +108,8 @@ typedef unsigned int (*amdtp_stream_process_ctx_payloads_t)( const struct pkt_desc *desc, unsigned int packets, struct snd_pcm_substream *pcm); + +struct amdtp_domain; struct amdtp_stream { struct fw_unit *unit; enum cip_flags flags; @@ -180,6 +182,7 @@ struct amdtp_stream { int channel; int speed; struct list_head list; + struct amdtp_domain *domain; }; int amdtp_stream_init(struct amdtp_stream *s, struct fw_unit *unit, |