summaryrefslogtreecommitdiff
path: root/sound/firewire/amdtp-stream.h
diff options
context:
space:
mode:
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>2019-08-04 15:21:22 +0900
committerTakashi Iwai <tiwai@suse.de>2019-08-05 19:57:18 +0200
commit157a53eef6a016e6938d9fd266b85221fcd4eaa3 (patch)
tree646ddf6b611456054c9442bc4176194e340e85d6 /sound/firewire/amdtp-stream.h
parent6261f90bdb0b605ffb158717ec7a03b1753aded5 (diff)
ALSA: firewire-lib: add a kernel API to add AMDTP stream into AMDTP domain
This commit adds a kernel API to insert AMDTP stream to list in AMDTP domain. 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.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/sound/firewire/amdtp-stream.h b/sound/firewire/amdtp-stream.h
index ab2a69180240..4b102fd7529d 100644
--- a/sound/firewire/amdtp-stream.h
+++ b/sound/firewire/amdtp-stream.h
@@ -172,6 +172,8 @@ struct amdtp_stream {
amdtp_stream_process_ctx_payloads_t process_ctx_payloads;
// For domain.
+ int channel;
+ int speed;
struct list_head list;
};
@@ -277,6 +279,9 @@ struct amdtp_domain {
int amdtp_domain_init(struct amdtp_domain *d);
void amdtp_domain_destroy(struct amdtp_domain *d);
+int amdtp_domain_add_stream(struct amdtp_domain *d, struct amdtp_stream *s,
+ int channel, int speed);
+
void amdtp_domain_stop(struct amdtp_domain *d);
#endif