Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Audiosense-pi not loaded anymore after kernel update: 5.4.x to 5.10 #3

Open
linuxchris12 opened this issue Mar 2, 2021 · 2 comments

Comments

@linuxchris12
Copy link

linuxchris12 commented Mar 2, 2021

it is working again after downgrading with:

sudo rpi-update 453e49bdd87325369b462b40e809d5f3187df21d

Error on 5.10:
tlv320aic32x4: probe of 1-0018 failed with error -121

More info to be added...

@linuxchris12
Copy link
Author

linuxchris12 commented Mar 10, 2021

Workaround for the 5.10 kernel:

sound/soc/codecs/tlv320aic32x4.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sound/soc/codecs/tlv320aic32x4.c b/sound/soc/codecs/tlv320aic32x4.c
index 9e3de9ded..5ac1418d7 100644
--- a/sound/soc/codecs/tlv320aic32x4.c
+++ b/sound/soc/codecs/tlv320aic32x4.c
@@ -1233,7 +1233,7 @@ int aic32x4_probe(struct device *dev, struct regmap *regmap)
 		return ret;
 	}
 
-	if (gpio_is_valid(aic32x4->rstn_gpio)) {
+	/* if (gpio_is_valid(aic32x4->rstn_gpio)) {
 		ndelay(10);
 		gpio_set_value_cansleep(aic32x4->rstn_gpio, 1);
 		mdelay(1);
@@ -1241,7 +1241,7 @@ int aic32x4_probe(struct device *dev, struct regmap *regmap)
 
 	ret = regmap_write(regmap, AIC32X4_RESET, 0x01);
 	if (ret)
-		goto err_disable_regulators;
+		goto err_disable_regulators; */
 
 	ret = devm_snd_soc_register_component(dev,
 			&soc_component_dev_aic32x4, &aic32x4_dai, 1);
-- 
2.29.2

@b-ak
Copy link
Owner

b-ak commented Nov 16, 2021

These lines bring the codec out of reset. Is the codec still working with this fix?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants