hc
2023-12-08 01573e231f18eb2d99162747186f59511f56b64d
kernel/sound/soc/codecs/tscs42xx.c
....@@ -103,7 +103,7 @@
103103 int count = MAX_PLL_LOCK_20MS_WAITS;
104104
105105 do {
106
- ret = snd_soc_component_read32(component, R_PLLCTL0);
106
+ ret = snd_soc_component_read(component, R_PLLCTL0);
107107 if (ret < 0) {
108108 dev_err(component->dev,
109109 "Failed to read PLL lock status (%d)\n", ret);
....@@ -148,7 +148,7 @@
148148 for (cnt = 0; cnt < coeff_cnt; cnt++, addr++) {
149149
150150 for (trys = 0; trys < DACCRSTAT_MAX_TRYS; trys++) {
151
- ret = snd_soc_component_read32(component, R_DACCRSTAT);
151
+ ret = snd_soc_component_read(component, R_DACCRSTAT);
152152 if (ret < 0) {
153153 dev_err(component->dev,
154154 "Failed to read stat (%d)\n", ret);
....@@ -389,7 +389,7 @@
389389
390390 mutex_lock(&tscs42xx->coeff_ram_lock);
391391
392
- if (tscs42xx->coeff_ram_synced == false) {
392
+ if (!tscs42xx->coeff_ram_synced) {
393393 ret = write_coeff_ram(component, tscs42xx->coeff_ram, 0x00,
394394 COEFF_RAM_COEFF_COUNT);
395395 if (ret < 0)