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 is

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

2018-07-12 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 devic

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

2018-07-12 Thread chris hermansen
Rob and list, On Thu, Jul 12, 2018, 19:27 Rob wrote: > Hi all, > > I'm reading about the feedback mechanism for USB audio. I'm trying to see > if I can implement asynchronous mode. > What makes you think asynchronous mode isn't already implemented? Chris Hermansen -

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

2018-07-12 Thread Rob
Hi all, I'm reading about the feedback mechanism for USB audio. I'm trying to see if I can implement asynchronous mode. Basically I am feeding the USB gadget with PCM writes at a fixed rate, but I am very slowly filling the buffer out to the sink on the other end. Eventually, the buffer fills, a