[ALSA] return ENODEV for disconnected devices
authorClemens Ladisch <clemens@ladisch.de>
Fri, 3 Mar 2006 13:08:43 +0000 (14:08 +0100)
committerJaroslav Kysela <perex@suse.cz>
Wed, 22 Mar 2006 09:34:24 +0000 (10:34 +0100)
commitb3b0abe11d606fa2344793edd3d69b98b430b0d4
treed2be6f908ad42ce511b61beb5e5afa356ca1dcd2
parent0b7bed4ec2a16434336e018505b66bd51bb35560
[ALSA] return ENODEV for disconnected devices

Modules: ALSA Core

Add dummy functions that return -ENODEV for the struct file_operations
of a disconnected device.  Without such functions, userspace would get
ENOTTY.

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
sound/core/init.c