Bug 425328 - Forgets FiiO BTR5 DAC connected to USB after sleep
Summary: Forgets FiiO BTR5 DAC connected to USB after sleep
Status: RESOLVED WORKSFORME
Alias: None
Product: plasma-pa
Classification: Unmaintained
Component: general (other bugs)
Version First Reported In: 5.19.4
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: David Rosca
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-08-14 00:54 UTC by Rajinder Yadav
Modified: 2021-06-07 17:15 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments
pactl log (579 bytes, text/x-log)
2020-08-15 16:58 UTC, Rajinder Yadav
Details
pulse audio config dialog (63.08 KB, image/png)
2020-08-15 17:26 UTC, Rajinder Yadav
Details
Working config setting (56.79 KB, image/png)
2020-08-15 17:50 UTC, Rajinder Yadav
Details
Not working after a while (67.77 KB, image/png)
2020-08-15 18:01 UTC, Rajinder Yadav
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Rajinder Yadav 2020-08-14 00:54:49 UTC
SUMMARY

Pulse Audio Volume Control -> Configuration Tab

This use to work and stop I believe a week back. I have a FiiO BTR5 DAC connected to the USB, after the computer comes out of sleep the device no longer show up and my DAC tells me it needs to reconnect.

Now I have to turn off and on the device, or unplug from the USB and re-plug, this is very annoying.


STEPS TO REPRODUCE
1. Connect Fiio BTR5 to USB
2. Put computer to sleep.
3. Wake computer from sleep

OBSERVED RESULT

Fiio BTR5 connected to USB no longer shows in Pulse Audio Configuration tab, the audio no longer comes out of my headphone connected to the DAC, and DAC device says it need to reconnect.


EXPECTED RESULT

Connected USB device should show up and remain selected with the correct audio profile so my headphone continue to work.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: opensuse tumbleweed
KDE Plasma Version: 5.19.4
KDE Frameworks Version: 5.73.0
Qt Version: 5.15.0

ADDITIONAL INFORMATION
Comment 1 Nicolas Fella 2020-08-14 10:09:38 UTC
Can you run 'pactl list sinks' and attach the output? That would help a lot
Comment 2 Rajinder Yadav 2020-08-15 16:58:29 UTC
Created attachment 130890 [details]
pactl log

I just came out of sleep now and Pulse Audio Config. is showing me even less options today. It has been flaky like this for a while.

I am using opensuse tumbleweed.
Comment 3 Rajinder Yadav 2020-08-15 17:26:51 UTC
Created attachment 130892 [details]
pulse audio config dialog
Comment 4 Rajinder Yadav 2020-08-15 17:45:22 UTC
Here is the output with a working FiiO BTR using the USB DAC Config setting:
1. FiioO BTR (hardware) set to Analog Stereo Output
2. Fiio BTR5 (headphone) set to OFF

Sink #12
        State: SUSPENDED
        Name: alsa_output.usb-FiiO_FiiO_BTR5-00.analog-stereo
        Description: FiiO BTR5 Analog Stereo
        Driver: module-alsa-card.c
        Sample Specification: s16le 2ch 44100Hz
        Channel Map: front-left,front-right
        Owner Module: 37
        Mute: no
        Volume: front-left: 39320 /  60% / -13.31 dB,   front-right: 39320 /  60% / -13.31 dB
                balance 0.00
        Base Volume: 65536 / 100% / 0.00 dB
        Monitor Source: alsa_output.usb-FiiO_FiiO_BTR5-00.analog-stereo.monitor
        Latency: 0 usec, configured 0 usec
        Flags: HARDWARE DECIBEL_VOLUME LATENCY 
        Properties:
                alsa.resolution_bits = "16"
                device.api = "alsa"
                device.class = "sound"
                alsa.class = "generic"
                alsa.subclass = "generic-mix"
                alsa.name = "USB Audio"
                alsa.id = "USB Audio"
                alsa.subdevice = "0"
                alsa.subdevice_name = "subdevice #0"
                alsa.device = "0"
                alsa.card = "3"
                alsa.card_name = "FiiO BTR5"
                alsa.long_card_name = "FiiO FiiO BTR5 at usb-0000:03:00.0-9, high speed"
                alsa.driver_name = "snd_usb_audio"
                device.bus_path = "pci-0000:03:00.0-usb-0:9:1.0"
                sysfs.path = "/devices/pci0000:00/0000:00:01.3/0000:03:00.0/usb1/1-9/1-9:1.0/sound/card3"
                udev.id = "usb-FiiO_FiiO_BTR5-00"
                device.bus = "usb"
                device.vendor.id = "2972"
                device.vendor.name = "FiiO"
                device.product.id = "0047"
                device.product.name = "FiiO BTR5"
                device.serial = "FiiO_FiiO_BTR5"
                device.string = "front:3"
                device.buffering.buffer_size = "352800"
                device.buffering.fragment_size = "176400"
                device.access_mode = "mmap+timer"
                device.profile.name = "analog-stereo"
                device.profile.description = "Analog Stereo"
                device.description = "FiiO BTR5 Analog Stereo"
                module-udev-detect.discovered = "1"
                device.icon_name = "audio-card-usb"
        Ports:
                analog-output: Analog Output (priority: 9900)
        Active Port: analog-output
        Formats:

=============================================================

