• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/sound/core/

Lines Matching refs:runtime

346 	struct snd_pcm_runtime *runtime = substream->runtime;
347 if (!runtime) {
351 if (runtime->status->state == SNDRV_PCM_STATE_OPEN) {
355 snd_iprintf(buffer, "access: %s\n", snd_pcm_access_name(runtime->access));
356 snd_iprintf(buffer, "format: %s\n", snd_pcm_format_name(runtime->format));
357 snd_iprintf(buffer, "subformat: %s\n", snd_pcm_subformat_name(runtime->subformat));
358 snd_iprintf(buffer, "channels: %u\n", runtime->channels);
359 snd_iprintf(buffer, "rate: %u (%u/%u)\n", runtime->rate, runtime->rate_num, runtime->rate_den);
360 snd_iprintf(buffer, "period_size: %lu\n", runtime->period_size);
361 snd_iprintf(buffer, "buffer_size: %lu\n", runtime->buffer_size);
362 snd_iprintf(buffer, "tick_time: %u\n", runtime->tick_time);
365 snd_iprintf(buffer, "OSS format: %s\n", snd_pcm_oss_format_name(runtime->oss.format));
366 snd_iprintf(buffer, "OSS channels: %u\n", runtime->oss.channels);
367 snd_iprintf(buffer, "OSS rate: %u\n", runtime->oss.rate);
368 snd_iprintf(buffer, "OSS period bytes: %lu\n", (unsigned long)runtime->oss.period_bytes);
369 snd_iprintf(buffer, "OSS periods: %u\n", runtime->oss.periods);
370 snd_iprintf(buffer, "OSS period frames: %lu\n", (unsigned long)runtime->oss.period_frames);
379 struct snd_pcm_runtime *runtime = substream->runtime;
380 if (!runtime) {
384 if (runtime->status->state == SNDRV_PCM_STATE_OPEN) {
388 snd_iprintf(buffer, "tstamp_mode: %s\n", snd_pcm_tstamp_mode_name(runtime->tstamp_mode));
389 snd_iprintf(buffer, "period_step: %u\n", runtime->period_step);
390 snd_iprintf(buffer, "sleep_min: %u\n", runtime->sleep_min);
391 snd_iprintf(buffer, "avail_min: %lu\n", runtime->control->avail_min);
392 snd_iprintf(buffer, "xfer_align: %lu\n", runtime->xfer_align);
393 snd_iprintf(buffer, "start_threshold: %lu\n", runtime->start_threshold);
394 snd_iprintf(buffer, "stop_threshold: %lu\n", runtime->stop_threshold);
395 snd_iprintf(buffer, "silence_threshold: %lu\n", runtime->silence_threshold);
396 snd_iprintf(buffer, "silence_size: %lu\n", runtime->silence_size);
397 snd_iprintf(buffer, "boundary: %lu\n", runtime->boundary);
404 struct snd_pcm_runtime *runtime = substream->runtime;
407 if (!runtime) {
426 snd_iprintf(buffer, "hw_ptr : %ld\n", runtime->status->hw_ptr);
427 snd_iprintf(buffer, "appl_ptr : %ld\n", runtime->control->appl_ptr);
780 struct snd_pcm_runtime *runtime;
857 runtime = kzalloc(sizeof(*runtime), GFP_KERNEL);
858 if (runtime == NULL)
862 runtime->status = snd_malloc_pages(size, GFP_KERNEL);
863 if (runtime->status == NULL) {
864 kfree(runtime);
867 memset((void*)runtime->status, 0, size);
870 runtime->control = snd_malloc_pages(size, GFP_KERNEL);
871 if (runtime->control == NULL) {
872 snd_free_pages((void*)runtime->status,
874 kfree(runtime);
877 memset((void*)runtime->control, 0, size);
879 init_waitqueue_head(&runtime->sleep);
880 init_timer(&runtime->tick_timer);
881 runtime->tick_timer.function = snd_pcm_tick_timer_func;
882 runtime->tick_timer.data = (unsigned long) substream;
884 runtime->status->state = SNDRV_PCM_STATE_OPEN;
886 substream->runtime = runtime;
897 struct snd_pcm_runtime *runtime;
899 runtime = substream->runtime;
900 snd_assert(runtime != NULL, return);
901 if (runtime->private_free != NULL)
902 runtime->private_free(runtime);
903 snd_free_pages((void*)runtime->status,
905 snd_free_pages((void*)runtime->control,
907 kfree(runtime->hw_constraints.rules);
908 kfree(runtime);
909 substream->runtime = NULL;
1009 if (substream->runtime)
1010 substream->runtime->status->state = SNDRV_PCM_STATE_DISCONNECTED;