Lines Matching refs:runtime

426 #define get_pcmhwdev(substream) (struct pcmhw *)(substream->runtime->private_data)
1092 struct snd_pcm_runtime *runtime; in riptide_handleirq() local
1107 (runtime = substream[i]->runtime) && in riptide_handleirq()
1108 (data = runtime->private_data) && data->state != ST_STOP) { in riptide_handleirq()
1132 frames_to_bytes(runtime, in riptide_handleirq()
1133 runtime->period_size); in riptide_handleirq()
1137 bytes_to_frames(runtime, pos), in riptide_handleirq()
1138 runtime->period_size); in riptide_handleirq()
1361 struct snd_pcm_runtime *runtime = substream->runtime; in snd_riptide_pointer() local
1368 if (data->size && runtime->period_size) { in snd_riptide_pointer()
1372 bytes_to_frames(runtime, rptr.retlongs[1]), in snd_riptide_pointer()
1373 bytes_to_frames(runtime, in snd_riptide_pointer()
1374 rptr.retlongs[1]) % runtime->period_size); in snd_riptide_pointer()
1377 bytes_to_frames(runtime, in snd_riptide_pointer()
1381 bytes_to_frames(runtime, in snd_riptide_pointer()
1385 data->size, runtime->period_size); in snd_riptide_pointer()
1386 ret = bytes_to_frames(runtime, 0); in snd_riptide_pointer()
1456 struct snd_pcm_runtime *runtime = substream->runtime; in snd_riptide_prepare() local
1468 runtime->channels, runtime->format, runtime->rate); in snd_riptide_prepare()
1471 channels = runtime->channels; in snd_riptide_prepare()
1472 format = runtime->format; in snd_riptide_prepare()
1473 rate = runtime->rate; in snd_riptide_prepare()
1494 size = frames_to_bytes(runtime, runtime->buffer_size); in snd_riptide_prepare()
1495 period = frames_to_bytes(runtime, runtime->period_size); in snd_riptide_prepare()
1605 struct snd_pcm_runtime *runtime = substream->runtime; in snd_riptide_playback_open() local
1610 runtime->hw = snd_riptide_playback; in snd_riptide_playback_open()
1621 runtime->private_data = data; in snd_riptide_playback_open()
1622 return snd_pcm_hw_constraint_integer(runtime, in snd_riptide_playback_open()
1629 struct snd_pcm_runtime *runtime = substream->runtime; in snd_riptide_capture_open() local
1633 runtime->hw = snd_riptide_capture; in snd_riptide_capture_open()
1644 runtime->private_data = data; in snd_riptide_capture_open()
1645 return snd_pcm_hw_constraint_integer(runtime, in snd_riptide_capture_open()
1655 substream->runtime->private_data = NULL; in snd_riptide_playback_close()
1666 substream->runtime->private_data = NULL; in snd_riptide_capture_close()
1945 && chip->playback_substream[i]->runtime in snd_riptide_proc_read()
1947 chip->playback_substream[i]->runtime->private_data)) { in snd_riptide_proc_read()
1957 && chip->capture_substream->runtime in snd_riptide_proc_read()
1958 && (data = chip->capture_substream->runtime->private_data)) { in snd_riptide_proc_read()