Here is another output when the 2nd Fiio BTR5 device which becomes active after a few seconds when the FiiO DAC is plugged is or Turned on. This causes the audio to stop working as I showed in the attached pic and I have go and set it to "Off".

Where ever the FiiO BTR5 (headphone) not set to "Off" after some time the audio will just stop playing, this period seems to vary but eventually the audio goes silent.


Sink #12
        State: SUSPENDED
        Name: alsa_output.usb-FiiO_FiiO_BTR5-00.analog-stereo
        Description: FiiO BTR5 Analog Stereo
        Driver: module-alsa-card.c
        Sample Specification: s16le 2ch 44100Hz
        Channel Map: front-left,front-right
        Owner Module: 37
        Mute: no
        Volume: front-left: 39320 /  60% / -13.31 dB,   front-right: 39320 /  60% / -13.31 dB
                balance 0.00
        Base Volume: 65536 / 100% / 0.00 dB
        Monitor Source: alsa_output.usb-FiiO_FiiO_BTR5-00.analog-stereo.monitor
        Latency: 0 usec, configured 0 usec
        Flags: HARDWARE DECIBEL_VOLUME LATENCY 
        Properties:
                alsa.resolution_bits = "16"
                device.api = "alsa"
                device.class = "sound"
                alsa.class = "generic"
                alsa.subclass = "generic-mix"
                alsa.name = "USB Audio"
                alsa.id = "USB Audio"
                alsa.subdevice = "0"
                alsa.subdevice_name = "subdevice #0"
                alsa.device = "0"
                alsa.card = "3"
                alsa.card_name = "FiiO BTR5"
                alsa.long_card_name = "FiiO FiiO BTR5 at usb-0000:03:00.0-9, high speed"
                alsa.driver_name = "snd_usb_audio"
                device.bus_path = "pci-0000:03:00.0-usb-0:9:1.0"
                sysfs.path = "/devices/pci0000:00/0000:00:01.3/0000:03:00.0/usb1/1-9/1-9:1.0/sound/card3"
                udev.id = "usb-FiiO_FiiO_BTR5-00"
                device.bus = "usb"
                device.vendor.id = "2972"
                device.vendor.name = "FiiO"
                device.product.id = "0047"
                device.product.name = "FiiO BTR5"
                device.serial = "FiiO_FiiO_BTR5"
                device.string = "front:3"
                device.buffering.buffer_size = "352800"
                device.buffering.fragment_size = "176400"
                device.access_mode = "mmap+timer"
                device.profile.name = "analog-stereo"
                device.profile.description = "Analog Stereo"
                device.description = "FiiO BTR5 Analog Stereo"
                module-udev-detect.discovered = "1"
                device.icon_name = "audio-card-usb"
        Ports:
                analog-output: Analog Output (priority: 9900)
        Active Port: analog-output
        Formats:
                pcm

Sink #13
        State: IDLE
        Name: bluez_sink.40_ED_98_1A_3C_46.a2dp_sink
        Description: FiiO BTR5
        Driver: module-bluez5-device.c
        Sample Specification: s16le 2ch 44100Hz
        Channel Map: front-left,front-right
        Owner Module: 38
        Mute: no
        Volume: front-left: 32766 /  50% / -18.06 dB,   front-right: 32766 /  50% / -18.06 dB
                balance 0.00
        Base Volume: 65536 / 100% / 0.00 dB
        Monitor Source: bluez_sink.40_ED_98_1A_3C_46.a2dp_sink.monitor
        Latency: 0 usec, configured 56927 usec
        Flags: HARDWARE DECIBEL_VOLUME LATENCY 
        Properties:
                bluetooth.protocol = "a2dp_sink"
                device.description = "FiiO BTR5"
                device.string = "40:ED:98:1A:3C:46"
                device.api = "bluez"
                device.class = "sound"
                device.bus = "bluetooth"
                device.form_factor = "headphone"
                bluez.path = "/org/bluez/hci0/dev_40_ED_98_1A_3C_46"
                bluez.class = "0x240418"
                bluez.alias = "FiiO BTR5"
                device.icon_name = "audio-headphones-bluetooth"
        Ports:
                headphone-output: Headphone (priority: 0, available)
        Active Port: headphone-output
        Formats:
                pcm
Comment 5 Rajinder Yadav 2020-08-15 17:50:37 UTC
Created attachment 130894 [details]
Working config setting

This is the only combination setting that seems to work, the others will stop playing any audio after a while for some reason?
Comment 6 Rajinder Yadav 2020-08-15 18:01:05 UTC
Created attachment 130895 [details]
Not working after a while

The following config setting work for a little while, have a louder audio and I would like to see it  not stop working after 1 minute?
Comment 7 Christoph Feck 2020-08-26 18:02:27 UTC
Requested information was added with recent comments; changing status for inspection.
Comment 8 Rajinder Yadav 2021-03-10 01:52:58 UTC
Is anyone looking into this? the problem still exists. 

Also you can ignore the bluetooth connection notes, I ended up disabling it so it doesn't just come up and cause connection problems.
Comment 9 Rajinder Yadav 2021-03-10 02:04:36 UTC
I just checked and the problem has been fixed :-D, now Fiio BTR5 is getting detected coming out of sleep and on reboot.

Also the loud cracking noise I experienced is gone during connection. 
Please close, thank you!
Comment 10 Patrick Silva 2021-06-07 17:15:59 UTC
closing as per comment 9