Home
last modified time | relevance | path

Searched refs:suspend_cause (Results 1 - 24 of 24) sorted by relevance

/third_party/pulseaudio/src/pulsecore/
H A Dcard.c432 pa_suspend_cause_t suspend_cause; in pa_card_suspend() local
439 suspend_cause = c->suspend_cause; in pa_card_suspend()
442 suspend_cause |= cause; in pa_card_suspend()
444 suspend_cause &= ~cause; in pa_card_suspend()
446 if (c->suspend_cause != suspend_cause) { in pa_card_suspend()
448 c->suspend_cause = suspend_cause; in pa_card_suspend()
H A Dsource.c61 pa_suspend_cause_t suspend_cause; member
250 s->suspend_cause = data->suspend_cause; in pa_source_new()
361 static int source_set_state(pa_source *s, pa_source_state_t state, pa_suspend_cause_t suspend_cause) { in source_set_state() argument
374 suspend_cause_changed = suspend_cause != s->suspend_cause; in source_set_state()
382 /* If we are resuming, suspend_cause must be 0. */ in source_set_state()
383 pa_assert(!resuming || !suspend_cause); in source_set_state()
394 if ((ret = s->set_state_in_main_thread(s, state, suspend_cause)) < 0) { in source_set_state()
399 * suspend_cause t in source_set_state()
863 pa_suspend_cause_t suspend_cause; pa_source_sync_suspend() local
[all...]
H A Dsink.c70 pa_suspend_cause_t suspend_cause; member
264 s->suspend_cause = data->suspend_cause; in pa_sink_new()
410 static int sink_set_state(pa_sink *s, pa_sink_state_t state, pa_suspend_cause_t suspend_cause) { in sink_set_state() argument
423 suspend_cause_changed = suspend_cause != s->suspend_cause; in sink_set_state()
431 /* If we are resuming, suspend_cause must be 0. */ in sink_set_state()
432 pa_assert(!resuming || !suspend_cause); in sink_set_state()
443 if ((ret = s->set_state_in_main_thread(s, state, suspend_cause)) < 0) { in sink_set_state()
448 * suspend_cause t in sink_set_state()
[all...]
H A Dsource.h74 pa_suspend_cause_t suspend_cause; member
147 * the suspend_cause parameter set to 0.
149 * pa_source.state, pa_source.thread_info.state and pa_source.suspend_cause
152 int (*set_state_in_main_thread)(pa_source *s, pa_source_state_t state, pa_suspend_cause_t suspend_cause); /* may be NULL */
153 int (*set_state_in_io_thread)(pa_source *s, pa_source_state_t state, pa_suspend_cause_t suspend_cause); /* may be NULL */
304 pa_suspend_cause_t suspend_cause; member
H A Dsink.h73 pa_suspend_cause_t suspend_cause; member
146 * the suspend_cause parameter set to 0.
148 * pa_sink.state, pa_sink.thread_info.state and pa_sink.suspend_cause
151 int (*set_state_in_main_thread)(pa_sink *s, pa_sink_state_t state, pa_suspend_cause_t suspend_cause); /* may be NULL */
152 int (*set_state_in_io_thread)(pa_sink *s, pa_sink_state_t state, pa_suspend_cause_t suspend_cause); /* may be NULL */
370 pa_suspend_cause_t suspend_cause; member
H A Dcard.h88 pa_suspend_cause_t suspend_cause; member
H A Dcli-text.c242 pa_suspend_cause_to_string(sink->suspend_cause, suspend_cause_buf), in pa_sink_list_to_string()
353 pa_suspend_cause_to_string(source->suspend_cause, suspend_cause_buf), in pa_source_list_to_string()
/third_party/pulseaudio/src/modules/
H A Dmodule-suspend-on-idle.c68 if (d->sink && pa_sink_check_suspend(d->sink, NULL, NULL) <= 0 && !(d->sink->suspend_cause & PA_SUSPEND_IDLE)) { in timeout_cb()
74 if (d->source && pa_source_check_suspend(d->source, NULL) <= 0 && !(d->source->suspend_cause & PA_SUSPEND_IDLE)) { in timeout_cb()
H A Dmodule-virtual-source.c116 static int sink_set_state_in_main_thread_cb(pa_sink *s, pa_sink_state_t state, pa_suspend_cause_t suspend_cause) { in sink_set_state_in_main_thread_cb() argument
190 static int source_set_state_in_main_thread_cb(pa_source *s, pa_source_state_t state, pa_suspend_cause_t suspend_cause) { in source_set_state_in_main_thread_cb() argument
H A Dmodule-remap-sink.c106 static int sink_set_state_in_main_thread(pa_sink *s, pa_sink_state_t state, pa_suspend_cause_t suspend_cause) { in sink_set_state_in_main_thread() argument
H A Dmodule-remap-source.c114 static int source_set_state_in_main_thread_cb(pa_source *s, pa_source_state_t state, pa_suspend_cause_t suspend_cause) { in source_set_state_in_main_thread_cb() argument
H A Dmodule-virtual-sink.c118 static int sink_set_state_in_main_thread_cb(pa_sink *s, pa_sink_state_t state, pa_suspend_cause_t suspend_cause) { in sink_set_state_in_main_thread_cb() argument
H A Dmodule-loopback.c930 pa_sink_input_cork(u->sink_input, (dest->suspend_cause != PA_SUSPEND_IDLE)); in source_output_moving_cb()
1352 pa_source_output_cork(u->source_output, (dest->suspend_cause != PA_SUSPEND_IDLE)); in sink_input_moving_cb()
H A Dmodule-ladspa-sink.c386 static int sink_set_state_in_main_thread_cb(pa_sink *s, pa_sink_state_t state, pa_suspend_cause_t suspend_cause) { in sink_set_state_in_main_thread_cb() argument
723 if (i->sink->state != PA_SINK_SUSPENDED || i->sink->suspend_cause == PA_SUSPEND_IDLE) in sink_input_suspend_cb()
H A Dmodule-tunnel.c691 static int sink_set_state_in_main_thread_cb(pa_sink *s, pa_sink_state_t state, pa_suspend_cause_t suspend_cause) { in sink_set_state_in_main_thread_cb() argument
820 static int source_set_state_in_main_thread_cb(pa_source *s, pa_source_state_t state, pa_suspend_cause_t suspend_cause) { in source_set_state_in_main_thread_cb() argument
H A Dmodule-virtual-surround-sink.c293 static int sink_set_state_in_main_thread_cb(pa_sink *s, pa_sink_state_t state, pa_suspend_cause_t suspend_cause) { in sink_set_state_in_main_thread_cb() argument
H A Dmodule-combine-sink.c817 static int sink_set_state_in_main_thread_cb(pa_sink *sink, pa_sink_state_t state, pa_suspend_cause_t suspend_cause) { in sink_set_state_in_main_thread_cb() argument
H A Dmodule-equalizer-sink.c279 static int sink_set_state_in_main_thread_cb(pa_sink *s, pa_sink_state_t state, pa_suspend_cause_t suspend_cause) { in sink_set_state_in_main_thread_cb() argument
/third_party/pulseaudio/src/modules/bluetooth/
H A Dmodule-bluez5-device.c1035 data.suspend_cause = PA_SUSPEND_USER; in add_source()
1042 data.suspend_cause = PA_SUSPEND_USER; in add_source()
1273 data.suspend_cause = PA_SUSPEND_USER; in add_sink()
1280 data.suspend_cause = PA_SUSPEND_USER; in add_sink()
/third_party/pulseaudio/src/modules/alsa/
H A Dalsa-sink.c1383 && (s->suspend_cause & PA_SUSPEND_SESSION) in sink_set_state_in_main_thread_cb()
1411 && (s->suspend_cause & PA_SUSPEND_SESSION) in sink_set_state_in_io_thread_cb()
1473 if (u->sink->suspend_cause & PA_SUSPEND_SESSION) in ctl_mixer_callback()
1493 if (u->sink->suspend_cause & PA_SUSPEND_SESSION) in io_mixer_callback()
2840 * pa_sink_new_data.suspend_cause, but that has to be done before the in pa_alsa_sink_new()
H A Dalsa-source.c1257 && (s->suspend_cause & PA_SUSPEND_SESSION) in source_set_state_in_main_thread_cb()
1285 && (s->suspend_cause & PA_SUSPEND_SESSION) in source_set_state_in_io_thread_cb()
1347 if (u->source->suspend_cause & PA_SUSPEND_SESSION) in ctl_mixer_callback()
1367 if (u->source->suspend_cause & PA_SUSPEND_SESSION) in io_mixer_callback()
H A Dmodule-alsa-card.c397 if (u->card->suspend_cause & PA_SUSPEND_SESSION) in report_jack_state()
773 if (card->suspend_cause == 0) { in card_suspend_changed()
/third_party/pulseaudio/src/modules/macosx/
H A Dmodule-coreaudio-device.c357 static int ca_sink_set_state_in_main_thread(pa_sink *s, pa_sink_state_t state, pa_suspend_cause_t suspend_cause) { in ca_sink_set_state_in_main_thread() argument
515 static int ca_source_set_state_in_main_thread(pa_source *s, pa_source_state_t state, pa_suspend_cause_t suspend_cause) { in ca_source_set_state_in_main_thread() argument
/third_party/pulseaudio/src/modules/echo-cancel/
H A Dmodule-echo-cancel.c473 static int source_set_state_in_main_thread_cb(pa_source *s, pa_source_state_t state, pa_suspend_cause_t suspend_cause) { in source_set_state_in_main_thread_cb() argument
498 static int sink_set_state_in_main_thread_cb(pa_sink *s, pa_sink_state_t state, pa_suspend_cause_t suspend_cause) { in sink_set_state_in_main_thread_cb() argument

Completed in 48 milliseconds