Loading include/sound/info.h +57 −51 Original line number Diff line number Diff line Loading @@ -40,8 +40,10 @@ struct snd_info_buffer { struct snd_info_entry; struct snd_info_entry_text { void (*read) (struct snd_info_entry *entry, struct snd_info_buffer *buffer); void (*write) (struct snd_info_entry *entry, struct snd_info_buffer *buffer); void (*read)(struct snd_info_entry *entry, struct snd_info_buffer *buffer); void (*write)(struct snd_info_entry *entry, struct snd_info_buffer *buffer); }; struct snd_info_entry_ops { Loading @@ -55,10 +57,12 @@ struct snd_info_entry_ops { long (*write)(struct snd_info_entry *entry, void *file_private_data, struct file *file, const char __user *buf, unsigned long count, unsigned long pos); long long (*llseek) (struct snd_info_entry *entry, void *file_private_data, struct file * file, long long offset, int orig); unsigned int (*poll) (struct snd_info_entry *entry, void *file_private_data, struct file * file, poll_table * wait); long long (*llseek)(struct snd_info_entry *entry, void *file_private_data, struct file *file, long long offset, int orig); unsigned int(*poll)(struct snd_info_entry *entry, void *file_private_data, struct file *file, poll_table *wait); int (*ioctl)(struct snd_info_entry *entry, void *file_private_data, struct file *file, unsigned int cmd, unsigned long arg); int (*mmap)(struct snd_info_entry *entry, void *file_private_data, Loading Loading @@ -106,7 +110,8 @@ void snd_card_info_read_oss(struct snd_info_buffer *buffer); static inline void snd_card_info_read_oss(struct snd_info_buffer *buffer) {} #endif int snd_iprintf(struct snd_info_buffer * buffer, char *fmt,...) __attribute__ ((format (printf, 2, 3))); int snd_iprintf(struct snd_info_buffer *buffer, char *fmt, ...) \ __attribute__ ((format (printf, 2, 3))); int snd_info_init(void); int snd_info_done(void); Loading @@ -130,7 +135,8 @@ void snd_info_card_id_change(struct snd_card * card); int snd_info_register(struct snd_info_entry *entry); /* for card drivers */ int snd_card_proc_new(struct snd_card *card, const char *name, struct snd_info_entry **entryp); int snd_card_proc_new(struct snd_card *card, const char *name, struct snd_info_entry **entryp); static inline void snd_info_set_text_ops(struct snd_info_entry *entry, void *private_data, Loading Loading
include/sound/info.h +57 −51 Original line number Diff line number Diff line Loading @@ -40,8 +40,10 @@ struct snd_info_buffer { struct snd_info_entry; struct snd_info_entry_text { void (*read) (struct snd_info_entry *entry, struct snd_info_buffer *buffer); void (*write) (struct snd_info_entry *entry, struct snd_info_buffer *buffer); void (*read)(struct snd_info_entry *entry, struct snd_info_buffer *buffer); void (*write)(struct snd_info_entry *entry, struct snd_info_buffer *buffer); }; struct snd_info_entry_ops { Loading @@ -55,10 +57,12 @@ struct snd_info_entry_ops { long (*write)(struct snd_info_entry *entry, void *file_private_data, struct file *file, const char __user *buf, unsigned long count, unsigned long pos); long long (*llseek) (struct snd_info_entry *entry, void *file_private_data, struct file * file, long long offset, int orig); unsigned int (*poll) (struct snd_info_entry *entry, void *file_private_data, struct file * file, poll_table * wait); long long (*llseek)(struct snd_info_entry *entry, void *file_private_data, struct file *file, long long offset, int orig); unsigned int(*poll)(struct snd_info_entry *entry, void *file_private_data, struct file *file, poll_table *wait); int (*ioctl)(struct snd_info_entry *entry, void *file_private_data, struct file *file, unsigned int cmd, unsigned long arg); int (*mmap)(struct snd_info_entry *entry, void *file_private_data, Loading Loading @@ -106,7 +110,8 @@ void snd_card_info_read_oss(struct snd_info_buffer *buffer); static inline void snd_card_info_read_oss(struct snd_info_buffer *buffer) {} #endif int snd_iprintf(struct snd_info_buffer * buffer, char *fmt,...) __attribute__ ((format (printf, 2, 3))); int snd_iprintf(struct snd_info_buffer *buffer, char *fmt, ...) \ __attribute__ ((format (printf, 2, 3))); int snd_info_init(void); int snd_info_done(void); Loading @@ -130,7 +135,8 @@ void snd_info_card_id_change(struct snd_card * card); int snd_info_register(struct snd_info_entry *entry); /* for card drivers */ int snd_card_proc_new(struct snd_card *card, const char *name, struct snd_info_entry **entryp); int snd_card_proc_new(struct snd_card *card, const char *name, struct snd_info_entry **entryp); static inline void snd_info_set_text_ops(struct snd_info_entry *entry, void *private_data, Loading