freebsd-nq/sys/dev/sound/usb
Hans Petter Selasky 85bad58226 The synchronisation value returned by the so-called feedback endpoint
appears to be too inaccurate that it can be used to synchronize the
playback data stream. If there is a recording endpoint associated with
the playback endpoint, use that instead. That means if the isochronous
OUT endpoint is asynchronus the USB audio driver will automatically
start recording, if possible, to get exact information about the
needed sample rate adjustments. In no recording endpoint is present,
no rate adaption will be done.

While at it fix an issue where the hardware buffer pointers don't get
reset at the first device PCM trigger.

Make some variables 32-bit to avoid problems with multithreading.

MFC after:	3 days
PR: 		198444
2015-03-21 09:45:45 +00:00
..
uaudio_pcm.c The synchronisation value returned by the so-called feedback endpoint 2015-03-21 09:45:45 +00:00
uaudio.c The synchronisation value returned by the so-called feedback endpoint 2015-03-21 09:45:45 +00:00
uaudio.h The synchronisation value returned by the so-called feedback endpoint 2015-03-21 09:45:45 +00:00
uaudioreg.h Instead of creating the full range of possible ports, try to figure 2014-09-28 12:55:13 +00:00