• Home
  • Raw
  • Download

Lines Matching refs:sample_spec

336     max_use_2 = pa_frame_align(max_use/2, &u->sink->sample_spec);  in fix_min_sleep_wakeup()
338 u->min_sleep = pa_usec_to_bytes(TSCHED_MIN_SLEEP_USEC, &u->sink->sample_spec); in fix_min_sleep_wakeup()
341 u->min_wakeup = pa_usec_to_bytes(TSCHED_MIN_WAKEUP_USEC, &u->sink->sample_spec); in fix_min_sleep_wakeup()
358 u->tsched_watermark_usec = pa_bytes_to_usec(u->tsched_watermark, &u->sink->sample_spec); in fix_tsched_watermark()
436 u->tsched_watermark = pa_convert_size(tsched_watermark, ss, &u->sink->sample_spec); in reset_watermark()
438 u->watermark_inc_step = pa_usec_to_bytes(TSCHED_WATERMARK_INC_STEP_USEC, &u->sink->sample_spec); in reset_watermark()
439 u->watermark_dec_step = pa_usec_to_bytes(TSCHED_WATERMARK_DEC_STEP_USEC, &u->sink->sample_spec); in reset_watermark()
441 …_threshold = pa_usec_to_bytes_round_up(TSCHED_WATERMARK_INC_THRESHOLD_USEC, &u->sink->sample_spec); in reset_watermark()
442 …_threshold = pa_usec_to_bytes_round_up(TSCHED_WATERMARK_DEC_THRESHOLD_USEC, &u->sink->sample_spec); in reset_watermark()
478 usec = pa_bytes_to_usec(u->hwbuf_size, &u->sink->sample_spec); in hw_sleep_time()
583 (double) pa_bytes_to_usec(left_to_play, &u->sink->sample_spec) / PA_USEC_PER_MSEC, in check_left_to_play()
584 … (double) pa_bytes_to_usec(u->watermark_inc_threshold, &u->sink->sample_spec) / PA_USEC_PER_MSEC, in check_left_to_play()
585 … (double) pa_bytes_to_usec(u->watermark_dec_threshold, &u->sink->sample_spec) / PA_USEC_PER_MSEC); in check_left_to_play()
634 …if (PA_UNLIKELY((n = pa_alsa_safe_avail(u->pcm_handle, u->hwbuf_size, &u->sink->sample_spec)) < 0)… in mmap_write()
660 … pa_bytes_to_usec(left_to_play, &u->sink->sample_spec) > process_usec+max_sleep_usec/2) { in mmap_write()
719 …_mmap_begin(u->pcm_handle, &areas, &offset, &frames, u->hwbuf_size, &u->sink->sample_spec)) < 0)) { in mmap_write()
793 pa_usec_t underrun_sleep = pa_bytes_to_usec_round_up(input_underrun, &u->sink->sample_spec); in mmap_write()
795 *sleep_usec = pa_bytes_to_usec(left_to_play, &u->sink->sample_spec); in mmap_write()
828 …if (PA_UNLIKELY((n = pa_alsa_safe_avail(u->pcm_handle, u->hwbuf_size, &u->sink->sample_spec)) < 0)… in unix_write()
854 … pa_bytes_to_usec(left_to_play, &u->sink->sample_spec) > process_usec+max_sleep_usec/2) in unix_write()
957 pa_usec_t underrun_sleep = pa_bytes_to_usec_round_up(input_underrun, &u->sink->sample_spec); in unix_write()
959 *sleep_usec = pa_bytes_to_usec(left_to_play, &u->sink->sample_spec); in unix_write()
992 …lsa_safe_delay(u->pcm_handle, status, &delay, u->hwbuf_size, &u->sink->sample_spec, false)) < 0)) { in update_smoother()
1017 now2 = pa_bytes_to_usec((uint64_t) position, &u->sink->sample_spec); in update_smoother()
1042 delay = (int64_t) pa_bytes_to_usec(u->write_count, &u->sink->sample_spec) - (int64_t) now2; in sink_get_latency()
1046 delay += pa_bytes_to_usec(u->memchunk.length, &u->sink->sample_spec); in sink_get_latency()
1113 b = pa_usec_to_bytes(latency, &u->sink->sample_spec); in update_sw_params()
1136 avail_min += pa_usec_to_bytes(sleep_usec, &u->sink->sample_spec) / u->frame_size; in update_sw_params()
1235 if (pa_frame_size(&u->sink->sample_spec) != u->frame_size) { in unsuspend()
1236 update_size(u, &u->sink->sample_spec); in unsuspend()
1241 ss = u->sink->sample_spec; in unsuspend()
1257 if (!pa_sample_spec_equal(&ss, &u->sink->sample_spec)) { in unsuspend()
1286 reset_watermark(u, u->tsched_watermark_ref, &u->sink->sample_spec, true); in unsuspend()
1832 effective_spec.channels = s->sample_spec.channels; in sink_reconfigure_cb()
1900 …UNLIKELY((unused = pa_alsa_safe_avail(u->pcm_handle, u->hwbuf_size, &u->sink->sample_spec)) < 0)) { in process_rewind()
2368 if (mapping->sample_spec.format != PA_SAMPLE_INVALID) in pa_alsa_sink_new()
2369 ss.format = mapping->sample_spec.format; in pa_alsa_sink_new()
2370 if (mapping->sample_spec.rate != 0) in pa_alsa_sink_new()
2371 ss.rate = mapping->sample_spec.rate; in pa_alsa_sink_new()
2372 if (mapping->sample_spec.channels != 0) { in pa_alsa_sink_new()
2373 ss.channels = mapping->sample_spec.channels; in pa_alsa_sink_new()
2692 …= pa_smoother_2_new(SMOOTHER_WINDOW_USEC, pa_rtclock_now(), frame_size, u->sink->sample_spec.rate); in pa_alsa_sink_new()
2753 pa_cvolume_mute(&u->hardware_volume, u->sink->sample_spec.channels); in pa_alsa_sink_new()