game-de-it / FunKeyOS-game_de_it

FunKeyOS-game_de_it
4 stars 0 forks source link

Merging our FunKey S source code #1

Closed DrUm78 closed 1 year ago

DrUm78 commented 1 year ago

Hey, I'm the author of the custom OS on the FunKey S and I just ported it to the RG Nano (60 Hz and RTC now work but not the USB-C audio yet): https://github.com/DrUm78/FunKey-OS/tree/rg_nano (the branch to use is rg_nano). This custom OS is much more advanced than the stock one (see my release page). I just saw your work on Twitter and that you made some progress about the USB-C audio part (I tried many things but in vain) and I would be interested in your source code for the FunKey OS and the Linux kernel, could you share them or create a PR for my Git repos? 🙏 That way, we would have the best of the 2 worlds:

Here you can find the test version of my OS for the RG Nano: IMG file: https://drive.google.com/file/d/1-ETJwMIre0YAFubo6ojEqEEFrAmjTNY0/view?usp=drive_link FWU file: https://drive.google.com/file/d/1Wx7WHtZBdBpzeUjAGhd57ENxu5fUa49j/view?usp=drive_link

BTW, I'm on the FunKey S, RG Handhelds and Anbernic Discords.

Thanks!

game-de-it commented 1 year ago

Yes, I didn't install drivers or make any special settings for these.

At this time, BT dongles that can connect mouse and keyboard etc. do not work, so you need to choose BT that can only use audio.

DrUm78 commented 1 year ago

Hey, A user reported to me a new semi incompatibility with this USB-C earphones AKG-TYPE-C-Wired-S20: https://www.mobilefun.fr/official-samsung-galaxy-s20-fe-tuned-by-akg-usb-c-wired-earphones-with-microphone-87277 It actually works but the volume cannot be adjusted despite your 'Headphone' fix in /usr/local/sbin/volume. It appears as Samsung USBC Headset at usb-1c1a400.usb-1, full speed: USB Audio in proc/asound/card1/stream0.

I put it here so we keep track of it. :)

game-de-it commented 1 year ago

Thank you for the interesting information!

/proc/asound/card1/usbmixer of I'd love to know how the control items look like :)

DrUm78 commented 1 year ago

Oh you mean that some earphones have this kind of line in usbmixer? Control: name="Headphone Playback Volume", index=0 If so, are 'PCM' and 'Headphone' some kind of aliases and could we use a generic one in volume file to make them all work? Not sure how it works actually here. Anyway, I asked for the usbmixer file to the person who reported the issue.

DrUm78 commented 1 year ago

Oh I got it, 'amixer' command gives the mixer names so that's easy to fix the volume control issue for some earphones. 👍

game-de-it commented 1 year ago

Yes, I think that a character string that is neither PCM nor headphone is probably detected in the usbmixer item. If you can somehow make sure it's recognized as PCM, the default volume control should be fine. I can't think of a way to do this ^^;

DrUm78 commented 1 year ago

Ok, I fixed it here with 'Headset' thanks to the reporter: https://github.com/DrUm78/FunKey-OS/commit/f1ef7289ce3cc6990609f28e34d03f375f2bbbd6 and that works for them. 👍

game-de-it commented 1 year ago

wonderful! ! "You did a great job!" (^o^)

DrUm78 commented 1 year ago

Would you have a Discord account so we can communicate more easily? This ticket will become too long to scroll soon ah ah. My nickname is drum78 on Discord.

game-de-it commented 1 year ago

I sent you a friend request! thank you!

DrUm78 commented 1 year ago

Accepted, let's close this then! 👍