summaryrefslogtreecommitdiffstats
path: root/sound/firewire/fireface/ff.h
diff options
context:
space:
mode:
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>2023-01-12 21:09:53 +0900
committerTakashi Iwai <tiwai@suse.de>2023-01-13 09:56:37 +0100
commitc31909fa06930e9d5821219ac6a9980a6b8cf2b8 (patch)
tree8e072a64352398c1f166a884d093a4532a3de4eb /sound/firewire/fireface/ff.h
parentab811cfffa949946ebcfd6e280d4dc37c7f0f602 (diff)
downloadlinux-stable-c31909fa06930e9d5821219ac6a9980a6b8cf2b8.tar.gz
linux-stable-c31909fa06930e9d5821219ac6a9980a6b8cf2b8.tar.bz2
linux-stable-c31909fa06930e9d5821219ac6a9980a6b8cf2b8.zip
ALSA: fireface: add local framework to message parser
This commit adds local framework to message parser. This is preparation for future work to pass event of knob control for Fireface 400 to user space. Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp> Link: https://lore.kernel.org/r/20230112120954.500692-6-o-takashi@sakamocchi.jp Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/firewire/fireface/ff.h')
-rw-r--r--sound/firewire/fireface/ff.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/sound/firewire/fireface/ff.h b/sound/firewire/fireface/ff.h
index f430ebe157b3..7e42f5778a8a 100644
--- a/sound/firewire/fireface/ff.h
+++ b/sound/firewire/fireface/ff.h
@@ -97,6 +97,8 @@ struct snd_ff {
wait_queue_head_t hwdep_wait;
struct amdtp_domain domain;
+
+ void *msg_parser;
};
enum snd_ff_clock_src {
@@ -110,6 +112,9 @@ enum snd_ff_clock_src {
};
struct snd_ff_protocol {
+ size_t msg_parser_size;
+ bool (*has_msg)(struct snd_ff *ff);
+ long (*copy_msg_to_user)(struct snd_ff *ff, char __user *buf, long count);
void (*handle_msg)(struct snd_ff *ff, unsigned int offset, const __le32 *buf,
size_t length, u32 tstamp);
int (*fill_midi_msg)(struct snd_ff *ff,