aboutsummaryrefslogtreecommitdiffstats
path: root/include/sound
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2009-06-25 09:28:39 -0400
committerTakashi Iwai <tiwai@suse.de>2009-06-25 09:28:39 -0400
commit62b1653e29d8f359c4c7e045b965dc963459473d (patch)
tree4f0d3f541c9eead5785f4e0230c46375a819ab60 /include/sound
parent10121a12e2380fb34b6e646a8e367add06d036c3 (diff)
parentd5fc3b5fe374f24b6773c22e90ef4bdda718b845 (diff)
Merge branch 'for-2.6.32' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound-2.6 into topic/asoc
Diffstat (limited to 'include/sound')
-rw-r--r--include/sound/soc-dapm.h1
-rw-r--r--include/sound/soc.h11
-rw-r--r--include/sound/uda1380.h22
3 files changed, 30 insertions, 4 deletions
diff --git a/include/sound/soc-dapm.h b/include/sound/soc-dapm.h
index ec8a45f9a069..35814ced2d22 100644
--- a/include/sound/soc-dapm.h
+++ b/include/sound/soc-dapm.h
@@ -279,6 +279,7 @@ int snd_soc_dapm_add_routes(struct snd_soc_codec *codec,
279/* dapm events */ 279/* dapm events */
280int snd_soc_dapm_stream_event(struct snd_soc_codec *codec, char *stream, 280int snd_soc_dapm_stream_event(struct snd_soc_codec *codec, char *stream,
281 int event); 281 int event);
282void snd_soc_dapm_shutdown(struct snd_soc_device *socdev);
282 283
283/* dapm sys fs - used by the core */ 284/* dapm sys fs - used by the core */
284int snd_soc_dapm_sys_add(struct device *dev); 285int snd_soc_dapm_sys_add(struct device *dev);
diff --git a/include/sound/soc.h b/include/sound/soc.h
index cf6111d72b17..e6704c0a4404 100644
--- a/include/sound/soc.h
+++ b/include/sound/soc.h
@@ -192,6 +192,11 @@ void snd_soc_unregister_platform(struct snd_soc_platform *platform);
192int snd_soc_register_codec(struct snd_soc_codec *codec); 192int snd_soc_register_codec(struct snd_soc_codec *codec);
193void snd_soc_unregister_codec(struct snd_soc_codec *codec); 193void snd_soc_unregister_codec(struct snd_soc_codec *codec);
194 194
195#ifdef CONFIG_PM
196int snd_soc_suspend_device(struct device *dev);
197int snd_soc_resume_device(struct device *dev);
198#endif
199
195/* pcm <-> DAI connect */ 200/* pcm <-> DAI connect */
196void snd_soc_free_pcms(struct snd_soc_device *socdev); 201void snd_soc_free_pcms(struct snd_soc_device *socdev);
197int snd_soc_new_pcms(struct snd_soc_device *socdev, int idx, const char *xid); 202int snd_soc_new_pcms(struct snd_soc_device *socdev, int idx, const char *xid);
@@ -216,9 +221,9 @@ void snd_soc_jack_free_gpios(struct snd_soc_jack *jack, int count,
216 221
217/* codec register bit access */ 222/* codec register bit access */
218int snd_soc_update_bits(struct snd_soc_codec *codec, unsigned short reg, 223int snd_soc_update_bits(struct snd_soc_codec *codec, unsigned short reg,
219 unsigned short mask, unsigned short value); 224 unsigned int mask, unsigned int value);
220int snd_soc_test_bits(struct snd_soc_codec *codec, unsigned short reg, 225int snd_soc_test_bits(struct snd_soc_codec *codec, unsigned short reg,
221 unsigned short mask, unsigned short value); 226 unsigned int mask, unsigned int value);
222 227
223int snd_soc_new_ac97_codec(struct snd_soc_codec *codec, 228int snd_soc_new_ac97_codec(struct snd_soc_codec *codec,
224 struct snd_ac97_bus_ops *ops, int num); 229 struct snd_ac97_bus_ops *ops, int num);
@@ -369,8 +374,6 @@ struct snd_soc_codec {
369 enum snd_soc_bias_level bias_level; 374 enum snd_soc_bias_level bias_level;
370 enum snd_soc_bias_level suspend_bias_level; 375 enum snd_soc_bias_level suspend_bias_level;
371 struct delayed_work delayed_work; 376 struct delayed_work delayed_work;
372 struct list_head up_list;
373 struct list_head down_list;
374 377
375 /* codec DAI's */ 378 /* codec DAI's */
376 struct snd_soc_dai *dai; 379 struct snd_soc_dai *dai;
diff --git a/include/sound/uda1380.h b/include/sound/uda1380.h
new file mode 100644
index 000000000000..381319c7000c
--- /dev/null
+++ b/include/sound/uda1380.h
@@ -0,0 +1,22 @@
1/*
2 * UDA1380 ALSA SoC Codec driver
3 *
4 * Copyright 2009 Philipp Zabel
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License version 2 as
8 * published by the Free Software Foundation.
9 */
10
11#ifndef __UDA1380_H
12#define __UDA1380_H
13
14struct uda1380_platform_data {
15 int gpio_power;
16 int gpio_reset;
17 int dac_clk;
18#define UDA1380_DAC_CLK_SYSCLK 0
19#define UDA1380_DAC_CLK_WSPLL 1
20};
21
22#endif /* __UDA1380_H */