Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


What I2S DAC uses left justified format?
#13
generic-lj device tree description has an spdif part in it. Could it have some impact on reducing word length to 24 bits?
It is my first time working with overlays so I don't quite get all the details of the description.


Code:
/*
* Audio Graph Card overlay for generic DAC in left-justified mode
*
* compile with:
* dtc -@ -H epapr -O dtb -o generic-lj.dtbo -Wno-unit_address_vs_reg generic-lj.dts
*
*/
/dts-v1/;
/plugin/;

/ {
    fragment@0 {
        target = <&i2s>;
        __overlay__ {
            #sound-dai-cells = <0>;
            status = "okay";

            cpu_port: port {
                cpu_endpoint: endpoint {
                    remote-endpoint = <&codec_endpoint>;
                    dai-format = "left_j";
                    bitclock-master;
                    frame-master;
                };
            };
        };
    };

    fragment@1 {
        target-path = "/";
        __overlay__ {
            spdif-transmitter {
                #address-cells = <0>;
                #size-cells = <0>;
                #sound-dai-cells = <0>;
                compatible = "linux,spdif-dit";
                status = "okay";

                codec_port: port {
                    codec_endpoint: endpoint {
                        remote-endpoint = <&cpu_endpoint>;
                    };
                };
            };
        };
    };

    fragment@2 {
        target = <&sound>;
        __overlay__ {
            compatible = "audio-graph-card";
            label = "GenericLJ";
            dais = <&cpu_port>;
            status = "okay";
        };
    };
};
Reply


Messages In This Thread
RE: What I2S DAC uses left justified format? - by xaled - 11-29-2018, 10:08 PM

Forum Jump: