Lines Matching defs:runtime

867 	struct snd_pcm_runtime *runtime = substream->runtime;
868 struct snd_cs46xx_pcm * cpcm = runtime->private_data;
869 memcpy(cpcm->hw_buf.area + rec->hw_data, runtime->dma_area + rec->sw_data, bytes);
874 struct snd_pcm_runtime *runtime = substream->runtime;
875 struct snd_cs46xx_pcm * cpcm = runtime->private_data;
884 struct snd_pcm_runtime *runtime = substream->runtime;
885 memcpy(runtime->dma_area + rec->sw_data,
900 struct snd_cs46xx_pcm *cpcm = substream->runtime->private_data;
918 struct snd_cs46xx_pcm *cpcm = substream->runtime->private_data;
949 /*struct snd_pcm_runtime *runtime = substream->runtime;*/
953 struct snd_cs46xx_pcm *cpcm = substream->runtime->private_data;
969 if (substream->runtime->periods != CS46XX_FRAGS)
973 if (substream->runtime->periods != CS46XX_FRAGS)
1082 struct snd_pcm_runtime *runtime = substream->runtime;
1090 cpcm = runtime->private_data;
1122 if (runtime->dma_area != cpcm->hw_buf.area)
1144 if (runtime->dma_area == cpcm->hw_buf.area)
1182 struct snd_pcm_runtime *runtime = substream->runtime;
1185 cpcm = runtime->private_data;
1191 if (runtime->dma_area != cpcm->hw_buf.area)
1204 struct snd_pcm_runtime *runtime = substream->runtime;
1207 cpcm = runtime->private_data;
1223 if (runtime->channels == 1) {
1228 if (snd_pcm_format_width(runtime->format) == 8) {
1233 if (snd_pcm_format_unsigned(runtime->format))
1237 if (snd_pcm_format_width(runtime->format) != 8) {
1239 if (snd_pcm_format_big_endian(runtime->format))
1245 cpcm->pcm_rec.hw_buffer_size = runtime->period_size * CS46XX_FRAGS << cpcm->shift;
1264 snd_cs46xx_set_play_sample_rate(chip, runtime->rate);
1274 struct snd_pcm_runtime *runtime = substream->runtime;
1280 if (runtime->periods == CS46XX_FRAGS) {
1281 if (runtime->dma_area != chip->capt.hw_buf.area)
1286 if (runtime->dma_area == chip->capt.hw_buf.area)
1300 struct snd_pcm_runtime *runtime = substream->runtime;
1302 if (runtime->dma_area != chip->capt.hw_buf.area)
1312 struct snd_pcm_runtime *runtime = substream->runtime;
1318 chip->capt.pcm_rec.hw_buffer_size = runtime->period_size * CS46XX_FRAGS << 2;
1319 snd_cs46xx_set_capture_sample_rate(chip, runtime->rate);
1472 static void snd_cs46xx_pcm_free_substream(struct snd_pcm_runtime *runtime)
1474 kfree(runtime->private_data);
1481 struct snd_pcm_runtime *runtime = substream->runtime;
1492 runtime->hw = snd_cs46xx_playback;
1493 runtime->private_data = cpcm;
1494 runtime->private_free = snd_cs46xx_pcm_free_substream;
1503 snd_pcm_hw_constraint_list(runtime, 0,
1513 substream->runtime->hw.info |= SNDRV_PCM_INFO_MMAP_VALID;
1578 substream->runtime->hw = snd_cs46xx_capture;
1581 substream->runtime->hw.info |= SNDRV_PCM_INFO_MMAP_VALID;
1586 snd_pcm_hw_constraint_list(substream->runtime, 0,
1596 struct snd_pcm_runtime *runtime = substream->runtime;
1599 cpcm = runtime->private_data;