|
@@ -1232,7 +1232,8 @@ snd_pcm_sframes_t snd_pcm_oss_read3(struct snd_pcm_substream *substream, char *p
|
|
|
return ret;
|
|
|
}
|
|
|
|
|
|
-snd_pcm_sframes_t snd_pcm_oss_writev3(struct snd_pcm_substream *substream, void **bufs, snd_pcm_uframes_t frames, int in_kernel)
|
|
|
+#ifdef CONFIG_SND_PCM_OSS_PLUGINS
|
|
|
+snd_pcm_sframes_t snd_pcm_oss_writev3(struct snd_pcm_substream *substream, void **bufs, snd_pcm_uframes_t frames)
|
|
|
{
|
|
|
struct snd_pcm_runtime *runtime = substream->runtime;
|
|
|
int ret;
|
|
@@ -1249,8 +1250,7 @@ snd_pcm_sframes_t snd_pcm_oss_writev3(struct snd_pcm_substream *substream, void
|
|
|
if (ret < 0)
|
|
|
break;
|
|
|
}
|
|
|
- ret = __snd_pcm_lib_xfer(substream, bufs, false, frames,
|
|
|
- in_kernel);
|
|
|
+ ret = snd_pcm_kernel_writev(substream, bufs, frames);
|
|
|
if (ret != -EPIPE && ret != -ESTRPIPE)
|
|
|
break;
|
|
|
|
|
@@ -1262,7 +1262,7 @@ snd_pcm_sframes_t snd_pcm_oss_writev3(struct snd_pcm_substream *substream, void
|
|
|
return ret;
|
|
|
}
|
|
|
|
|
|
-snd_pcm_sframes_t snd_pcm_oss_readv3(struct snd_pcm_substream *substream, void **bufs, snd_pcm_uframes_t frames, int in_kernel)
|
|
|
+snd_pcm_sframes_t snd_pcm_oss_readv3(struct snd_pcm_substream *substream, void **bufs, snd_pcm_uframes_t frames)
|
|
|
{
|
|
|
struct snd_pcm_runtime *runtime = substream->runtime;
|
|
|
int ret;
|
|
@@ -1283,13 +1283,13 @@ snd_pcm_sframes_t snd_pcm_oss_readv3(struct snd_pcm_substream *substream, void *
|
|
|
if (ret < 0)
|
|
|
break;
|
|
|
}
|
|
|
- ret = __snd_pcm_lib_xfer(substream, bufs, false, frames,
|
|
|
- in_kernel);
|
|
|
+ ret = snd_pcm_kernel_readv(substream, bufs, frames);
|
|
|
if (ret != -EPIPE && ret != -ESTRPIPE)
|
|
|
break;
|
|
|
}
|
|
|
return ret;
|
|
|
}
|
|
|
+#endif /* CONFIG_SND_PCM_OSS_PLUGINS */
|
|
|
|
|
|
static ssize_t snd_pcm_oss_write2(struct snd_pcm_substream *substream, const char *buf, size_t bytes, int in_kernel)
|
|
|
{
|