mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
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 <[email protected]> Signed-off-by: Mark Brown <[email protected]>
This commit is contained in:
parent
15ad9a531a
commit
12ef193d58
3 changed files with 125 additions and 28 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Reference in a new issue