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:
Wim Taymans 2023-08-28 10:06:29 +02:00
parent 289661b663
commit 3685081fd1
3 changed files with 7 additions and 0 deletions

View file

@ -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++) {