Lines Matching defs:spec
96 void pa_sink_new_data_set_sample_spec(pa_sink_new_data *data, const pa_sample_spec *spec) {
99 if ((data->sample_spec_is_set = !!spec))
100 data->sample_spec = *spec;
366 pa_log_info("Created sink %u \"%s\" with sample spec %s and channel map %s\n %s",
1482 void pa_sink_reconfigure(pa_sink *s, pa_sample_spec *spec, bool passthrough) {
1492 if (pa_sample_spec_equal(spec, &s->sample_spec))
1504 pa_log_info("Cannot update sample spec, SINK_IS_RUNNING, will keep using %s and %u Hz",
1511 pa_log_info("Cannot update sample spec, monitor source is RUNNING");
1516 if (PA_UNLIKELY(!pa_sample_spec_valid(spec)))
1523 desired_spec.format = spec->format;
1524 desired_spec.rate = spec->rate;
1528 if (spec->rate >= default_rate || spec->rate >= alternate_rate)
1529 desired_spec.rate = spec->rate;
1530 desired_spec.format = spec->format;
1532 } else if (default_rate == spec->rate || alternate_rate == spec->rate) {
1534 desired_spec.rate = spec->rate;
1538 if (desired_spec.rate != spec->rate) {
1540 if (default_rate % 11025 == 0 && spec->rate % 11025 == 0)
1542 if (default_rate % 4000 == 0 && spec->rate % 4000 == 0)
1544 if (alternate_rate % 11025 == 0 && spec->rate % 11025 == 0)
1546 if (alternate_rate % 4000 == 0 && spec->rate % 4000 == 0)
2622 /* Get rewind limit in sink sample spec from sink inputs */
3555 * The following icons are not part of the icon naming spec,
3556 * because Rodney Dawes sucks as the maintainer of that spec.