Lines Matching defs:snd_pcm_runtime
352 struct snd_pcm_runtime { struct
354 snd_pcm_state_t state; /* stream state */
355 snd_pcm_state_t suspended_state; /* suspended stream state */
356 struct snd_pcm_substream *trigger_master;
357 struct timespec64 trigger_tstamp; /* trigger timestamp */
358 bool trigger_tstamp_latched; /* trigger timestamp latched in low-level driver/hardware */
359 int overrange;
360 snd_pcm_uframes_t avail_max;
361 snd_pcm_uframes_t hw_ptr_base; /* Position at buffer restart */
362 snd_pcm_uframes_t hw_ptr_interrupt; /* Position at interrupt time */
363 unsigned long hw_ptr_jiffies; /* Time when hw_ptr is updated */
364 unsigned long hw_ptr_buffer_jiffies; /* buffer time in jiffies */
365 snd_pcm_sframes_t delay; /* extra delay; typically FIFO size */
366 u64 hw_ptr_wrap; /* offset for hw_ptr due to boundary wrap-around */
369 snd_pcm_access_t access; /* access mode */
370 snd_pcm_format_t format; /* SNDRV_PCM_FORMAT_* */
371 snd_pcm_subformat_t subformat; /* subformat */
372 unsigned int rate; /* rate in Hz */
373 unsigned int channels; /* channels */
374 snd_pcm_uframes_t period_size; /* period size */
375 unsigned int periods; /* periods */
376 snd_pcm_uframes_t buffer_size; /* buffer size */
377 snd_pcm_uframes_t min_align; /* Min alignment for the format */
378 size_t byte_align;
379 unsigned int frame_bits;
380 unsigned int sample_bits;
381 unsigned int info;
382 unsigned int rate_num;
383 unsigned int rate_den;
384 unsigned int no_period_wakeup: 1;
387 int tstamp_mode;
388 unsigned int period_step;
389 snd_pcm_uframes_t start_threshold;
390 snd_pcm_uframes_t stop_threshold;
391 snd_pcm_uframes_t silence_threshold;
392 snd_pcm_uframes_t silence_size;
416 void (*private_free)(struct snd_pcm_runtime *runtime); argument
419 struct snd_pcm_hardware hw;
420 struct snd_pcm_hw_constraints hw_constraints;
423 unsigned int timer_resolution; /* timer resolution */
424 int tstamp_type; /* timestamp type */
427 unsigned char *dma_area; /* DMA area */
428 dma_addr_t dma_addr; /* physical bus address (not accessible from main CPU) */
429 size_t dma_bytes; /* size of DMA area */
431 struct snd_dma_buffer *dma_buffer_p; /* allocated buffer */
432 unsigned int buffer_changed:1; /* buffer allocation changed; set only in managed mode */
435 struct snd_pcm_audio_tstamp_config audio_tstamp_config;
436 struct snd_pcm_audio_tstamp_report audio_tstamp_report;
437 struct timespec64 driver_tstamp;
441 struct snd_pcm_oss_runtime oss;