forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-01-05 071106ecf68c401173c58808b1cf5f68cc50d390
kernel/sound/soc/meson/axg-tdm-formatter.h
....@@ -14,18 +14,24 @@
1414 struct snd_soc_dapm_widget;
1515 struct snd_kcontrol;
1616
17
+struct axg_tdm_formatter_hw {
18
+ unsigned int skew_offset;
19
+};
20
+
1721 struct axg_tdm_formatter_ops {
1822 struct axg_tdm_stream *(*get_stream)(struct snd_soc_dapm_widget *w);
1923 void (*enable)(struct regmap *map);
2024 void (*disable)(struct regmap *map);
21
- int (*prepare)(struct regmap *map, struct axg_tdm_stream *ts);
25
+ int (*prepare)(struct regmap *map,
26
+ const struct axg_tdm_formatter_hw *quirks,
27
+ struct axg_tdm_stream *ts);
2228 };
2329
2430 struct axg_tdm_formatter_driver {
2531 const struct snd_soc_component_driver *component_drv;
2632 const struct regmap_config *regmap_cfg;
2733 const struct axg_tdm_formatter_ops *ops;
28
- bool invert_sclk;
34
+ const struct axg_tdm_formatter_hw *quirks;
2935 };
3036
3137 int axg_tdm_formatter_set_channel_masks(struct regmap *map,