On Mon, Jun 23, 2014 at 12:48 AM, [email protected] <[email protected]> wrote:
> On Sun, Jun 22, 2014 at 12:36 PM, Chen-Yu Tsai <[email protected]> wrote:
>> On Sun, Jun 22, 2014 at 11:48 PM, [email protected] <[email protected]> 
>> wrote:
>>> Why is the channel for TX one less than RX? In the manual both of the
>>> DRQs are 27.
>>
>> If you looked at the bindings in the patch, you would see that
>>
>>     <&dma 1 xx>
>>
>> specifies dedicated DMA, which indeed has separate channels for TX and RX.
>>
>
> I think I see my mistake. I am trying to put in NDMA numbers when it
> wants DDMA ones. When the first field is 1, it is dedicated DDMA.
>
> So for my audio codec I want this? When the first field is zero, then
> second field is NDMA?
>
> codec: codec@1c22c00 {

Add the leading zeros so the format's the same as the other nodes.

> #sound-dai-cells = <0>;
> compatible = "allwinner,sun7i-a20-codec";
> reg = <0x01C22c00 0x40>;
> interrupts = <0 30 4>;
> clocks = <&pll2>, <&apb0_gates 0>, <&codec_clk>;
> clock-names = "pll2", "apb", "codec";
> dmas = <&dma 0 19>, <&dma 0 19>;
> dma-names = "rx", "tx";
> };

That's correct.

May I ask how you plan on tying the platform and machine drivers?
"simple-audio-card"?


ChenYu

-- 
You received this message because you are subscribed to the Google Groups 
"linux-sunxi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to