aboutsummaryrefslogtreecommitdiffstats
path: root/include/sound
diff options
context:
space:
mode:
authorLiam Girdwood <lrg@ti.com>2012-04-25 07:12:50 -0400
committerMark Brown <broonie@opensource.wolfsonmicro.com>2012-04-26 12:48:19 -0400
commitf86dcef87b771935c223334324a93c1d71f7a84c (patch)
tree06af2bd5a2da54c323acddace8a603bf9475c489 /include/sound
parent01d7584cd2e5a93a2b959c9dddaa0d93ec205404 (diff)
ASoC: dpcm: Add debugFS support for DPCM
Add debugFS files for DPCM link management information. Signed-off-by: Liam Girdwood <lrg@ti.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'include/sound')
-rw-r--r--include/sound/soc-dpcm.h4
-rw-r--r--include/sound/soc.h4
2 files changed, 8 insertions, 0 deletions
diff --git a/include/sound/soc-dpcm.h b/include/sound/soc-dpcm.h
index cd72c1090586..e307fa30231a 100644
--- a/include/sound/soc-dpcm.h
+++ b/include/sound/soc-dpcm.h
@@ -81,6 +81,9 @@ struct snd_soc_dpcm {
81 81
82 /* hw params for this link - may be different for each link */ 82 /* hw params for this link - may be different for each link */
83 struct snd_pcm_hw_params hw_params; 83 struct snd_pcm_hw_params hw_params;
84#ifdef CONFIG_DEBUG_FS
85 struct dentry *debugfs_state;
86#endif
84}; 87};
85 88
86/* 89/*
@@ -128,5 +131,6 @@ void snd_soc_dpcm_be_set_state(struct snd_soc_pcm_runtime *be, int stream,
128 131
129/* internal use only */ 132/* internal use only */
130int soc_dpcm_be_digital_mute(struct snd_soc_pcm_runtime *fe, int mute); 133int soc_dpcm_be_digital_mute(struct snd_soc_pcm_runtime *fe, int mute);
134int soc_dpcm_debugfs_add(struct snd_soc_pcm_runtime *rtd);
131 135
132#endif 136#endif
diff --git a/include/sound/soc.h b/include/sound/soc.h
index 78aec854b6a1..bbe6a5e1ac12 100644
--- a/include/sound/soc.h
+++ b/include/sound/soc.h
@@ -957,6 +957,10 @@ struct snd_soc_pcm_runtime {
957 struct snd_soc_dai *cpu_dai; 957 struct snd_soc_dai *cpu_dai;
958 958
959 struct delayed_work delayed_work; 959 struct delayed_work delayed_work;
960#ifdef CONFIG_DEBUG_FS
961 struct dentry *debugfs_dpcm_root;
962 struct dentry *debugfs_dpcm_state;
963#endif
960}; 964};
961 965
962/* mixer control */ 966/* mixer control */