Lines Matching defs:runtime
1178 struct m3_dma *s = subs->runtime->private_data;
1215 struct snd_pcm_runtime *runtime = subs->runtime;
1227 s->dma_size = frames_to_bytes(runtime, runtime->buffer_size);
1228 s->period_size = frames_to_bytes(runtime, runtime->period_size);
1298 struct snd_pcm_runtime *runtime)
1318 runtime->channels == 2 ? 0 : 1);
1322 snd_pcm_format_width(runtime->format) == 16 ? 0 : 1);
1325 freq = ((runtime->rate << 15) + 24000 ) / 48000;
1384 subs->runtime->rate > 45000 ? 0xff : 0);
1460 struct m3_dma *s = substream->runtime->private_data;
1466 s->buffer_addr = substream->runtime->dma_addr;
1478 if (substream->runtime->private_data == NULL)
1480 s = substream->runtime->private_data;
1490 struct snd_pcm_runtime *runtime = subs->runtime;
1491 struct m3_dma *s = runtime->private_data;
1495 if (runtime->format != SNDRV_PCM_FORMAT_U8 &&
1496 runtime->format != SNDRV_PCM_FORMAT_S16_LE)
1498 if (runtime->rate > 48000 ||
1499 runtime->rate < 8000)
1511 snd_m3_pcm_setup2(chip, s, runtime);
1551 struct m3_dma *s = subs->runtime->private_data;
1557 return bytes_to_frames(subs->runtime, ptr);
1771 subs->runtime->private_data = s;
1788 struct m3_dma *s = subs->runtime->private_data;
1811 struct snd_pcm_runtime *runtime = subs->runtime;
1817 runtime->hw = snd_m3_playback;
1836 struct snd_pcm_runtime *runtime = subs->runtime;
1842 runtime->hw = snd_m3_capture;