Author Topic: USBDRV 10.225 - full support for USB audio  (Read 17797 times)

Lars

  • Hero Member
  • *****
  • Posts: 1271
  • Karma: +65/-0
    • View Profile
USBDRV 10.225 - full support for USB audio
« on: November 14, 2018, 07:27:49 am »
The new package now contains drivers for USB audio standard 1.0 and also audio standard 2.0 (has nothing to do with USB 1.x vs. USB 2.0).
That should cover all current sound devices. The supported bit depths and sample rates are what is in use today, more details in the contained "readusb.txt" file.
Really, only playback has been tested, I am not sure in how far or to what extent recording will work.

If you need sound and if UNIAUD does not work for you then you might consider buying a set of USB speakers or a USB audio stick for plugging in earphones instead.

Lars

Martin Iturbide

  • OS2World NewsMaster
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4710
  • Karma: +41/-1
  • Your Friend Wil Declares...
    • View Profile
    • Martin's Personal Blog
Re: USBDRV 10.225 - full support for USB audio
« Reply #1 on: November 14, 2018, 02:43:30 pm »
Thank you very much Lars.

Please, if somebody wants to report a USB Audio device working please post it or let me know. Give me the brand, model, hardwareID and any description you want to add, so I can include the device on the OS2World wiki.

Regards
Martin Iturbide
OS2World NewsMaster
... just share the dream.

Wim Brul

  • Sr. Member
  • ****
  • Posts: 295
  • Karma: +25/-0
    • View Profile
    • Wim's home page
Re: USBDRV 10.225 - full support for USB audio
« Reply #2 on: November 17, 2018, 05:07:09 pm »
Hi Martin,

TOPPING D10 USB DAC 32bit/348khz DSD 256 XMOS U208 ES1918K2M works with OS/2 (ArcaOS, eComStation)

I bought this adapter specifically to develop and test USB Audio Class 2.0 support with OS/2 (ArcaOS, eComStation).
It works very well with the latest (10.225) Lars Erdmann USB driver set.

Wim

Lars

  • Hero Member
  • *****
  • Posts: 1271
  • Karma: +65/-0
    • View Profile
Re: USBDRV 10.225 - full support for USB audio
« Reply #3 on: November 19, 2018, 01:52:23 pm »
Thank you very much Lars.

Please, if somebody wants to report a USB Audio device working please post it or let me know. Give me the brand, model, hardwareID and any description you want to add, so I can include the device on the OS2World wiki.

Regards

Martin, just a hint: there are audio standard 1.0 and standard 2.0 devices. That is relevant as the first needs the USBAUDIO.SYS driver and the second needs the USBAUD2.SYS driver.
You can distinguish these 2 standards by looking at the device descriptor info: if field "bcdADC" says "1.00" then it is audio standard 1.0 if it says "2.00" then it is audio standard 2.0.
That said, all the USB audio devices that you listing are audio standard 1.0 except for the "TOPPING" that Wim has been using which is audio standard 2.0.

rbri

  • Guest
