Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
55 user(s) are online (26 user(s) are browsing Forums)

Members: 0
Guests: 55

more...

Support us!

Headlines

 
  Register To Post  

« 1 2 (3)
Re: Sterownik USB Audio dla AmigaOS4
Quite a regular
Quite a regular


See User information
@balaton
It doesn't work on a real C-Media device when passed to QEMU PPC AOS4.
The result is the same as with the -device usb-audio option.
Someone with a real Pegasos II or AmigaOne needs to let us know if this driver works for them.
I haven't tested it on QEMU Linux PPC.

EDIT:
Yes, you're right, I checked on emaculation.com. USB audio doesn't work on macOS X, only on macOS 9 – my mistake, sorry for the incorrect information.
https://gitlab.com/qemu-project/qemu/-/work_items/446
https://www.emaculation.com/forum/viewtopic.php?p=81464#p81464

EDIT2:
I ran a little experiment based on what you wrote
I added your patch to QEMU (QEMU version 9)
https://lists.nongnu.org/archive/html/ ... vel/2026-02/msg02357.html
-device pci-ohci -device usb-audio,bus=usb-bus.2,buffer=512,debug=-audio alsa

It looks like this in ‘qtree’
buspci.1
      type PCI
      dev
pci-ohciid ""
        
masterbus ""
        
num-ports (0x3)
        
firstport (0x0)
        
addr 06.0
        romfile 
""
        
romsize 4294967295 (0xffffffff)
        
rombar (0x1)
        
multifunction false
        x
-pcie-lnksta-dllla true
        x
-pcie-extcap-init true
        failover_pair_id 
""
        
acpi-index (0x0)
        
x-pcie-err-unc-mask true
        x
-pcie-ari-nextfn-false
        
class USB controlleraddr 00:06.0pci id 106b:003f (sub 1af4:1100)
        
bar 0mem at 0x8428c000 [0x8428c0ff]
        
bususb-bus.2
          type usb
-bus
          dev
usb-audioid ""
            
audiodev "audiodev0"
            
debug (0x1)
            
buffer 512 (0x200)
            
multi false
            port 
""
            
serial ""
            
msos-desc true
            pcap 
""
            
addr 2.2port 1speed 12name QEMU USB Audio Interface, attached


Debug output from AOS4 (the label ‘usb-audio’ comes from the QEMU driver debug output)

