Thread (28 messages) flat view 28 messages, 5 authors, 2017-09-08

Re: [PATCH] sound: soc: fsl: Do not set DAI sysclk when it is equal to system freq

From: Fabio Estevam <festevam@gmail.com>
Date: 2017-09-05 23:20:54
Also in: alsa-devel, lkml

On Tue, Sep 5, 2017 at 6:13 PM, =C5=81ukasz Majewski [off-list ref] wrote:
&i2c1 {
        clock-frequency =3D <400000>;
        pinctrl-names =3D "default";
        pinctrl-0 =3D <&pinctrl_i2c1>;
        status =3D "okay";

        codec: tfa9879@6C {
                #sound-dai-cells =3D <0>;
                compatible =3D "tfa9879";
This codec seems to miss device tree support. Don't you need something
like this?
--- a/sound/soc/codecs/tfa9879.c
+++ b/sound/soc/codecs/tfa9879.c
@@ -312,9 +312,15 @@ static const struct i2c_device_id tfa9879_i2c_id[] =3D=
 {
 };
 MODULE_DEVICE_TABLE(i2c, tfa9879_i2c_id);

+static const struct of_device_id tfa9879_of_match[] =3D {
+       { .compatible =3D "nxp,tfa9879", },
+       { }
+};
+
 static struct i2c_driver tfa9879_i2c_driver =3D {
        .driver =3D {
                .name =3D "tfa9879",
+               .of_match_table =3D tfa9879_of_match,
        },
        .probe =3D tfa9879_i2c_probe,
        .remove =3D tfa9879_i2c_remove,
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help