Re: USBDRV 10.225 - full support for USB audio
« Reply #4 on: November 19, 2018, 07:37:16 pm »
Have an Sabrent AU-MMSA (https://www.amazon.com/Sabrent-External-Adapter-Windows-AU-MMSA/dp/B00IRVQ0F8) since some months; works great and robust. No problem or traps so far.

Lars/Wim Great work and many thanks


Martin Iturbide

  • OS2World NewsMaster
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4710
  • Karma: +41/-1
  • Your Friend Wil Declares...
    • View Profile
    • Martin's Personal Blog
Re: USBDRV 10.225 - full support for USB audio
« Reply #5 on: November 20, 2018, 04:04:21 am »
Thanks Wim, Lars, RBri.

Here I had tried to document the device: https://www.os2world.com/wiki/index.php/Audio_Cards#USB
I also tried to include Lar's hint since it is very important.

RBRi, can it be possible to post the "USB Device Hardware Report" of that device to include it also on the wiki?

Regards
Martin Iturbide
OS2World NewsMaster
... just share the dream.

rbri

  • Guest
Re: USBDRV 10.225 - full support for USB audio
« Reply #6 on: December 10, 2018, 09:01:16 pm »
RBRi, can it be possible to post the "USB Device Hardware Report" of that device to include it also on the wiki?

<<< Device Description >>>
 Type            : 01
 USB Rev         : 110
 Class           : Reserved (0)
 Subclass        : Reserved (0)
 Protocol        : Reserved (0)
  Device Information is defined at interface Level
 Max. packetsize : 08
 Vendor  ID      : 0D8C
 Product ID      : 0014
 Device Release# : 0100
 Strings:
  Manufacturer Name : C-Media Electronics Inc.
  Product Name      : USB Audio Device
  Serial number     : Not implemented
 Number of Configurations : 1

 Configuration 0 :
  Lenght     : 253
  Name       : <NONE>
  Value      : 1
  Attributes : 0x80
  Power      : 100 mA
  Interfaces : 4

  Interface 0
   Alt Setting : 0
   Name        : <NONE>
   Class       : Audio
   SubClass    : AudioControl
   Protocol    : Not used(0)
   Endpoints   : 0
     Audiocontrol CS Interface Descriptor
     Length  : 10
     Type    : 0x24
     Subtype : 0x01
    Header :
     Audio Device Class Release Number : 0100
     Max size of AudioControl interface descriptor. : 16205
     Number of AudioStreaming and MIDIStreaming interfaces : 2
      1. Streaming interface on Device Interface 1
      2. Streaming interface on Device Interface 2
     Audiocontrol CS Interface Descriptor
    Input Terminal :
     Length  : 12
     Type    : 0x24
     Subtype : 0x02
     Unique Terminal ID       : 1
     Terminal Type            : 0x0101
     Assoc. Terminal ID       : 0
     Number of Log. Channels  : 2
     Spatial channel location : 0x0003
     Name of Channel          : Not Implemented
     Name of Terminal         : Has Index 12(GetString Error -225)
     Audiocontrol CS Interface Descriptor
    Input Terminal :
     Length  : 12
     Type    : 0x24
     Subtype : 0x02
     Unique Terminal ID       : 2
     Terminal Type            : 0x0201
     Assoc. Terminal ID       : 0
     Number of Log. Channels  : 1
     Spatial channel location : 0x0001
     Name of Channel          : Not Implemented
     Name of Terminal         : Has Index 9(GetString Error -225)
     Audiocontrol CS Interface Descriptor
    Output Terminal :
     Length  : 9
     Type    : 0x24
     Subtype : 0x03
     Unique Terminal ID : 6
     Terminal Type      : 0x0301
     Assoc. Terminal ID : 0
     Source ID          : 9
     Name of Terminal   : Not Implemented
     Audiocontrol CS Interface Descriptor
    Output Terminal :
     Length  : 9
     Type    : 0x24
     Subtype : 0x03
     Unique Terminal ID : 7
     Terminal Type      : 0x0101
     Assoc. Terminal ID : 0
     Source ID          : 8
     Name of Terminal   : Not Implemented
     Audiocontrol CS Interface Descriptor
    Selector Unit :
     Length  : 7
     Type    : 0x24
     Subtype : 0x05
     Unique Unit ID    : 8
     Input pins        : 1
      Pin 0 is Connected to Unit 1
      Pin 1 is Connected to Unit 10
     Name of Selector Unit : Has Index 10(GetString Error -225)
     Audiocontrol CS Interface Descriptor
    Feature Unit :
    Length  : 10
    Type    : 36
    Subtype : 6
    Dumped Data :
     09 0F 01 01 02 02
     00 09
     Unique Unit ID  : 9
     Source ID       : 15
     Size of Control Item  : 1
     ControlMap for Master : 0x01
     ControlMap for Channel 1 : 0x02
     ControlMap for Channel 2 : 0x02
     Name of Feature Unit : Has Index 9(GetString Error -225)
     Audiocontrol CS Interface Descriptor
    Feature Unit :
    Length  : 9
    Type    : 36
    Subtype : 6
    Dumped Data :
     0A 02 01 43 00 00
     09
     Unique Unit ID  : 10
     Source ID       : 2
     Size of Control Item  : 1
     ControlMap for Master : 0x43
     ControlMap for Channel 1 : 0x00
     Name of Feature Unit : Has Index 9(GetString Error -225)
     Audiocontrol CS Interface Descriptor
    Feature Unit :
    Length  : 9
    Type    : 36
    Subtype : 6
    Dumped Data :
     0D 02 01 03 00 00
     0D
     Unique Unit ID  : 13
     Source ID       : 2
     Size of Control Item  : 1
     ControlMap for Master : 0x03
     ControlMap for Channel 1 : 0x00
     Name of Feature Unit : Has Index 13(GetString Error -225)
     Audiocontrol CS Interface Descriptor
    Mixer Unit :
     Length  : 13
     Type    : 0x24
     Subtype : 0x04
     Unique Unit ID    : 15
     Input pins        : 2
      Pin 0 is Connected to Unit 2
      Pin 1 is Connected to Unit 1
      Pin 2 is Connected to Unit 13
     Logical Output channels  : 3
     Spatial channel location : 0x0000
     Name of 1st log. Channel : Not Implemented
     Name of Mixer Unit : Has Index 4(GetString Error -225)

  Interface 1
   Alt Setting : 0
   Name        : <NONE>
   Class       : Audio
   SubClass    : Streaming Audio
   Protocol    : Not used(0)
   Endpoints   : 0

  Interface 1
   Alt Setting : 1
   Name        : <NONE>
   Class       : Audio
   SubClass    : Streaming Audio
   Protocol    : Not used(0)
   Endpoints   : 1
    General Endpoint Information:
     Length  : 7
     Type    : 0x24
     Subtype : 0x01
     Controls:
      - Sampling Frequency
      - Locktime 16323 ms
     Audiostreaming CS Interface Descriptor
     Format Type:
     Length  : 14
     Type    : 0x24
     Subtype : 0x02
      Physical Channels : 2
      Subframe size     : 2
      Bits used         : 16
      Supported Frequencies
       - 48000Hz
       - 44100Hz
       - 66825Hz

   Endpoint 0:
    Address     : 01
    Attributes  : 09
    Packetsize  : 00C8
    Interval    : 1
    General Endpoint Information:
     Length  : 7
     Type    : 0x25
     Subtype : 0x01
     Controls:
      - Sampling Frequency
      - Locktime 16353 ms

  Interface 2
   Alt Setting : 0
   Name        : <NONE>
   Class       : Audio
   SubClass    : Streaming Audio
   Protocol    : Not used(0)
   Endpoints   : 0

  Interface 2
   Alt Setting : 1
   Name        : <NONE>
   Class       : Audio
   SubClass    : Streaming Audio
   Protocol    : Not used(0)
   Endpoints   : 1
    General Endpoint Information:
     Length  : 7
     Type    : 0x24
     Subtype : 0x01
     Controls:
      - Sampling Frequency
      - Pitch
      - Locktime 16378 ms
     Audiostreaming CS Interface Descriptor
     Format Type:
     Length  : 14
     Type    : 0x24
     Subtype : 0x02
      Physical Channels : 1
      Subframe size     : 2
      Bits used         : 16
      Supported Frequencies
       - 48000Hz
       - 44100Hz
       - 8520969Hz

   Endpoint 0:
    Address     : 82
    Attributes  : 0D
    Packetsize  : 0064
    Interval    : 1
    General Endpoint Information:
     Length  : 7
     Type    : 0x25
     Subtype : 0x01
     Controls:
      - Sampling Frequency
      - Locktime 16408 (No Unit)

  Interface 3
   Alt Setting : 0
   Name        : <NONE>
   Class       : Human Interface Device (HID)
   SubClass    : No Subclass
   Protocol    : None
   Endpoints   : 1
   HID Description:
    Length          : 09
    HID Rel. Number : 100
    Country Code    : 0000
    Descriptors     : 1
     Type          : 22
     Length        : 0
     Type          : 07
     Length        : 0

   Endpoint 0:
    Address     : 87
    Attributes  : 03
    Packetsize  : 0004
    Interval    : 2

Wim Brul

  • Sr. Member
  • ****
  • Posts: 295
  • Karma: +25/-0
    • View Profile
    • Wim's home page
Re: USBDRV 10.225 - full support for USB audio
« Reply #7 on: July 25, 2019, 06:51:34 pm »
Really, only playback has been tested, I am not sure in how far or to what extent recording will work.

Since june 2019 I have been busy on getting recording working. I have put a beta test Audio Recorder and Replayer] and beta test audio 13.227 drivers] on my website. With this you may record and playback hires PCM audio streams. I made the Audio Recorder and Replayer  open source. The Lars Erdmann 10.227 drivers are prerequisite. I have tested this out with the behringer u-phoria umc204hd device and I can now properly record 32-bit PCM stereo at 44100, 48000, 88200, 96000, 176400, 192000 Hz with that device. These are the frequencies it supports with 24-bit resolution.

