ftCommunity / ftcommunity-TXT

Fischertechnik ROBOTICS TXT firmware, community edition
http://cfw.ftcommunity.de/
GNU General Public License v3.0
46 stars 31 forks source link

radio does not work well with updated kernel #220

Open hypnotoad opened 1 year ago

hypnotoad commented 1 year ago

The radio app stops working after approx 1 second. There is some spi error. I guess that is related to the minor kernel upgrade: To reproduce:

mpg123 -f 8000 -q --stdout --encoding u8 --rate 22050 --mono http://liveradio.sr.de/sr/sr1/mp3/64/stream.mp3 | /home/ftc/apps/ad5e0ea4-4606-4254-add6-60c452c3db36/txt_snd_cat
ski7777 commented 1 year ago

I hate kernel and C things... I will try to debug it :)

ski7777 commented 1 year ago

Just added a package to build the ft_txt_snd_cat in future. I did this to ensure building against matching kernel headers. Sadly still the same behavior

ski7777 commented 1 year ago

Do we want to revert the kernel update? Does anyone know how to write good C code? @rkunze @ftrobopy

hypnotoad commented 1 year ago

I will try if reverting https://github.com/ftCommunity/ftcommunity-TXT/commit/1503cc8a19cb2386b8c30c92f94d294372ae49fc fixes the problem. I am a little afraid that this bug also affects the ft-server's sound output abilities.

hypnotoad commented 1 year ago

after reverting 1503cc8, the command above works

ski7777 commented 1 year ago

where did you fix this?

hypnotoad commented 1 year ago

it was fixed by your revert. I have to check to be sure...

ski7777 commented 1 year ago

yes, but we still need to update the kernel. So I want to keep this open until it works with a new kernel