diff options
Diffstat (limited to 'sound/core/pcm_lib.c')
-rw-r--r-- | sound/core/pcm_lib.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sound/core/pcm_lib.c b/sound/core/pcm_lib.c index 33884426a64..cd69b38622b 100644 --- a/sound/core/pcm_lib.c +++ b/sound/core/pcm_lib.c | |||
@@ -1961,6 +1961,9 @@ static int pcm_sanity_check(struct snd_pcm_substream *substream) | |||
1961 | struct snd_pcm_runtime *runtime; | 1961 | struct snd_pcm_runtime *runtime; |
1962 | if (PCM_RUNTIME_CHECK(substream)) | 1962 | if (PCM_RUNTIME_CHECK(substream)) |
1963 | return -ENXIO; | 1963 | return -ENXIO; |
1964 | /* TODO: consider and -EINVAL here */ | ||
1965 | if (substream->hw_no_buffer) | ||
1966 | snd_printd("%s: warning this PCM is host less\n", __func__); | ||
1964 | runtime = substream->runtime; | 1967 | runtime = substream->runtime; |
1965 | if (snd_BUG_ON(!substream->ops->copy && !runtime->dma_area)) | 1968 | if (snd_BUG_ON(!substream->ops->copy && !runtime->dma_area)) |
1966 | return -EINVAL; | 1969 | return -EINVAL; |