Lines Matching refs:runtime

881 	struct snd_pcm_runtime *runtime = substream->runtime;  in snd_cs46xx_pb_trans_copy()  local
882 struct snd_cs46xx_pcm * cpcm = runtime->private_data; in snd_cs46xx_pb_trans_copy()
883 memcpy(cpcm->hw_buf.area + rec->hw_data, runtime->dma_area + rec->sw_data, bytes); in snd_cs46xx_pb_trans_copy()
888 struct snd_pcm_runtime *runtime = substream->runtime; in snd_cs46xx_playback_transfer() local
889 struct snd_cs46xx_pcm * cpcm = runtime->private_data; in snd_cs46xx_playback_transfer()
898 struct snd_pcm_runtime *runtime = substream->runtime; in snd_cs46xx_cp_trans_copy() local
899 memcpy(runtime->dma_area + rec->sw_data, in snd_cs46xx_cp_trans_copy()
914 struct snd_cs46xx_pcm *cpcm = substream->runtime->private_data; in snd_cs46xx_playback_direct_pointer()
932 struct snd_cs46xx_pcm *cpcm = substream->runtime->private_data; in snd_cs46xx_playback_indirect_pointer()
967 struct snd_cs46xx_pcm *cpcm = substream->runtime->private_data; in snd_cs46xx_playback_trigger()
983 if (substream->runtime->periods != CS46XX_FRAGS) in snd_cs46xx_playback_trigger()
987 if (substream->runtime->periods != CS46XX_FRAGS) in snd_cs46xx_playback_trigger()
1095 struct snd_pcm_runtime *runtime = substream->runtime; in snd_cs46xx_playback_hw_params() local
1103 cpcm = runtime->private_data; in snd_cs46xx_playback_hw_params()
1135 if (runtime->dma_area != cpcm->hw_buf.area) in snd_cs46xx_playback_hw_params()
1137 runtime->dma_area = cpcm->hw_buf.area; in snd_cs46xx_playback_hw_params()
1138 runtime->dma_addr = cpcm->hw_buf.addr; in snd_cs46xx_playback_hw_params()
1139 runtime->dma_bytes = cpcm->hw_buf.bytes; in snd_cs46xx_playback_hw_params()
1159 if (runtime->dma_area == cpcm->hw_buf.area) { in snd_cs46xx_playback_hw_params()
1160 runtime->dma_area = NULL; in snd_cs46xx_playback_hw_params()
1161 runtime->dma_addr = 0; in snd_cs46xx_playback_hw_params()
1162 runtime->dma_bytes = 0; in snd_cs46xx_playback_hw_params()
1199 struct snd_pcm_runtime *runtime = substream->runtime; in snd_cs46xx_playback_hw_free() local
1202 cpcm = runtime->private_data; in snd_cs46xx_playback_hw_free()
1208 if (runtime->dma_area != cpcm->hw_buf.area) in snd_cs46xx_playback_hw_free()
1211 runtime->dma_area = NULL; in snd_cs46xx_playback_hw_free()
1212 runtime->dma_addr = 0; in snd_cs46xx_playback_hw_free()
1213 runtime->dma_bytes = 0; in snd_cs46xx_playback_hw_free()
1223 struct snd_pcm_runtime *runtime = substream->runtime; in snd_cs46xx_playback_prepare() local
1226 cpcm = runtime->private_data; in snd_cs46xx_playback_prepare()
1242 if (runtime->channels == 1) { in snd_cs46xx_playback_prepare()
1247 if (snd_pcm_format_width(runtime->format) == 8) { in snd_cs46xx_playback_prepare()
1252 if (snd_pcm_format_unsigned(runtime->format)) in snd_cs46xx_playback_prepare()
1256 if (snd_pcm_format_width(runtime->format) != 8) { in snd_cs46xx_playback_prepare()
1258 if (snd_pcm_format_big_endian(runtime->format)) in snd_cs46xx_playback_prepare()
1264 cpcm->pcm_rec.hw_buffer_size = runtime->period_size * CS46XX_FRAGS << cpcm->shift; in snd_cs46xx_playback_prepare()
1283 snd_cs46xx_set_play_sample_rate(chip, runtime->rate); in snd_cs46xx_playback_prepare()
1293 struct snd_pcm_runtime *runtime = substream->runtime; in snd_cs46xx_capture_hw_params() local
1299 if (runtime->periods == CS46XX_FRAGS) { in snd_cs46xx_capture_hw_params()
1300 if (runtime->dma_area != chip->capt.hw_buf.area) in snd_cs46xx_capture_hw_params()
1302 runtime->dma_area = chip->capt.hw_buf.area; in snd_cs46xx_capture_hw_params()
1303 runtime->dma_addr = chip->capt.hw_buf.addr; in snd_cs46xx_capture_hw_params()
1304 runtime->dma_bytes = chip->capt.hw_buf.bytes; in snd_cs46xx_capture_hw_params()
1307 if (runtime->dma_area == chip->capt.hw_buf.area) { in snd_cs46xx_capture_hw_params()
1308 runtime->dma_area = NULL; in snd_cs46xx_capture_hw_params()
1309 runtime->dma_addr = 0; in snd_cs46xx_capture_hw_params()
1310 runtime->dma_bytes = 0; in snd_cs46xx_capture_hw_params()
1323 struct snd_pcm_runtime *runtime = substream->runtime; in snd_cs46xx_capture_hw_free() local
1325 if (runtime->dma_area != chip->capt.hw_buf.area) in snd_cs46xx_capture_hw_free()
1327 runtime->dma_area = NULL; in snd_cs46xx_capture_hw_free()
1328 runtime->dma_addr = 0; in snd_cs46xx_capture_hw_free()
1329 runtime->dma_bytes = 0; in snd_cs46xx_capture_hw_free()
1337 struct snd_pcm_runtime *runtime = substream->runtime; in snd_cs46xx_capture_prepare() local
1343 chip->capt.pcm_rec.hw_buffer_size = runtime->period_size * CS46XX_FRAGS << 2; in snd_cs46xx_capture_prepare()
1344 snd_cs46xx_set_capture_sample_rate(chip, runtime->rate); in snd_cs46xx_capture_prepare()
1495 static void snd_cs46xx_pcm_free_substream(struct snd_pcm_runtime *runtime) in snd_cs46xx_pcm_free_substream() argument
1497 kfree(runtime->private_data); in snd_cs46xx_pcm_free_substream()
1504 struct snd_pcm_runtime *runtime = substream->runtime; in _cs46xx_playback_open_channel() local
1515 runtime->hw = snd_cs46xx_playback; in _cs46xx_playback_open_channel()
1516 runtime->private_data = cpcm; in _cs46xx_playback_open_channel()
1517 runtime->private_free = snd_cs46xx_pcm_free_substream; in _cs46xx_playback_open_channel()
1526 snd_pcm_hw_constraint_list(runtime, 0, in _cs46xx_playback_open_channel()
1536 substream->runtime->hw.info |= SNDRV_PCM_INFO_MMAP_VALID; in _cs46xx_playback_open_channel()
1601 substream->runtime->hw = snd_cs46xx_capture; in snd_cs46xx_capture_open()
1604 substream->runtime->hw.info |= SNDRV_PCM_INFO_MMAP_VALID; in snd_cs46xx_capture_open()
1609 snd_pcm_hw_constraint_list(substream->runtime, 0, in snd_cs46xx_capture_open()
1619 struct snd_pcm_runtime *runtime = substream->runtime; in snd_cs46xx_playback_close() local
1622 cpcm = runtime->private_data; in snd_cs46xx_playback_close()