ALSA: pcm: Allow NULL ioctl ops
authorTakashi Iwai <tiwai@suse.de>
Sun, 17 Nov 2019 08:53:03 +0000 (09:53 +0100)
committerTakashi Iwai <tiwai@suse.de>
Wed, 20 Nov 2019 18:39:54 +0000 (19:39 +0100)
commitfc033cbf6fb75452f03774ca5adccac8cf9bc84f
tree9559f718dd7d43e613becd962bcc9d6d65c7885c
parent72b4bcbf1c96c766a0c037a665ef5bbe62bb2628
ALSA: pcm: Allow NULL ioctl ops

Currently PCM ioctl ops is a mandatory field but almost all drivers
simply pass snd_pcm_lib_ioctl.  For simplicity, allow to set NULL in
the field and call snd_pcm_lib_ioctl() as default.

Link: https://lore.kernel.org/r/20191117085308.23915-4-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/core/pcm_native.c