LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 02-27-2024, 12:02 AM   #1
dhanraj_kmr
LQ Newbie
 
Registered: Feb 2024
Posts: 1

Rep: Reputation: 0
Reading I2S0 DMA data directly bypassing ALSA


I am exploring options to bypass the ALSA and directly read the I2S0 data in kernel space. I2S0 is connected to an external ADC. I want to read the I2S bus every 64 bytes and I don't want to miss any samples between reads. Something similar to I2C read, SPI read.

I see ALSA using this function to trigger DMA and callback. I'm not sure how to duplicate the necessary details for this function call if I want to hack these ALSA calls.

Code:
sound/core/pcm_dmaengine.c

desc = dmaengine_prep_dma_cyclic(chan,
                substream->runtime->dma_addr,
                snd_pcm_lib_buffer_bytes(substream),
                snd_pcm_lib_period_bytes(substream), direction, flags);

desc->callback = dmaengine_pcm_dma_complete;
        desc->callback_param = substream;
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
mount -oloop: writing goes directly to file bypassing the loop device leniviy Linux - Kernel 3 01-03-2015 07:48 AM
Hard Drive Problems: timeout waiting for DMA; error waiting for DMA mintee Linux - Hardware 10 09-21-2007 05:06 AM
Help! Xine is killing DMA, I can't make DMA stick! husten SUSE / openSUSE 5 02-27-2007 01:20 AM
DMA works but not by default (despite "use DMA by default" kernel) mehlkelm Linux - Hardware 7 04-11-2005 03:29 PM
Suse 8.2 change my DMA setting on my DVD-R drive to off & IDE DMA MODE NOT SHOWING IT maximalred Linux - General 0 08-23-2003 04:58 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 01:30 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration