mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-03 09:01:54 -05:00
alsa: add media.class to device
This commit is contained in:
parent
3ae39180ca
commit
36cbb947f1
1 changed files with 10 additions and 1 deletions
|
|
@ -227,9 +227,18 @@ static int impl_set_param(struct spa_device *device,
|
||||||
return -ENOTSUP;
|
return -ENOTSUP;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static const struct spa_dict_item info_items[] = {
|
||||||
|
{ "media.class", "Audio/Device" },
|
||||||
|
};
|
||||||
|
|
||||||
|
static const struct spa_dict info = {
|
||||||
|
info_items,
|
||||||
|
SPA_N_ELEMENTS(info_items)
|
||||||
|
};
|
||||||
|
|
||||||
static const struct spa_device impl_device = {
|
static const struct spa_device impl_device = {
|
||||||
SPA_VERSION_DEVICE,
|
SPA_VERSION_DEVICE,
|
||||||
NULL,
|
&info,
|
||||||
impl_set_callbacks,
|
impl_set_callbacks,
|
||||||
impl_enum_params,
|
impl_enum_params,
|
||||||
impl_set_param,
|
impl_set_param,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue