Skip to content

Commit 80a2543

Browse files
jbrun3tbroonie
authored andcommitted
ASoC: meson: axg-tdmin: fix g12a skew
After carefully checking the result provided by the TDMIN on the g12a and sm1 SoC families, the TDMIN skew offset appears to be 3 instead of 2 on the axg. Fixes: f01bc67 ("ASoC: meson: axg-tdm-formatter: rework quirks settings") Signed-off-by: Jerome Brunet <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent 6878ba9 commit 80a2543

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

sound/soc/meson/axg-tdmin.c

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,10 +233,26 @@ static const struct axg_tdm_formatter_driver axg_tdmin_drv = {
233233
},
234234
};
235235

236+
static const struct axg_tdm_formatter_driver g12a_tdmin_drv = {
237+
.component_drv = &axg_tdmin_component_drv,
238+
.regmap_cfg = &axg_tdmin_regmap_cfg,
239+
.ops = &axg_tdmin_ops,
240+
.quirks = &(const struct axg_tdm_formatter_hw) {
241+
.invert_sclk = false,
242+
.skew_offset = 3,
243+
},
244+
};
245+
236246
static const struct of_device_id axg_tdmin_of_match[] = {
237247
{
238248
.compatible = "amlogic,axg-tdmin",
239249
.data = &axg_tdmin_drv,
250+
}, {
251+
.compatible = "amlogic,g12a-tdmin",
252+
.data = &g12a_tdmin_drv,
253+
}, {
254+
.compatible = "amlogic,sm1-tdmin",
255+
.data = &g12a_tdmin_drv,
240256
}, {}
241257
};
242258
MODULE_DEVICE_TABLE(of, axg_tdmin_of_match);

0 commit comments

Comments
 (0)