Audiosense-pi not loading with 5.10 kernel
audiosense-pi stopped loading in the 5.10 kernel. The source is from a change within the tlv320aic32x4 codec. The following patch is a workaround to fix this issue:
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