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.
Showing the changes to include (1 of 5 files). Show all
Unified · Split
| @@ -435,6 +435,7 @@ ssize_t cs35l56_cal_data_debugfs_read(struct cs35l56_base *cs35l56_base, · 434 unmodified lines | |||
| 435 | ssize_t cs35l56_cal_data_debugfs_write(struct cs35l56_base *cs35l56_base, | 435 | ssize_t cs35l56_cal_data_debugfs_write(struct cs35l56_base *cs35l56_base, |
| 436 | const char __user *from, size_t count, | 436 | const char __user *from, size_t count, |
| 437 | loff_t *ppos); | 437 | loff_t *ppos); |
| 438 | int cs35l56_factory_calibrate(struct cs35l56_base *cs35l56_base); | ||
| 438 | void cs35l56_create_cal_debugfs(struct cs35l56_base *cs35l56_base, | 439 | void cs35l56_create_cal_debugfs(struct cs35l56_base *cs35l56_base, |
| 439 | const struct cs35l56_cal_debugfs_fops *fops); | 440 | const struct cs35l56_cal_debugfs_fops *fops); |
| 440 | void cs35l56_remove_cal_debugfs(struct cs35l56_base *cs35l56_base); | 441 | void cs35l56_remove_cal_debugfs(struct cs35l56_base *cs35l56_base); |