mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-05 13:30:02 -05:00
alsa: rework monitor
Enumerate all playback and capture devices
This commit is contained in:
parent
22070ecbf8
commit
8594d28f59
4 changed files with 195 additions and 118 deletions
|
|
@ -346,10 +346,6 @@ do_allocation (PinosLink *this, SpaNodeState in_state, SpaNodeState out_state)
|
|||
asprintf (&error, "error get input port info: %d", res);
|
||||
goto error;
|
||||
}
|
||||
if (pinos_log_level_enabled (SPA_LOG_LEVEL_DEBUG)) {
|
||||
spa_debug_port_info (oinfo, this->core->type.map);
|
||||
spa_debug_port_info (iinfo, this->core->type.map);
|
||||
}
|
||||
|
||||
in_flags = iinfo->flags;
|
||||
out_flags = oinfo->flags;
|
||||
|
|
@ -388,8 +384,15 @@ do_allocation (PinosLink *this, SpaNodeState in_state, SpaNodeState out_state)
|
|||
} else if (out_state == SPA_NODE_STATE_READY && in_state > SPA_NODE_STATE_READY) {
|
||||
in_flags &= ~SPA_PORT_INFO_FLAG_CAN_USE_BUFFERS;
|
||||
out_flags &= ~SPA_PORT_INFO_FLAG_CAN_ALLOC_BUFFERS;
|
||||
} else
|
||||
} else {
|
||||
pinos_log_debug ("link %p: delay allocation, state %d %d", this, in_state, out_state);
|
||||
return SPA_RESULT_OK;
|
||||
}
|
||||
|
||||
if (pinos_log_level_enabled (SPA_LOG_LEVEL_DEBUG)) {
|
||||
spa_debug_port_info (oinfo, this->core->type.map);
|
||||
spa_debug_port_info (iinfo, this->core->type.map);
|
||||
}
|
||||
|
||||
if (impl->buffers == NULL) {
|
||||
SpaAllocParam *in_alloc, *out_alloc;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue