diff options
author | Jerome Brunet <jbrunet@baylibre.com> | 2019-04-04 13:17:32 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2019-04-05 04:26:39 +0200 |
commit | f01bc67f58fde599b48d2dde5d0f48dccd84c4f1 (patch) | |
tree | 3db7fea77b9f9df894d965ca49624d325c8e743c /sound/soc/meson/axg-tdm-formatter.c | |
parent | ASoC: meson: axg-frddr: add g12a support (diff) | |
download | linux-f01bc67f58fde599b48d2dde5d0f48dccd84c4f1.tar.xz linux-f01bc67f58fde599b48d2dde5d0f48dccd84c4f1.zip |
ASoC: meson: axg-tdm-formatter: rework quirks settings
The g12a tdmout requires a different signal skew offset than the axg.
With this change, the skew offset is added as a parameter of the tdm
formatters to prepare the addition of the g12a support.
Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/meson/axg-tdm-formatter.c')
-rw-r--r-- | sound/soc/meson/axg-tdm-formatter.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sound/soc/meson/axg-tdm-formatter.c b/sound/soc/meson/axg-tdm-formatter.c index 43e390f9358a..0c6cce5c5773 100644 --- a/sound/soc/meson/axg-tdm-formatter.c +++ b/sound/soc/meson/axg-tdm-formatter.c @@ -68,7 +68,7 @@ EXPORT_SYMBOL_GPL(axg_tdm_formatter_set_channel_masks); static int axg_tdm_formatter_enable(struct axg_tdm_formatter *formatter) { struct axg_tdm_stream *ts = formatter->stream; - bool invert = formatter->drv->invert_sclk; + bool invert = formatter->drv->quirks->invert_sclk; int ret; /* Do nothing if the formatter is already enabled */ @@ -85,7 +85,9 @@ static int axg_tdm_formatter_enable(struct axg_tdm_formatter *formatter) return ret; /* Setup the stream parameter in the formatter */ - ret = formatter->drv->ops->prepare(formatter->map, formatter->stream); + ret = formatter->drv->ops->prepare(formatter->map, + formatter->drv->quirks, + formatter->stream); if (ret) return ret; |