Lines Matching defs:runtime
1100 struct m3_dma *s = subs->runtime->private_data;
1138 struct snd_pcm_runtime *runtime = subs->runtime;
1150 s->dma_size = frames_to_bytes(runtime, runtime->buffer_size);
1151 s->period_size = frames_to_bytes(runtime, runtime->period_size);
1221 struct snd_pcm_runtime *runtime)
1241 runtime->channels == 2 ? 0 : 1);
1245 snd_pcm_format_width(runtime->format) == 16 ? 0 : 1);
1248 freq = ((runtime->rate << 15) + 24000 ) / 48000;
1307 subs->runtime->rate > 45000 ? 0xff : 0);
1383 struct m3_dma *s = substream->runtime->private_data;
1386 s->buffer_addr = substream->runtime->dma_addr;
1398 if (substream->runtime->private_data == NULL)
1400 s = substream->runtime->private_data;
1409 struct snd_pcm_runtime *runtime = subs->runtime;
1410 struct m3_dma *s = runtime->private_data;
1415 if (runtime->format != SNDRV_PCM_FORMAT_U8 &&
1416 runtime->format != SNDRV_PCM_FORMAT_S16_LE)
1418 if (runtime->rate > 48000 ||
1419 runtime->rate < 8000)
1431 snd_m3_pcm_setup2(chip, s, runtime);
1471 struct m3_dma *s = subs->runtime->private_data;
1479 return bytes_to_frames(subs->runtime, ptr);
1730 subs->runtime->private_data = s;
1747 struct m3_dma *s = subs->runtime->private_data;
1770 struct snd_pcm_runtime *runtime = subs->runtime;
1776 runtime->hw = snd_m3_playback;
1794 struct snd_pcm_runtime *runtime = subs->runtime;
1800 runtime->hw = snd_m3_capture;