alsa: update the clock name when we can

Update the clock name as soon as we get a io_clock. This way we can use
it to compare the clock name against the driver right away.
This commit is contained in:
Wim Taymans 2023-09-14 17:15:06 +02:00
parent 354ee6fd96
commit 4ffa7860bc
3 changed files with 17 additions and 13 deletions

View file

@ -235,6 +235,8 @@ static int impl_node_set_io(void *object, uint32_t id, void *data, size_t size)
this->clock = data;
break;
case SPA_IO_Position:
if (size > 0 && size < sizeof(struct spa_io_position))
return -EINVAL;
this->position = data;
break;
default: