mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-12-21 08:56:56 -05:00
alsa: add device.profile.pro property
It is set to true when the node is using a pro audio profile.
This commit is contained in:
parent
289661b663
commit
3685081fd1
3 changed files with 7 additions and 0 deletions
|
|
@ -499,9 +499,13 @@ int spa_alsa_init(struct state *state, const struct spa_dict *info)
|
|||
{
|
||||
uint32_t i;
|
||||
int err;
|
||||
const char *str;
|
||||
|
||||
snd_config_update_free_global();
|
||||
|
||||
if ((str = spa_dict_lookup(info, "device.profile.pro")) != NULL)
|
||||
state->is_pro = spa_atob(str);
|
||||
|
||||
state->multi_rate = true;
|
||||
state->htimestamp = false;
|
||||
for (i = 0; info && i < info->n_items; i++) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue