]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: pcm: Build OSS writev/readv helpers conditionally
authorTakashi Iwai <tiwai@suse.de>
Sun, 21 May 2017 17:08:57 +0000 (19:08 +0200)
committerTakashi Iwai <tiwai@suse.de>
Fri, 2 Jun 2017 17:38:26 +0000 (19:38 +0200)
commitce0b8003b2d1a39054e21138b1c702e294908e66
treee6d974221c06e8e7a361758a034f528d8adedfe0
parent9e8a09618ec5c244dc67a8cc8f22032ce387128f
ALSA: pcm: Build OSS writev/readv helpers conditionally

The snd_pcm_oss_writev3() and snd_pcm_oss_readv3() are used only in
io.c with CONFIG_SND_PCM_OSS_PLUGINS=y.  Add an ifdef to reduce the
build of these functions.

Along with it, since they are called always for in-kernel copy, reduce
the argument and call snd_pcm_kernel_writev() and *_readv() directly
instead.

Reviewed-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/core/oss/io.c
sound/core/oss/pcm_oss.c
sound/core/oss/pcm_plugin.h