History

ASoC: cs35l56: Allow factory calibration through ALSA controls

Add support for using ALSA controls to trigger a factory calibration. This is protected by a new Kconfig option so that it is only available if explicitly enabled in the kernel. By default it is not enabled. Factory calibration is normally done through debugfs files. Google have requested that factory calibration can be performed by repair shops. These repair shops only have access to the standard "user" kernel, which does not include debugfs.

Richard Fitzgerald committed 7 months ago

Commit ee7d6551 parent 37c277f5 files · +121 −0Browse files

Showing the changes to include (1 of 5 files). Show all

Unified · Split

include/sound/cs35l56.h+1−0
@@ -435,6 +435,7 @@ ssize_t cs35l56_cal_data_debugfs_read(struct cs35l56_base *cs35l56_base, · 434 unmodified lines
435435 ssize_t cs35l56_cal_data_debugfs_write(struct cs35l56_base *cs35l56_base,
436436 const char __user *from, size_t count,
437437 loff_t *ppos);
438+int cs35l56_factory_calibrate(struct cs35l56_base *cs35l56_base);
438439 void cs35l56_create_cal_debugfs(struct cs35l56_base *cs35l56_base,
439440 const struct cs35l56_cal_debugfs_fops *fops);
440441 void cs35l56_remove_cal_debugfs(struct cs35l56_base *cs35l56_base);