Lines Matching refs:state

400      * internal state, e.g. encoder is waiting for more samples so it can
642 if (u->transport->state == PA_BLUETOOTH_TRANSPORT_STATE_IDLE) {
667 /* Set transport state to idle if this was not already done by the remote end closing
669 if (pa_thread_mq_get() != NULL && u->transport->state == PA_BLUETOOTH_TRANSPORT_STATE_PLAYING)
888 if (!PA_SOURCE_IS_OPENED(s->thread_info.state))
892 if (!u->sink || u->sink->state == PA_SINK_SUSPENDED)
905 if (s->thread_info.state != PA_SOURCE_SUSPENDED)
909 if (!u->sink || !PA_SINK_IS_OPENED(u->sink->thread_info.state))
1131 if (!PA_SINK_IS_OPENED(s->thread_info.state))
1135 if (!u->source || u->source->state == PA_SOURCE_SUSPENDED)
1145 if (s->thread_info.state != PA_SINK_SUSPENDED)
1149 if (!u->source || !PA_SOURCE_IS_OPENED(u->source->thread_info.state))
1369 if (!t || t->state <= PA_BLUETOOTH_TRANSPORT_STATE_DISCONNECTED) {
1456 bool have_source = u->source ? PA_SOURCE_IS_LINKED(u->source->thread_info.state) : false;
1457 bool have_sink = u->sink ? PA_SINK_IS_LINKED(u->sink->thread_info.state) : false;
1767 * is not available or still in UNLINKED state; check it again here to know if
1895 switch(transport->state) {
1914 static pa_available_t transport_state_to_availability(pa_bluetooth_transport_state_t state) {
1915 switch (state) {
2124 cp->available = transport_state_to_availability(u->device->transports[*p]->state);
2145 if (!d->transports[*p] || d->transports[*p]->state <= PA_BLUETOOTH_TRANSPORT_STATE_DISCONNECTED) {
2201 void *state;
2238 PA_HASHMAP_FOREACH(uuid, d->uuids, state) {
2301 * If codec switching is in progress, transport state change should not
2305 pa_card_profile_set_available(cp, transport_state_to_availability(t->state));
2314 acquire = (t->state == PA_BLUETOOTH_TRANSPORT_STATE_PLAYING && u->profile == t->profile);
2315 release = (oldavail != PA_AVAILABLE_NO && t->state != PA_BLUETOOTH_TRANSPORT_STATE_PLAYING && u->profile == t->profile);
2319 pa_log_debug("Resuming source %s because its transport state changed to playing", u->source->name);
2322 * state of source or sink may already be RUNNING before the transport is acquired via
2324 * state change message. In this case we explicitly need to signal the I/O thread to
2326 if (PA_SOURCE_IS_OPENED(u->source->state))
2340 pa_log_debug("Resuming sink %s because its transport state changed to playing", u->sink->name);
2343 if (PA_SINK_IS_OPENED(u->sink->state))
2408 if (t == u->transport && t->state <= PA_BLUETOOTH_TRANSPORT_STATE_DISCONNECTED)
2514 void *state;
2525 PA_HASHMAP_FOREACH_KV(key, a2dp_capabilities, a2dp_endpoints, state) {
2663 * depending on the state of transport and port availability.
2714 if (u->transport->state > PA_BLUETOOTH_TRANSPORT_STATE_IDLE)
2720 * correctly, the call below will have no effect because the transport state is
2722 * state should not be changed. If the transport has been released for other reasons