diff options
author | Mark Brown <broonie@kernel.org> | 2018-08-28 20:03:57 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2018-08-28 20:03:57 +0200 |
commit | 6e2d6b2728fcb408eabd7991804f8cb33ff59f20 (patch) | |
tree | 18dc3fc5bd55fa9ff92430e4ab8353de6c5c0e55 /include/sound/pcm.h | |
parent | ASoC: rt5514: Fix the issue of the delay volume applied again (diff) | |
parent | Linux 4.19-rc1 (diff) | |
download | linux-6e2d6b2728fcb408eabd7991804f8cb33ff59f20.tar.xz linux-6e2d6b2728fcb408eabd7991804f8cb33ff59f20.zip |
Merge tag 'v4.19-rc1' into asoc-4.19
Linux 4.19-rc1
Diffstat (limited to 'include/sound/pcm.h')
-rw-r--r-- | include/sound/pcm.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/include/sound/pcm.h b/include/sound/pcm.h index e054c583d3b3..d6bd3caf6878 100644 --- a/include/sound/pcm.h +++ b/include/sound/pcm.h @@ -462,6 +462,7 @@ struct snd_pcm_substream { /* -- timer section -- */ struct snd_timer *timer; /* timer */ unsigned timer_running: 1; /* time is running */ + long wait_time; /* time in ms for R/W to wait for avail */ /* -- next substream -- */ struct snd_pcm_substream *next; /* -- linked substreams -- */ @@ -1089,14 +1090,14 @@ static inline snd_pcm_sframes_t snd_pcm_lib_write(struct snd_pcm_substream *substream, const void __user *buf, snd_pcm_uframes_t frames) { - return __snd_pcm_lib_xfer(substream, (void *)buf, true, frames, false); + return __snd_pcm_lib_xfer(substream, (void __force *)buf, true, frames, false); } static inline snd_pcm_sframes_t snd_pcm_lib_read(struct snd_pcm_substream *substream, void __user *buf, snd_pcm_uframes_t frames) { - return __snd_pcm_lib_xfer(substream, (void *)buf, true, frames, false); + return __snd_pcm_lib_xfer(substream, (void __force *)buf, true, frames, false); } static inline snd_pcm_sframes_t @@ -1341,8 +1342,6 @@ int snd_pcm_lib_mmap_iomem(struct snd_pcm_substream *substream, struct vm_area_s #define snd_pcm_lib_mmap_iomem NULL #endif -#define snd_pcm_lib_mmap_vmalloc NULL - /** * snd_pcm_limit_isa_dma_size - Get the max size fitting with ISA DMA transfer * @dma: DMA number |