Orange Pi5 kernel

Deprecated Linux kernel 5.10.110 for OrangePi 5/5B/5+ boards

3 Commits   0 Branches   0 Tags
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   1) /* SPDX-License-Identifier: GPL-2.0
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   2)  *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   3)  * simple_card_utils.h
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   4)  *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   5)  * Copyright (c) 2016 Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   6)  */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   7) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   8) #ifndef __SIMPLE_CARD_UTILS_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   9) #define __SIMPLE_CARD_UTILS_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  10) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  11) #include <linux/clk.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  12) #include <sound/soc.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  13) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  14) #define asoc_simple_init_hp(card, sjack, prefix) \
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  15) 	asoc_simple_init_jack(card, sjack, 1, prefix, NULL)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  16) #define asoc_simple_init_mic(card, sjack, prefix) \
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  17) 	asoc_simple_init_jack(card, sjack, 0, prefix, NULL)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  18) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  19) struct asoc_simple_dai {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  20) 	const char *name;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  21) 	unsigned int sysclk;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  22) 	int clk_direction;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  23) 	int slots;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  24) 	int slot_width;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  25) 	unsigned int tx_slot_mask;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  26) 	unsigned int rx_slot_mask;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  27) 	struct clk *clk;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  28) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  29) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  30) struct asoc_simple_data {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  31) 	u32 convert_rate;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  32) 	u32 convert_channels;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  33) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  34) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  35) struct asoc_simple_jack {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  36) 	struct snd_soc_jack jack;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  37) 	struct snd_soc_jack_pin pin;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  38) 	struct snd_soc_jack_gpio gpio;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  39) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  40) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  41) struct asoc_simple_priv {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  42) 	struct snd_soc_card snd_card;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  43) 	struct simple_dai_props {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  44) 		struct asoc_simple_dai *cpu_dai;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  45) 		struct asoc_simple_dai *codec_dai;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  46) 		struct snd_soc_dai_link_component cpus;   /* single cpu */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  47) 		struct snd_soc_dai_link_component codecs; /* single codec */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  48) 		struct snd_soc_dai_link_component platforms;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  49) 		struct asoc_simple_data adata;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  50) 		struct snd_soc_codec_conf *codec_conf;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  51) 		unsigned int mclk_fs;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  52) 	} *dai_props;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  53) 	struct asoc_simple_jack hp_jack;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  54) 	struct asoc_simple_jack mic_jack;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  55) 	struct snd_soc_dai_link *dai_link;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  56) 	struct asoc_simple_dai *dais;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  57) 	struct snd_soc_codec_conf *codec_conf;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  58) 	struct gpio_desc *pa_gpio;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  59) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  60) #define simple_priv_to_card(priv)	(&(priv)->snd_card)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  61) #define simple_priv_to_props(priv, i)	((priv)->dai_props + (i))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  62) #define simple_priv_to_dev(priv)	(simple_priv_to_card(priv)->dev)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  63) #define simple_priv_to_link(priv, i)	(simple_priv_to_card(priv)->dai_link + (i))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  64) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  65) struct link_info {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  66) 	int dais; /* number of dai  */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  67) 	int link; /* number of link */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  68) 	int conf; /* number of codec_conf */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  69) 	int cpu;  /* turn for CPU / Codec */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  70) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  71) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  72) int asoc_simple_parse_daifmt(struct device *dev,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  73) 			     struct device_node *node,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  74) 			     struct device_node *codec,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  75) 			     char *prefix,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  76) 			     unsigned int *retfmt);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  77) __printf(3, 4)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  78) int asoc_simple_set_dailink_name(struct device *dev,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  79) 				 struct snd_soc_dai_link *dai_link,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  80) 				 const char *fmt, ...);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  81) int asoc_simple_parse_card_name(struct snd_soc_card *card,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  82) 				char *prefix);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  83) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  84) #define asoc_simple_parse_clk_cpu(dev, node, dai_link, simple_dai)		\
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  85) 	asoc_simple_parse_clk(dev, node, simple_dai, dai_link->cpus)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  86) #define asoc_simple_parse_clk_codec(dev, node, dai_link, simple_dai)	\
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  87) 	asoc_simple_parse_clk(dev, node, simple_dai, dai_link->codecs)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  88) int asoc_simple_parse_clk(struct device *dev,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  89) 			  struct device_node *node,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  90) 			  struct asoc_simple_dai *simple_dai,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  91) 			  struct snd_soc_dai_link_component *dlc);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  92) int asoc_simple_startup(struct snd_pcm_substream *substream);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  93) void asoc_simple_shutdown(struct snd_pcm_substream *substream);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  94) int asoc_simple_hw_params(struct snd_pcm_substream *substream,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  95) 			  struct snd_pcm_hw_params *params);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  96) int asoc_simple_dai_init(struct snd_soc_pcm_runtime *rtd);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  97) int asoc_simple_be_hw_params_fixup(struct snd_soc_pcm_runtime *rtd,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  98) 				   struct snd_pcm_hw_params *params);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  99) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 100) #define asoc_simple_parse_cpu(node, dai_link, is_single_link)	\
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 101) 	asoc_simple_parse_dai(node, dai_link->cpus, is_single_link)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 102) #define asoc_simple_parse_codec(node, dai_link)	\
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 103) 	asoc_simple_parse_dai(node, dai_link->codecs, NULL)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 104) #define asoc_simple_parse_platform(node, dai_link)	\
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 105) 	asoc_simple_parse_dai(node, dai_link->platforms, NULL)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 106) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 107) #define asoc_simple_parse_tdm(np, dai)			\
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 108) 	snd_soc_of_parse_tdm_slot(np,	&(dai)->tx_slot_mask,	\
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 109) 					&(dai)->rx_slot_mask,	\
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 110) 					&(dai)->slots,		\
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 111) 					&(dai)->slot_width);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 112) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 113) void asoc_simple_canonicalize_platform(struct snd_soc_dai_link *dai_link);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 114) void asoc_simple_canonicalize_cpu(struct snd_soc_dai_link *dai_link,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 115) 				      int is_single_links);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 116) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 117) int asoc_simple_clean_reference(struct snd_soc_card *card);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 118) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 119) void asoc_simple_convert_fixup(struct asoc_simple_data *data,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 120) 				      struct snd_pcm_hw_params *params);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 121) void asoc_simple_parse_convert(struct device *dev,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 122) 			       struct device_node *np, char *prefix,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 123) 			       struct asoc_simple_data *data);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 124) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 125) int asoc_simple_parse_routing(struct snd_soc_card *card,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 126) 				      char *prefix);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 127) int asoc_simple_parse_widgets(struct snd_soc_card *card,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 128) 				      char *prefix);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 129) int asoc_simple_parse_pin_switches(struct snd_soc_card *card,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 130) 				   char *prefix);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 131) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 132) int asoc_simple_init_jack(struct snd_soc_card *card,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 133) 			       struct asoc_simple_jack *sjack,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 134) 			       int is_hp, char *prefix, char *pin);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 135) int asoc_simple_init_priv(struct asoc_simple_priv *priv,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 136) 			       struct link_info *li);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 137) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 138) #ifdef DEBUG
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 139) static inline void asoc_simple_debug_dai(struct asoc_simple_priv *priv,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 140) 					 char *name,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 141) 					 struct asoc_simple_dai *dai)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 142) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 143) 	struct device *dev = simple_priv_to_dev(priv);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 144) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 145) 	/* dai might be NULL */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 146) 	if (!dai)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 147) 		return;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 148) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 149) 	if (dai->name)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 150) 		dev_dbg(dev, "%s dai name = %s\n",
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 151) 			name, dai->name);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 152) 	if (dai->sysclk)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 153) 		dev_dbg(dev, "%s sysclk = %d\n",
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 154) 			name, dai->sysclk);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 155) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 156) 	dev_dbg(dev, "%s direction = %s\n",
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 157) 		name, dai->clk_direction ? "OUT" : "IN");
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 158) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 159) 	if (dai->slots)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 160) 		dev_dbg(dev, "%s slots = %d\n", name, dai->slots);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 161) 	if (dai->slot_width)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 162) 		dev_dbg(dev, "%s slot width = %d\n", name, dai->slot_width);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 163) 	if (dai->tx_slot_mask)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 164) 		dev_dbg(dev, "%s tx slot mask = %d\n", name, dai->tx_slot_mask);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 165) 	if (dai->rx_slot_mask)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 166) 		dev_dbg(dev, "%s rx slot mask = %d\n", name, dai->rx_slot_mask);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 167) 	if (dai->clk)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 168) 		dev_dbg(dev, "%s clk %luHz\n", name, clk_get_rate(dai->clk));
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 169) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 170) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 171) static inline void asoc_simple_debug_info(struct asoc_simple_priv *priv)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 172) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 173) 	struct snd_soc_card *card = simple_priv_to_card(priv);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 174) 	struct device *dev = simple_priv_to_dev(priv);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 175) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 176) 	int i;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 177) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 178) 	if (card->name)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 179) 		dev_dbg(dev, "Card Name: %s\n", card->name);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 180) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 181) 	for (i = 0; i < card->num_links; i++) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 182) 		struct simple_dai_props *props = simple_priv_to_props(priv, i);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 183) 		struct snd_soc_dai_link *link = simple_priv_to_link(priv, i);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 184) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 185) 		dev_dbg(dev, "DAI%d\n", i);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 186) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 187) 		asoc_simple_debug_dai(priv, "cpu", props->cpu_dai);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 188) 		asoc_simple_debug_dai(priv, "codec", props->codec_dai);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 189) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 190) 		if (link->name)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 191) 			dev_dbg(dev, "dai name = %s\n", link->name);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 192) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 193) 		dev_dbg(dev, "dai format = %04x\n", link->dai_fmt);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 194) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 195) 		if (props->adata.convert_rate)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 196) 			dev_dbg(dev, "convert_rate = %d\n",
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 197) 				props->adata.convert_rate);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 198) 		if (props->adata.convert_channels)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 199) 			dev_dbg(dev, "convert_channels = %d\n",
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 200) 				props->adata.convert_channels);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 201) 		if (props->codec_conf && props->codec_conf->name_prefix)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 202) 			dev_dbg(dev, "name prefix = %s\n",
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 203) 				props->codec_conf->name_prefix);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 204) 		if (props->mclk_fs)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 205) 			dev_dbg(dev, "mclk-fs = %d\n",
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 206) 				props->mclk_fs);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 207) 	}
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 208) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 209) #else
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 210) #define  asoc_simple_debug_info(priv)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 211) #endif /* DEBUG */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 212) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 213) #endif /* __SIMPLE_CARD_UTILS_H */