-
Notifications
You must be signed in to change notification settings - Fork 310
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Annoyance Bug in CM108 PTT sanity check when USB VID:PID is not a C-Media device #448
Comments
Thanks for inventing such a useful gadget which makes the wiring so tidy. https://github.com/skuep/AIOC/blob/master/stm32/aioc-fw/Src/usb_descriptors.h #define USB_VID 0x1209 The fix should be to simply add that to GOOD_DEVICE in direwolf/src/cm108,c. I agree, the if nesting doesn't look right. I need to ponder that some more. Questions for you: |
Sorry I forgot including the VID/PID in my post, I didn't think you'd be willing to add those :-) I think the error messages that come with each PTT assertion is what bugged me the most. (1) Yeah, totally CM108 compatible |
SUBSYSTEM=="hidraw", ATTRS{idVendor}=="1209", ATTRS{idProduct}=="7388", GROUP="audio", MODE="0660" Do you use the same ptt gpio number as everyone else? |
Udev Rule is looking good, thanks a lot! Yes, same GPIO number! After all, it already works with Direwolf, just these error messages look awkward. :-)
This is currently the mask check for PTT1 (Bit 2) (and PTT2 (Bit 3) if available). |
Has this been implemented? And if so, from which version/release? I am using DireWolf 1.6 from the Debian repo and I am still seeing this error with the AIOC device (Ha - then the next question would be, when will the Debian repo be updated with the latest, but I guess that should go in a different Issue) Thnx, kx1t # apt-cache showpkg direwolf
Package: direwolf
Versions:
1.6+dfsg-3 (/var/lib/apt/lists/deb.debian.org_debian_dists_bookworm_main_binary-arm64_Packages.lz4) (/var/lib/dpkg/status)
... |
The Direwolf 1.7 release versions is already uploaded into both Debian unstable (testing branch) and the future Debian Trixie /13 release which due out in 2025. It's unlikely Direwolf will be backported to say Debian Bookworm / 12 due to the standard Debian packaging process and timelines. If you want the newer code now, you need to either find either a PPA (private repo) or someone else's compiled version or better yet, just build it yourself. Compiling Direwolf is not hard to do and is documented in both the Direwolf User Guide and many other docs on the Internet. Beyond that, the above USB recognition changes are not done in Direwolf but in the udev system to better recognize unknown USB devices with already supported internals. If you browse the Linux USB VID:PID database ( https://usb-ids.gowdy.us/read/UD/1209 ) , 1209:7388 isn't known yet. T vendor of the AIOC device needs to submit some basic details to get it added which also isn't hard. One the basic details are uploaded, it will take time for this information to make it into various code bases like the Linux kernel, etc. but until then, adding that support is as simple as the steps mentioned above. Give it a try and if you have issues, feel free to join the [email protected] list for support. |
The AIOC device is fully supported in release 1.7.
** 1209 7388 All-In-One-Cable /dev/snd/pcmC4D0c plughw:4,0 plughw:AllInOneCable,0 /dev/hidraw2 Note the ** which means it is supported for USB audio device PTT. Here is a configuration file to test it: ADEVICE plughw:4,0 It works as expected. No complaints. Building from source is easy. You should uninstall the package first so you don't have both installed at the same time. 73, |
I know this should never happen, because there are only C-Media devices out there that can be used with the CM108 PTT option.
Not anymore! The AIOC now has preliminary CM108 support. See this Release: https://github.com/skuep/AIOC/releases/tag/v1.2.0-rc.1
It works quite well! However these two warnings are reported by direwolf.
The first one is fine for me. The second one (repeats with every assertion/deassertion of the PTT) however seems to be a bug with jumbled up if/else clauses here:
direwolf/src/cm108.c
Lines 817 to 829 in 7d3c1d1
I would expect the second warning to be
This warning seems annoying and redundant (it already says so on direwolf startup), it clutters the direwolf log window. Maybe get rid of this message?
Thanks for all the work that went into direwolf. Thanks a bunch!
The text was updated successfully, but these errors were encountered: