.. | .. |
---|
14 | 14 | struct snd_soc_dapm_widget; |
---|
15 | 15 | struct snd_kcontrol; |
---|
16 | 16 | |
---|
| 17 | +struct axg_tdm_formatter_hw { |
---|
| 18 | + unsigned int skew_offset; |
---|
| 19 | +}; |
---|
| 20 | + |
---|
17 | 21 | struct axg_tdm_formatter_ops { |
---|
18 | 22 | struct axg_tdm_stream *(*get_stream)(struct snd_soc_dapm_widget *w); |
---|
19 | 23 | void (*enable)(struct regmap *map); |
---|
20 | 24 | 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); |
---|
22 | 28 | }; |
---|
23 | 29 | |
---|
24 | 30 | struct axg_tdm_formatter_driver { |
---|
25 | 31 | const struct snd_soc_component_driver *component_drv; |
---|
26 | 32 | const struct regmap_config *regmap_cfg; |
---|
27 | 33 | const struct axg_tdm_formatter_ops *ops; |
---|
28 | | - bool invert_sclk; |
---|
| 34 | + const struct axg_tdm_formatter_hw *quirks; |
---|
29 | 35 | }; |
---|
30 | 36 | |
---|
31 | 37 | int axg_tdm_formatter_set_channel_masks(struct regmap *map, |
---|