[USBINFO "USB Fkt Init" "SetFktLanguageID" | [fkt 0x6fdd7150Fkt has no languages
usb
-audiocontrol transactionrequest 0x8006 value 0x0300 index 0x0000 length 0x00ff
[USBINFO "USB Fkt Init" "SetFktLanguageID" | [fkt 0x6fdd7150Fkt has no languages
[USBINFO "USB Fkt Init" "Init Fkt" | [fkt 0x6fdd7150Fkt ("","",""initialized
usb
-audiocontrol transactionrequest 0x8006 value 0x0200 index 0x0000 length 0x0009
usb
-audiocontrol transactionrequest 0x8006 value 0x0200 index 0x0000 length 0x0071
usb
-audiocontrol transactionrequest 0x0009 value 0x0001 index 0x0000 length 0x0000
usb
-audiocontrol transactionrequest 0x8006 value 0x0300 index 0x0000 length 0x00ff
[USBINFO "USB FD Starter" "SetFktLanguageID" | [fkt 0x6fdd7150Fkt has no languages
usb
-audiocontrol transactionrequest 0x8006 value 0x0300 index 0x0000 length 0x00ff
[USBINFO "USB FD Starter" "SetFktLanguageID" | [fkt 0x6fdd7150Fkt has no languages
[USBINFO "USB FD Starter" "Bind FD" Trying FD "usbaudio.usbfd" v1.0 for Ifc 0x694A1880
[usbaudio.usbfdUSB Audio device attachedrefreshing AHI modes
[USBAudiolibExpungeOpenCnt=0
[USBINFO "USB FD Starter" "Sys_EndInitialAttachmentPhase" Initial USB Attachment Phase terminated
[USBINFO "USB FD Starter" "Bind FD" Trying FD "usbaudio.usbfd" v1.0 for Ifc 0x694A1740
[USBINFO "USB FD Starter" "Bind FD" FD "usbaudio.usbfd" did not support Ifc 0x694A1740
[USBINFO "USB FD Starter" "Bind FD" No driver found for fkt 0x6fdd7150/ifc 0x694a1740 {Class 0
....
USBAudioAHIsub_AllocAudioentry
[USBAudioscanwaiting for USB stack full-boot...
[
USBAudiowait_fullbootsubscribed for STACKFULLBOOTED (0x6FE45530)
[
USBAudiowait_fullboottimeout (stack already booted)
[
USBAudioscanUSB stack ready
[USBAudioscanopening libusb-1.library...
[
USBAudioscanOpenLibrary returned 0x656AAD68
[USBAudiolibusb-1.library opened OK
[USBAudioprefsreading ENVARC:USBAudio.prefs
[USBAudioprefsadded 46F4:0002 "QEMU USB Audio"
[USBAudioprefsloaded 1 user device(s)
[
USBAudioscan_usb_audio_deviceentry (scanned=0num_devs=0)
[
USBAudioscancalling libusb_get_device_list...
[
libusb-1ensure_usbsys_openopening usbsys.device...
[
libusb-1ensure_usbsys_openOpenDevice OK
[USBAudiolibusb_get_device_listcnt=5, list=0x65CC5D88
[USBAudioDevice 0VID=0x0000 PID=0x0000 Class=0x09
[USBAudioDevice 0hubskipping
[USBAudioDevice 1VID=0x46F4 PID=0x0002 Class=0x00
[USBAudio]   Ifc 0 Alt 0: Class=0x09 Sub=0x00 NumEP=1
[USBAudio]   Ifc 0 Alt 0: Class=0x01 Sub=0x01 NumEP=0
[USBAudio]   => Audio Control foundIfc=0
[USBAudio]   Ifc 0 Alt 0: Class=0x09 Sub=0x00 NumEP=1
[USBAudio]   Ifc 0 Alt 0: Class=0x08 Sub=0x06 NumEP=2
[USBAudio]   Ifc 0 Alt 0: Class=0x09 Sub=0x00 NumEP=1
[USBAudio]   Ifc 1 Alt 0: Class=0x01 Sub=0x02 NumEP=0
[USBAudio]   => Audio Streaming (playbackfoundIfc=1
[libusb1libusb_openrawIfc=0x694A1740 lad_Interface=0x654B7070 rawFunc=0x6FDD7150
usb
-audiocontrol transactionrequest 0x8006 value 0x0200 index 0x0000 length 0x0009
usb
-audiocontrol transactionrequest 0x8006 value 0x0200 index 0x0000 length 0x0071
[USBAudioenumerateconfig total_len=113 for 46F4:0002
[USBAudioenumeratebest play so far2ch alt=1 ep=0x01 maxpkt=192
[USBAudioenumerateoutput #0 "Front" alt=1 ep=0x01 ch=2 offset=0 maxpkt=192
[USBAudioenumerateoutput FU ID=(USB Streaming)
[
USBAudioenumerate1 outputs0 inputs, default out=#0
[USBAudioUSB Audio device #0 found: "QEMU USB Audio"
[USBAudio]   VID=0x46F4 PID=0x0002 Iface=1 Alt=1
[USBAudio]   EP=0x01 MaxPkt=192 2ch/16bit
[USBAudioDevice 2VID=0x0000 PID=0x0000 Class=0x09
[USBAudioDevice 2hubskipping
[USBAudioDevice 3VID=0x46F4 PID=0x0001 Class=0x00
[USBAudio]   Ifc 0 Alt 0: Class=0x09 Sub=0x00 NumEP=1
[USBAudio]   Ifc 0 Alt 0: Class=0x01 Sub=0x01 NumEP=0
[USBAudio]   => Audio Control foundIfc=0
[USBAudio]   Ifc 0 Alt 0: Class=0x09 Sub=0x00 NumEP=1
[USBAudio]   Ifc 0 Alt 0: Class=0x08 Sub=0x06 NumEP=2
[USBAudio]   Ifc 0 Alt 0: Class=0x09 Sub=0x00 NumEP=1
[USBAudioDevice 3no Audio Streaming interface
[
USBAudioDevice 4VID=0x0000 PID=0x0000 Class=0x09
[USBAudioDevice 4hubskipping
[USBAudioscan_usb_audio_device1 device(sfound, default="QEMU USB Audio"
[USBAudioflat output #0: "Front"
[USBAudioscan1 total outputs0 total inputs
[USBAudioAHIsub_AllocAudioOKVID=0x46F4 PID=0x0002
[USBAudioAHIsub_StartFlags=0x00000001
[USBAudioAHIsub_StopFlags=0x00000001
[libusb1libusb_openrawIfc=0x694A1740 lad_Interface=0x654B7070 rawFunc=0x6FDD7150
[USBAudioStartopen_device VID=0x46F4 PID=0x0002 => handle=0x6718B6E8
[USBAudiodiscover_usb_audio_detailsentry
[USBAudiodiscoveroutput mode #0: Ifc=1 Alt=1 EP=0x01 MaxPkt=192 Ch=2 Bits=16
[USBAudiodiscoverOutput FU ID=2 AC Ifc=0
[USBAudiodiscoverquerying output volume range...
usb-audiocontrol transactionrequest 0xa182 value 0x0200 index 0x0200 length 0x0002
usb
-audiofailget control
usb
-audiofailed control transactionrequest 0xa182 value 0x0200 index 0x0200 length 0x0002
usb
-audiocontrol transactionrequest 0x0201 value 0x0000 index 0x0000 length 0x0000
usb
-audiofailed control transactionrequest 0x0201 value 0x0000 index 0x0000 length 0x0000
[USBAudiodiscoverGET_MIN volume failed (-9), disabling volume queries
[USBAudiodiscoverno input Feature Unitinput gain not available
[USBAudioStartafter discover => EP=0x01 Ifc=1 Alt=1 MaxPkt=192 Ch=2 Sub=2
[libusb1claim_interface(1): rawIfc=0x694A1740 lad_Interface=0x654B7070
[libusb1claim_interfaceUSBGetEndPoint(0x01after claim(alt=0) => 0x00000000
[USBAudioStartclaim_interface(1) => 0
[USBAudioStartcalling set_alt_setting(11)...
[
libusb1set_alt_setting(1,1): lad_Interface=0x654B7070 rawIfc=0x694A1740
usb
-audiocontrol transactionrequest 0x8006 value 0x0300 index 0x0000 length 0x00ff
[USBINFO "Sound" "SetFktLanguageID" | [fkt 0x6fdd7150Fkt has no languages
usb
-audiocontrol transactionrequest 0x010b value 0x0001 index 0x0001 length 0x0000
usb
-audioset interface 1
[libusb1set_alt_settingUSBIntSetAltSettingA stat=1
[libusb1set_alt_settingdeclaiming for re-claim...
[
libusb1set_alt_settingrawIfc after SetAltifc=1 alt=1 numEP=1
[libusb1set_alt_settingre-claim rawIfc=0x694A1740 => lad_Interface=0x654B7070
[libusb1set_alt_settingUSBGetEndPoint(NULLifc0x01)=0x657EA7B0
[libusb1set_alt_settingFOUND EP OUT 0x00 => 0x6FF45910
[libusb1set_alt_settingFOUND EP OUT 0x01 => 0x657EA7B0
[libusb1set_alt_settingbrute-force scan complete
[USBAudioStartset_alt_setting => 0
[USBAudioStartsetting sample rate 11025 Hz on EP 0x01
usb
-audiocontrol transactionrequest 0x2201 value 0x0100 index 0x0001 length 0x0003
usb
-audiofailed control transactionrequest 0x2201 value 0x0100 index 0x0001 length 0x0003
usb
-audiocontrol transactionrequest 0x0201 value 0x0000 index 0x0000 length 0x0000
usb
-audiofailed control transactionrequest 0x0201 value 0x0000 index 0x0000 length 0x0000
[USBAudioStartSET_CUR sample rate failed: -9
[USBAudioStartwaiting for slave to signal alive...
[
USBAudioPlaySlaveentryAudioCtrl=0x656AA440
[USBAudioPlaySlaveEP=0x01 MaxPkt=192 Channels=2 SubSz=2
[USBAudioPlaySlavegot UsbEndPoint 0x657EA7B0 for EP 0x01
[USBAudioPlaySlavecachedFrames=2 maxXferSize=192 xfersPerFrame=1
[USBAudioPlaySlaveframeSize=4 baseSamples=11 fracNum=25/1000 framesPerIOR=8 iorCount=2
[USBAudioPlaySlaveallocated 2 IORequests (1536 bytes8 subXfers each)
[
USBAudioPlaySlavefirst mix produced 880 bytes
[USBAudioPlaySlaveall 2 IORequests launched
[USBAudioStartslave aliveplayback running
[USBAudioAHIsub_StartOK
Isochronous transfer had error 0x8
[USBAudioAHIsub_StopFlags=0x00000001
[USBAudioPlaySlaveexiting (loops=200 xfer_errors=0)
[
USBAudioStopwaiting 500ms for USB stack to settle...
[
USBAudioStopset_alt_setting(10)...
[
libusb1set_alt_setting(1,0): lad_Interface=0x654B7070 rawIfc=0x694A1740
usb
-audiocontrol transactionrequest 0x8006 value 0x0300 index 0x0000 length 0x00ff
[USBINFO "Sound" "SetFktLanguageID" | [fkt 0x6fdd7150Fkt has no languages
usb
-audiocontrol transactionrequest 0x010b value 0x0000 index 0x0001 length 0x0000
usb
-audioset interface 0
[libusb1set_alt_settingUSBIntSetAltSettingA stat=1
[libusb1set_alt_settingdeclaiming for re-claim...
[
libusb1set_alt_settingrawIfc after SetAltifc=1 alt=0 numEP=0
[libusb1set_alt_settingre-claim rawIfc=0x694A1740 => lad_Interface=0x654B7070
[libusb1set_alt_settingUSBGetEndPoint(NULLifc0x01)=0x00000000
[libusb1set_alt_settingFOUND EP OUT 0x00 => 0x6FF45910
[libusb1set_alt_settingbrute-force scan complete
[USBAudioStoprelease_interface(1)...
[
USBAudioStopclosing device...
[
USBAudioStopdevice closed OK
[USBAudioAHIsub_StopFlags=0x00000003
[USBAudioStopstopping recording
[USBAudioAHIsub_FreeAudio
[USBAudiolibOpenversion=2our VERSION=2
[USBAudiolibOpenOKOpenCnt=1
[USBAudioGetAttrAttr=0x80000073 Arg=0 Def=1
[USBAudioGetAttrAttr=0x8000006F Arg=0 Def=128
[USBAudioGetAttrAttr=0x80000088 Arg=0 Def=0
[USBAudioGetAttrAttr=0x8000008B Arg=0 Def=1
[USBAudioGetAttrAttr=0x80000082 Arg=0 Def=0
[USBAudioGetAttrAttr=0x80000083 Arg=0 Def=0
[USBAudioGetAttrAttr=0x80000084 Arg=0 Def=65536
[USBAudioGetAttrAttr=0x80000085 Arg=0 Def=65536
[USBAudioGetAttrAttr=0x80000086 Arg=0 Def=65536
[USBAudioGetAttrAttr=0x80000087 Arg=0 Def=65536
[USBAudioGetAttrAttr=0x8000007C Arg=48000 Def=0
[USBAudioGetAttrAttr=0x8000007D Arg=0 Def=0
[USBAudioGetAttrAttr=0x80000076 Arg=0 Def=1721506440
[USBAudioGetAttrAttr=0x80000077 Arg=0 Def=1721506440
[USBAudioGetAttrAttr=0x80000078 Arg=0 Def=1721506440
[USBAudioGetAttrAttr=0x80000072 Arg=0 Def=0
[USBAudioGetAttrAttr=0x80000081 Arg=0 Def=0
[USBAudiolibOpenversion=2our VERSION=2
[USBAudiolibOpenOKOpenCnt=1
[USBAudioGetAttrAttr=0x80000086 Arg=0 Def=65536
[USBAudiolibOpenversion=2our VERSION=2
[USBAudiolibOpenOKOpenCnt=1
[USBAudioGetAttrAttr=0x80000082 Arg=0 Def=0
[USBAudiolibOpenversion=2our VERSION=2
[USBAudiolibOpenOKOpenCnt=1
[USBAudioGetAttrAttr=0x80000084 Arg=0 Def=65536
[USBAudiolibOpenversion=2our VERSION=2
[USBAudiolibOpenOKOpenCnt=1
[USBAudioGetAttrAttr=0x80000075 Arg=1 Def=0
[USBAudiolibOpenversion=2our VERSION=2
[USBAudiolibOpenOKOpenCnt=1
[USBAudioGetAttrAttr=0x8000008A Arg=-1 Def=1766412296
[USBAudiolibOpenversion=2our VERSION=2
[USBAudiolibOpenOKOpenCnt=1
[USBAudioGetAttrAttr=0x8000008D Arg=0 Def=1766412296
[USBAudiolibOpenversion=2our VERSION=2
[USBAudiolibOpenOKOpenCnt=1
[USBAudioGetAttrAttr=0x8000006E Arg=0 Def=0
[USBAudiolibOpenversion=2our VERSION=2
[USBAudiolibOpenOKOpenCnt=1
[USBAudioAHIsub_AllocAudioentry
[USBAudioAHIsub_AllocAudioOKVID=0x46F4 PID=0x0002
[USBAudioAHIsub_StartFlags=0x00000001
[USBAudioAHIsub_StopFlags=0x00000001
[libusb1libusb_openrawIfc=0x694A1740 lad_Interface=0x6FE43D60 rawFunc=0x6FDD7150
[USBAudioStartopen_device VID=0x46F4 PID=0x0002 => handle=0x66599F98
[USBAudiodiscover_usb_audio_detailsentry
[USBAudiodiscoveroutput mode #0: Ifc=1 Alt=1 EP=0x01 MaxPkt=192 Ch=2 Bits=16
[USBAudiodiscoverOutput FU ID=2 AC Ifc=0
[USBAudiodiscoverskipping volume queries (previously failed)
[
USBAudiodiscoverno input Feature Unitinput gain not available
[USBAudioStartafter discover => EP=0x01 Ifc=1 Alt=1 MaxPkt=192 Ch=2 Sub=2
[libusb1claim_interface(1): rawIfc=0x694A1740 lad_Interface=0x6FE43D60
[libusb1claim_interfaceUSBGetEndPoint(0x01after claim(alt=0) => 0x00000000
[USBAudioStartclaim_interface(1) => 0
[USBAudioStartcalling set_alt_setting(11)...
[
libusb1set_alt_setting(1,1): lad_Interface=0x6FE43D60 rawIfc=0x694A1740
usb
-audiocontrol transactionrequest 0x8006 value 0x0300 index 0x0000 length 0x00ff
[USBINFO "Sound" "SetFktLanguageID" | [fkt 0x6fdd7150Fkt has no languages
usb
-audiocontrol transactionrequest 0x010b value 0x0001 index 0x0001 length 0x0000
usb
-audioset interface 1
[libusb1set_alt_settingUSBIntSetAltSettingA stat=1
[libusb1set_alt_settingdeclaiming for re-claim...
[
libusb1set_alt_settingrawIfc after SetAltifc=1 alt=1 numEP=1
[libusb1set_alt_settingre-claim rawIfc=0x694A1740 => lad_Interface=0x6FE43D60
[libusb1set_alt_settingUSBGetEndPoint(NULLifc0x01)=0x66264E90
[libusb1set_alt_settingFOUND EP OUT 0x00 => 0x6FF45910
[libusb1set_alt_settingFOUND EP OUT 0x01 => 0x66264E90
[libusb1set_alt_settingbrute-force scan complete
[USBAudioStartset_alt_setting => 0
[USBAudioStartsetting sample rate 11025 Hz on EP 0x01
usb
-audiocontrol transactionrequest 0x2201 value 0x0100 index 0x0001 length 0x0003
usb
-audiofailed control transactionrequest 0x2201 value 0x0100 index 0x0001 length 0x0003
usb
-audiocontrol transactionrequest 0x0201 value 0x0000 index 0x0000 length 0x0000
usb
-audiofailed control transactionrequest 0x0201 value 0x0000 index 0x0000 length 0x0000
[USBAudioStartSET_CUR sample rate failed: -9
[USBAudioStartwaiting for slave to signal alive...
[
USBAudioPlaySlaveentryAudioCtrl=0x69452580
[USBAudioPlaySlaveEP=0x01 MaxPkt=192 Channels=2 SubSz=2
[USBAudioPlaySlavegot UsbEndPoint 0x66264E90 for EP 0x01
[USBAudioPlaySlavecachedFrames=2 maxXferSize=192 xfersPerFrame=1
[USBAudioPlaySlaveframeSize=4 baseSamples=11 fracNum=25/1000 framesPerIOR=8 iorCount=2
[USBAudioPlaySlaveallocated 2 IORequests (1536 bytes8 subXfers each)
[
USBAudioPlaySlavefirst mix produced 880 bytes
[USBAudioPlaySlaveall 2 IORequests launched
[USBAudioStartslave aliveplayback running
[USBAudioAHIsub_StartOK
[USBAudioAHIsub_StopFlags=0x00000001
[USBAudioPlaySlaveexiting (loops=190 xfer_errors=0)
[
USBAudioStopwaiting 500ms for USB stack to settle...
[
USBAudioStopset_alt_setting(10)...
[
libusb1set_alt_setting(1,0): lad_Interface=0x6FE43D60 rawIfc=0x694A1740
usb
-audiocontrol transactionrequest 0x8006 value 0x0300 index 0x0000 length 0x00ff
[USBINFO "Sound" "SetFktLanguageID" | [fkt 0x6fdd7150Fkt has no languages
usb
-audiocontrol transactionrequest 0x010b value 0x0000 index 0x0001 length 0x0000
usb
-audioset interface 0
[libusb1set_alt_settingUSBIntSetAltSettingA stat=1
[libusb1set_alt_settingdeclaiming for re-claim...
[
libusb1set_alt_settingrawIfc after SetAltifc=1 alt=0 numEP=0
[libusb1set_alt_settingre-claim rawIfc=0x694A1740 => lad_Interface=0x6FE43D60
[libusb1set_alt_settingUSBGetEndPoint(NULLifc0x01)=0x00000000
[libusb1set_alt_settingFOUND EP OUT 0x00 => 0x6FF45910
[libusb1set_alt_settingbrute-force scan complete
[USBAudioStoprelease_interface(1)...
[
USBAudioStopclosing device...
[
USBAudioStopdevice closed OK
[USBAudioAHIsub_StopFlags=0x00000003
[USBAudioStopstopping recording
[USBAudioAHIsub_FreeAudio

Something’s alive and kicking – it’s a bit of a nightmare, but I can see the driver is communicating with the USB audio and nothing’s freezing up. I don’t think I can hear any sound, though.
It’s just an experiment, of course

EDIT3:
‘device usb-audio’ works under QEMU Linux PPC (slight audio distortion)
screen - > https://ibb.co/JRxmbnp9
screen (ohci) -> https://ibb.co/0jXH2H7H
screen (so everything’s in one place) virtio net, that works too -> https://ibb.co/NdWWt0kb

EDIT4:
I passed the “0d8c:000c C-Media Electronics” USB pass-through device to QEMU.
On Linux, QEMU PPC works without any issues.
On OS4, it doesn't work.
The device has an LED that lights up when it's in use. There's no indication that it's working.


Edited by smarkusg on 2026/3/19 7:34:07
Edited by smarkusg on 2026/3/19 11:31:36
Edited by smarkusg on 2026/3/19 13:42:59
Edited by smarkusg on 2026/3/19 13:43:29
Edited by smarkusg on 2026/3/19 13:59:43
Edited by smarkusg on 2026/3/19 14:31:39
Edited by smarkusg on 2026/3/21 0:00:02
Go to top
Re: Sterownik USB Audio dla AmigaOS4
Amigans Defender
Amigans Defender


See User information
@smarkusg

It seems correct. The only problem seems:

Start: SET_CUR sample rate failed: -9

But this is not a qemu problem.
I will investigate

i'm really tired...
Go to top
Re: Sterownik USB Audio dla AmigaOS4
Just can't stay away
Just can't stay away


See User information
@afxgroup

UsbAudio 2.3 and Rubix, AHI prefs lists few usbaudio modes at least, but trying to play something it doesn't make any audio output (AmigaAmp). Output and input sliders can't be moved in the prefs.

Also the driver spits so much debug info out that it slows down the whole system.

Rock lobster bit me - so I'm here forever
X1000 + AmigaOS 4.1 FE
"Anyone can build a fast CPU. The trick is to build a fast system." - Seymour Cray
Go to top
Re: Sterownik USB Audio dla AmigaOS4
Amigans Defender
Amigans Defender


See User information
@TSK

Can you send me the serial log? and which audio card you have (and maybe also the machine you are using)

i'm really tired...
Go to top
Re: USB Audio driver for AmigaOS4
Home away from home
Home away from home


See User information
have to dig up an old USB sound card I got a few years back trying to get Poseidon on my A4000 working with it to see if this driver works with it


Edited by 328gts on 2026/3/20 13:31:17
Edited by 328gts on 2026/3/20 14:48:26
_______________________________
c64-dual sids, A1000, A1200-060@93, A4000-CSMKIII
PiStorm32 & Catweasel MK4+= Amazing
! My Master Miggies-Amiga1000 & AmigaONE X1000 !
mancave-ramblings

Go to top
Re: USB Audio driver for AmigaOS4
Just popping in
Just popping in


See User information
@afxgroup

I'm trying to configure a SoundBlaster Extigy. I get this in the USB log :


USB stack |                        New Fkt Attached Fkt 0x67106e70 to hub Fkt 0x6ff90e60 on port 1 (HCD "ehci.usbhcd" unit 1level 2)
hub.usbfd |                            HUB Device on hub port 1 attached as fkt 0x67106e70 (ifc 0x6edaae50)
USB Fkt Init |                       Init Fkt | [fkt 0x67106e70Fkt is {Vendor0x041EProduct0x3000, Class: 00.00}
USB Fkt Init |                       Init Fkt | [fkt 0x67106e70Fkt ("Creative Technology Ltd.__","Sound Blaster Extigy__",""initialized
USB FD Starter 
|                        Bind FD Trying FD "usbaudio.usbfd" v1.0 for Ifc 0x61D6A400
USB FD Starter 
|                        Bind FD FD "usbaudio.usbfd" did not support Ifc 0x61D6A400
USB FD Starter 
|                        Bind FD No driver found for fkt 0x67106e70/ifc 0x61d6a400 {Class 01.02}
USB FD Starter |                        Bind FD Trying FD "usbaudio.usbfd" v1.0 for Ifc 0x61D6AA80
USB FD Starter 
|                        Bind FD Trying FD "usbaudio.usbfd" v1.0 for Ifc 0x61D6A4C0
USB FD Starter 
|                        Bind FD FD "usbaudio.usbfd" did not support Ifc 0x61D6A4C0
USB FD Starter 
|                        Bind FD No driver found for fkt 0x67106e70/ifc 0x61d6a4c0 {Class 01.02}
USB FD Starter |                        Bind FD Trying FD "usbaudio.usbfd" v1.0 for Ifc 0x61D6A580
USB FD Starter 
|                        Bind FD FD "usbaudio.usbfd" did not support Ifc 0x61D6A580
USB FD Starter 
|                        Bind FD No driver found for fkt 0x67106e70/ifc 0x61d6a580 {Class 01.02}


I add this in my USBAudio.prefs :

046D:0A01=Logitech B0130 Headset
041E
:3000=SoundBlaster Extigy
1415
:0000=SingStar Converter


But can't get the custom device name I've setup. What am i doing wrong?

BTW, the Extigy works great exept for FLAC audio in AmigaAmp, the sound still stutters.

I will try the record function and thanks again for this USB audio driver.

A1200PPC/Sam440ep/Sam460ex/X1000/X5020 OS4.1
Go to top
Re: Sterownik USB Audio dla AmigaOS4
Quite a regular
Quite a regular


See User information
@afxgroup

I have noticed the machine will lock up on bootup if the USB card is not present.
Presumably when trying to play the startup tune.

Cheers


Edited by TiredOfLife on 2026/3/22 19:28:47
Go to top
Re: USB Audio driver for AmigaOS4
Just popping in
Just popping in


See User information
@afxgroup

Testing on my Sam460LE with driver's version 2.3 and the CSL card you've suggested in your post #2.

So far so good, the device is recognized by the OS on the fly, I can select one of the new modes. Played some games (Quake 2, Starfall Defenders and UBEK) and had a proper sound in all of these. Watching videos with Emotion worked good as well.

What didn't work quite well was playing music with AmigaAMP. It gets sound glitches from time to time, and if there's a concurrent operation happening in the OS like resizing Filer's or MultiViewer's window, the sound gets terribly sliced while window keeps getting rerendered.

Two more observations, that are not problems by themselves, but probably worth mentioning:
* the test sound in Sound Prefs is rather weird
* there is also weird sound playing for a while in the exact moment the AmigaOS 4.1 splash screen appears during OS loading.

Once again thank you for your awesome work!

One of many...
Go to top
Re: USB Audio driver for AmigaOS4
Amigans Defender
Amigans Defender


See User information
@Djk83

Thank you for your reports. I can work on the drivers (and all other stuff i'm working on) in a few weeks.
Unfortunately my real work is filling up all my free time..

i'm really tired...
Go to top
Re: USB Audio driver for AmigaOS4
Just popping in
Just popping in


See User information
@afxgroup

That's totally fine! The driver in its current version is already good enough for me to consider freeing up a PCIe 1x slot if I'd need it.

One of many...
Go to top
Re: USB Audio driver for AmigaOS4
Just popping in
Just popping in


See User information
@afxgroup

I am adding output from AudioClassID for Topping D10:

Available USB AudioStreaming interfaces:

Interface 
1Audio Playback
Manufacturer
:Topping
Product
:D10
Interface:D10 
VID 0x152A
PID 0x8750
USB Audio 
Class Compliance02.00

Available USB AudioStreaming interfaces
:

**************************
Next Interface**************************
++++++++++++
DeviceDesc++++++++++++
USBDESC_DEVICE (struct USBBusDevDsc *)
 
dd_USBVer=02.00
 dd_Class
=239
 dd_Subclass
=2
 dd_Protocol
=1
 dd_MaxPacketSize0
=64
 dd_VendorID
=152A
 dd_Product
=8750
 dd_DevVer
=1.2
 dd_ManufacturerStr
=1
  Topping
 dd_ProductStr
=3
  D10
 dd_SerialStr
=0
 dd_NumConfigs
=2
++++++++++++ConfigDesc++++++++++++
USBDESC_Configuration (struct USBBusCfgDsc *)
 
cd_TotalLength=284
 cd_Num_Interfaces
=3
 cd_ConfigID
=1
 cd_ConfigStr
=0
 cd_Attributes
=128
 cd_MaxPower
=(0 ma)
Unknown (type=0 length=720896)

USBDESC_Interface (struct USBBusIntDsc *)
 
id_InterfaceID=0
 id_AltSetting
=0
 id_NumEndPoints
=0
 id_Class
=1
 id_Subclass
=1
 id_Protocol
=32
 id_InterfaceStr
=3
Audio 
Interface (Header,9 bytes)
 
bcdADC=0200
 totalLength
=18440
 bInCollection
=0
 baInterfaceNr
[1]=0
Audio Control 
Interface (10)
Audio Control Interface (11)
Audio Interface (Input)
 
bTerminalId=2
 wTerminalType
=101
Streaming
 bAssocTerminal
=0
 bNrChannels
=40
 wChannelConfig
=2
Right Front    
 iChannelNames
=0
Audio 
Interface (Feature)
 
bUnitId=10
 bSourceId
=2
 bControlSize
=15
 bmaControls
[0]=0
 bmaControls
[1]=0
 bmaControls
[2]=0
 bmaControls
[3]=0
 bmaControls
[4]=0
 bmaControls
[5]=0
 bmaControls
[6]=0
 bmaControls
[7]=0
 bmaControls
[8]=0
 bmaControls
[9]=0
 bmaControls
[10]=0
 bmaControls
[11]=0
 bmaControls
[12]=0
 bmaControls
[13]=0
 bmaControls
[14]=75
 iFeature
=97
Audio 
Interface (Output)
 
bTerminalId=20
 wTerminalType
=301
Speaker
 bAssocTerminal
=0
 bSourceId
=10
 iTerminal
=28

USBDESC_Interface 
(struct USBBusIntDsc *)
 
id_InterfaceID=1
 id_AltSetting
=0
 id_NumEndPoints
=0
 id_Class
=1
 id_Subclass
=2
 id_Protocol
=32
 id_InterfaceStr
=4

USBDESC_Interface 
(struct USBBusIntDsc *)
 
id_InterfaceID=1
 id_AltSetting
=1
 id_NumEndPoints
=2
 id_Class
=1
 id_Subclass
=2
 id_Protocol
=32
 id_InterfaceStr
=4
Audio Streaming 
Interface (General)(struct AudioStreamIfcDsc*)
 
bTerminalLink=2
 bDelay
=0
 wFormatTag
=257
Type 1 Format type descriptor
(struct AudioDataT1FormatDsc*)
 
bFormatType=1
 bNrChannels
=4
 bSubframeSize
=32
 bBitResolution
=0
 bSamFreqType
=0
Continuously variable frequency
 Low Freq Limit is 0
 High Freq Limit is 0
USBDESC_Endpoint 
(struct USBBusEPDsc*)
 
ed_Address=1
 ed_Attributes
=(Isochronous)Audio Playback
 ed_MaxPacketSize
=392
 ed_Interval
=1
Audio Endpoint 
(General)(struct AudioDataEndpointDsc*)
 
Attributes=0
 bLockDelayUnits
=0
 wLockDelay
=200
USBDESC_Endpoint 
(struct USBBusEPDsc*)
 
ed_Address=129
 ed_Attributes
=17 (Isochronous)Audio Recording
 ed_MaxPacketSize
=4
 ed_Interval
=4

USBDESC_Interface 
(struct USBBusIntDsc *)
 
id_InterfaceID=1
 id_AltSetting
=2
 id_NumEndPoints
=2
 id_Class
=1
 id_Subclass
=2
 id_Protocol
=32
 id_InterfaceStr
=4
Audio Streaming 
Interface (General)(struct AudioStreamIfcDsc*)
 
bTerminalLink=2
 bDelay
=0
 wFormatTag
=257
Type 1 Format type descriptor
(struct AudioDataT1FormatDsc*)
 
bFormatType=1
 bNrChannels
=4
 bSubframeSize
=24
 bBitResolution
=0
 bSamFreqType
=0
Continuously variable frequency
 Low Freq Limit is 0
 High Freq Limit is 0
USBDESC_Endpoint 
(struct USBBusEPDsc*)
 
ed_Address=1
 ed_Attributes
=(Isochronous)Audio Playback
 ed_MaxPacketSize
=392
 ed_Interval
=1
Audio Endpoint 
(General)(struct AudioDataEndpointDsc*)
 
Attributes=0
 bLockDelayUnits
=0
 wLockDelay
=200
USBDESC_Endpoint 
(struct USBBusEPDsc*)
 
ed_Address=129
 ed_Attributes
=17 (Isochronous)Audio Recording
 ed_MaxPacketSize
=4
 ed_Interval
=4

USBDESC_Interface 
(struct USBBusIntDsc *)
 
id_InterfaceID=1
 id_AltSetting
=3
 id_NumEndPoints
=2
 id_Class
=1
 id_Subclass
=2
 id_Protocol
=32
 id_InterfaceStr
=4
Audio Streaming 
Interface (General)(struct AudioStreamIfcDsc*)
 
bTerminalLink=2
 bDelay
=0
 wFormatTag
=1
Type 1 PCM
Type 1 Format type descriptor
(struct AudioDataT1FormatDsc*)
 
bFormatType=1
 bNrChannels
=4
 bSubframeSize
=32
 bBitResolution
=0
 bSamFreqType
=0
Continuously variable frequency
 Low Freq Limit is 0
 High Freq Limit is 0
USBDESC_Endpoint 
(struct USBBusEPDsc*)
 
ed_Address=1
 ed_Attributes
=(Isochronous)Audio Playback
 ed_MaxPacketSize
=392
 ed_Interval
=1
Audio Endpoint 
(General)(struct AudioDataEndpointDsc*)
 
Attributes=0
 bLockDelayUnits
=0
 wLockDelay
=200
USBDESC_Endpoint 
(struct USBBusEPDsc*)
 
ed_Address=129
 ed_Attributes
=17 (Isochronous)Audio Recording
 ed_MaxPacketSize
=4
 ed_Interval
=4

USBDESC_Interface 
(struct USBBusIntDsc *)
 
id_InterfaceID=2
 id_AltSetting
=0
 id_NumEndPoints
=0
 id_Class
=254
 id_Subclass
=1
 id_Protocol
=1
 id_InterfaceStr
=10
Audio Device
++++++++++++InterfaceDesc++++++++++++

USBDESC_Interface (struct USBBusIntDsc *)
 
id_InterfaceID=1
 id_AltSetting
=0
 id_NumEndPoints
=0
 id_Class
=1
 id_Subclass
=2
 id_Protocol
=32
 id_InterfaceStr
=4


I hope, it helps a little.

Go to top
Re: USB Audio driver for AmigaOS4
Just popping in
Just popping in


See User information
Hi All,

-- Just installed latest USB audio driver for OS4.1.

-- Note: There was no readme file included, just the installer only.

-- The installer worked fine.

-- I went to sound prefs.

-- I see the new additional sound modes by Andrea Palmate.

-- I selected any of the modes and play a test sound.

-- I can now hear a long beep from my external USB speaker for the 1st time.

-- My external USB speaker is from Amazon

-- USB inspector shows its a USB 2.0 audio device serial number of 20130100ph0.

-- But when I try to play the OS4.1 system start up sound hirasawa in sound prefs.

-- Vu meter by Lyle Hazelwood is pulsing up and down while playing the sound.

-- But I still have no sound.

-- I tried testing each mode again and can hear beeps fine.

-- I am missing a step to get sound fully working in OS4.1?

-- Any advice is appreciated. Thank you.

Go to top
Re: USB Audio driver for AmigaOS4
Not too shy to talk
Not too shy to talk


See User information
@Boabster

You are running multiple audio drivers.

Open Prefs/AHI
Select "Music Unit" , then select the new USB Audio driver
Select "Unit 0", then select the new USB Audio Driver
Select "Unit 1", then select the new USB Audio Driver
Select "Unit 2", then select the new USB Audio Driver
Select "Unit 3", then select the new USB Audio Driver
Select "Save"

I never cared for the GUI design of AHI Prefs.
I think having tabs for each unit would be more visually clear.


Let us know how that works out,
Lyle

Go to top
Re: USB Audio driver for AmigaOS4
Just popping in
Just popping in


See User information
Hi @LyleHaze,

- Thank you for your reply.

- Strangely my AHI icon was not in prefs?

- Not sure what happened there?

- However, I managed to get a copy of AHI from my A1222 ISO.

- And paste AHI into my prefs drawer.

- I followed each of your instructions.

- Strange, each time, I select the new mono USB driver on each of the units.

- Play a test sound, the entire system locks up?

- And a reboot is required to restore normal operation.

- Once I have save all of the units, rebooted the system.

- Yes, I can now get the Amiga OS 4 startup chime loud and clear.

- Fantastic.

- But the thing is my system is now completely locked out upon start.

- Question to you: Is there a safe boot mode I can try to disable the new audio USB driver to allow the system to respond normally?

- New update: Actually, I think it a delay, my system is responsive now.

- Just tried TuneNet to play internet radio. Still no sound?

- Still doing further testing and checks........

- Be back with another update soon.

Go to top
Re: USB Audio driver for AmigaOS4
Just popping in
Just popping in


See User information
Hi All,

- Another update after further testing.

- I can confirm, I am getting audio output from my external USB speaker but with problems.

- I am not sure why TuneNet internet radio is not able to playback any audio output at all?

- I checked TuneNet settings, i tried setting the AHI audio 0, 1, 2, 3, or AHI user mode and specifying it to USB mono driver, there still no sound output?

- Aall internet radio stations, no sound playback at all?

- It can't be all of the stations are offline or is it?

- After rebooting the system.

- It seem to lock up my system entirely when playing the startup chime.

- If I leave the system alone for an extended period of time, say 10 mins.

- I get a response from the system, the mouse pointer moves, I can use the system.

- Or sometimes, after 10 mins, I have to reboot the system to get nromal operation again.

- After reboot, the audio output seem to go very quiet, I could hear something coming from the external USB speaker but very faintly.

- I tried adusting the USB mono driver volume in AHI prefs to maximum.

- I also notice in Sound prefs, it USB mono driver volume is set at the middle, so I push that volume to max.

- Each time I play a test sound either on AHI Prefs or Sound Prefs, the audio output can be still quite low sound output even at already set to maximum.

- Sometimes adjusting sound volume can also lock up my system, forcing another reboot.

- Despite all of this.

- If I power down the system, start again, setting AHI Prefs, 0,1,2, etc, set to maximum volume, including sound prefs and another reboot.

- I am getting a clear loud sound output when system boots into the Amiga OS 4.1 startup chime but I still have the problem of complete system lock up.

- To encourage continued development of the USB audio driver, I will contribute a donation soon and I look forward to future updates and enhancements to audio USB driver.

- It seems we heading on the right way, If you need debug logs, let me know how to gather them for you, I will provide them for you.

- If you have any other suggestions, please let me know, any advice and feedback is appreciated.

- Thank you

Go to top
Re: USB Audio driver for AmigaOS4
Not too shy to talk
Not too shy to talk


See User information
@boabster
I am not the author, but I THINK this new USB auidio driver is for Audio Class 1 devices only.

In past projects of my own, I had a lot of trouble explaining that Audio Class 1 and Audio Class 2 are not compatible.

So I recenly wrote "AudioClassID", to at least make it easy to TELL which is which. When you run it with no other arguments, the last line of each interface says "USB Audio Class Compliance: " followed by 01.xx or 02.xx

Since I'm digging into details, here's the back story:
Audio was the very first USB Class. When the Audio class was laid out, there were a few details that were not defined properly. So manufactuirers each decided how to fill in the blanks. This made the driver more complicated, and the worst part is that the "fancy" bits have no documentation.

Eventually they decided to re-design the standard. Part of the changes meant changing descriptors, structures, and sometimes even used the same names for changed parts. At least it's all documented now, but there's a LOT of class 1 devices already out in the wild.

So the driver has to check this "Class Compatibility" when they attach to a new device. The Class 2 drivers know to check. Older Class 1 drivers were not expecting a redesign, so they are often unaware of the need to check this.

And that's probably way more than you wanted to know. I THINK he said this driver is for class 1 devices only. I also recall you said your device said class 2. I think you might find the problem with that mismatch.

I do have a class 2 driver in the works, but like many of my projects it's not been worked on in a while, and I don't plan on connecting it to AHI. Most likely it will go directly to AudioLink.library instead. (AudioLink is another unfinished project, I have a lot of those)

Again, too much information, but it'll give the people just browsing something to read today.

I hope this answered some questions.

Go to top
Re: USB Audio driver for AmigaOS4
Just can't stay away
Just can't stay away


See User information
@LyleHaze
Quote:
Open Prefs/AHI
Select "Music Unit" , then select the new USB Audio driver
Select "Unit 0", then select the new USB Audio Driver
Select "Unit 1", then select the new USB Audio Driver
Select "Unit 2", then select the new USB Audio Driver
Select "Unit 3", then select the new USB Audio Driver
Select "Save"

I think this came up before and then those who understand it said only the Unit 0-4 should be set to the audio driver and the Music Unit should stay audio device (or whatever it was originally) because that's how multiple audio streams are supported by software mixing or something like that. Not that this would fix a non-working driver but that should be the correct way to configure this in my understanding.

Go to top

  Register To Post
« 1 2 (3)

 




Currently Active Users Viewing This Thread: 1 ( 0 members and 1 Anonymous Users )



Polls
Running AmigaOS 4 on?
AmigaOne SE/XE or microA1 12% (26)
Pegasos2 3% (8)
X5000 22% (48)
X1000 14% (30)
A1222 8% (19)
Sam 440/460 18% (40)
Classic PowerPC Amiga 2% (6)
WinUAE emulation 7% (16)
Qemu emulation 9% (21)
Total Votes: 214
The poll closed at 2025/12/1 12:00
8 Comments


Powered by XOOPS 2.0 © 2001-2024 The XOOPS Project