| 1 |
/* SPDX-License-Identifier: GPL-2.0 */ |
| 2 |
|
| 3 |
#ifndef __Q6DSP_AUDIO_PORTS_H__ |
| 4 |
#define __Q6DSP_AUDIO_PORTS_H__ |
| 5 |
|
| 6 |
struct q6dsp_audio_port_dai_driver_config { |
| 7 |
int (*probe)(struct snd_soc_dai *dai); |
| 8 |
int (*remove)(struct snd_soc_dai *dai); |
| 9 |
const struct snd_soc_dai_ops *q6hdmi_ops; |
| 10 |
const struct snd_soc_dai_ops *q6slim_ops; |
| 11 |
const struct snd_soc_dai_ops *q6i2s_ops; |
| 12 |
const struct snd_soc_dai_ops *q6tdm_ops; |
| 13 |
const struct snd_soc_dai_ops *q6dma_ops; |
| 14 |
const struct snd_soc_dai_ops *q6usb_ops; |
| 15 |
}; |
| 16 |
|
| 17 |
struct snd_soc_dai_driver *q6dsp_audio_ports_set_config(struct device *dev, |
| 18 |
struct q6dsp_audio_port_dai_driver_config *cfg, |
| 19 |
int *num_dais); |
| 20 |
int q6dsp_audio_ports_of_xlate_dai_name(struct snd_soc_component *component, |
| 21 |
const struct of_phandle_args *args, |
| 22 |
const char **dai_name); |
| 23 |
#endif /* __Q6DSP_AUDIO_PORTS_H__ */ |