port: use right properties

Use format.dsp as a key to mark the dsp format on a port
Use audio.channel as the key to set the audio channel on a port
This commit is contained in:
Wim Taymans 2019-05-24 16:14:19 +02:00
parent 3ad73f0532
commit a680f434d2
7 changed files with 8 additions and 9 deletions

View file

@ -202,7 +202,7 @@ static void node_port_init(void *data, struct pw_port *port)
else
prefix = "capture";
if ((str = pw_properties_get(old, PW_KEY_PORT_CHANNEL)) == NULL ||
if ((str = pw_properties_get(old, PW_KEY_AUDIO_CHANNEL)) == NULL ||
strcmp(str, "UNK") == 0) {
snprintf(position, 7, "%d", port->port_id);
str = position;