redchenjs / mt762x-wm8960

MT762X WM8960 ALSA SoC machine driver
GNU General Public License v2.0
27 stars 22 forks source link

Watchdog reboot after Ctrl-C of aplay #16

Open roelfdiedericks opened 11 months ago

roelfdiedericks commented 11 months ago

Using kernel 5.15.114, and DTS as per the examples on a MT7628AN by Hilink on OpenWRT 22

Board i'm using is a waveshare Audio HAT https://www.waveshare.com/wiki/WM8960_Audio_HAT and I'm using the HAT's refclk, so no refclk defined in the DTS

When playing a 16 bit 48k wav file through aplay, and the process is interrupted, e.g. using Ctrl-C or SIGNIT the board hangs and eventually the watchdog timer reboots the board.

Tried various things such as https://forum.openwrt.org/t/i2s-freezing-on-mt7628/81140/2 but still having the same issue

There's no kernel output or anything, just the watchdog reset message.

An ideas?

roelfdiedericks commented 11 months ago

Apologies, here's the relevant DTS config.

codec: wm8960@1a { compatible = "wlf,wm8960"; reg = <0x1a>; wlf,shared-lrclk; wlf,hp-cfg = <0 0 0>; wlf,gpio-cfg = <1 0>; };

roelfdiedericks commented 11 months ago

I also sometimes get the following output from aplay before it hangs

aplay piano2.wav Playing WAVE 'piano2.wav' : Signed 16 bit Little Endian, Rate 48000 Hz, Stereo underrun!!! (at least 0.029 ms long) underrun!!! (at least 0.028 ms long