![Freescale Semiconductor i.MX 6DualLite Reference Manual Download Page 184](http://html1.mh-extra.com/html/freescale-semiconductor/i-mx-6duallite/i-mx-6duallite_reference-manual_2330523184.webp)
25.4.1 ASoC Driver Source Architecture
File imx-pcm-dma-mx2.c is shared by the stereo ALSA SoC driver, the 7.1 ALSA SoC
driver and other CODEC driver. This file is responsible for preallocating DMA buffers
and managing DMA channels.
The stereo CODEC is connected to the CPU through the SSI interface. imx-ssi.c registers
the CPU DAI driver for the stereo ALSA SoC and configures the on-chip SSI interface.
wm8962.c registers the stereo CODEC and hifi DAI drivers. The direct hardware
operations on the stereo codec are in wm8962.c. imx-wm8962.c is the machine layer
code which creates the driver device and registers the stereo sound card.
The multi-channel codec is connected to the CPU through the ESAI interface. imx-esai.c
registers the CPU DAI driver for the stereo ALSA SoC and configures the on-chip ESAI
interface. cs42888.c registers the multi-channel CODEC and hifi DAI drivers. The direct
hardware operations on the multi-channel CODEC are in cs42888.c. imx-cs42888.c is the
machine layer code which creates the driver device and registers the stereo sound card.
The AM/FM CODEC is connected to the CPU through the SSI interface. imx-ssi.c
registers the CPU DAI driver for the stereo ALSA SoC and configures the on-chip SSI
interface. si4763.c registers the Tuner CODEC and Tuner DAI drivers. The direct
hardware operations on the CODEC are in si4763.c. imx-si4763.c is the machine layer
code which creates the driver device and registers the sound card.
The following table shows the stereo CODEC SoC driver source files. These files are
under the <ltib_dir>/rpm/BUILD/linux/sound/soc directory.
Table 25-1. Stereo Codec SoC Driver Files
File
Description
imx/imx-wm8962.c
Machine layer for stereo CODEC ALSA SoC
imx/imx-pcm-dma-mx2.c
Platform layer for stereo CODEC ALSA SoC
imx/imx-pcm.h
Header file for PCM driver and AUDMUX register definitions
imx/imx-ssi.c
Platform DAI link for stereo CODEC ALSA SoC
imx/imx-ssi.h
Header file for platform DAI link and SSI register definitions
codecs/wm8962.c
CODEC layer for stereo CODEC ALSA SoC
codecs/wm8962.h
Header file for stereo CODEC driver
The following table lists the AM/FM CODEC SoC driver source files. These files are
under the <ltib_dir>/rpm/BUILD/linux/sound/soc directory.
Software Operation
i.MX 6Solo/6DualLite Linux Reference Manual, Rev. L3.0.35_4.1.0, 09/2013
184
Freescale Semiconductor, Inc.