diff options
author | Oleksandr Suvorov <oleksandr.suvorov@toradex.com> | 2019-05-07 13:47:03 +0300 |
---|---|---|
committer | Marcel Ziswiler <marcel.ziswiler@toradex.com> | 2020-04-15 01:24:38 +0200 |
commit | 1d2d4f05b062064115531492fc3e7a2a371367bc (patch) | |
tree | b0cb284f71ed1659500ad3d981c91017e67471d1 /sound | |
parent | c0428ddceafffd48516aca1f7d7042c0f510674e (diff) |
ASoC: sgtl5000: Enable reading card registers
- set up parameters to read card registers via sysfs
Signed-off-by: Oleksandr Suvorov <oleksandr.suvorov@toradex.com>
Diffstat (limited to 'sound')
-rw-r--r-- | sound/soc/codecs/sgtl5000.c | 3 |
1 files changed, 3 insertions, 0 deletions
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, |