#include "tascam.h"
static long tscm_hwdep_read_locked(struct snd_tscm *tscm, char __user *buf,
long count, loff_t *offset)
__releases(&tscm->lock)
{ … }
static long tscm_hwdep_read_queue(struct snd_tscm *tscm, char __user *buf,
long remained, loff_t *offset)
__releases(&tscm->lock)
{ … }
static long hwdep_read(struct snd_hwdep *hwdep, char __user *buf, long count,
loff_t *offset)
{ … }
static __poll_t hwdep_poll(struct snd_hwdep *hwdep, struct file *file,
poll_table *wait)
{ … }
static int hwdep_get_info(struct snd_tscm *tscm, void __user *arg)
{ … }
static int hwdep_lock(struct snd_tscm *tscm)
{ … }
static int hwdep_unlock(struct snd_tscm *tscm)
{ … }
static int tscm_hwdep_state(struct snd_tscm *tscm, void __user *arg)
{ … }
static int hwdep_release(struct snd_hwdep *hwdep, struct file *file)
{ … }
static int hwdep_ioctl(struct snd_hwdep *hwdep, struct file *file,
unsigned int cmd, unsigned long arg)
{ … }
#ifdef CONFIG_COMPAT
static int hwdep_compat_ioctl(struct snd_hwdep *hwdep, struct file *file,
unsigned int cmd, unsigned long arg)
{ … }
#else
#define hwdep_compat_ioctl …
#endif
int snd_tscm_create_hwdep_device(struct snd_tscm *tscm)
{ … }