alsa: Disable rate matching for the same card

Add a clock name to the clock, remove the old api/clock_id. This makes
it easier to add descriptive names

Place the alsa card number in the clock name.

Check the clock name of the master clock and if it matches our own
clock, disable rate matching.
This commit is contained in:
Wim Taymans 2019-10-23 16:04:03 +02:00
parent 54f6834de4
commit 5383782336
5 changed files with 33 additions and 8 deletions

View file

@ -44,7 +44,7 @@ static void test_io_abi(void)
spa_assert(sizeof(struct spa_io_buffers) == 8);
spa_assert(sizeof(struct spa_io_memory) == 16);
spa_assert(sizeof(struct spa_io_range) == 16);
spa_assert(sizeof(struct spa_io_clock) == 80);
spa_assert(sizeof(struct spa_io_clock) == 136);
spa_assert(sizeof(struct spa_io_latency) == 24);
spa_assert(sizeof(struct spa_io_sequence) == 16);
spa_assert(sizeof(struct spa_io_segment_bar) == 96);
@ -56,7 +56,7 @@ static void test_io_abi(void)
spa_assert(SPA_IO_POSITION_STATE_STARTING == 1);
spa_assert(SPA_IO_POSITION_STATE_RUNNING == 2);
spa_assert(sizeof(struct spa_io_position) == 1952);
spa_assert(sizeof(struct spa_io_position) == 2008);
spa_assert(sizeof(struct spa_io_rate_match) == 48);
}