Bug 253160 - [sound] [usb] noise with uaudio in bitperfect mode
Summary: [sound] [usb] noise with uaudio in bitperfect mode
Status: Closed Works As Intended
Alias: None
Product: Base System
Classification: Unclassified
Component: usb (show other bugs)
Version: 12.2-STABLE
Hardware: amd64 Any
: --- Affects Only Me
Assignee: freebsd-usb (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-02-01 13:10 UTC by Oleh Vinichenko
Modified: 2021-03-05 14:41 UTC (History)
1 user (show)

See Also:


Attachments
dump of usb (6.13 KB, text/plain)
2021-02-01 13:11 UTC, Oleh Vinichenko
no flags Details
output of lsusb -vvv (35.32 KB, text/plain)
2021-02-01 13:11 UTC, Oleh Vinichenko
no flags Details
dmesg (95.92 KB, text/plain)
2021-02-01 13:12 UTC, Oleh Vinichenko
no flags Details
dmesg after reconnecting (95.04 KB, text/plain)
2021-02-01 13:42 UTC, Oleh Vinichenko
no flags Details
dmesg_with_musicpd_bitperfect_enabled (95.89 KB, text/plain)
2021-02-01 14:41 UTC, Oleh Vinichenko
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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 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 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 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 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 :)