static ssize_t
odev_write(struct file *file, const char __user *buf, size_t count, loff_t *offset)
{
	struct seq_oss_devinfo *dp;
	dp = file->private_data;
	snd_assert(dp != NULL, return -EIO);
	return snd_seq_oss_write(dp, buf, count, file);
}
Exemplo n.º 2
0
static ssize_t
odev_write(struct file *file, const char __user *buf, size_t count, loff_t *offset)
{
    struct seq_oss_devinfo *dp;
    dp = file->private_data;
    if (snd_BUG_ON(!dp))
        return -ENXIO;
    return snd_seq_oss_write(dp, buf, count, file);
}