Bug 100711

Summary: Headphones not detected when using Dell Dock WD15
Product: PulseAudio Reporter: Sergio Villar Senin <svillar>
Component: coreAssignee: pulseaudio-bugs
Status: RESOLVED NOTOURBUG QA Contact: pulseaudio-bugs
Severity: normal    
Priority: medium CC: lennart
Version: unspecified   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:
Attachments: pactl list cards
Output of amixer -c

Description Sergio Villar Senin 2017-04-18 15:07:23 UTC
I have a laptop attached to a dell dock wd15 (http://accessories.dell.com/sna/productdetail.aspx?c=us&l=en&s=bsd&cs=04&sku=450-AFGM) via a DisplayPort USB-C cable.

The very same headphones are properly detected when plugged them in the laptop but they are not detected when I use the jack in the dell dock.

I'll be happy to provide more info as needed, not sure what I should attach to the bug.
Comment 1 Tanu Kaskinen 2017-05-07 07:50:38 UTC
Thanks for reporting the problem!

Please attach the output from "pactl list cards".
Comment 2 Sergio Villar Senin 2017-05-08 07:50:38 UTC
Created attachment 131254 [details]
pactl list cards

Here you are (looks like none of LANG,LC_ALL,LANGUAGE... modifies the language of the output of pactl, anyway most of it is already in English).
Comment 3 Tanu Kaskinen 2017-05-08 08:07:41 UTC
Does the second card ("alsa_card.usb-Generic_USB_Audio_200901010001-00") disappear when you unplug the dock?
Comment 4 Sergio Villar Senin 2017-05-08 08:13:29 UTC
(In reply to Tanu Kaskinen from comment #3)
> Does the second card ("alsa_card.usb-Generic_USB_Audio_200901010001-00")
> disappear when you unplug the dock?

Yes it does.

BTW any irc channel I could join. Perhaps it would be faster to talk there to get more info.
Comment 5 Tanu Kaskinen 2017-05-08 08:21:56 UTC
#pulseaudio at freenode.net

So the dock is a usb sound card, and pulseaudio doesn't recognize any ports on it. What does "amixer -c1" print?
Comment 6 Sergio Villar Senin 2017-05-08 08:54:22 UTC
Created attachment 131256 [details]
Output of amixer -c

As you can see only -c0 gives some results. -c1 spits a hardware error and any other -cN results in an invalid card number.
Comment 7 Tanu Kaskinen 2017-05-08 09:11:03 UTC
So the mixer for the dock doesn't work. In this situation it's impossible for pulseaudio to control where the analog output goes. It's an alsa bug.
Comment 8 Tanu Kaskinen 2017-05-12 11:49:07 UTC
I realized now that I've made some assumptions that may be incorrect.

The dock seems to have two analog audio outputs: speaker (rear) and combo (front). My assumption was that you're only getting audio from the rear output, but you never actually said this. Can you clarify the situation? Do you get audio from the rear output, but not from the front output?
Comment 9 Sergio Villar Senin 2017-05-15 08:53:32 UTC
I didn't even know that the dock had a speaker. At least it does not have any kind of audio output in the rear, and it only has the jack in the front.
Comment 10 Tanu Kaskinen 2017-06-04 23:12:15 UTC
I don't think the dock has a speaker itself. From the link you gave I got the impression that it has two 3.5mm analog outputs, one of which would be for speakers. Now the Dell web page is empty (at least for my browser), so I can't check what the page said exactly.

This Amazon page says it has just one output like you describe, so maybe I misunderstood the Dell page: https://www.amazon.com/Dell-USB-C-single-Monitor-Adapter/dp/B01FN1YK92?SubscriptionId=AKIAILSHYYTFIVPWUY6Q&tag=duckduckgo-ffsb-20&linkCode=xm2&camp=2025&creative=165953&creativeASIN=B01FN1YK92

If there's only one output, routing is not a problem.
Comment 11 Sergio Villar Senin 2017-06-06 13:18:48 UTC
BTW, the output works fine. If I select it in the gnome preferences panel (it's called "USB audio stereo") the I can hear perfectly via my headphones.

The problem, again, is that they're not autodetected as when I plug them in the laptop's audio jack.
Comment 12 Tanu Kaskinen 2017-06-06 13:30:54 UTC
Oh, ok. That's kind of expected, I don't know any usb sound cards that would support jack detection on Linux.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.