alsa: improve device name construction

Get the ucm prefix only once, when we open the UCM card and then
use it for all devices using the card.

Construct the device name right before we open it with the ucm prefix
and possibly the AES flags instead of messing with the property.
This commit is contained in:
Wim Taymans 2021-09-02 12:33:44 +02:00
parent 9052b1be33
commit 99e6c77525
2 changed files with 27 additions and 26 deletions

View file

@ -205,7 +205,7 @@ struct state {
struct spa_latency_info latency[2];
struct spa_process_latency_info process_latency;
uint32_t ucm_prefix_len;
const char *ucm_prefix;
};
int