[alsa-devel] Digital Audio Multiplexer of the i.MX27 processor
mc.aditya at gmail.com
Fri May 30 10:57:01 CEST 2008
On Tue, May 27, 2008 at 5:13 PM, Juergen Beisert <jbe at pengutronix.de> wrote:
> does anybody understand the DAM unit in the i.MX27 processor?
> This routing device drivers me crazy, as I do not understand how to route
> clocks, syncs and the data signals of my internal i2s unit to the
The DAM in the Freescale chip has 3 internal ports and 3 external ports.
The 3 internal ports connect to the on chip peripherals like the SSI. The
external ports can be configured to connect to the off-chip codecs or
The internal ports are wired to the SSI1 , SSI2 and the SAP while the
can be configured via the IOMUX settings to connect to the PMIC or
> All I can see is, when I enable the internal SSI unit in i2s mode, the DMA
> unit transfers some data into it, but the SSI unit does not shift it out.
> everything stops, the DMA timeouts and I cannot hear anything. I can see
> external device generates clock and frame signals, but it seems they do not
> reach the internal SSI unit.
When you configure the SSI in a slave mode, the PMIC
( or your external device)will drive the FS and the clock
required. If you are using the file mxc-alsa-pmic.c ,
then with SSI1 you will be mostly be connected Voice codec through
the DAM. Your configuration will
be SSI1 -> DAM port 1 -> DAM port 4 -> Codec( ext device)
You say that the clock and frame sync from the ext. device is generated.
SO can you check if the SSI is interrupting the DMA. If this does not
your app can time out. Also if the DAM external port is not configured
to connect to your external device, your app would time out.
This DAM port config is done through a gpio configuration with the function
gpio_ssi_active() in the file mx27_ads_gpio.c under arch/arm/mach-mx27
You can verify this as well.
Hope this helps.
> Has anybody a working DAM configuration which uses the internal SSI#1 as an
> i2s slave, an external i2s device connected to the SSI#1 pin group of this
> processor which acts as a master (I did not find anything in the manual,
> the relation between the internal so called port-1 to port-6 at the DAM
> and the 4 external SSI1...SSI4 pin groups are). Means the external i2s
> generates the clock and frame signal and the internal SSI#1 unit in i2s
> should use it to send serial sound data to the external device.
> Dipl.-Ing. Juergen Beisert | http://www.pengutronix.de
> Pengutronix - Linux Solutions for Science and Industry
> Handelsregister: Amtsgericht Hildesheim, HRA 2686
> Vertretung Sued/Muenchen, Germany
> Phone: +49-8766-939 228 | Fax: +49-5121-206917-9
> Alsa-devel mailing list
> Alsa-devel at alsa-project.org
More information about the Alsa-devel