ASoC: doc: ReSTize machine.txt
A simple conversion from a plain text file. Acked-by: Mark Brown <broonie@kernel.org> Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
d8a5d624cc
commit
d9641c9d63
|
@ -12,3 +12,4 @@ The documentation is spilt into the following sections:-
|
||||||
dai
|
dai
|
||||||
dapm
|
dapm
|
||||||
platform
|
platform
|
||||||
|
machine
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
===================
|
||||||
ASoC Machine Driver
|
ASoC Machine Driver
|
||||||
===================
|
===================
|
||||||
|
|
||||||
|
@ -9,9 +10,10 @@ interrupts, clocking, jacks and voltage regulators.
|
||||||
The machine driver can contain codec and platform specific code. It registers
|
The machine driver can contain codec and platform specific code. It registers
|
||||||
the audio subsystem with the kernel as a platform device and is represented by
|
the audio subsystem with the kernel as a platform device and is represented by
|
||||||
the following struct:-
|
the following struct:-
|
||||||
|
::
|
||||||
|
|
||||||
/* SoC machine */
|
/* SoC machine */
|
||||||
struct snd_soc_card {
|
struct snd_soc_card {
|
||||||
char *name;
|
char *name;
|
||||||
|
|
||||||
...
|
...
|
||||||
|
@ -33,7 +35,7 @@ struct snd_soc_card {
|
||||||
int num_links;
|
int num_links;
|
||||||
|
|
||||||
...
|
...
|
||||||
};
|
};
|
||||||
|
|
||||||
probe()/remove()
|
probe()/remove()
|
||||||
----------------
|
----------------
|
||||||
|
@ -55,9 +57,10 @@ initialisation e.g. the machine audio map can be connected to the codec audio
|
||||||
map, unconnected codec pins can be set as such.
|
map, unconnected codec pins can be set as such.
|
||||||
|
|
||||||
struct snd_soc_dai_link is used to set up each DAI in your machine. e.g.
|
struct snd_soc_dai_link is used to set up each DAI in your machine. e.g.
|
||||||
|
::
|
||||||
|
|
||||||
/* corgi digital audio interface glue - connects codec <--> CPU */
|
/* corgi digital audio interface glue - connects codec <--> CPU */
|
||||||
static struct snd_soc_dai_link corgi_dai = {
|
static struct snd_soc_dai_link corgi_dai = {
|
||||||
.name = "WM8731",
|
.name = "WM8731",
|
||||||
.stream_name = "WM8731",
|
.stream_name = "WM8731",
|
||||||
.cpu_dai_name = "pxa-is2-dai",
|
.cpu_dai_name = "pxa-is2-dai",
|
||||||
|
@ -66,16 +69,17 @@ static struct snd_soc_dai_link corgi_dai = {
|
||||||
.codec_name = "wm8713-codec.0-001a",
|
.codec_name = "wm8713-codec.0-001a",
|
||||||
.init = corgi_wm8731_init,
|
.init = corgi_wm8731_init,
|
||||||
.ops = &corgi_ops,
|
.ops = &corgi_ops,
|
||||||
};
|
};
|
||||||
|
|
||||||
struct snd_soc_card then sets up the machine with its DAIs. e.g.
|
struct snd_soc_card then sets up the machine with its DAIs. e.g.
|
||||||
|
::
|
||||||
|
|
||||||
/* corgi audio machine driver */
|
/* corgi audio machine driver */
|
||||||
static struct snd_soc_card snd_soc_corgi = {
|
static struct snd_soc_card snd_soc_corgi = {
|
||||||
.name = "Corgi",
|
.name = "Corgi",
|
||||||
.dai_link = &corgi_dai,
|
.dai_link = &corgi_dai,
|
||||||
.num_links = 1,
|
.num_links = 1,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
Machine Power Map
|
Machine Power Map
|
Loading…
Reference in New Issue