]> git.hungrycats.org Git - linux/commit
ASoC: tas2781: Refactor calibration start kcontrol creation to separate helper
authorShenghao Ding <shenghao-ding@ti.com>
Thu, 13 Aug 2026 08:05:40 +0000 (16:05 +0800)
committerMark Brown <broonie@kernel.org>
Thu, 13 Aug 2026 18:19:12 +0000 (19:19 +0100)
commitba5401135aa508f0cb5414f269edba1fe90460da
tree758fbb0012628d334816659d007d4e95fab6ce2b
parentbc34c37ed8265250c4c41c18953ab82fcc491c83
ASoC: tas2781: Refactor calibration start kcontrol creation to separate helper

Move the tas2781-specific calibration start kcontrol initialization logic
out of tasdevice_create_cali_ctrls() into a new dedicated helper function
create_tas2781_cali_start_ktrl().

This change eliminates duplicate inline code in the main calibration
control registration routine, improves code readability, and makes further
extension for custom calibration parameters much easier. No functional
behavior changes.

Signed-off-by: Shenghao Ding <shenghao-ding@ti.com>
Link: https://patch.msgid.link/20260813080540.1030-1-shenghao-ding@ti.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/tas2781-i2c.c