WM8960-Audio-HAT icon indicating copy to clipboard operation
WM8960-Audio-HAT copied to clipboard

Failed to issue reset (I2C)

Open mehrdadfeller opened this issue 7 months ago • 0 comments

Once in a while after a reboot, the audio stops working (even though the driver is loaded and detected by aplay -l). In dmesg log I get Failed to issue reset which means the driver failed to send reset command to the audio chip. Unbinding and rebinding the driver will make the audio work again. I believe there should be a few retries in the driver code below in case I2C bus is still not initialized during the boot or not yet stable after power up...

https://github.com/waveshare/WM8960-Audio-HAT/blob/259d282dc4856318c6961e7d6a94b761308653d3/wm8960.c#L1470

This happens once in a while after a reboot and the audio works otherwise. For more context, you can checkout this related issue and comments here:

https://github.com/ubopod/ubo_app/issues/83#issuecomment-2241275899

mehrdadfeller avatar Jul 21 '24 20:07 mehrdadfeller