Wim

Lars

  • Hero Member
  • *****
  • Posts: 1271
  • Karma: +65/-0
    • View Profile
Re: USBDRV 10.225 - full support for USB audio
« Reply #8 on: July 28, 2019, 03:10:14 pm »
I now uploaded usbdrv228 to hobbes. It contains all of Wim's changes regarding USBAUDIO and USBAUD2 plus changes to USBWAV.

Martin Iturbide

  • OS2World NewsMaster
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4710
  • Karma: +41/-1
  • Your Friend Wil Declares...
    • View Profile
    • Martin's Personal Blog
Re: USBDRV 10.225 - full support for USB audio
« Reply #9 on: July 28, 2019, 03:48:08 pm »
Hi Lars

Thanks for the new release.

Just a little thing, since yesterday a new directory was created at hobbes. "/pub/os2/system/drivers/usb" I think you should put you new releases there on the future.

Regards
Martin Iturbide
OS2World NewsMaster
... just share the dream.

David Graser

  • Hero Member
  • *****
  • Posts: 870
  • Karma: +84/-0
    • View Profile
Re: USBDRV 10.225 - full support for USB audio
« Reply #10 on: July 29, 2019, 05:52:27 am »
I now uploaded usbdrv228 to hobbes. It contains all of Wim's changes regarding USBAUDIO and USBAUD2 plus changes to USBWAV.

