Author: hselasky Date: Tue Mar 24 09:21:53 2015 New Revision: 280429 URL: https://svnweb.freebsd.org/changeset/base/280429
Log: Use the feedback value from the synchronization endpoint as fallback when there is no recording channel. MFC after: 3 days PR: 198444 Modified: head/sys/dev/sound/usb/uaudio.c Modified: head/sys/dev/sound/usb/uaudio.c ============================================================================== --- head/sys/dev/sound/usb/uaudio.c Tue Mar 24 08:27:01 2015 (r280428) +++ head/sys/dev/sound/usb/uaudio.c Tue Mar 24 09:21:53 2015 (r280429) @@ -2026,6 +2026,13 @@ uaudio_chan_play_sync_callback(struct us 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; _______________________________________________ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"