Re: [Alsa-user] USB Synchronization w/ALSA via g_audio

2018-07-13 Thread Clemens Ladisch via Alsa-user
Rob wrote: > I am capturing data from my microphone, and transmitting it via > pcm_write() to the USB gadget card, and arecording on the USB host. > If I query the buffer, I begin to see a creeping fill on the device > side buffers, such that after a few hours of constant streaming, the > buffer

Re: [Alsa-user] Get triggered when the device opens

2018-07-13 Thread Frank Thomas via Alsa-user
Hello, just to finish this thread, a colleague of mine put me on the right track: timers. If you look at the alsa-lib timer example http://www.alsa-project.org/alsa-doc/alsa-lib/_2test_2timer_8c-example.html , you see the timer interface being used to register on master timer ticks. The read

Re: [Alsa-user] USB Synchronization w/ALSA via g_audio

2018-07-13 Thread Rob
Hi Chris, My goal is a low latency USB microphone that's always on; similar to an intercom system. I am capturing data from my microphone, and transmitting it via pcm_write() to the USB gadget card, and arecording on the USB host. If I query the buffer, I begin to see a creeping fill on the