[Alsa-user] Clock Drift between hardware sound card and snd_aloop

2017-07-11 Thread Rob Nertney
Hi all, I have successfully built a sound capture card that runs at a given rate off its own clock. I receive the stream and do some post-processing on it, and I want to present this modified data to the user as a capture pcm. I initially thought that snd_aloop would be the best idea, as I can

[Alsa-user] Stale data interleaved in capture driver

2016-07-31 Thread Rob Nertney
My DMA is configured with a debug mode in which it sends an a simple increasing counter value in the format I wish to receive: an IRQ every 32Bytes (half-frame). it transfers 32KBytes of data, and then restarts from it's original offset. This is tested in bare-metal mode as working. I wrote my

Re: [Alsa-user] [alsa-devel] Verification of settings

2016-07-11 Thread Rob Nertney
that arecord has consumed the data in dma_area, such that the user can rewrite to it? On Mon, Jul 11, 2016 at 12:33 PM, Rob Nertney <r...@rob-otics.com> wrote: > Thanks Lars. > > My problem with the DMA is that it doesn't support cyclic mode, but does > support SG mode. I ha

Re: [Alsa-user] [alsa-devel] Verification of settings

2016-07-11 Thread Rob Nertney
. On Mon, Jul 11, 2016 at 12:29 PM, Lars-Peter Clausen <l...@metafoo.de> wrote: > On 07/11/2016 09:10 PM, Rob Nertney wrote: > > Hi all, > > > > Could I please get a sanity check on my hw_params? > > > > I have a DMA which is providing between 1-16 channels of

[Alsa-user] Verification of settings

2016-07-11 Thread Rob Nertney
Hi all, Could I please get a sanity check on my hw_params? I have a DMA which is providing between 1-16 channels of 4 bytes/ch worth of data as a frame. I get an interrupt to my driver every frame's worth of data (64 Bytes). The data is S32_LE, 16000Hz. My DMA has 2 buffers, PING and PONG. Each

[Alsa-user] Custom card returns "arecord: main:722: audio open error: Invalid argument"

2016-05-27 Thread Rob Nertney
I've build a card that is registered correctly as far as I can tell. My hardware is: static struct snd_pcm_hardware my_pcm_hw = { .info = (SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_BLOCK_TRANSFER | SNDRV_PCM_INFO_MMAP_VALID), .formats = SNDRV_PCM_FMTBIT_U8, .rates

Re: [Alsa-user] How do I run arecord on raw digital mic buffer?

2016-05-03 Thread Rob Nertney
nsferred before I fire an IRQ. It uses a circular buffer descriptor ring. >(And development questions belong on the alsa-devel list.) I just requested access to that list, but haven't received approval yet. Thanks again for all the help! Rob On Tue, May 3, 2016 at 1:50 AM, Clemens Ladisch &