mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Use the feedback value from the synchronization endpoint as fallback
when there is no recording channel. MFC after: 3 days PR: 198444
This commit is contained in:
parent
74d26aa76b
commit
87087b85a7
1 changed files with 7 additions and 0 deletions
|
|
@ -2026,6 +2026,13 @@ uaudio_chan_play_sync_callback(struct usb_xfer *xfer, usb_error_t error)
|
|||
DPRINTF("Comparing %d Hz :: %d Hz\n",
|
||||
(int)temp, (int)sample_rate);
|
||||
|
||||
/*
|
||||
* Use feedback value as fallback when there is no
|
||||
* recording channel:
|
||||
*/
|
||||
if (ch->priv_sc->sc_rec_chan.num_alt == 0)
|
||||
ch->jitter_curr = temp - sample_rate;
|
||||
|
||||
ch->feedback_rate = temp;
|
||||
break;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue