Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Mikhail

Pages: [1] 2 3
1
Multimedia / Re: XHCI and USB Audio perspectives
« on: July 31, 2024, 01:18:49 pm »
It remains to understand why playback occasionally stops in the middle of a track, this problem is not related to a compatibility problem and appears in a floating way, perhaps there is something wrong with my hardware.

Try with only one CPU (core) enabled and see if it still happens.

Thanks for the advice. I tried leaving only one core enabled and it had no effect on the problem.

2
Multimedia / Re: XHCI and USB Audio perspectives
« on: July 31, 2024, 03:01:38 am »
I have to admit that my conclusions about the absence of errors in the operation of UAC devices were incorrect. I conducted more in-depth testing for PCI-e cards with USB XHCI controllers on different motherboards, both with their own XHCI controller and without their own XHCI controller. All PCI-e cards and controllers on motherboards behaved differently and only one PCI-e card worked correctly on both motherboards and with all the UAC devices that I have. And even the xhci controllers built into motherboards were not compatible with all UAC2 devices (which, I understand, is not an AN problem, but I provide this information as an observation).

In total I have 4 PCI-e different XHCI boards, 3 of them on different chipsets (Texas instruments, Asmedia, and Renesas).
If we talk about each separately then:
  • The board with the Renesas PD720202 controller for 6 ports does not work at all, it is detected in the system, but none of the UAC2 devices work on it and are not detected. Apparently the problem is that this card has a HUB/divider.
  • The board with a Renesas PD720202 controller for 2 ports is fully functional. Both devices on XMOS chips and AMANERO are detected and operated on it. When playback is at the correct speed, multi-hour playlists do not stop.
  • Board with Asmedia ASM2142 controller for 1 port. The board is unstable. In the original and latest build of ArcaOS 5.1 installed in UEFI mode, the board is only capable of working with the Amanero UAC2 device and refuses to detect and work with the XMOS device. With the UAC2 Amanero device, playback can stop at any time without any apparent reason or error. Moreover, in a micro assembly, when loading the system into MSHELL via Legacy (BIOS), playback mode can last several minutes, and in a full system in UEFI mode, playback rarely lasts longer than 5 seconds.
  • Board with Texas Instruments TUSB73x0 controller for 1 port. The board is unstable. In the original ArcaOS 5.1 build installed in UEFI mode, the board is only capable of working with the Amanero UAC2 device and refuses to detect and work with the XMOS device. With the UAC2 Amanero device, normal playback is possible only for the first launched track; all subsequent tracks are played back at a speed increased several times.

As for XHCI controllers built into the motherboard or processor chipset. At the moment, for OS/2 I am using a motherboard with an Intel Q370 chipset, the only XHCI controller on this motherboard works normally only with the AMANERO UAC2 device, it works fully (without accelerations and sudden stops). UAC2 XMOS device is not detected.

3
Multimedia / Re: XHCI and USB Audio perspectives
« on: July 28, 2024, 02:03:37 am »
The problem that David solved concerns not one specific device, but the entire class of USB Audio Class 2 devices. For my purposes (high-quality audio playback), I use devices on XMOS chips and programmable FPGA controllers with Amanero firmware; they are most often installed in external DAC devices . I tested both devices on different controllers, connecting them to XHCI controller ports on different motherboards and external PCI-e cards with USB3 ports. In all cases the problem of crackling, distortion and TRAP went away.

Attached are detailed LSUSB logs for the devices I connected.

4
Multimedia / Re: XHCI and USB Audio perspectives
« on: July 22, 2024, 11:26:47 pm »
The issue of UAC 2.0 device compatibility with XHCI has been resolved in drivers 12.16.
Thanks to David, Lars and Wim!
It remains to understand why playback occasionally stops in the middle of a track, this problem is not related to a compatibility problem and appears in a floating way, perhaps there is something wrong with my hardware.

5
Hardware / Re: Connexant cx31993 and USB3 stack
« on: November 03, 2023, 07:59:05 pm »
Lars, thanks for the tip. I tried to use /MAXCPU=1, but the clicks were still audible in the sound, and after a while an error appeared for the XHCI driver, exactly the same as what I gave earlier. I tested different devices, they all output clicks and crackles over the sound and some crashed with an XHCI error, some became unavailable in the DART plugin after some time

