linux/sound/soc/generic/simple-card-utils.c

// SPDX-License-Identifier: GPL-2.0
//
// simple-card-utils.c
//
// Copyright (c) 2016 Kuninori Morimoto <[email protected]>

#include <dt-bindings/sound/audio-graph.h>
#include <linux/cleanup.h>
#include <linux/clk.h>
#include <linux/gpio/consumer.h>
#include <linux/module.h>
#include <linux/of.h>
#include <linux/of_graph.h>
#include <sound/jack.h>
#include <sound/pcm_params.h>
#include <sound/simple_card_utils.h>

int simple_util_get_sample_fmt(struct simple_util_data *data)
{}
EXPORT_SYMBOL_GPL();

static void simple_fixup_sample_fmt(struct simple_util_data *data,
				    struct snd_pcm_hw_params *params)
{}

void simple_util_parse_convert(struct device_node *np,
			       char *prefix,
			       struct simple_util_data *data)
{}
EXPORT_SYMBOL_GPL();

/**
 * simple_util_is_convert_required() - Query if HW param conversion was requested
 * @data: Link data.
 *
 * Returns true if any HW param conversion was requested for this DAI link with
 * any "convert-xxx" properties.
 */
bool simple_util_is_convert_required(const struct simple_util_data *data)
{}
EXPORT_SYMBOL_GPL();

int simple_util_parse_daifmt(struct device *dev,
			     struct device_node *node,
			     struct device_node *codec,
			     char *prefix,
			     unsigned int *retfmt)
{}
EXPORT_SYMBOL_GPL();

int simple_util_parse_tdm_width_map(struct device *dev, struct device_node *np,
				    struct simple_util_dai *dai)
{}
EXPORT_SYMBOL_GPL();

int simple_util_set_dailink_name(struct device *dev,
				 struct snd_soc_dai_link *dai_link,
				 const char *fmt, ...)
{}
EXPORT_SYMBOL_GPL();

int simple_util_parse_card_name(struct snd_soc_card *card,
				char *prefix)
{}
EXPORT_SYMBOL_GPL();

static int simple_clk_enable(struct simple_util_dai *dai)
{}

static void simple_clk_disable(struct simple_util_dai *dai)
{}

int simple_util_parse_clk(struct device *dev,
			  struct device_node *node,
			  struct simple_util_dai *simple_dai,
			  struct snd_soc_dai_link_component *dlc)
{}
EXPORT_SYMBOL_GPL();

static int simple_check_fixed_sysclk(struct device *dev,
					  struct simple_util_dai *dai,
					  unsigned int *fixed_sysclk)
{}

int simple_util_startup(struct snd_pcm_substream *substream)
{}
EXPORT_SYMBOL_GPL();

void simple_util_shutdown(struct snd_pcm_substream *substream)
{}
EXPORT_SYMBOL_GPL();

static int simple_set_clk_rate(struct device *dev,
				    struct simple_util_dai *simple_dai,
				    unsigned long rate)
{}

static int simple_set_tdm(struct snd_soc_dai *dai,
				struct simple_util_dai *simple_dai,
				struct snd_pcm_hw_params *params)
{}

int simple_util_hw_params(struct snd_pcm_substream *substream,
			  struct snd_pcm_hw_params *params)
{}
EXPORT_SYMBOL_GPL();

int simple_util_be_hw_params_fixup(struct snd_soc_pcm_runtime *rtd,
				   struct snd_pcm_hw_params *params)
{}
EXPORT_SYMBOL_GPL();

static int simple_init_dai(struct snd_soc_dai *dai, struct simple_util_dai *simple_dai)
{}

static inline int simple_component_is_codec(struct snd_soc_component *component)
{}

static int simple_init_for_codec2codec(struct snd_soc_pcm_runtime *rtd,
				       struct simple_dai_props *dai_props)
{}

int simple_util_dai_init(struct snd_soc_pcm_runtime *rtd)
{}
EXPORT_SYMBOL_GPL();

void simple_util_canonicalize_platform(struct snd_soc_dai_link_component *platforms,
				       struct snd_soc_dai_link_component *cpus)
{}
EXPORT_SYMBOL_GPL();

void simple_util_canonicalize_cpu(struct snd_soc_dai_link_component *cpus,
				  int is_single_links)
{}
EXPORT_SYMBOL_GPL();

void simple_util_clean_reference(struct snd_soc_card *card)
{}
EXPORT_SYMBOL_GPL();

int simple_util_parse_routing(struct snd_soc_card *card,
			      char *prefix)
{}
EXPORT_SYMBOL_GPL();

int simple_util_parse_widgets(struct snd_soc_card *card,
			      char *prefix)
{}
EXPORT_SYMBOL_GPL();

int simple_util_parse_pin_switches(struct snd_soc_card *card,
				   char *prefix)
{}
EXPORT_SYMBOL_GPL();

int simple_util_init_jack(struct snd_soc_card *card,
			  struct simple_util_jack *sjack,
			  int is_hp, char *prefix,
			  char *pin)
{}
EXPORT_SYMBOL_GPL();

int simple_util_init_aux_jacks(struct simple_util_priv *priv, char *prefix)
{}
EXPORT_SYMBOL_GPL();

int simple_util_init_priv(struct simple_util_priv *priv,
			  struct link_info *li)
{}
EXPORT_SYMBOL_GPL();

void simple_util_remove(struct platform_device *pdev)
{}
EXPORT_SYMBOL_GPL();

int graph_util_card_probe(struct snd_soc_card *card)
{}
EXPORT_SYMBOL_GPL();

int graph_util_is_ports0(struct device_node *np)
{}
EXPORT_SYMBOL_GPL();

static int graph_get_dai_id(struct device_node *ep)
{}

int graph_util_parse_dai(struct device *dev, struct device_node *ep,
			 struct snd_soc_dai_link_component *dlc, int *is_single_link)
{}
EXPORT_SYMBOL_GPL();

void graph_util_parse_link_direction(struct device_node *np,
				    bool *playback_only, bool *capture_only)
{}
EXPORT_SYMBOL_GPL();

static enum snd_soc_trigger_order
__graph_util_parse_trigger_order(struct simple_util_priv *priv,
				 struct device_node *np,
				 const char *prop)
{}

void graph_util_parse_trigger_order(struct simple_util_priv *priv,
				    struct device_node *np,
				    enum snd_soc_trigger_order *trigger_start,
				    enum snd_soc_trigger_order *trigger_stop)
{}
EXPORT_SYMBOL_GPL();

/* Module information */
MODULE_AUTHOR();
MODULE_DESCRIPTION();
MODULE_LICENSE();