aboutsummaryrefslogtreecommitdiffstats
path: root/include/sound
diff options
context:
space:
mode:
Diffstat (limited to 'include/sound')
-rw-r--r--include/sound/soc-dai.h13
-rw-r--r--include/sound/soc-dapm.h7
2 files changed, 17 insertions, 3 deletions
diff --git a/include/sound/soc-dai.h b/include/sound/soc-dai.h
index 97ca9af414dc..e0c7fa7b1060 100644
--- a/include/sound/soc-dai.h
+++ b/include/sound/soc-dai.h
@@ -106,7 +106,7 @@ int snd_soc_dai_set_clkdiv(struct snd_soc_dai *dai,
106 int div_id, int div); 106 int div_id, int div);
107 107
108int snd_soc_dai_set_pll(struct snd_soc_dai *dai, 108int snd_soc_dai_set_pll(struct snd_soc_dai *dai,
109 int pll_id, unsigned int freq_in, unsigned int freq_out); 109 int pll_id, int source, unsigned int freq_in, unsigned int freq_out);
110 110
111/* Digital Audio interface formatting */ 111/* Digital Audio interface formatting */
112int snd_soc_dai_set_fmt(struct snd_soc_dai *dai, unsigned int fmt); 112int snd_soc_dai_set_fmt(struct snd_soc_dai *dai, unsigned int fmt);
@@ -114,6 +114,10 @@ int snd_soc_dai_set_fmt(struct snd_soc_dai *dai, unsigned int fmt);
114int snd_soc_dai_set_tdm_slot(struct snd_soc_dai *dai, 114int snd_soc_dai_set_tdm_slot(struct snd_soc_dai *dai,
115 unsigned int tx_mask, unsigned int rx_mask, int slots, int slot_width); 115 unsigned int tx_mask, unsigned int rx_mask, int slots, int slot_width);
116 116
117int snd_soc_dai_set_channel_map(struct snd_soc_dai *dai,
118 unsigned int tx_num, unsigned int *tx_slot,
119 unsigned int rx_num, unsigned int *rx_slot);
120
117int snd_soc_dai_set_tristate(struct snd_soc_dai *dai, int tristate); 121int snd_soc_dai_set_tristate(struct snd_soc_dai *dai, int tristate);
118 122
119/* Digital Audio Interface mute */ 123/* Digital Audio Interface mute */
@@ -136,8 +140,8 @@ struct snd_soc_dai_ops {
136 */ 140 */
137 int (*set_sysclk)(struct snd_soc_dai *dai, 141 int (*set_sysclk)(struct snd_soc_dai *dai,
138 int clk_id, unsigned int freq, int dir); 142 int clk_id, unsigned int freq, int dir);
139 int (*set_pll)(struct snd_soc_dai *dai, 143 int (*set_pll)(struct snd_soc_dai *dai, int pll_id, int source,
140 int pll_id, unsigned int freq_in, unsigned int freq_out); 144 unsigned int freq_in, unsigned int freq_out);
141 int (*set_clkdiv)(struct snd_soc_dai *dai, int div_id, int div); 145 int (*set_clkdiv)(struct snd_soc_dai *dai, int div_id, int div);
142 146
143 /* 147 /*
@@ -148,6 +152,9 @@ struct snd_soc_dai_ops {
148 int (*set_tdm_slot)(struct snd_soc_dai *dai, 152 int (*set_tdm_slot)(struct snd_soc_dai *dai,
149 unsigned int tx_mask, unsigned int rx_mask, 153 unsigned int tx_mask, unsigned int rx_mask,
150 int slots, int slot_width); 154 int slots, int slot_width);
155 int (*set_channel_map)(struct snd_soc_dai *dai,
156 unsigned int tx_num, unsigned int *tx_slot,
157 unsigned int rx_num, unsigned int *rx_slot);
151 int (*set_tristate)(struct snd_soc_dai *dai, int tristate); 158 int (*set_tristate)(struct snd_soc_dai *dai, int tristate);
152 159
153 /* 160 /*
diff --git a/include/sound/soc-dapm.h b/include/sound/soc-dapm.h
index c1410e3191e3..67224db60348 100644
--- a/include/sound/soc-dapm.h
+++ b/include/sound/soc-dapm.h
@@ -333,6 +333,10 @@ struct snd_soc_dapm_route {
333 const char *sink; 333 const char *sink;
334 const char *control; 334 const char *control;
335 const char *source; 335 const char *source;
336
337 /* Note: currently only supported for links where source is a supply */
338 int (*connected)(struct snd_soc_dapm_widget *source,
339 struct snd_soc_dapm_widget *sink);
336}; 340};
337 341
338/* dapm audio path between two widgets */ 342/* dapm audio path between two widgets */
@@ -349,6 +353,9 @@ struct snd_soc_dapm_path {
349 u32 connect:1; /* source and sink widgets are connected */ 353 u32 connect:1; /* source and sink widgets are connected */
350 u32 walked:1; /* path has been walked */ 354 u32 walked:1; /* path has been walked */
351 355
356 int (*connected)(struct snd_soc_dapm_widget *source,
357 struct snd_soc_dapm_widget *sink);
358
352 struct list_head list_source; 359 struct list_head list_source;
353 struct list_head list_sink; 360 struct list_head list_sink;
354 struct list_head list; 361 struct list_head list;