6
Hardware / Re: Connexant cx31993 and USB3 stack
« on: October 27, 2023, 03:34:53 am »
What if I can’t find another operating system that produces sound of the same quality as OS/2?
If even specially prepared builds of Linux https://www.audio-linux.com/ and Windows https://www.highend-audiopc.com/audiophile-optimizer are not capable of outputting sound of the same quality as OS/2?
And I'm talking about sound quality, and not about the characteristics of the files being played.
Now there is only one problem in OS/2 - these are XHCI controllers to which it is not possible to connect UAC2.0 devices, so that the sound would be played without problems.
Recently, the system has learned to play any audio formats, in any resolution, on USBAudio devices, including over a network, like a DLNA client. It is also loaded into RAM over the network from an 18MB image.
So what, let's drop everything and run to persuade Microsoft to rewrite Windows so that it generates less jitter at the output of the audio stream?
Sorry but no.

7
Hardware / Re: Connexant cx31993 and USB3 stack
« on: October 26, 2023, 09:45:18 pm »
At the moment, as far as I know, there are no devices left that can work simultaneously in two UAC classes 1 and 2, each of the classes respectively needs its own drivers.
In your case, you can forget about USBAUDIO.SYS, as Martin correctly said.
For UAC2 devices to work correctly, it is enough to install only the USBAudio package via minstall \* , selecting only USBAudio 2.0.
Crackling and distortion in sound are not related to the operation of the HDD or SSD. They are observed even on a OS/2 5.1 system that runs ENTIRELY from RAM Drive and boots over the network. The distortions, in my opinion, originate from the incorrect operation of USBXHCD.SYS in drivers 11.14. On different USB controllers the type of distortion will be different and in some cases it will even seem almost unnoticeable.
But, most importantly, if you continue to torture your psyche and switch tracks with different formats, listening to crackling and wheezing, then most likely as a result you will see a screen of death with Trap 000e in the USBXHCD module. 

8
Hardware / Re: Connexant cx31993 and USB3 stack
« on: October 25, 2023, 10:49:13 pm »
A few questions, if I may:
1. Does your UAC 2.0 device work correctly on USB 2.0 ports with EHCI controllers?
2. Have you tried using 10.244 drivers for this device?
3. Have you managed to use other UAC 2.0 devices on USB 3.0 (XHCI) ports?

9
Multimedia / Re: XHCI and USB Audio perspectives
« on: January 13, 2023, 11:36:08 pm »
I will clarify the current status.
USB Audio devices of Class 2.0 on the ports of XHCI controllers do not work stably.
The problems described in the topics above have not yet been solved.
Most devices experience problems with cracking and dropping samples, sometimes slightly noticeable, sometimes very noticeable.
Other devices cannot synchronize the sampling frequency of the audio stream with the signal source the first time. As a result, the playback speed changes.

Unfortunately - AN rejected my ticket to the XHCI driver with this problem.

If there are those who wish to repeat the appeal, use only the release versions of drivers and OS when preparing logs.

10
Multimedia / Re: XHCI and USB Audio perspectives
« on: December 10, 2022, 07:08:14 pm »
If they don't respond, the only advice remaining is: switch over to another OS, Linux or Windows, whatever you prefer.
I am deeply immersed in the topic of sound quality of different operating systems on specially prepared computers. OS/2 in general and OS/4 in particular sounds the best of all systems. If the difference was not fundamental, I would have switched to Windows or Linux a long time ago. There would be much less problems with compatibility.

11
Multimedia / Re: XHCI and USB Audio perspectives
« on: December 09, 2022, 08:21:49 pm »
The descriptors for the Windows firmware version were written correctly. For USB drivers version 12.14, the descriptors are read this way.
On USB drivers version 10.247, the result is completely different - more complete.

By the way, I compared a few descriptors and on the Linux version of the firmware, the files there are the same (It seems).

I also considered the descriptors from the M2tech hiface two device, it really works better, especially if installed in the USB 3.0 XHCI port on a PCIe card. There are no questions about the work at all, and frequency switching works and there are no artifacts in the sound, the device does not support DSD from 44/16 to 192/24. Everything would be fine, but if you plug M2tech into the port of the motherboard, then a crackle in the sound and freezes when executing player commands begins.

12
Multimedia / Re: XHCI and USB Audio perspectives
« on: December 09, 2022, 02:09:39 am »
In fact, I drew a slightly different conclusion from the situation.
I believe that the problem is in the USB stack from AN and since for both firmware versions your drivers 10.xx are suitable, as long as we don't run into the need to connect the device to the XHCI controller. As soon as the XHCI and USBD driver from AN appears, miracles begin. For example , such:
If there are 2 XHCI controllers in the system and we connect a USB Audio device to the port of the second controller, then playback speeds up - multiple times, and the timer of the player runs very fast and the sound is distorted.
When using the XHCI driver from AN, fatal errors appear, crashes when switching tracks (I mentioned them in the letter).

