#include <dt-bindings/sound/qcom,q6afe.h>
#include <linux/err.h>
#include <linux/init.h>
#include <linux/module.h>
#include <linux/device.h>
#include <linux/platform_device.h>
#include <linux/slab.h>
#include <sound/pcm.h>
#include <sound/soc.h>
#include <sound/pcm_params.h>
#include "q6dsp-lpass-ports.h"
#include "q6dsp-common.h"
#include "q6afe.h"
struct q6afe_dai_priv_data { … };
struct q6afe_dai_data { … };
static int q6slim_hw_params(struct snd_pcm_substream *substream,
struct snd_pcm_hw_params *params,
struct snd_soc_dai *dai)
{ … }
static int q6hdmi_hw_params(struct snd_pcm_substream *substream,
struct snd_pcm_hw_params *params,
struct snd_soc_dai *dai)
{ … }
static int q6i2s_hw_params(struct snd_pcm_substream *substream,
struct snd_pcm_hw_params *params,
struct snd_soc_dai *dai)
{ … }
static int q6i2s_set_fmt(struct snd_soc_dai *dai, unsigned int fmt)
{ … }
static int q6tdm_set_tdm_slot(struct snd_soc_dai *dai,
unsigned int tx_mask,
unsigned int rx_mask,
int slots, int slot_width)
{ … }
static int q6tdm_set_channel_map(struct snd_soc_dai *dai,
unsigned int tx_num, const unsigned int *tx_slot,
unsigned int rx_num, const unsigned int *rx_slot)
{ … }
static int q6tdm_hw_params(struct snd_pcm_substream *substream,
struct snd_pcm_hw_params *params,
struct snd_soc_dai *dai)
{ … }
static int q6dma_set_channel_map(struct snd_soc_dai *dai,
unsigned int tx_num,
const unsigned int *tx_ch_mask,
unsigned int rx_num,
const unsigned int *rx_ch_mask)
{ … }
static int q6dma_hw_params(struct snd_pcm_substream *substream,
struct snd_pcm_hw_params *params,
struct snd_soc_dai *dai)
{ … }
static void q6afe_dai_shutdown(struct snd_pcm_substream *substream,
struct snd_soc_dai *dai)
{ … }
static int q6afe_dai_prepare(struct snd_pcm_substream *substream,
struct snd_soc_dai *dai)
{ … }
static int q6slim_set_channel_map(struct snd_soc_dai *dai,
unsigned int tx_num,
const unsigned int *tx_slot,
unsigned int rx_num,
const unsigned int *rx_slot)
{ … }
static int q6afe_mi2s_set_sysclk(struct snd_soc_dai *dai,
int clk_id, unsigned int freq, int dir)
{ … }
static const struct snd_soc_dapm_route q6afe_dapm_routes[] = …;
static int msm_dai_q6_dai_probe(struct snd_soc_dai *dai)
{ … }
static int msm_dai_q6_dai_remove(struct snd_soc_dai *dai)
{ … }
static const struct snd_soc_dai_ops q6hdmi_ops = …;
static const struct snd_soc_dai_ops q6i2s_ops = …;
static const struct snd_soc_dai_ops q6slim_ops = …;
static const struct snd_soc_dai_ops q6tdm_ops = …;
static const struct snd_soc_dai_ops q6dma_ops = …;
static const struct snd_soc_dapm_widget q6afe_dai_widgets[] = …;
static const struct snd_soc_component_driver q6afe_dai_component = …;
static void of_q6afe_parse_dai_data(struct device *dev,
struct q6afe_dai_data *data)
{ … }
static int q6afe_dai_dev_probe(struct platform_device *pdev)
{ … }
#ifdef CONFIG_OF
static const struct of_device_id q6afe_dai_device_id[] = …;
MODULE_DEVICE_TABLE(of, q6afe_dai_device_id);
#endif
static struct platform_driver q6afe_dai_platform_driver = …;
module_platform_driver(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;