ALSA: pcm: Unify ioctl functions for playback and capture streams
authorTakashi Iwai <tiwai@suse.de>
Wed, 30 Aug 2017 13:39:32 +0000 (15:39 +0200)
committerTakashi Iwai <tiwai@suse.de>
Wed, 30 Aug 2017 18:44:55 +0000 (20:44 +0200)
commit67616feda99e32cb676b0907284bbb6957e45480
treef790394273fdc40a2a918e9855e51044d5dfdfa6
parent7d8e8292013ab72ae1f1500cbc91f198ccb1826d
ALSA: pcm: Unify ioctl functions for playback and capture streams

Some ioctl functions are implemented individually for both playback
and capture streams although most of the codes are identical with just
a few different stream-specific function calls.  This patch unifies
these places, removes the superfluous trivial check and flattens the
call paths as a cleanup.  Meanwhile, for better readability, some
codes (e.g. xfer ioctls or forward/rewind ioctls) are factored out as
functions.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/core/pcm_compat.c
sound/core/pcm_native.c