[alsa-devel] ASoC: Device tree binding to dummy codec

Mark Brown broonie at kernel.org
Mon Jul 28 18:27:15 CEST 2014


On Mon, Jul 28, 2014 at 09:49:27AM -0400, jonsmirl at gmail.com wrote:

> codec: codec at 01c22c00 {
>    compatible = "allwinner,sun7i-a20-codec";
>    reg = <0x01c22c00 0x40>;
>    interrupts = <0 30 4>;
>    clocks = <&pll2 0>, <&apb0_gates 0>, <&codec_clk>;
>    clock-names = "pll", "apb", "codec";
>    dmas = <&dma 0 19>, <&dma 0 19>;
>    dma-names = "rx", "tx";
>    widgets = "Mic1 Jack", "Headphone Jack";
>    external-amp = <&max9768>
>    status = "okay";
> };

> If external amp is missing I just bind to my internal dummy-codec.

No, the CODEC that's in the device should be there all the time - it's
just the same as connecting an external amp to any other device,
describe the hardware in the SoC the same way all the time and then
connect any attached devices to it.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://mailman.alsa-project.org/pipermail/alsa-devel/attachments/20140728/bcd29317/attachment.sig>


More information about the Alsa-devel mailing list