ALSA: fireface: add local framework to message parser
[linux-2.6-microblaze.git] / sound / firewire / fireface / ff.h
index f430ebe..7e42f57 100644 (file)
@@ -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,