The fact that there is an acceptable USB audio operation on the EHCI controller ports with firmware for Linux only shows that the EHCI driver can be called selectively working.

By the way, the device on the Amanero controller works fine both under Windows OS on linux firmware and under Linux OS on Windows firmware. There are nuances when switching to DSD format and separate drivers are needed under windows when using the Windows firmware version, which just smooth out these clicks.

It seems to me if there was a 10.250 version of the driver with the file usbxhcd.sys then there would be no such problems in it :-)

Yes, I can save the descriptors. I'll post them here. I have already read the descriptors once, on the previous Amanero device with old firmware. Here they are below and in the attachment.

Code: [Select]
Bus 001 Device 002: ID 16d0:0a23 
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.00
  bDeviceClass          239
  bDeviceSubClass         2
  bDeviceProtocol         1
  bMaxPacketSize0        64
  idVendor           0x16d0
  idProduct          0x0a23
  bcdDevice            1.9b
  iManufacturer           1 Amanero Technologies
  iProduct                2 Combo384 Amanero
  iSerial                 3 413-001
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength          213
    bNumInterfaces          2
    bConfigurationValue     1
    iConfiguration          0
    bmAttributes         0x40
      (Missing must-be-set bit!)
      Self Powered
    MaxPower                0mA
    Interface Association:
      bLength                 8
      bDescriptorType        11
      bFirstInterface         0
      bInterfaceCount         2
      bFunctionClass          1
      bFunctionSubClass       0
      bFunctionProtocol      32
      iFunction               0
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           0
      bInterfaceClass         1
      bInterfaceSubClass      1
      bInterfaceProtocol     32
      iInterface              0
      AudioControl Interface Descriptor:
        bLength                 9
        bDescriptorType        36
        bDescriptorSubtype      1 (HEADER)
        bcdADC               2.00
        bCategory               1
        wTotalLength           72
        bmControl            0x00
      AudioControl Interface Descriptor:
        bLength                 8
        bDescriptorType        36
        bDescriptorSubtype     10 (CLOCK_SOURCE)
        bClockID               41
        bmAttributes         0x03 Internal programmable Clock
        bmControls           0x07
          Clock Frequency Control (read/write)
          Clock Validity Control (read-only)
        bAssocTerminal          0
        iClockSource            2 Combo384 Amanero
      AudioControl Interface Descriptor:
        bLength                 8
        bDescriptorType        36
        bDescriptorSubtype     11 (CLOCK_SELECTOR)
        bUnitID                40
        bNrInPins               1
        baCSourceID( 0)        41
        bmControls           0x03
          Clock Selector Control (read/write)
        iClockSelector          2 Combo384 Amanero
      AudioControl Interface Descriptor:
        bLength                17
        bDescriptorType        36
        bDescriptorSubtype      2 (INPUT_TERMINAL)
        bTerminalID            42
        wTerminalType      0x0101
        bAssocTerminal          0
        bCSourceID             40
        bNrChannels             2
        bmChannelConfig   0x00000000
        bmControls    0x0000
        iChannelNames           0
        iTerminal               0
      AudioControl Interface Descriptor:
        bLength                18
        bDescriptorType        36
        bDescriptorSubtype      6 (FEATURE_UNIT)
        bUnitID                10
        bSourceID              42
        bmaControls( 0)      0x0000000f
          Mute Control (read/write)
          Volume Control (read/write)
        bmaControls( 1)      0x0000000f
          Mute Control (read/write)
          Volume Control (read/write)
        bmaControls( 2)      0x0000000f
          Mute Control (read/write)
          Volume Control (read/write)
        iFeature                0
      AudioControl Interface Descriptor:
        bLength                12
        bDescriptorType        36
        bDescriptorSubtype      3 (OUTPUT_TERMINAL)
        bTerminalID            43
        wTerminalType      0x0301
        bAssocTerminal          0
        bSourceID              10
        bCSourceID             40
        bmControls         0x0000
        iTerminal               0
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        1
      bAlternateSetting       0
      bNumEndpoints           0
      bInterfaceClass         1
      bInterfaceSubClass      2
      bInterfaceProtocol     32
      iInterface              0
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        1
      bAlternateSetting       1
      bNumEndpoints           2
      bInterfaceClass         1
      bInterfaceSubClass      2
      bInterfaceProtocol     32
      iInterface              0
      AudioStreaming Interface Descriptor:
        bLength                16
        bDescriptorType        36
        bDescriptorSubtype      1 (AS_GENERAL)
        bTerminalLink          42
        bmControls           0x00
        bFormatType             1
        bmFormats               1
          PCM
        bNrChannels             2
        bmChannelConfig   0x00000003
          Front Left (FL)
          Front Right (FR)
        iChannelNames           0
      AudioStreaming Interface Descriptor:
        bLength                 6
        bDescriptorType        36
        bDescriptorSubtype      2 (FORMAT_TYPE)
        bFormatType             1 (FORMAT_TYPE_I)
        bSubslotSize            4
        bBitResolution         32
      ** UNRECOGNIZED:  08 25 01 00 00 02 08 00
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x05  EP 5 OUT
        bmAttributes            5
          Transfer Type            Isochronous
          Synch Type               Asynchronous
          Usage Type               Data
        wMaxPacketSize     0x0308  1x 776 bytes
        bInterval               1
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes           17
          Transfer Type            Isochronous
          Synch Type               None
          Usage Type               Feedback
        wMaxPacketSize     0x0004  1x 4 bytes
        bInterval               4
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        1
      bAlternateSetting       2
      bNumEndpoints           2
      bInterfaceClass         1
      bInterfaceSubClass      2
      bInterfaceProtocol     32
      iInterface              0
      AudioStreaming Interface Descriptor:
        bLength                16
        bDescriptorType        36
        bDescriptorSubtype      1 (AS_GENERAL)
        bTerminalLink          42
        bmControls           0x00
        bFormatType             1
        bmFormats               1
          PCM
        bNrChannels             2
        bmChannelConfig   0x00000003
          Front Left (FL)
          Front Right (FR)
        iChannelNames           0
      AudioStreaming Interface Descriptor:
        bLength                 6
        bDescriptorType        36
        bDescriptorSubtype      2 (FORMAT_TYPE)
        bFormatType             1 (FORMAT_TYPE_I)
        bSubslotSize            4
        bBitResolution         32
      ** UNRECOGNIZED:  08 25 01 00 00 02 08 00
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x05  EP 5 OUT
        bmAttributes            5
          Transfer Type            Isochronous
          Synch Type               Asynchronous
          Usage Type               Data
        wMaxPacketSize     0x0308  1x 776 bytes
        bInterval               1
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes           17
          Transfer Type            Isochronous
          Synch Type               None
          Usage Type               Feedback
        wMaxPacketSize     0x0004  1x 4 bytes
        bInterval               4
