mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-02 09:01:50 -05:00
support: add dummy driver
Add a dummy driver node with high priority. All nodes not linked to a device node will be linked to this when they require a driver.
This commit is contained in:
parent
730c85e5b0
commit
2220d5b9b6
5 changed files with 401 additions and 0 deletions
|
|
@ -31,6 +31,7 @@ extern const struct spa_handle_factory spa_support_logger_factory;
|
|||
extern const struct spa_handle_factory spa_support_system_factory;
|
||||
extern const struct spa_handle_factory spa_support_cpu_factory;
|
||||
extern const struct spa_handle_factory spa_support_loop_factory;
|
||||
extern const struct spa_handle_factory spa_support_node_driver_factory;
|
||||
|
||||
SPA_EXPORT
|
||||
int spa_handle_factory_enum(const struct spa_handle_factory **factory, uint32_t *index)
|
||||
|
|
@ -51,6 +52,9 @@ int spa_handle_factory_enum(const struct spa_handle_factory **factory, uint32_t
|
|||
case 3:
|
||||
*factory = &spa_support_loop_factory;
|
||||
break;
|
||||
case 4:
|
||||
*factory = &spa_support_node_driver_factory;
|
||||
break;
|
||||
default:
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue