Hi, I want to enhance the iMX93 ADC driver to support DMA and an iio buffer, so it can sample several samples and put them into a buffer.Attached is my modified code. And I get the following error:[ 1.436577] imx93-adc 44530000.adc: error -EINVAL: Failed to register this iio device.[ 1.444518] imx93-adc: probe of 44530000.adc failed with error -22Any help?
#
Hey, did you ever get this working with continuous mode?
Hi @mdeneen Yes, I did
Hello @BaselHn
I hope you are doing very well.
Have you tried changing the line:
indio_dev->modes = INDIO_DIRECT_MODE; //| INDIO_BUFFER_TRIGGERED;
To:
indio_dev->modes = INDIO_DIRECT_MODE | INDIO_BUFFER_TRIGGERED;
Best regards,
Salas.
Hi @Manuel_Salas Sorry for the late response I was OOO.Yes and I managed at last to make the ADC to work with the DMA. The ADC now working with DMA.