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)
1081 struct snd_pcm_runtime *runtime = substream->runtime;
1089 cpcm = runtime->private_data;
1121 if (runtime->dma_area != cpcm->hw_buf.area)
1123 runtime->dma_area = cpcm->hw_buf.area;
1124 runtime->dma_addr = cpcm->hw_buf.addr;
1125 runtime->dma_bytes = cpcm->hw_buf.bytes;
1145 if (runtime->dma_area == cpcm->hw_buf.area) {
1146 runtime->dma_area = NULL;
1147 runtime->dma_addr = 0;
1148 runtime->dma_bytes = 0;
1185 struct snd_pcm_runtime *runtime = substream->runtime;
1188 cpcm = runtime->private_data;
1194 if (runtime->dma_area != cpcm->hw_buf.area)
1197 runtime->dma_area = NULL;
1198 runtime->dma_addr = 0;
1199 runtime->dma_bytes = 0;
1209 struct snd_pcm_runtime *runtime = substream->runtime;
1212 cpcm = runtime->private_data;
1228 if (runtime->channels == 1) {
1233 if (snd_pcm_format_width(runtime->format) == 8) {
1238 if (snd_pcm_format_unsigned(runtime->format))
1242 if (snd_pcm_format_width(runtime->format) != 8) {
1244 if (snd_pcm_format_big_endian(runtime->format))
1250 cpcm->pcm_rec.hw_buffer_size = runtime->period_size * CS46XX_FRAGS << cpcm->shift;
1269 snd_cs46xx_set_play_sample_rate(chip, runtime->rate);
1279 struct snd_pcm_runtime *runtime = substream->runtime;
1285 if (runtime->periods == CS46XX_FRAGS) {
1286 if (runtime->dma_area != chip->capt.hw_buf.area)
1288 runtime->dma_area = chip->capt.hw_buf.area;
1289 runtime->dma_addr = chip->capt.hw_buf.addr;
1290 runtime->dma_bytes = chip->capt.hw_buf.bytes;
1293 if (runtime->dma_area == chip->capt.hw_buf.area) {
1294 runtime->dma_area = NULL;
1295 runtime->dma_addr = 0;
1296 runtime->dma_bytes = 0;
1309 struct snd_pcm_runtime *runtime = substream->runtime;
1311 if (runtime->dma_area != chip->capt.hw_buf.area)
1313 runtime->dma_area = NULL;
1314 runtime->dma_addr = 0;
1315 runtime->dma_bytes = 0;
1323 struct snd_pcm_runtime *runtime = substream->runtime;
1329 chip->capt.pcm_rec.hw_buffer_size = runtime->period_size * CS46XX_FRAGS << 2;
1330 snd_cs46xx_set_capture_sample_rate(chip, runtime->rate);
1483 static void snd_cs46xx_pcm_free_substream(struct snd_pcm_runtime *runtime)
1485 kfree(runtime->private_data);
1492 struct snd_pcm_runtime *runtime = substream->runtime;
1503 runtime->hw = snd_cs46xx_playback;
1504 runtime->private_data = cpcm;
1505 runtime->private_free = snd_cs46xx_pcm_free_substream;
1514 snd_pcm_hw_constraint_list(runtime, 0,
1524 substream->runtime->hw.info |= SNDRV_PCM_INFO_MMAP_VALID;
1589 substream->runtime->hw = snd_cs46xx_capture;
1592 substream->runtime->hw.info |= SNDRV_PCM_INFO_MMAP_VALID;
1597 snd_pcm_hw_constraint_list(substream->runtime, 0,
1607 struct snd_pcm_runtime *runtime = substream->runtime;
1610 cpcm = runtime->private_data;