Hello, when I attempt to use surround sound, it does not appear to work correctly. Specifically, I tested by playing a 5.1 movie from DVD using mpv, with the setting sysctl dev.pcm.X.play.vchanformat=s16le:7.1 applied. However, the voices and other audio elements seem to be stuck to the left channel only. ugen0.11: <Audeze Mobius 3D 8Ch Audeze Mobius 3D 8Ch> at usbus0 uaudio1 on uhub0 uaudio1: <Audeze Mobius 3D 8Ch Audeze Mobius 3D 8Ch, class 0/0, rev 2.00/0.13, addr 18> on usbus0
You are saying you are playing a 5.1 movie, but the vchanformat setting is 7.1. Doesn't setting it to 5.1 work?
Thanks for your quick reply, unfortunately the same outcome.
Please attach your dmesg, as well as the output of the following command *when* running mpv: $ sndctl -v If your FreeBSD version doesn't have it, then: # sysctl hw.snd.verbose=2 $ cat /dev/sndstat Also, you can try the following setting for your USB sound card: # sysctl hw.usb.uaudio.default_channels=6 For the change to take effect, you have to re-plug your soundcard (see snd_uaudio(4)'s man page).
Created attachment 265835 [details] sndctl -v
Created attachment 265841 [details] mpv dvd://
Created attachment 265842 [details] sndctl -v
Created attachment 265844 [details] dmesg
Is there any improvement if you set dev.pcm.X.play.vchanformat to s24le:5.1 or s24le:7.1? The latter is what your card actually uses. Also did hw.usb.uaudio.default_channels=6 make any difference (remember you have to re-plug the device for it to take effect)?
No improvement was observed when setting the format to either the device’s original configuration or to s24le:5.1. I also re-plugged the device and set the vchanformat accordingly after adjusting hw.usb.uaudio.default_channels. Additionally, I tested with 8 channels to be thorough.
Is this also a problem with another media player, or even another OS?
I have tested both VLC and MPV. I am uncertain how they perform on other operating systems, as I only use FreeBSD here.
(In reply to Alexander Vereeken from comment #11) Can you try disabling virtual channels? # sndctl play.vchans=0 rec.vchans=0 You can also try disabling vchans *and* enabling bitperfect: # sndctl play.vchans=0 rec.vchans=0 bitperfect=1 And then you can make sure mpv is using the channel layout you want. You can use --audio-channels to set it manually (see --audio-channels=help to see the available layouts).
Bump.
No changes on behavior unfortunately and bitperfect doesn't seem to be a good idea since it causes just loud noise and even had to unplug it.
(In reply to Alexander Vereeken from comment #14) Is there something coming up in dmesg when you try to play audio? You can enable verbose mode for sound(4) like this: # sysctl hw.snd.verbose=4 Please also attach the output of "sndctl -v" so that I can see what configuration you are using.
Messages: sndbuf_remalloc(): b=0xfffff80439c4aa80 8192 -> 32768 [32736] pcm9: chn_resizebuf(): PCMDIR_PLAY (hardware) timeout=56 b[9216/4608/2] bs[32736/4092/8] limit=4608 pcm9: chn_resizebuf(): PCMDIR_PLAY (hardware) timeout=56 b[9216/4608/2] bs[32736/4092/8] limit=4608 sndbuf_remalloc(): b=0xfffff80439c4aa80 32768 [32736] NOCHANGE pcm9: chn_resizebuf(): PCMDIR_PLAY (hardware) timeout=7 b[9216/4608/2] bs[4080/2040/2] limit=0 pcm9: chn_resizebuf(): PCMDIR_PLAY (hardware) timeout=7 b[9216/4608/2] bs[4080/2040/2] limit=0 pcm9: chn_resizebuf(): PCMDIR_PLAY (hardware) timeout=7 b[9216/4608/2] bs[4080/2040/2] limit=0 sndbuf_remalloc(): b=0xfffff804391cd180 0 -> 8192 [8192] pcm9: chn_resizebuf(): PCMDIR_PLAY (virtual) timeout=7 b[0/0/0] bs[8192/1024/8] limit=1360 pcm9: chn_resizebuf(): PCMDIR_PLAY (hardware) timeout=7 b[9216/4608/2] bs[4080/2040/2] limit=0 pcm9: chn_resizebuf(): PCMDIR_PLAY (virtual) timeout=7 b[0/0/0] bs[8192/1024/8] limit=1360 pcm9: chn_resizebuf(): PCMDIR_PLAY (hardware) timeout=7 b[9216/4608/2] bs[4080/2040/2] limit=0 sndbuf_remalloc(): b=0xfffff804391cd180 8192 -> 16384 [16384] pcm9: chn_resizebuf(): PCMDIR_PLAY (virtual) timeout=7 b[0/0/0] bs[16384/2048/8] limit=2720 pcm9: chn_resizebuf(): PCMDIR_PLAY (hardware) timeout=7 b[9216/4608/2] bs[4080/2040/2] limit=0 sndbuf_remalloc(): b=0xfffff804391cd180 16384 -> 65536 [65472] pcm9: chn_resizebuf(): PCMDIR_PLAY (virtual) timeout=7 b[0/0/0] bs[65472/8184/8] limit=8160 pcm9: chn_trigger() dsp9.virtual_play.0: calling go=0x00000001 , prev=0x00000000 pcm9: chn_start(): VCHAN PARENT starting! (PCMDIR_PLAY/running) (ready=8160 force=1 i=1 j=0 intrtimeout=7 latency=8ms) pcm9: chn_trigger() dsp9.play.0: calling go=0x00000001 , prev=0x00000000 pcm9: WARNING: PCMDIR_PLAY DMA completion too fast/slow ! hwptr=0, old=0 delta=0 amt=0 ready=8160 free=1056 sndctl: pcm9: <Audeze Mobius 3D 8Ch Audeze Mobius 3D 8Ch> on uaudio0 (play/rec) name = pcm9 desc = Audeze Mobius 3D 8Ch Audeze Mobius 3D 8Ch status = on uaudio0 devnode = dsp9 from_user = 0 unit = 9 caps = INPUT,MMAP,OUTPUT,REALTIME,TRIGGER,VIRTUAL bitperfect = 0 autoconv = 1 realtime = 0 eq = 0 eq_preamp = +0.0dB play.format = s16le:5.1 play.rate = 48000 play.vchans = 1 play.min_rate = 1 play.max_rate = 2016000 play.min_chans = 6 play.max_chans = 8 play.formats = s16le,s24le rec.rate = 48000 rec.format = s16le:2.0 rec.vchans = 1 rec.min_rate = 1 rec.max_rate = 2016000 rec.min_chans = 2 rec.max_chans = 2 rec.formats = s24le dsp9.play.0 name = dsp9.play.0 parentchan = unit = 0 caps = MMAP,OUTPUT,REALTIME,TRIGGER latency = 2 rate = 48000 format = s16le:5.1 pid = -1 proc = <UNUSED> interrupts = 15697 xruns = 0 feedcount = 31392 volume = 0.45:0.45 hwbuf.format = s24le:7.1 hwbuf.rate = 48000 hwbuf.size_bytes = 9216 hwbuf.size_frames = 341 hwbuf.blksz = 4608 hwbuf.blkcnt = 2 hwbuf.free = 1056 hwbuf.ready = 8160 swbuf.format = s16le:5.1 swbuf.rate = 48000 swbuf.size_bytes = 4080 swbuf.size_frames = 291 swbuf.blksz = 2040 swbuf.blkcnt = 2 swbuf.free = 4080 swbuf.ready = 0 feederchain = [vchans -> feeder_mixer(s16le:5.1) -> feeder_format(s16le:5.1 -> s24le:5.1) -> feeder_matrix(5.1ch -> 7.1ch) -> hardware] dsp9.virtual_play.0 name = dsp9.virtual_play.0 parentchan = dsp9.play.0 unit = 1 caps = MMAP,OUTPUT,REALTIME,TRIGGER,VIRTUAL latency = 2 rate = 48000 format = f32le:5.1 pid = 7110 proc = mpv interrupts = 0 xruns = 0 feedcount = 156960 volume = 0.45:0.45 hwbuf.format = s16le:5.1 hwbuf.rate = 48000 hwbuf.size_bytes = 0 hwbuf.size_frames = 0 hwbuf.blksz = 0 hwbuf.blkcnt = 0 hwbuf.free = 0 hwbuf.ready = 0 swbuf.format = f32le:5.1 swbuf.rate = 48000 swbuf.size_bytes = 65472 swbuf.size_frames = 2338 swbuf.blksz = 8184 swbuf.blkcnt = 8 swbuf.free = 9216 swbuf.ready = 56256 feederchain = [userland -> feeder_root(f32le:5.1) -> feeder_format(f32le:5.1 -> s16le:5.1) -> feeder_volume(s16le:5.1) -> dsp9.play.0] dsp9.record.0 name = dsp9.record.0 parentchan = unit = 2 caps = INPUT,MMAP,REALTIME,TRIGGER latency = 2 rate = 48000 format = s16le:2.0 pid = -1 proc = <UNUSED> interrupts = 0 xruns = 0 feedcount = 0 volume = 0.45:0.45 hwbuf.format = s24le:2.0 hwbuf.rate = 48000 hwbuf.size_bytes = 2304 hwbuf.size_frames = 384 hwbuf.blksz = 1152 hwbuf.blkcnt = 2 hwbuf.free = 2304 hwbuf.ready = 0 swbuf.format = s16le:2.0 swbuf.rate = 48000 swbuf.size_bytes = 32768 swbuf.size_frames = 8192 swbuf.blksz = 256 swbuf.blkcnt = 128 swbuf.free = 32768 swbuf.ready = 0 feederchain = [hardware -> feeder_root(s24le:2.0) -> feeder_format(s24le:2.0 -> s16le:2.0) -> feeder_volume(s16le:2.0) -> vchans] MPV: AO: [oss] 48000Hz 5.1(alsa) (5.1) 6ch float, Selected audiotrack: ● Audio --aid=1 --alang=de (ac3 6ch 48000 Hz 448 kbps)
Please post the output of: usbconfig -d ugen0.11 dump_all_desc I think I have somewhat tracked down what the issue might be.
ugen0.10: <Audeze Mobius 3D 8Ch Realtek Semiconductor Corp.> at usbus0, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON (100mA) bLength = 0x0012 bDescriptorType = 0x0001 bcdUSB = 0x0200 bDeviceClass = 0x0000 <Probed by interface class> bDeviceSubClass = 0x0000 bDeviceProtocol = 0x0000 bMaxPacketSize0 = 0x0040 idVendor = 0x0bda idProduct = 0x4b09 bcdDevice = 0x0013 iManufacturer = 0x0003 <Audeze Mobius 3D 8Ch> iProduct = 0x0001 <Audeze Mobius 3D 8Ch> iSerialNumber = 0x0002 <Audeze Mobius 3D 8Ch> bNumConfigurations = 0x0001 Configuration index 0 bLength = 0x0009 bDescriptorType = 0x0002 wTotalLength = 0x0105 bNumInterfaces = 0x0004 bConfigurationValue = 0x0001 iConfiguration = 0x0004 <Audeze Mobius 3D 8Ch> bmAttributes = 0x00a0 bMaxPower = 0x0032 Interface 0 bLength = 0x0009 bDescriptorType = 0x0004 bInterfaceNumber = 0x0000 bAlternateSetting = 0x0000 bNumEndpoints = 0x0001 bInterfaceClass = 0x0001 <Audio device> bInterfaceSubClass = 0x0001 bInterfaceProtocol = 0x0000 iInterface = 0x0005 <Audeze Mobius 3D 8Ch> Additional Descriptor bLength = 0x0a bDescriptorType = 0x24 bDescriptorSubType = 0x01 RAW dump: 0x00 | 0x0a, 0x24, 0x01, 0x00, 0x01, 0x69, 0x00, 0x02, 0x08 | 0x01, 0x02 Additional Descriptor bLength = 0x0c bDescriptorType = 0x24 bDescriptorSubType = 0x02 RAW dump: 0x00 | 0x0c, 0x24, 0x02, 0x07, 0x01, 0x02, 0x00, 0x02, 0x08 | 0x03, 0x00, 0x00, 0x00 Additional Descriptor bLength = 0x09 bDescriptorType = 0x24 bDescriptorSubType = 0x03 RAW dump: 0x00 | 0x09, 0x24, 0x03, 0x0d, 0x01, 0x01, 0x07, 0x19, 0x08 | 0x00 Additional Descriptor bLength = 0x0d bDescriptorType = 0x24 bDescriptorSubType = 0x06 RAW dump: 0x00 | 0x0d, 0x24, 0x06, 0x13, 0x07, 0x02, 0x01, 0x02, 0x08 | 0x02, 0x00, 0x02, 0x00, 0x00 Additional Descriptor bLength = 0x0f bDescriptorType = 0x24 bDescriptorSubType = 0x08 RAW dump: 0x00 | 0x0f, 0x24, 0x08, 0x19, 0xda, 0x0b, 0x01, 0x13, 0x08 | 0x02, 0x03, 0x00, 0x00, 0x01, 0x01, 0x00 Additional Descriptor bLength = 0x0c bDescriptorType = 0x24 bDescriptorSubType = 0x02 RAW dump: 0x00 | 0x0c, 0x24, 0x02, 0x0a, 0x01, 0x01, 0x00, 0x08, 0x08 | 0x3f, 0x06, 0x00, 0x00 Additional Descriptor bLength = 0x09 bDescriptorType = 0x24 bDescriptorSubType = 0x03 RAW dump: 0x00 | 0x09, 0x24, 0x03, 0x10, 0x02, 0x03, 0x0a, 0x16, 0x08 | 0x00 Additional Descriptor bLength = 0x19 bDescriptorType = 0x24 bDescriptorSubType = 0x06 RAW dump: 0x00 | 0x19, 0x24, 0x06, 0x16, 0x0a, 0x02, 0x01, 0x00, 0x08 | 0x02, 0x00, 0x02, 0x00, 0x02, 0x00, 0x02, 0x00, 0x10 | 0x02, 0x00, 0x02, 0x00, 0x02, 0x00, 0x02, 0x00, 0x18 | 0x00 Endpoint 0 bLength = 0x0009 bDescriptorType = 0x0005 bEndpointAddress = 0x0087 <IN> bmAttributes = 0x0003 <INTERRUPT> wMaxPacketSize = 0x0010 bInterval = 0x0008 bRefresh = 0x0000 bSynchAddress = 0x0000 Interface 1 bLength = 0x0009 bDescriptorType = 0x0004 bInterfaceNumber = 0x0001 bAlternateSetting = 0x0000 bNumEndpoints = 0x0000 bInterfaceClass = 0x0001 <Audio device> bInterfaceSubClass = 0x0002 bInterfaceProtocol = 0x0000 iInterface = 0x0005 <Audeze Mobius 3D 8Ch> Interface 1 Alt 1 bLength = 0x0009 bDescriptorType = 0x0004 bInterfaceNumber = 0x0001 bAlternateSetting = 0x0001 bNumEndpoints = 0x0001 bInterfaceClass = 0x0001 <Audio device> bInterfaceSubClass = 0x0002 bInterfaceProtocol = 0x0000 iInterface = 0x0005 <Audeze Mobius 3D 8Ch> Additional Descriptor bLength = 0x07 bDescriptorType = 0x24 bDescriptorSubType = 0x01 RAW dump: 0x00 | 0x07, 0x24, 0x01, 0x0d, 0x01, 0x01, 0x00 Additional Descriptor bLength = 0x0b bDescriptorType = 0x24 bDescriptorSubType = 0x02 RAW dump: 0x00 | 0x0b, 0x24, 0x02, 0x01, 0x02, 0x03, 0x18, 0x01, 0x08 | 0x80, 0xbb, 0x00 Endpoint 0 bLength = 0x0009 bDescriptorType = 0x0005 bEndpointAddress = 0x0081 <IN> bmAttributes = 0x0005 <ASYNC-ISOCHRONOUS> wMaxPacketSize = 0x0174 bInterval = 0x0004 bRefresh = 0x0000 bSynchAddress = 0x0000 Additional Descriptor bLength = 0x07 bDescriptorType = 0x25 bDescriptorSubType = 0x01 RAW dump: 0x00 | 0x07, 0x25, 0x01, 0x01, 0x00, 0x00, 0x00 Interface 2 bLength = 0x0009 bDescriptorType = 0x0004 bInterfaceNumber = 0x0002 bAlternateSetting = 0x0000 bNumEndpoints = 0x0000 bInterfaceClass = 0x0001 <Audio device> bInterfaceSubClass = 0x0002 bInterfaceProtocol = 0x0000 iInterface = 0x0005 <Audeze Mobius 3D 8Ch> Interface 2 Alt 1 bLength = 0x0009 bDescriptorType = 0x0004 bInterfaceNumber = 0x0002 bAlternateSetting = 0x0001 bNumEndpoints = 0x0001 bInterfaceClass = 0x0001 <Audio device> bInterfaceSubClass = 0x0002 bInterfaceProtocol = 0x0000 iInterface = 0x0005 <Audeze Mobius 3D 8Ch> Additional Descriptor bLength = 0x07 bDescriptorType = 0x24 bDescriptorSubType = 0x01 RAW dump: 0x00 | 0x07, 0x24, 0x01, 0x0a, 0x01, 0x01, 0x00 Additional Descriptor bLength = 0x0b bDescriptorType = 0x24 bDescriptorSubType = 0x02 RAW dump: 0x00 | 0x0b, 0x24, 0x02, 0x01, 0x08, 0x03, 0x18, 0x01, 0x08 | 0x80, 0xbb, 0x00 Endpoint 0 bLength = 0x0009 bDescriptorType = 0x0005 bEndpointAddress = 0x0004 <OUT> bmAttributes = 0x0009 <ADAPT-ISOCHRONOUS> wMaxPacketSize = 0x0ae8 bInterval = 0x0004 bRefresh = 0x0000 bSynchAddress = 0x0000 Additional Descriptor bLength = 0x07 bDescriptorType = 0x25 bDescriptorSubType = 0x01 RAW dump: 0x00 | 0x07, 0x25, 0x01, 0x01, 0x00, 0x00, 0x00 Interface 3 bLength = 0x0009 bDescriptorType = 0x0004 bInterfaceNumber = 0x0003 bAlternateSetting = 0x0000 bNumEndpoints = 0x0001 bInterfaceClass = 0x0003 <HID device> bInterfaceSubClass = 0x0000 bInterfaceProtocol = 0x0000 iInterface = 0x0000 <no string> Additional Descriptor bLength = 0x09 bDescriptorType = 0x21 bDescriptorSubType = 0x11 RAW dump: 0x00 | 0x09, 0x21, 0x11, 0x01, 0x00, 0x01, 0x22, 0x32, 0x08 | 0x00 Endpoint 0 bLength = 0x0007 bDescriptorType = 0x0005 bEndpointAddress = 0x0088 <IN> bmAttributes = 0x0003 <INTERRUPT> wMaxPacketSize = 0x0010 bInterval = 0x0004 bRefresh = 0x0000 bSynchAddress = 0x0000
Created attachment 273890 [details] patch Can you please apply the attached patch to the main branch and test?
(In reply to Christos Margiolis from comment #20) Bump.
Friendly bump to test attachment 273890 [details].
I am sorry for the late answer. My test machine have currently no working hard disk and is pending to be replaced.
(In reply to Alexander Vereeken from comment #23) Alright, please let me know when you get it working again.
Friendly bump.