• Re: Bug#1014017: soundmodem: Fails to build with HID support

    From Alan Crosswell@21:1/5 to [email protected] on Mon Nov 6 23:50:01 2023
    Dave - I'm an experienced OSS project contributor
    <https://github.com/n2ygk> but
    am a Debian (-hams) packaging neophyte. How might I contribute to the
    effort beyond submitting patches? I've read over some of the wiki but
    there's just a lot of stuff to wade through and I didn't immediately see
    how one volunteers. I could certainly fix up some of the issues with
    soundmodem <https://tracker.debian.org/pkg/soundmodem> (including
    referencing the proper upstream repo which is https://gitlab.com/tsailer/soundmodem -- not that Thomas has been merging
    PRs -- but his code is still there unlike Gna) as well as with aprsdigi <https://tracker.debian.org/pkg/aprsdigi> for which I am the upstream
    author.

    My ham clubs (WECA.org <https://www.weca.org>and W2AEE.columbia.edu <https://www.W2AEE.columbia.edu>) have a number of APRS digipeaters
    deployed in the greater NYC area (for decades, apparently:-) running
    aprsdigi with soundmodem and the rest of the Kernel AX.25 stuff. It's
    really old stuff but it's also extremely stable. My latest rebuild
    effort is using Raspberry PIs with the DINAH CM108/CM119 GPIO PTT stuff to replace a bunch of old rack-mounted servers that use a USB sound card and serial port PTT.

    Looking forward to your advice.

    73 de N2YGK

    On Thu, Nov 2, 2023 at 5:17 PM Alan Crosswell <[email protected]> wrote:

    Dave: This patch would be mostly invisible to existing users. It would add the gpio attribute to the soundmodem configuration with a default empty value.

    73

    On Thu, Nov 2, 2023 at 11:25 AM Dave Hibberd <[email protected]> wrote:

    Hi Alan,

    I'm part of quite an active packet communtiy (
    https://ukpacketradio.network/) - DINAH looks like a cool item a number
    of folks would be itnerested in! Not many of our users are on soundmodem - >> direwolf, G8BPQ's QtSoundmodem (which I plan to upload to Debian) and (in
    hardware) NinoTNC are the flavour of the month for us.

    I know of a few CM108 mods (our sister communtiy even has a guide -
    https://wiki.oarc.uk/cm108_sound_interface_smd)
    <https://wiki.oarc.uk/cm108_sound_interface_smd?s[]=cm108>, so extending
    functionality to more people would be generally of benefit to all.

    Soundmodem is a little old, but it's also not moving very fast so I don't
    see too much overhead in maintaining a patch for it unless it's likely to
    degrade the experience for other users?

    Cheers

    DH

    --
    Hibby
    MM0RFN

    On Thu, 2 Nov 2023, at 2:45 PM, Alan Crosswell wrote:

    Hey Daniele,

    It's been about a year and I've just now gotten around to building a
    Raspberry Pi connected to a DINAH and can confirm that this PTT patch still >> works on the latest Raspi Bullseye distro. I don't know if there's any
    interest in carrying this forward to a committed patch for soundmodem. I
    can always keep patching it myself if I'm the only one who still thinks
    soundmodem is a nice small tool for AX.25.

    Regarding many more CM108's, I wonder how many of them are integrated
    such that a spare GPIO pin is used for PTT? Given it's probably not a lot, >> I wouldn't think removing the device test entirely would be a huge issue.
    Would you like me to submit a revised PR to do that?

    73 de N2YGK

    On Mon, 24 Oct 2022 09:14:23 -0400 Alan Crosswell <[email protected]> wrote:
    Yeah I don't know that ignoring the device code would be much of a
    problem.
    It's not like it searches available devices to see which one to use; the >> > specific device to use is specified.

    On Sun, Oct 23, 2022 at 3:10 PM Daniele Forsi <[email protected]> wrote:

    Hello Alan,

    I committed your patch to configure.ac in a branch and I think that
    we
    should merge it to master:

    https://salsa.debian.org/debian-hamradio-team/soundmodem/-/tree/hidraw

    I didn't commit your patch to ptt.c yet.
    What happens if we drop the check for hiddevinfo.product for C-Media
    entirely?

    You changed the test to work with your hardware, which is fine, but it >> > > seems that there are many more CM108s out there (I have one with ID
    0d8c:013c).
    I'm copying the list from https://usb-ids.gowdy.us/read/UD/0d8c so it
    is archived with this bug report.

    Id Name
    0001 Audio Device
    0002 Composite Device
    0003 Sound Device
    0004 CM6631A Audio Processor
    0005 Blue Snowball
    0006 Storm HP-USB500 5.1 Headset
    000c Audio Adapter
    000d Composite Device
    000e Audio Adapter (Planet UP-100, Genius G-Talk)
    0012
    0014 Audio Adapter (Unitek Y-247A)
    001f CM108 Audio Controller
    0029
    0102 CM106 Like Sound Device
    0103 CM102-A+/102S+ Audio Controller
    0104 CM103+ Audio Controller
    0105 CM108 Audio Controller
    0107 CM108 Audio Controller
    010f CM108 Audio Controller
    0115 CM108 Audio Controller
    0134
    0139 Multimedia Headset [Gigaware by Ignition L.P.]
    013c CM108 Audio Controller
    0201 CM6501
    5000 Mass Storage Controller
    5200 Mass Storage Controller(0D8C,5200)
    b213 USB Phone CM109 (aka CT2000,VPT1000)

    --
    73 de IU5HKX Daniele





    <div dir="ltr">Dave - I&#39;m an experienced <a href="https://github.com/n2ygk">OSS project contributor</a> but am a Debian (-hams) packaging neophyte. How might I contribute to the effort beyond submitting patches? I&#39;ve read over some of the wiki
    but there&#39;s just a lot of stuff to wade through and I didn&#39;t immediately see how one volunteers. I could certainly fix up some of the <a href="https://tracker.debian.org/pkg/soundmodem">issues with soundmodem</a> (including referencing the
    proper upstream repo which is <a href="https://gitlab.com/tsailer/soundmodem">https://gitlab.com/tsailer/soundmodem</a> -- not that Thomas has been merging PRs -- but his code is still there unlike Gna) as well as with <a href="https://tracker.debian.
    org/pkg/aprsdigi">aprsdigi</a> for which I am the upstream author. <div><br></div><div>My ham clubs (<a href="https://www.weca.org">WECA.org </a>and <a href="https://www.W2AEE.columbia.edu">W2AEE.columbia.edu</a>) have a number of APRS digipeaters
    deployed in the greater NYC area (for decades, apparently:-) running aprsdigi with soundmodem and the rest of the Kernel AX.25 stuff. It&#39;s really old stuff but it&#39;s also extremely stable. My latest rebuild effort is using Raspberry PIs with
    the DINAH CM108/CM119 GPIO PTT stuff to replace a bunch of old rack-mounted servers that use a USB sound card and serial port PTT.<div><br></div><div>Looking forward to your advice.<br><div><br></div><div>73 de N2YGK</div></div></div></div><br><div class=
    "gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Nov 2, 2023 at 5:17 PM Alan Crosswell &lt;<a href="mailto:[email protected]">[email protected]</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px
    solid rgb(204,204,204);padding-left:1ex"><div dir="auto">Dave: This patch would be mostly invisible to existing users. It would add the gpio attribute to the soundmodem configuration with a default empty value. </div><div dir="auto"><br></div><div dir="
    auto">73</div><div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Nov 2, 2023 at 11:25 AM Dave Hibberd &lt;<a href="mailto:[email protected]" target="_blank">[email protected]</a>&gt; wrote:<br></div><blockquote class="gmail_quote"
    style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><u></u><div><div style="font-family:menlo,consolas,monospace">Hi Alan,<br></div><div style="font-family:menlo,consolas,monospace"><br></div><div style="font-family:
    menlo,consolas,monospace"><div>I&#39;m part of quite an active packet communtiy (<a href="https://ukpacketradio.network/" target="_blank">https://ukpacketradio.network/</a>) - DINAH looks like a cool item a number of folks would be itnerested in! Not
    many of our users are on soundmodem - direwolf, G8BPQ&#39;s QtSoundmodem (which I plan to upload to Debian) and (in hardware) NinoTNC are the flavour of the month for us.<br></div><div><br></div><div>I know of a few CM108 mods (our sister communtiy even
    has a guide - <a href="https://wiki.oarc.uk/cm108_sound_interface_smd?s[]=cm108" target="_blank">https://wiki.oarc.uk/cm108_sound_interface_smd)</a>, so extending functionality to more people would be generally of benefit to all.<br></div><div style="
    font-family:menlo,consolas,monospace"><br></div><div style="font-family:menlo,consolas,monospace">Soundmodem is a little old, but it&#39;s also not moving very fast so I don&#39;t see too much overhead in maintaining a patch for it unless it&#39;s likely
    to degrade the experience for other users?<br></div><div style="font-family:menlo,consolas,monospace"><br></div><div style="font-family:menlo,consolas,monospace">Cheers</div></div></div><div><div style="font-family:menlo,consolas,monospace"><div style="
    font-family:menlo,consolas,monospace"><br></div><div style="font-family:menlo,consolas,monospace">DH<br></div><div style="font-family:menlo,consolas,monospace"><br></div></div><div id="m_6433857879934949683m_4730421745157442626sig57366953"><div>-- <br></
    <div>  Hibby<br></div><div>  MM0RFN<br></div></div><div style="font-family:menlo,consolas,monospace"><br></div><div>On Thu, 2 Nov 2023, at 2:45 PM, Alan Crosswell wrote:<br></div><blockquote type="cite" id="m_6433857879934949683m_
    4730421745157442626qt"><div dir="ltr"><div><div>Hey Daniele,<br></div><div><br></div><div>It&#39;s been about a year and I&#39;ve just now gotten around to building a Raspberry Pi connected to a DINAH and can confirm that this PTT patch still works on
    the latest Raspi Bullseye distro. I don&#39;t know if there&#39;s any interest in carrying this forward to a committed patch for soundmodem. I can always keep patching it myself if I&#39;m the only one who still thinks soundmodem is a nice small tool for
    AX.25.<br></div><div><br></div><div>Regarding many more CM108&#39;s, I wonder how many of them are integrated such that a spare GPIO pin is used for PTT? Given it&#39;s probably not a lot, I wouldn&#39;t think removing the device test entirely would be
    a huge issue. Would you like me to submit a revised PR to do that?<br></div><div><br></div><div>73 de N2YGK<br></div><div><br></div></div><div>On Mon, 24 Oct 2022 09:14:23 -0400 Alan Crosswell &lt;<a href="mailto:[email protected]" target="_blank">n2ygk@
    weca.org</a>&gt; wrote:<br></div><div>&gt; Yeah I don&#39;t know that ignoring the device code would be much of a problem.<br></div><div>&gt; It&#39;s not like it searches available devices to see which one to use; the<br></div><div>&gt; specific device
    to use is specified.<br></div><div>&gt; <br></div><div>&gt; On Sun, Oct 23, 2022 at 3:10 PM Daniele Forsi &lt;<a href="mailto:[email protected]" target="_blank">[email protected]</a>&gt; wrote:<br></div><div>&gt; <br></div><div>&gt; &gt; Hello Alan,<br></
    <div>&gt; &gt;<br></div><div>&gt; &gt; I committed your patch to <a href="http://configure.ac" target="_blank">configure.ac</a> in a branch and I think that we<br></div><div>&gt; &gt; should merge it to master:<br></div><div>&gt; &gt; <a href="https:/
    /salsa.debian.org/debian-hamradio-team/soundmodem/-/tree/hidraw" target="_blank">https://salsa.debian.org/debian-hamradio-team/soundmodem/-/tree/hidraw</a><br></div><div>&gt; &gt;<br></div><div>&gt; &gt; I didn&#39;t commit your patch to ptt.c yet.<br></
    <div>&gt; &gt; What happens if we drop the check for hiddevinfo.product for C-Media<br></div><div>&gt; &gt; entirely?<br></div><div>&gt; &gt;<br></div><div>&gt; &gt; You changed the test to work with your hardware, which is fine, but it<br></div><div>
    &gt; &gt; seems that there are many more CM108s out there (I have one with ID<br></div><div>&gt; &gt; 0d8c:013c).<br></div><div>&gt; &gt; I&#39;m copying the list from <a href="https://usb-ids.gowdy.us/read/UD/0d8c" target="_blank">https://usb-ids.gowdy.
    us/read/UD/0d8c</a> so it<br></div><div>&gt; &gt; is archived with this bug report.<br></div><div>&gt; &gt;<br></div><div>&gt; &gt; Id Name<br></div><div>&gt; &gt; 0001 Audio Device<br></div><div>&gt; &gt; 0002 Composite Device<br></div><div>&gt; &gt;
    0003 Sound Device<br></div><div>&gt; &gt; 0004 CM6631A Audio Processor<br></div><div>&gt; &gt; 0005 Blue Snowball<br></div><div>&gt; &gt; 0006 Storm HP-USB500 5.1 Headset<br></div><div>&gt; &gt; 000c Audio Adapter<br></div><div>&gt; &gt; 000d Composite
    Device<br></div><div>&gt; &gt; 000e Audio Adapter (Planet UP-100, Genius G-Talk)<br></div><div>&gt; &gt; 0012<br></div><div>&gt; &gt; 0014 Audio Adapter (Unitek Y-247A)<br></div><div>&gt; &gt; 001f CM108 Audio Controller<br></div><div>&gt; &gt; 0029<br></
    <div>&gt; &gt; 0102 CM106 Like Sound Device<br></div><div>&gt; &gt; 0103 CM102-A+/102S+ Audio Controller<br></div><div>&gt; &gt; 0104 CM103+ Audio Controller<br></div><div>&gt; &gt; 0105 CM108 Audio Controller<br></div><div>&gt; &gt; 0107 CM108 Audio
    Controller<br></div><div>&gt; &gt; 010f CM108 Audio Controller<br></div><div>&gt; &gt; 0115 CM108 Audio Controller<br></div><div>&gt; &gt; 0134<br></div><div>&gt; &gt; 0139 Multimedia Headset [Gigaware by Ignition L.P.]<br></div><div>&gt; &gt; 013c CM108
    Audio Controller<br></div><div>&gt; &gt; 0201 CM6501<br></div><div>&gt; &gt; 5000 Mass Storage Controller<br></div><div>&gt; &gt; 5200 Mass Storage Controller(0D8C,5200)<br></div><div>&gt; &gt; b213 USB Phone CM109 (aka CT2000,VPT1000)<br></div><div>&gt;
    &gt;<br></div><div>&gt; &gt; --<br></div><div>&gt; &gt; 73 de IU5HKX Daniele<br></div><div>&gt; &gt;<br></div></div></blockquote><div style="font-family:menlo,consolas,monospace"><br></div></div></blockquote></div></div>
    </blockquote></div>

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)