mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-05 13:30:02 -05:00
alsa: put card name in udev monitor event
So that we can use it to construct a good name for the card. Fixes #524
This commit is contained in:
parent
bf25fc1388
commit
9b9b85ddbf
2 changed files with 12 additions and 2 deletions
|
|
@ -212,6 +212,8 @@ static struct node *alsa_create_node(struct device *device, uint32_t id,
|
|||
int i, priority;
|
||||
|
||||
pw_log_debug("new node %u", id);
|
||||
if (pw_log_level_enabled(SPA_LOG_LEVEL_DEBUG))
|
||||
spa_debug_dict(0, info->props);
|
||||
|
||||
if (strcmp(info->type, SPA_TYPE_INTERFACE_Node) != 0) {
|
||||
errno = EINVAL;
|
||||
|
|
@ -846,6 +848,8 @@ static struct device *alsa_create_device(struct impl *impl, uint32_t id,
|
|||
const char *str, *card, *rules;
|
||||
|
||||
pw_log_debug("new device %u", id);
|
||||
if (pw_log_level_enabled(SPA_LOG_LEVEL_DEBUG))
|
||||
spa_debug_dict(0, info->props);
|
||||
|
||||
if (strcmp(info->type, SPA_TYPE_INTERFACE_Device) != 0) {
|
||||
errno = EINVAL;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue