From 1d2d4f05b062064115531492fc3e7a2a371367bc Mon Sep 17 00:00:00 2001 From: Oleksandr Suvorov Date: Tue, 7 May 2019 13:47:03 +0300 Subject: ASoC: sgtl5000: Enable reading card registers - set up parameters to read card registers via sysfs Signed-off-by: Oleksandr Suvorov --- sound/soc/codecs/sgtl5000.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'sound') diff --git a/sound/soc/codecs/sgtl5000.c b/sound/soc/codecs/sgtl5000.c index 973e7ae87f08..1a16954c0d83 100644 --- a/sound/soc/codecs/sgtl5000.c +++ b/sound/soc/codecs/sgtl5000.c @@ -1232,6 +1232,9 @@ static struct snd_soc_codec_driver sgtl5000_driver = { .probe = sgtl5000_probe, .remove = sgtl5000_remove, .set_bias_level = sgtl5000_set_bias_level, + .reg_cache_size = SGTL5000_MAX_REG_OFFSET, + .reg_word_size = sizeof(u16), + .reg_cache_step = 2, .suspend_bias_off = true, .component_driver = { .controls = sgtl5000_snd_controls, -- cgit v1.2.3