1ASoC Simple SCU Sound Card 2 3Simple SCU Sound Card is "Simple Sound Card" + "ALSA DPCM". 4For example, you can use this driver if you want to exchange sampling rate convert, 5Mixing, etc... 6 7Required properties: 8 9- compatible : "simple-scu-audio-card" 10 "renesas,rsrc-card" 11Optional properties: 12 13- simple-audio-card,name : see simple-audio-card.txt 14- simple-audio-card,cpu : see simple-audio-card.txt 15- simple-audio-card,codec : see simple-audio-card.txt 16 17Optional subnode properties: 18 19- simple-audio-card,format : see simple-audio-card.txt 20- simple-audio-card,frame-master : see simple-audio-card.txt 21- simple-audio-card,bitclock-master : see simple-audio-card.txt 22- simple-audio-card,bitclock-inversion : see simple-audio-card.txt 23- simple-audio-card,frame-inversion : see simple-audio-card.txt 24- simple-audio-card,convert-rate : platform specified sampling rate convert 25- simple-audio-card,convert-channels : platform specified converted channel size (2 - 8 ch) 26- simple-audio-card,prefix : see routing 27- simple-audio-card,widgets : Please refer to widgets.txt. 28- simple-audio-card,routing : A list of the connections between audio components. 29 Each entry is a pair of strings, the first being the connection's sink, 30 the second being the connection's source. Valid names for sources. 31 use audio-prefix if some components is using same sink/sources naming. 32 it can be used if compatible was "renesas,rsrc-card"; 33 34Required CPU/CODEC subnodes properties: 35 36- sound-dai : see simple-audio-card.txt 37 38Optional CPU/CODEC subnodes properties: 39 40- clocks / system-clock-frequency : see simple-audio-card.txt 41 42Example 1. Sampling Rate Conversion 43 44sound { 45 compatible = "simple-scu-audio-card"; 46 47 simple-audio-card,name = "rsnd-ak4643"; 48 simple-audio-card,format = "left_j"; 49 simple-audio-card,bitclock-master = <&sndcodec>; 50 simple-audio-card,frame-master = <&sndcodec>; 51 52 simple-audio-card,convert-rate = <48000>; 53 54 simple-audio-card,prefix = "ak4642"; 55 simple-audio-card,routing = "ak4642 Playback", "DAI0 Playback", 56 "DAI0 Capture", "ak4642 Capture"; 57 58 sndcpu: simple-audio-card,cpu { 59 sound-dai = <&rcar_sound>; 60 }; 61 62 sndcodec: simple-audio-card,codec { 63 sound-dai = <&ak4643>; 64 system-clock-frequency = <11289600>; 65 }; 66}; 67 68Example 2. 2 CPU 1 Codec (Mixing) 69 70sound { 71 compatible = "simple-scu-audio-card"; 72 73 simple-audio-card,name = "rsnd-ak4643"; 74 simple-audio-card,format = "left_j"; 75 simple-audio-card,bitclock-master = <&dpcmcpu>; 76 simple-audio-card,frame-master = <&dpcmcpu>; 77 78 simple-audio-card,prefix = "ak4642"; 79 simple-audio-card,routing = "ak4642 Playback", "DAI0 Playback", 80 "ak4642 Playback", "DAI1 Playback"; 81 82 dpcmcpu: cpu@0 { 83 sound-dai = <&rcar_sound 0>; 84 }; 85 86 cpu@1 { 87 sound-dai = <&rcar_sound 1>; 88 }; 89 90 codec { 91 sound-dai = <&ak4643>; 92 clocks = <&audio_clock>; 93 }; 94}; 95