mirror of
https://github.com/torvalds/linux.git
synced 2024-12-26 12:52:30 +00:00
50760cad9d
Add AC'97 support to fsl-asoc-card using generic ASoC AC'97 CODEC. The SSI controller will silently enable any TX AC'97 slots that have their bits set in SLOTREQ received from CODEC and then will redirect some of playback samples there. That's why it is important to make sure that any of CODEC playback slots that can pull samples are set to slots 3/4 (standard PCM playback slots). Currently, this applies to S/PDIF slots as they were seen to pull samples sometimes even with S/PDIF output being disabled. Signed-off-by: Maciej Szmigiero <mail@maciej.szmigiero.name> Signed-off-by: Mark Brown <broonie@kernel.org>
85 lines
2.7 KiB
Plaintext
85 lines
2.7 KiB
Plaintext
Freescale Generic ASoC Sound Card with ASRC support
|
|
|
|
The Freescale Generic ASoC Sound Card can be used, ideally, for all Freescale
|
|
SoCs connecting with external CODECs.
|
|
|
|
The idea of this generic sound card is a bit like ASoC Simple Card. However,
|
|
for Freescale SoCs (especially those released in recent years), most of them
|
|
have ASRC (Documentation/devicetree/bindings/sound/fsl,asrc.txt) inside. And
|
|
this is a specific feature that might be painstakingly controlled and merged
|
|
into the Simple Card.
|
|
|
|
So having this generic sound card allows all Freescale SoC users to benefit
|
|
from the simplification of a new card support and the capability of the wide
|
|
sample rates support through ASRC.
|
|
|
|
Note: The card is initially designed for those sound cards who use AC'97, I2S
|
|
and PCM DAI formats. However, it'll be also possible to support those non
|
|
AC'97/I2S/PCM type sound cards, such as S/PDIF audio and HDMI audio, as
|
|
long as the driver has been properly upgraded.
|
|
|
|
|
|
The compatible list for this generic sound card currently:
|
|
"fsl,imx-audio-ac97"
|
|
|
|
"fsl,imx-audio-cs42888"
|
|
|
|
"fsl,imx-audio-wm8962"
|
|
(compatible with Documentation/devicetree/bindings/sound/imx-audio-wm8962.txt)
|
|
|
|
"fsl,imx-audio-sgtl5000"
|
|
(compatible with Documentation/devicetree/bindings/sound/imx-audio-sgtl5000.txt)
|
|
|
|
Required properties:
|
|
|
|
- compatible : Contains one of entries in the compatible list.
|
|
|
|
- model : The user-visible name of this sound complex
|
|
|
|
- audio-cpu : The phandle of an CPU DAI controller
|
|
|
|
- audio-codec : The phandle of an audio codec
|
|
|
|
- audio-routing : A list of the connections between audio components.
|
|
Each entry is a pair of strings, the first being the
|
|
connection's sink, the second being the connection's
|
|
source. There're a few pre-designed board connectors:
|
|
* Line Out Jack
|
|
* Line In Jack
|
|
* Headphone Jack
|
|
* Mic Jack
|
|
* Ext Spk
|
|
* AMIC (stands for Analog Microphone Jack)
|
|
* DMIC (stands for Digital Microphone Jack)
|
|
|
|
Note: The "Mic Jack" and "AMIC" are redundant while
|
|
coexsiting in order to support the old bindings
|
|
of wm8962 and sgtl5000.
|
|
|
|
Optional properties:
|
|
|
|
- audio-asrc : The phandle of ASRC. It can be absent if there's no
|
|
need to add ASRC support via DPCM.
|
|
|
|
Example:
|
|
sound-cs42888 {
|
|
compatible = "fsl,imx-audio-cs42888";
|
|
model = "cs42888-audio";
|
|
audio-cpu = <&esai>;
|
|
audio-asrc = <&asrc>;
|
|
audio-codec = <&cs42888>;
|
|
audio-routing =
|
|
"Line Out Jack", "AOUT1L",
|
|
"Line Out Jack", "AOUT1R",
|
|
"Line Out Jack", "AOUT2L",
|
|
"Line Out Jack", "AOUT2R",
|
|
"Line Out Jack", "AOUT3L",
|
|
"Line Out Jack", "AOUT3R",
|
|
"Line Out Jack", "AOUT4L",
|
|
"Line Out Jack", "AOUT4R",
|
|
"AIN1L", "Line In Jack",
|
|
"AIN1R", "Line In Jack",
|
|
"AIN2L", "Line In Jack",
|
|
"AIN2R", "Line In Jack";
|
|
};
|