[alsa-devel] IMX31 Audio Driver issue
Hi,
I am using a imx31 based board from Garz & fricke. I need to configure the audio driver from the linux 2.6.23 BSP available. I configured the audio driver by selecting the SSI, ALSA & PMIC Audio options in the kernel configuration. The PMIC Audio card is listing /proc/asound/cards and all the necessary devices are created using the udev available on the rootfs.
I used the check_audio.out application available from IMX PDk BSP test programs. We are getting the following error. I am using the
/unit_tests/check_audio.out 0 /unit_tests/audio8k16S.wav
Hi... playing on /dev/sound/adsp (SSI1) Configuration : 16 8000 2 audio driver write error: Input/output error audio driver write error: Input/output error a
The program is not exiting. also tried with SSI2 as below
/unit_tests/check_audio.out 1 /unit_tests/audio8k16S.wav
Hi... playing on /dev/sound/dsp (SSI2) Configuration : 16 8000 2 audio driver write error: Input/output error audio driver write error: Input/output error
But the same hardware is working with WINCE without any issue. I feel there might be issues with drivers that i am using or may some configuration mismatch. Request your help in resolving the same. Request you to provide the troubleshooting steps so that issue can be resolved.
The applications used and the capture of the command execution is as attached.
Thanks & Regards Harish Kumar.B
Hi,
I am using a imx31 based board from Garz & fricke. I need to configure the audio driver from the linux 2.6.23 BSP available. I configured the audio driver by selecting the SSI, ALSA & PMIC Audio options in the kernel configuration. The PMIC Audio card is listing /proc/asound/cards and all the necessary devices are created using the udev available on the rootfs.
I used the check_audio.out application available from IMX PDk BSP test programs. We are getting the following error. I am using the
/unit_tests/check_audio.out 0 /unit_tests/audio8k16S.wav
Hi... playing on /dev/sound/adsp (SSI1) Configuration : 16 8000 2 audio driver write error: Input/output error audio driver write error: Input/output error a
The program is not exiting. also tried with SSI2 as below
/unit_tests/check_audio.out 1 /unit_tests/audio8k16S.wav
Hi... playing on /dev/sound/dsp (SSI2) Configuration : 16 8000 2 audio driver write error: Input/output error audio driver write error: Input/output error
But the same hardware is working with WINCE without any issue. I feel there might be issues with drivers that i am using or may some configuration mismatch. Request your help in resolving the same. Request you to provide the troubleshooting steps so that issue can be resolved.
The applications used and the capture of the command execution is as attached.
Thanks & Regards Harish Kumar.B
On Thu, Jun 25, 2009 at 02:22:14PM +0530, Harish Kumar wrote:
Hi... playing on /dev/sound/adsp (SSI1) Configuration : 16 8000 2 audio driver write error: Input/output error audio driver write error: Input/output error a
It looks like DMA is not happening. Probably the problem is that the system clocking is wrong, most likely as a result of the audio clocking being wrong. Check that you are seeing signals on the BCLK and LRCLK and that your audio mux setup is correct.
You're probably better off asking whoever provided the BSP to you for support, there is no i.MX31 audio support in standard Linux.
On Fri, Jun 26, 2009 at 3:16 PM, Mark Brown < broonie@opensource.wolfsonmicro.com> wrote:
On Thu, Jun 25, 2009 at 02:22:14PM +0530, Harish Kumar wrote:
Hi... playing on /dev/sound/adsp (SSI1) Configuration : 16 8000 2 audio driver write error: Input/output error audio driver write error: Input/output error a
It looks like DMA is not happening. Probably the problem is that the system clocking is wrong, most likely as a result of the audio clocking being wrong. Check that you are seeing signals on the BCLK and LRCLK and that your audio mux setup is correct.
You're probably better off asking whoever provided the BSP to you for support, there is no i.MX31 audio support in standard Linux.
Hi Harish,
check_audio.out was a test app to test the old OSS driver ( which by my guess is no longer maintained on that platform) or the *OSS emulation *mode supported by ALSA on i.mx31. Please check the clocks as Mark suggested. In most of the cases I tried using I.mx31, the app wouldn't exit in cases where
1. Clock to the PMIC was not supplied. 2. Clock to the SSI was not OK. 3. The AUDMUX ports are not correctly configured. 4. The PMIC chip's bias was not enabled .
The drivers seem to be loaded properly from your log. Do not look for "pmic_audio" under /dev coz it's only a hardware abstraction layer and is not registered as a char dev.
Thanks, Aditya
Alsa-devel mailing list Alsa-devel@alsa-project.org http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
On Thu, Jun 25, 2009 at 02:22:14PM +0530, Harish Kumar wrote:
I am using a imx31 based board from Garz & fricke. I need to configure the audio driver from the linux 2.6.23 BSP available. I configured the audio driver by selecting the SSI, ALSA & PMIC Audio options in the kernel configuration. The PMIC Audio card is listing /proc/asound/cards and all the necessary devices are created using the udev available on the rootfs.
The PMIC stuff for MX3 was not yet merged upstream, so what you got is probably some hackish pieces taken from any of Freescale's BSPs. Very hard to give any valuable hint, though.
Is anyone working on some clean and sane patches for this hardware?
Daniel
On Mon, Jun 29, 2009 at 05:47:06PM +0200, Daniel Mack wrote:
Is anyone working on some clean and sane patches for this hardware?
Freescale have some patches in the Ubuntu Jaunty kernel (2.6.28 based) which didn't look screamingly awful, at least not for the audio side. I got them building but didn't get round to kicking the SDMA code yet. Last I heard from the Ubuntu guys they were supposed to be trying to upstream but I've not seen any sign of that yet.
participants (4)
-
Aditya Shankar
-
Daniel Mack
-
Harish Kumar
-
Mark Brown