Device Qualifier (for other device speed):
  bLength                10
  bDescriptorType         6
  bcdUSB               2.00
  bDeviceClass            0
  bDeviceSubClass         0
  bDeviceProtocol         0
  bMaxPacketSize0        64
  bNumConfigurations      1
Device Status:     0x0000
  (Bus Powered)

13
Multimedia / Re: XHCI and USB Audio perspectives
« on: December 08, 2022, 10:39:29 pm »
Amanero is a programmable interface, depending on the firmware, this device can be used for different application environments.
In fact, there are only two branches of current firmware.
I flashed Amanero with two different firmware: for Linux OS and Windows. In order to evaluate their behavior in the OS2 environment.

On the firmware for Linux, the device works fine on USB 12.x drivers from AN + USB Audio 10.244 and those below the version. Starting with version 10.245 USB Audio, there is support for working with XHCI controllers, but there is also a problem of determining the sampling frequency (possible only on Amanero audio adapters, tomorrow I will find out how the XMOS chips behave).

On Windows firmware, the device works fine only with USB + USBAudio 10.xx drivers, and with any versions, including 10.247. On USB 12.xx versions from AN Amanero is not detected. But since a driver for XHCI controllers has not yet been released for version 10.xx, then on my current motherboard I have to use the Amanero firmware for Linux and the USB 12.14 + USB Audio 10.247 drivers. Start playing the track twice when the sampling frequency of the audio file changes.

14
Multimedia / Re: XHCI and USB Audio perspectives
« on: December 08, 2022, 12:27:50 pm »
Have you done a full reinstallation of the 10.247 USB audio driver install package, including all subcomponents that it contains, and not just copying/unzipping files ?
I did two installations of USB audio drivers, on two different systems:
1. On a brand new, fresh ArcaOS, I installed the package via minstall
2. On the PXE boot version I copied usbaud2.sys
In both cases, the problem was the same.

As a test, can you only test with my USB driver set ? Just install all of 10.247 to test with EHCI. If done, you can revert back to 12.14.
OK - today I will try and describe the result.
I tried to replace the USB drivers completely with your package version 10.247.
The result is the same.

15
Multimedia / Re: XHCI and USB Audio perspectives
« on: December 08, 2022, 12:16:43 pm »
Yes, my mistake. The version I used in test 2 and 3 is 10.244
I apologize.

Pages: [1] 2 3