aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation
diff options
context:
space:
mode:
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>2015-03-26 00:01:27 -0400
committerMark Brown <broonie@kernel.org>2015-03-27 18:58:20 -0400
commit415f1cb29d3be865b034b528058c7115bc262f43 (patch)
treec7a3bc6d6afb50daa7afaad03eabe863eea9807d /Documentation
parent2f4b1e6bb25899e7d21e1764abcfb23f14250535 (diff)
ASoC: rsrc-card: add Renesas sampling rate convert sound card support
Renesas sound card has "sampling rate convert" feature which should be implemented via DPCM. But, sound card driver point of view, it is difficult to add this DPCM feature on simple-card driver. Especially, DT binding support is very difficult. This patch implements DPCM feature on DT as Renesas specific sound card. This new driver is copied from current simple-card driver. Main difference between simple-card and this driver are... 1. removed unused feature from simple-card 2. removed driver named prefix from DT property 3. CPU will be FE, CODEC will be BE with snd-soc-dummy 4. it supports sampling rate convert via .be_hw_params_fixup 5. board specific routing is implemented in driver Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/devicetree/bindings/sound/renesas,rsrc-card.txt66
1 files changed, 66 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/sound/renesas,rsrc-card.txt b/Documentation/devicetree/bindings/sound/renesas,rsrc-card.txt
new file mode 100644
index 000000000000..12e287ed4dce
--- /dev/null
+++ b/Documentation/devicetree/bindings/sound/renesas,rsrc-card.txt
@@ -0,0 +1,66 @@
1Renesas Sampling Rate Convert Sound Card:
2
3Renesas Sampling Rate Convert Sound Card specifies audio DAI connections of SoC <-> codec.
4
5Required properties:
6
7- compatible : "renesas,rsrc-card,<board>"
8 Examples with soctypes are:
9 - "renesas,rsrc-card,lager"
10 - "renesas,rsrc-card,koelsch"
11Optional properties:
12
13- card_name : User specified audio sound card name, one string
14 property.
15- cpu : CPU sub-node
16- codec : CODEC sub-node
17
18Optional subnode properties:
19
20- format : CPU/CODEC common audio format.
21 "i2s", "right_j", "left_j" , "dsp_a"
22 "dsp_b", "ac97", "pdm", "msb", "lsb"
23- frame-master : Indicates dai-link frame master.
24 phandle to a cpu or codec subnode.
25- bitclock-master : Indicates dai-link bit clock master.
26 phandle to a cpu or codec subnode.
27- bitclock-inversion : bool property. Add this if the
28 dai-link uses bit clock inversion.
29- frame-inversion : bool property. Add this if the
30 dai-link uses frame clock inversion.
31
32Required CPU/CODEC subnodes properties:
33
34- sound-dai : phandle and port of CPU/CODEC
35
36Optional CPU/CODEC subnodes properties:
37
38- clocks / system-clock-frequency : specify subnode's clock if needed.
39 it can be specified via "clocks" if system has
40 clock node (= common clock), or "system-clock-frequency"
41 (if system doens't support common clock)
42 If a clock is specified, it is
43 enabled with clk_prepare_enable()
44 in dai startup() and disabled with
45 clk_disable_unprepare() in dai
46 shutdown().
47
48Example
49
50sound {
51 compatible = "renesas,rsrc-card,lager";
52
53 card-name = "rsnd-ak4643";
54 format = "left_j";
55 bitclock-master = <&sndcodec>;
56 frame-master = <&sndcodec>;
57
58 sndcpu: cpu {
59 sound-dai = <&rcar_sound>;
60 };
61
62 sndcodec: codec {
63 sound-dai = <&ak4643>;
64 system-clock-frequency = <11289600>;
65 };
66};