Bug 253160

Summary: [sound] [usb] noise with uaudio in bitperfect mode
Product: Base System Reporter: Oleh Vinichenko <moonlapse81>
Component: usbAssignee: freebsd-usb (Nobody) <usb>
Status: Closed Works As Intended    
Severity: Affects Only Me CC: hselasky
Priority: ---    
Version: 12.2-STABLE   
Hardware: amd64   
OS: Any   
Attachments:
Description Flags
dump of usb
none
output of lsusb -vvv
none
dmesg
none
dmesg after reconnecting
none
dmesg_with_musicpd_bitperfect_enabled none

Description Oleh Vinichenko 2021-02-01 13:10:16 UTC
I have usb audio device Schiit Fulla 2.
When bitperfect mode activated for this device, playback produces only white noise.
It plays perfectly good with bitperfect disabled
Comment 1 Oleh Vinichenko 2021-02-01 13:11:23 UTC
Created attachment 222070 [details]
dump of usb
Comment 2 Oleh Vinichenko 2021-02-01 13:11:55 UTC
Created attachment 222071 [details]
output of lsusb -vvv
Comment 3 Oleh Vinichenko 2021-02-01 13:12:26 UTC
Created attachment 222072 [details]
dmesg
Comment 4 Hans Petter Selasky freebsd_committer freebsd_triage 2021-02-01 13:13:19 UTC
Can you share what application you are using?

Typically bitperfect mode only works with selected applications.

Also dmesg output is appreciated!

--HPS
Comment 5 Hans Petter Selasky freebsd_committer freebsd_triage 2021-02-01 13:17:00 UTC
You need the dmesg of the attach sequence. What is printed at detach?
Comment 6 Hans Petter Selasky freebsd_committer freebsd_triage 2021-02-01 13:29:35 UTC
You might find virtual_oss in ports useful to solve your problem.

--HPS
Comment 7 Oleh Vinichenko 2021-02-01 13:34:59 UTC
i didn't know it is working only for selected programs, i have tried playing some album through bandcamp. i will try setting up audio/musicpd and report back.
how do i get dmesg of attach sequeence?
Comment 8 Hans Petter Selasky freebsd_committer freebsd_triage 2021-02-01 13:36:24 UTC
After connecting the device:
dmesg | grep -i uaudio

--HPS
Comment 9 Oleh Vinichenko 2021-02-01 13:42:30 UTC
Created attachment 222076 [details]
dmesg after reconnecting
Comment 10 Oleh Vinichenko 2021-02-01 14:41:09 UTC
Created attachment 222079 [details]
dmesg_with_musicpd_bitperfect_enabled
Comment 11 Oleh Vinichenko 2021-03-05 14:36:31 UTC
i am not sure if virtual_oss could be useful, though i did not try. my intention was to disable any vchans and use the sound directly by hardware, which is what i supposed bit perfect would give. I did not know, this is limited to a number of devices. So this can be closed as expected :)