Lars

I installed the listed OS2 USB components to the OS2 sub directories. Rebooted and the mouse no longer worked.  After rebooting several times without success of the mouse working, I booted to another of my ArcaOS partitions and copied the original OS2\boot USB drivers over the usbdrv228 USB drivers and rebooted to that partition and I had a working mouse again.

Doug Bissett

  • Hero Member
  • *****
  • Posts: 1593
  • Karma: +4/-2
    • View Profile
Re: USBDRV 10.225 - full support for USB audio
« Reply #11 on: July 29, 2019, 07:12:11 am »
Quote
I installed the listed OS2 USB components to the OS2 sub directories. Rebooted and the mouse no longer worked.  After rebooting several times without success of the mouse working, I booted to another of my ArcaOS partitions and copied the original OS2\boot USB drivers over the usbdrv228 USB drivers and rebooted to that partition and I had a working mouse again.

What version of USB drivers did you copy over? If it was version 12.1, from the new ArcaOS, you need to change the order of USBD.SYS in CONFIG.SYS. Installing version 12.1, or up, will correct the driver order. Installing earlier versions will not correct the driver order, if it is not correct for the version being installed.

SAMPLE for older versions:
Code: [Select]
BASEDEV=USBOHCD.SYS
BASEDEV=USBUHCD.SYS
BASEDEV=USBEHCD.SYS
BASEDEV=USBD.SYS
BASEDEV=USBHID.SYS
...

SAMPLE for 12.1, and up:
Code: [Select]
BASEDEV=USBD.SYS
BASEDEV=USBOHCD.SYS
BASEDEV=USBUHCD.SYS
BASEDEV=USBEHCD.SYS
BASEDEV=USBHID.SYS
...

David Graser

  • Hero Member
  • *****
  • Posts: 870
  • Karma: +84/-0
    • View Profile
Re: USBDRV 10.225 - full support for USB audio
« Reply #12 on: July 29, 2019, 07:30:06 am »
Quote
I installed the listed OS2 USB components to the OS2 sub directories. Rebooted and the mouse no longer worked.  After rebooting several times without success of the mouse working, I booted to another of my ArcaOS partitions and copied the original OS2\boot USB drivers over the usbdrv228 USB drivers and rebooted to that partition and I had a working mouse again.

What version of USB drivers did you copy over? If it was version 12.1, from the new ArcaOS, you need to change the order of USBD.SYS in CONFIG.SYS. Installing version 12.1, or up, will correct the driver order. Installing earlier versions will not correct the driver order, if it is not correct for the version being installed. 

SAMPLE for older versions:
Code: [Select]
BASEDEV=USBOHCD.SYS
BASEDEV=USBUHCD.SYS
BASEDEV=USBEHCD.SYS
BASEDEV=USBD.SYS
BASEDEV=USBHID.SYS
...

Thanks Doug.  That was the problem.  I had copied the new drivers to the new ArcaOS 5.04 partition which resulted in the mouse not working.  Rearranging the BASEDEV drivers to the above order solved the problem.  Was there a reason why the USBD.sys driver order changed in the config.sys on Version 5.04?  Why would the order of the usb drivers listed matter.?
« Last Edit: July 29, 2019, 07:34:26 am by David Graser »

Dave Yeo

  • Hero Member
  • *****
  • Posts: 4786
  • Karma: +99/-1
    • View Profile
Re: USBDRV 10.225 - full support for USB audio
« Reply #13 on: July 29, 2019, 08:07:55 am »
Seems that the order was changed to support USB3.
Lars should probably add something about the ordering to his readme, or perhaps he already did

Lars

  • Hero Member
  • *****
  • Posts: 1271
  • Karma: +65/-0
    • View Profile
Re: USBDRV 10.225 - full support for USB audio
« Reply #14 on: July 29, 2019, 09:27:03 am »
sorry, but I don't understand.
If you are using the 12.1 driver stack then you do not use my USB drivers I suppose.
And if you use my USB drivers there is no need to change the config.sys USBD.SYS ordering (but I think you can do so without any negative effect but I will need to try out).
As far as USBAUDIO.SYS and USBAUD2.SYS and potentially USBMSD.ADD goes, there is no need to change anything in config.sys. They are in no way affected by the USBD.SYS ordering in config.sys.