Lines Matching defs:runtime
1095 struct m3_dma *s = subs->runtime->private_data;
1133 struct snd_pcm_runtime *runtime = subs->runtime;
1145 s->dma_size = frames_to_bytes(runtime, runtime->buffer_size);
1146 s->period_size = frames_to_bytes(runtime, runtime->period_size);
1216 struct snd_pcm_runtime *runtime)
1236 runtime->channels == 2 ? 0 : 1);
1240 snd_pcm_format_width(runtime->format) == 16 ? 0 : 1);
1243 freq = DIV_ROUND_CLOSEST(runtime->rate << 15, 48000);
1302 subs->runtime->rate > 45000 ? 0xff : 0);
1378 struct m3_dma *s = substream->runtime->private_data;
1381 s->buffer_addr = substream->runtime->dma_addr;
1393 if (substream->runtime->private_data == NULL)
1395 s = substream->runtime->private_data;
1404 struct snd_pcm_runtime *runtime = subs->runtime;
1405 struct m3_dma *s = runtime->private_data;
1410 if (runtime->format != SNDRV_PCM_FORMAT_U8 &&
1411 runtime->format != SNDRV_PCM_FORMAT_S16_LE)
1413 if (runtime->rate > 48000 ||
1414 runtime->rate < 8000)
1426 snd_m3_pcm_setup2(chip, s, runtime);
1466 struct m3_dma *s = subs->runtime->private_data;
1474 return bytes_to_frames(subs->runtime, ptr);
1725 subs->runtime->private_data = s;
1742 struct m3_dma *s = subs->runtime->private_data;
1765 struct snd_pcm_runtime *runtime = subs->runtime;
1772 runtime->hw = snd_m3_playback;
1790 struct snd_pcm_runtime *runtime = subs->runtime;
1797 runtime->hw = snd_m3_capture;