Lines Matching refs:runtime

83 static int snd_wss_xrate(struct snd_pcm_runtime *runtime)  in snd_wss_xrate()  argument
85 return snd_pcm_hw_constraint_list(runtime, 0, SNDRV_PCM_HW_PARAM_RATE, in snd_wss_xrate()
1018 struct snd_pcm_runtime *runtime = substream->runtime; in snd_wss_playback_prepare() local
1026 snd_dma_program(chip->dma1, runtime->dma_addr, size, DMA_MODE_WRITE | DMA_AUTOINIT); in snd_wss_playback_prepare()
1061 struct snd_pcm_runtime *runtime = substream->runtime; in snd_wss_capture_prepare() local
1069 snd_dma_program(chip->dma2, runtime->dma_addr, size, DMA_MODE_READ | DMA_AUTOINIT); in snd_wss_capture_prepare()
1099 chip->capture_substream->runtime->overrange++; in snd_wss_overrange()
1162 return bytes_to_frames(substream->runtime, ptr); in snd_wss_playback_pointer()
1173 return bytes_to_frames(substream->runtime, ptr); in snd_wss_capture_pointer()
1503 struct snd_pcm_runtime *runtime = substream->runtime; in snd_wss_playback_open() local
1506 runtime->hw = snd_wss_playback; in snd_wss_playback_open()
1510 runtime->hw.formats &= ~(SNDRV_PCM_FMTBIT_IMA_ADPCM | in snd_wss_playback_open()
1515 runtime->hw.formats &= ~SNDRV_PCM_FMTBIT_MU_LAW; in snd_wss_playback_open()
1520 runtime->hw.formats = SNDRV_PCM_FMTBIT_U8 | SNDRV_PCM_FMTBIT_S16_LE; in snd_wss_playback_open()
1522 snd_pcm_limit_isa_dma_size(chip->dma1, &runtime->hw.buffer_bytes_max); in snd_wss_playback_open()
1523 snd_pcm_limit_isa_dma_size(chip->dma1, &runtime->hw.period_bytes_max); in snd_wss_playback_open()
1534 snd_free_pages(runtime->dma_area, runtime->dma_bytes); in snd_wss_playback_open()
1539 chip->rate_constraint(runtime); in snd_wss_playback_open()
1546 struct snd_pcm_runtime *runtime = substream->runtime; in snd_wss_capture_open() local
1549 runtime->hw = snd_wss_capture; in snd_wss_capture_open()
1553 runtime->hw.formats &= ~(SNDRV_PCM_FMTBIT_IMA_ADPCM | in snd_wss_capture_open()
1560 runtime->hw.formats = SNDRV_PCM_FMTBIT_U8 | in snd_wss_capture_open()
1563 snd_pcm_limit_isa_dma_size(chip->dma2, &runtime->hw.buffer_bytes_max); in snd_wss_capture_open()
1564 snd_pcm_limit_isa_dma_size(chip->dma2, &runtime->hw.period_bytes_max); in snd_wss_capture_open()
1575 snd_free_pages(runtime->dma_area, runtime->dma_bytes); in snd_wss_capture_open()
1580 chip->rate_constraint(runtime); in snd_wss_capture_open()