summaryrefslogtreecommitdiffstats
path: root/include/sound/soc.h
diff options
context:
space:
mode:
authorTroy Kisky <troy.kisky@boundarydevices.com>2008-10-13 17:42:14 -0700
committerMark Brown <broonie@opensource.wolfsonmicro.com>2008-10-30 14:34:02 +0000
commit12ef193d5817504621e503e78d641265f6a86ac4 (patch)
treea86c1cc9d7297561b0912f0b2c0332bf2ab993ca /include/sound/soc.h
parent15ad9a531a64d46af54839ab13542a81ad4c82a5 (diff)
downloadblackbird-obmc-linux-12ef193d5817504621e503e78d641265f6a86ac4.tar.gz
blackbird-obmc-linux-12ef193d5817504621e503e78d641265f6a86ac4.zip
ASoC: Allow setting codec register with debugfs filesystem
i.e. echo 6 59 >/sys/kernel/debug/soc-audio.0/codec_reg will set register 0x06 to a value of 0x59. Also, pop_time debugfs interface setup is moved so that it is setup in the same function as codec_reg Signed-off-by: Troy Kisky <troy.kisky@boundarydevices.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'include/sound/soc.h')
-rw-r--r--include/sound/soc.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/sound/soc.h b/include/sound/soc.h
index a1e0357a84d7..d33825d624a5 100644
--- a/include/sound/soc.h
+++ b/include/sound/soc.h
@@ -425,6 +425,7 @@ struct snd_soc_codec {
short reg_cache_step;
/* dapm */
+ u32 pop_time;
struct list_head dapm_widgets;
struct list_head dapm_paths;
enum snd_soc_bias_level bias_level;
@@ -516,6 +517,9 @@ struct snd_soc_device {
struct delayed_work delayed_work;
struct work_struct deferred_resume_work;
void *codec_data;
+#ifdef CONFIG_DEBUG_FS
+ struct dentry *debugfs_root;
+#endif
};
/* runtime channel data */
OpenPOWER on IntegriCloud