2017-05-18 03:44:27 +02:00
|
|
|
ASoC Simple SCU Sound Card
|
2015-03-26 05:01:27 +01:00
|
|
|
|
2017-05-18 03:44:27 +02:00
|
|
|
Simple SCU Sound Card is "Simple Sound Card" + "ALSA DPCM".
|
|
|
|
For example, you can use this driver if you want to exchange sampling rate convert,
|
|
|
|
Mixing, etc...
|
2015-03-26 05:01:27 +01:00
|
|
|
|
|
|
|
Required properties:
|
|
|
|
|
ASoC: rsrc-card: rename rsrc-card to simple-scu-card phase2
rsrc-card which is using DPCM feature was created for Renesas sound.
But not only Renesas, but many SoC can use this driver, because
it is based on simple-card driver.
To use it as more open driver, rsrc-card will be renamed to
simple-scu-card. In order to easy patch review, as 2nd step,
this patch adds new compatible "simple-scu-audio-card";
rcar-card used specific property, not "simple-audio-card",
but it should be now. Actually, rsrc-card is upstreamed driver,
but noone is using it on upstream. The user is only local,
and it is only me. Thus, there is no compatible break by this patch.
This patch uses "simple-audio-card" prefix.
And it removes rcar-card specifix compatible too.
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
2016-08-23 03:34:43 +02:00
|
|
|
- compatible : "simple-scu-audio-card"
|
|
|
|
"renesas,rsrc-card"
|
2015-03-26 05:01:27 +01:00
|
|
|
Optional properties:
|
|
|
|
|
2017-05-18 03:44:27 +02:00
|
|
|
- simple-audio-card,name : see simple-audio-card.txt
|
|
|
|
- simple-audio-card,cpu : see simple-audio-card.txt
|
|
|
|
- simple-audio-card,codec : see simple-audio-card.txt
|
2015-03-26 05:01:27 +01:00
|
|
|
|
|
|
|
Optional subnode properties:
|
|
|
|
|
2017-05-18 03:44:27 +02:00
|
|
|
- simple-audio-card,format : see simple-audio-card.txt
|
|
|
|
- simple-audio-card,frame-master : see simple-audio-card.txt
|
|
|
|
- simple-audio-card,bitclock-master : see simple-audio-card.txt
|
|
|
|
- simple-audio-card,bitclock-inversion : see simple-audio-card.txt
|
|
|
|
- simple-audio-card,frame-inversion : see simple-audio-card.txt
|
ASoC: rsrc-card: rename rsrc-card to simple-scu-card phase2
rsrc-card which is using DPCM feature was created for Renesas sound.
But not only Renesas, but many SoC can use this driver, because
it is based on simple-card driver.
To use it as more open driver, rsrc-card will be renamed to
simple-scu-card. In order to easy patch review, as 2nd step,
this patch adds new compatible "simple-scu-audio-card";
rcar-card used specific property, not "simple-audio-card",
but it should be now. Actually, rsrc-card is upstreamed driver,
but noone is using it on upstream. The user is only local,
and it is only me. Thus, there is no compatible break by this patch.
This patch uses "simple-audio-card" prefix.
And it removes rcar-card specifix compatible too.
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
2016-08-23 03:34:43 +02:00
|
|
|
- simple-audio-card,convert-rate : platform specified sampling rate convert
|
|
|
|
- simple-audio-card,convert-channels : platform specified converted channel size (2 - 8 ch)
|
2017-05-18 03:44:27 +02:00
|
|
|
- simple-audio-card,prefix : see routing
|
2017-08-11 16:12:19 +02:00
|
|
|
- simple-audio-card,widgets : Please refer to widgets.txt.
|
ASoC: rsrc-card: rename rsrc-card to simple-scu-card phase2
rsrc-card which is using DPCM feature was created for Renesas sound.
But not only Renesas, but many SoC can use this driver, because
it is based on simple-card driver.
To use it as more open driver, rsrc-card will be renamed to
simple-scu-card. In order to easy patch review, as 2nd step,
this patch adds new compatible "simple-scu-audio-card";
rcar-card used specific property, not "simple-audio-card",
but it should be now. Actually, rsrc-card is upstreamed driver,
but noone is using it on upstream. The user is only local,
and it is only me. Thus, there is no compatible break by this patch.
This patch uses "simple-audio-card" prefix.
And it removes rcar-card specifix compatible too.
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
2016-08-23 03:34:43 +02:00
|
|
|
- simple-audio-card,routing : A list of the connections between audio components.
|
2015-07-15 09:08:05 +02:00
|
|
|
Each entry is a pair of strings, the first being the connection's sink,
|
|
|
|
the second being the connection's source. Valid names for sources.
|
|
|
|
use audio-prefix if some components is using same sink/sources naming.
|
|
|
|
it can be used if compatible was "renesas,rsrc-card";
|
2015-03-26 05:01:27 +01:00
|
|
|
|
|
|
|
Required CPU/CODEC subnodes properties:
|
|
|
|
|
2017-05-18 03:44:27 +02:00
|
|
|
- sound-dai : see simple-audio-card.txt
|
2015-03-26 05:01:27 +01:00
|
|
|
|
|
|
|
Optional CPU/CODEC subnodes properties:
|
|
|
|
|
2017-05-18 03:44:27 +02:00
|
|
|
- clocks / system-clock-frequency : see simple-audio-card.txt
|
2015-03-26 05:01:27 +01:00
|
|
|
|
2017-06-06 04:35:43 +02:00
|
|
|
Example 1. Sampling Rate Conversion
|
2015-03-26 05:01:27 +01:00
|
|
|
|
|
|
|
sound {
|
ASoC: rsrc-card: rename rsrc-card to simple-scu-card phase2
rsrc-card which is using DPCM feature was created for Renesas sound.
But not only Renesas, but many SoC can use this driver, because
it is based on simple-card driver.
To use it as more open driver, rsrc-card will be renamed to
simple-scu-card. In order to easy patch review, as 2nd step,
this patch adds new compatible "simple-scu-audio-card";
rcar-card used specific property, not "simple-audio-card",
but it should be now. Actually, rsrc-card is upstreamed driver,
but noone is using it on upstream. The user is only local,
and it is only me. Thus, there is no compatible break by this patch.
This patch uses "simple-audio-card" prefix.
And it removes rcar-card specifix compatible too.
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
2016-08-23 03:34:43 +02:00
|
|
|
compatible = "simple-scu-audio-card";
|
2015-03-26 05:01:27 +01:00
|
|
|
|
ASoC: rsrc-card: rename rsrc-card to simple-scu-card phase2
rsrc-card which is using DPCM feature was created for Renesas sound.
But not only Renesas, but many SoC can use this driver, because
it is based on simple-card driver.
To use it as more open driver, rsrc-card will be renamed to
simple-scu-card. In order to easy patch review, as 2nd step,
this patch adds new compatible "simple-scu-audio-card";
rcar-card used specific property, not "simple-audio-card",
but it should be now. Actually, rsrc-card is upstreamed driver,
but noone is using it on upstream. The user is only local,
and it is only me. Thus, there is no compatible break by this patch.
This patch uses "simple-audio-card" prefix.
And it removes rcar-card specifix compatible too.
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
2016-08-23 03:34:43 +02:00
|
|
|
simple-audio-card,name = "rsnd-ak4643";
|
|
|
|
simple-audio-card,format = "left_j";
|
|
|
|
simple-audio-card,bitclock-master = <&sndcodec>;
|
|
|
|
simple-audio-card,frame-master = <&sndcodec>;
|
2015-03-26 05:01:27 +01:00
|
|
|
|
2017-05-18 03:44:27 +02:00
|
|
|
simple-audio-card,convert-rate = <48000>;
|
ASoC: rsrc-card: rename rsrc-card to simple-scu-card phase2
rsrc-card which is using DPCM feature was created for Renesas sound.
But not only Renesas, but many SoC can use this driver, because
it is based on simple-card driver.
To use it as more open driver, rsrc-card will be renamed to
simple-scu-card. In order to easy patch review, as 2nd step,
this patch adds new compatible "simple-scu-audio-card";
rcar-card used specific property, not "simple-audio-card",
but it should be now. Actually, rsrc-card is upstreamed driver,
but noone is using it on upstream. The user is only local,
and it is only me. Thus, there is no compatible break by this patch.
This patch uses "simple-audio-card" prefix.
And it removes rcar-card specifix compatible too.
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
2016-08-23 03:34:43 +02:00
|
|
|
|
|
|
|
simple-audio-card,prefix = "ak4642";
|
|
|
|
simple-audio-card,routing = "ak4642 Playback", "DAI0 Playback",
|
|
|
|
"DAI0 Capture", "ak4642 Capture";
|
|
|
|
|
|
|
|
sndcpu: simple-audio-card,cpu {
|
2015-03-26 05:01:27 +01:00
|
|
|
sound-dai = <&rcar_sound>;
|
|
|
|
};
|
|
|
|
|
ASoC: rsrc-card: rename rsrc-card to simple-scu-card phase2
rsrc-card which is using DPCM feature was created for Renesas sound.
But not only Renesas, but many SoC can use this driver, because
it is based on simple-card driver.
To use it as more open driver, rsrc-card will be renamed to
simple-scu-card. In order to easy patch review, as 2nd step,
this patch adds new compatible "simple-scu-audio-card";
rcar-card used specific property, not "simple-audio-card",
but it should be now. Actually, rsrc-card is upstreamed driver,
but noone is using it on upstream. The user is only local,
and it is only me. Thus, there is no compatible break by this patch.
This patch uses "simple-audio-card" prefix.
And it removes rcar-card specifix compatible too.
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
2016-08-23 03:34:43 +02:00
|
|
|
sndcodec: simple-audio-card,codec {
|
2015-03-26 05:01:27 +01:00
|
|
|
sound-dai = <&ak4643>;
|
|
|
|
system-clock-frequency = <11289600>;
|
|
|
|
};
|
|
|
|
};
|
2016-08-25 03:58:10 +02:00
|
|
|
|
2017-05-18 03:44:27 +02:00
|
|
|
Example 2. 2 CPU 1 Codec (Mixing)
|
2016-08-25 03:58:10 +02:00
|
|
|
|
|
|
|
sound {
|
2017-05-18 03:44:27 +02:00
|
|
|
compatible = "simple-scu-audio-card";
|
2016-08-25 03:58:10 +02:00
|
|
|
|
2017-05-18 03:44:27 +02:00
|
|
|
simple-audio-card,name = "rsnd-ak4643";
|
|
|
|
simple-audio-card,format = "left_j";
|
|
|
|
simple-audio-card,bitclock-master = <&dpcmcpu>;
|
|
|
|
simple-audio-card,frame-master = <&dpcmcpu>;
|
2016-08-25 03:58:10 +02:00
|
|
|
|
2017-05-18 03:44:27 +02:00
|
|
|
simple-audio-card,prefix = "ak4642";
|
|
|
|
simple-audio-card,routing = "ak4642 Playback", "DAI0 Playback",
|
2016-08-25 03:58:10 +02:00
|
|
|
"ak4642 Playback", "DAI1 Playback";
|
|
|
|
|
|
|
|
dpcmcpu: cpu@0 {
|
|
|
|
sound-dai = <&rcar_sound 0>;
|
|
|
|
};
|
|
|
|
|
|
|
|
cpu@1 {
|
|
|
|
sound-dai = <&rcar_sound 1>;
|
|
|
|
};
|
|
|
|
|
|
|
|
codec {
|
|
|
|
sound-dai = <&ak4643>;
|
|
|
|
clocks = <&audio_clock>;
|
|
|
|
};
|
|
|
|
};
|