mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-02 09:01:50 -05:00
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:
parent
54f6834de4
commit
5383782336
5 changed files with 33 additions and 8 deletions
|
|
@ -123,8 +123,9 @@ struct spa_io_range {
|
|||
struct spa_io_clock {
|
||||
uint32_t flags; /**< clock flags */
|
||||
uint32_t id; /**< unique clock id, set by application */
|
||||
uint32_t api; /**< api of the clock */
|
||||
uint32_t clock_id; /**< api specific clock id */
|
||||
char name[64]; /**< clock name prefixed with API, set by node. The clock name
|
||||
* is unique per clock and can be used to check if nodes
|
||||
* share the same clock. */
|
||||
uint64_t nsec; /**< time in nanoseconds against monotonic clock */
|
||||
uint64_t count; /**< a media specific counter. Can be used to detect
|
||||
* gaps in the media. It usually represents the amount
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue