[XPS 15 9530, Realtek ALC668, Mic, Internal] No autoswitch when headset is plugged in

Bug #1331915 reported by Dan Poler
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

When a headset is plugged in (four-position plug with an inline mic) on a typical laptop, the inline mic is switched to by default and when the headset is unplugged, the system reverts to the internal mic. In this case, there is never a switch to the inline mic. The system internal mic stays active at all times.

ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: alsa-base 1.0.25+dfsg-0ubuntu4
ProcVersionSignature: Ubuntu 3.13.0-27.50-generic 3.13.11
Uname: Linux 3.13.0-27-generic x86_64
ApportVersion: 2.14.1-0ubuntu3.2
Architecture: amd64
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC1: dpoler 2637 F.... pulseaudio
 /dev/snd/controlC0: dpoler 2637 F.... pulseaudio
CurrentDesktop: Unity
Date: Wed Jun 18 22:17:43 2014
InstallationDate: Installed on 2014-05-29 (20 days ago)
InstallationMedia: Ubuntu 14.04 LTS "Trusty Tahr" - Release amd64 (20140417)
PackageArchitecture: all
SourcePackage: alsa-driver
Symptom: audio
Symptom_Card: Built-in Audio - HDA Intel PCH
Symptom_Jack: Mic, Internal
Symptom_Type: No auto-switch between inputs
Title: [XPS 15 9530, Realtek ALC668, Mic, Internal] No autoswitch
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 03/28/2014
dmi.bios.vendor: Dell Inc.
dmi.bios.version: A04
dmi.board.name: XPS 15 9530
dmi.board.vendor: Dell Inc.
dmi.board.version: A04
dmi.chassis.type: 8
dmi.chassis.vendor: Dell Inc.
dmi.chassis.version: Not Specified
dmi.modalias: dmi:bvnDellInc.:bvrA04:bd03/28/2014:svnDellInc.:pnXPS159530:pvrA04:rvnDellInc.:rnXPS159530:rvrA04:cvnDellInc.:ct8:cvrNotSpecified:
dmi.product.name: XPS 15 9530
dmi.product.version: A04
dmi.sys.vendor: Dell Inc.

Revision history for this message
Dan Poler (l-dan) wrote :
tags: added: kernel-sound
Revision history for this message
David Henningsson (diwic) wrote : Re: Dell XPS 15 audio bug

Hi Kent,

It looks like we're missing a quirk entry for this machine, it's likely
one of those machines where you have to ask the user what (s)he plugged in.
You can read all about that here:
http://voices.canonical.com/david.henningsson/2014/03/07/headset-jacks-on-newer-laptops/

So, can you edit /etc/modprobe.d/alsa-base.conf and add the line
“options snd-hda-intel model=dell-headset-multi”, reboot and test and
see if it works?

On 2014-06-19 19:28, Kent Baxley wrote:
> Hi David,
>
> I've had a report or two from some co-workers that own the Dell XPS 15
> laptop that state that no microphone switch-over occurs whenever a set
> of headphones with an in-line mic is plugged in.
>
> The problem occurs on 14.04 LTS.
>
> The headphones work, but, the in-line mic on the headphones does not.
> This machine never had any pre-load work done on it in the past, but,
> it has been pretty popular among Ubuntu users.
>
> I tested this on an XPS 15 sample in the lab and also reproduced the
> microphone, even with the latest oem-audio daily build:
>
> https://bugs.launchpad.net/ubuntu/+source/alsa-driver/+bug/1331915
>
> When you get a moment, can you or someone on your team have a look at this?
>
> Thanks in advance.
>
>

--
David Henningsson, Canonical Ltd.
https://launchpad.net/~diwic

Revision history for this message
Kent Baxley (kentb) wrote :

Hi David,

Thanks for the tip. That line in alsa-base.conf didn't seem to work.
The headphone mic is still non-functional. I also do not see an entry
in the sound settings for the headset microphone.

On Thu, Jun 19, 2014 at 2:06 PM, David Henningsson
<email address hidden> wrote:
> Hi Kent,
>
> It looks like we're missing a quirk entry for this machine, it's likely one
> of those machines where you have to ask the user what (s)he plugged in.
> You can read all about that here:
> http://voices.canonical.com/david.henningsson/2014/03/07/headset-jacks-on-newer-laptops/
>
> So, can you edit /etc/modprobe.d/alsa-base.conf and add the line “options
> snd-hda-intel model=dell-headset-multi”, reboot and test and see if it
> works?
>
>
> On 2014-06-19 19:28, Kent Baxley wrote:
>>
>> Hi David,
>>
>> I've had a report or two from some co-workers that own the Dell XPS 15
>> laptop that state that no microphone switch-over occurs whenever a set
>> of headphones with an in-line mic is plugged in.
>>
>> The problem occurs on 14.04 LTS.
>>
>> The headphones work, but, the in-line mic on the headphones does not.
>> This machine never had any pre-load work done on it in the past, but,
>> it has been pretty popular among Ubuntu users.
>>
>> I tested this on an XPS 15 sample in the lab and also reproduced the
>> microphone, even with the latest oem-audio daily build:
>>
>> https://bugs.launchpad.net/ubuntu/+source/alsa-driver/+bug/1331915
>>
>> When you get a moment, can you or someone on your team have a look at
>> this?
>>
>> Thanks in advance.
>>
>>
>
> --
> David Henningsson, Canonical Ltd.
> https://launchpad.net/~diwic

--
Kent Baxley
Field Engineer, Canonical
<email address hidden>

Revision history for this message
David Henningsson (diwic) wrote :

Strange, could you attach an alsa-info with alsa-base.conf changed, and
headset plugged in?

On 2014-06-19 21:22, Kent Baxley wrote:
> Hi David,
>
> Thanks for the tip. That line in alsa-base.conf didn't seem to work.
> The headphone mic is still non-functional. I also do not see an entry
> in the sound settings for the headset microphone.
>
>
> On Thu, Jun 19, 2014 at 2:06 PM, David Henningsson
> <email address hidden> wrote:
>> Hi Kent,
>>
>> It looks like we're missing a quirk entry for this machine, it's likely one
>> of those machines where you have to ask the user what (s)he plugged in.
>> You can read all about that here:
>> http://voices.canonical.com/david.henningsson/2014/03/07/headset-jacks-on-newer-laptops/
>>
>> So, can you edit /etc/modprobe.d/alsa-base.conf and add the line “options
>> snd-hda-intel model=dell-headset-multi”, reboot and test and see if it
>> works?
>>
>>
>> On 2014-06-19 19:28, Kent Baxley wrote:
>>>
>>> Hi David,
>>>
>>> I've had a report or two from some co-workers that own the Dell XPS 15
>>> laptop that state that no microphone switch-over occurs whenever a set
>>> of headphones with an in-line mic is plugged in.
>>>
>>> The problem occurs on 14.04 LTS.
>>>
>>> The headphones work, but, the in-line mic on the headphones does not.
>>> This machine never had any pre-load work done on it in the past, but,
>>> it has been pretty popular among Ubuntu users.
>>>
>>> I tested this on an XPS 15 sample in the lab and also reproduced the
>>> microphone, even with the latest oem-audio daily build:
>>>
>>> https://bugs.launchpad.net/ubuntu/+source/alsa-driver/+bug/1331915
>>>
>>> When you get a moment, can you or someone on your team have a look at
>>> this?
>>>
>>> Thanks in advance.
>>>
>>>
>>
>> --
>> David Henningsson, Canonical Ltd.
>> https://launchpad.net/~diwic
>
>
>

--
David Henningsson, Canonical Ltd.
https://launchpad.net/~diwic

Revision history for this message
Dan Poler (l-dan) wrote :

Tested as well and can confirm the same result as Kent - no change.

Revision history for this message
Dan Poler (l-dan) wrote :

alsa-info with alsa-base.conf changed and headset plugged in

Revision history for this message
Kent Baxley (kentb) wrote :

Hi Dan,

Here's how we ultimately got it working (for now):

1) Make sure there are no alsa daily builds installed on that laptop, including any oem-audio daily build packages.
2) modify the alsa-base.conf file and add a comma before "dell", like so: model=,dell-headset-multi
3) reboot
4) Plug in your headeset
5) you'll get the pop-up dialog confirming what you just plugged in.
6) Select headset

That should get the mic going for you on that machine. David told me that the comma is needed because HDMI audio became the first sound card in the case of this laptop.

Hope it helps.

Revision history for this message
Dan Poler (l-dan) wrote :

Aha! Yes, confirmed working. Thanks guys!

Revision history for this message
David Henningsson (diwic) wrote :

For reference I'm adding Kent's alsa-info here too, because he has a different PCI SSID.

Changed in alsa-driver (Ubuntu):
status: New → In Progress
Revision history for this message
David Henningsson (diwic) wrote : [PATCH] ALSA: hda - Add pin quirk for Dell XPS 15

Two bug reporters with Dell XPS 15 report that they need to use the
dell-headset-multi model to get the headset mic working.

The two bug reporters have different PCI SSID (1028:05fd and 1028:05fe)
but this pin quirk matches both.

BugLink: https://bugs.launchpad.net/bugs/1331915
Signed-off-by: David Henningsson <email address hidden>
---
 sound/pci/hda/patch_realtek.c | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)

diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c
index f52f096..229a189 100644
--- a/sound/pci/hda/patch_realtek.c
+++ b/sound/pci/hda/patch_realtek.c
@@ -6258,6 +6258,27 @@ static const struct snd_hda_pin_quirk alc662_pin_fixup_tbl[] = {
   },
   .value = ALC668_FIXUP_AUTO_MUTE,
  },
+ {
+ .codec = 0x10ec0668,
+ .subvendor = 0x1028,
+#ifdef CONFIG_SND_DEBUG_VERBOSE
+ .name = "Dell XPS 15",
+#endif
+ .pins = (const struct hda_pintbl[]) {
+ {0x12, 0x90a60130},
+ {0x14, 0x90170110},
+ {0x15, 0x0321101f},
+ {0x16, 0x40000000},
+ {0x18, 0x411111f0},
+ {0x19, 0x411111f0},
+ {0x1a, 0x411111f0},
+ {0x1b, 0x411111f0},
+ {0x1d, 0x40d6832d},
+ {0x1e, 0x411111f0},
+ {0x1f, 0x411111f0},
+ },
+ .value = ALC668_FIXUP_AUTO_MUTE,
+ },
  {}
 };

--
1.9.1

Changed in alsa-driver (Ubuntu):
assignee: nobody → David Henningsson (diwic)
affects: alsa-driver (Ubuntu) → linux (Ubuntu)
Changed in linux (Ubuntu):
assignee: David Henningsson (diwic) → nobody
Revision history for this message
Takashi Iwai (tiwai) wrote :

At Tue, 24 Jun 2014 14:10:47 +0200,
David Henningsson wrote:
>
> Two bug reporters with Dell XPS 15 report that they need to use the
> dell-headset-multi model to get the headset mic working.
>
> The two bug reporters have different PCI SSID (1028:05fd and 1028:05fe)
> but this pin quirk matches both.
>
> BugLink: https://bugs.launchpad.net/bugs/1331915
> Signed-off-by: David Henningsson <email address hidden>

Applied, thanks.

Takashi

> ---
> sound/pci/hda/patch_realtek.c | 21 +++++++++++++++++++++
> 1 file changed, 21 insertions(+)
>
> diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c
> index f52f096..229a189 100644
> --- a/sound/pci/hda/patch_realtek.c
> +++ b/sound/pci/hda/patch_realtek.c
> @@ -6258,6 +6258,27 @@ static const struct snd_hda_pin_quirk alc662_pin_fixup_tbl[] = {
> },
> .value = ALC668_FIXUP_AUTO_MUTE,
> },
> + {
> + .codec = 0x10ec0668,
> + .subvendor = 0x1028,
> +#ifdef CONFIG_SND_DEBUG_VERBOSE
> + .name = "Dell XPS 15",
> +#endif
> + .pins = (const struct hda_pintbl[]) {
> + {0x12, 0x90a60130},
> + {0x14, 0x90170110},
> + {0x15, 0x0321101f},
> + {0x16, 0x40000000},
> + {0x18, 0x411111f0},
> + {0x19, 0x411111f0},
> + {0x1a, 0x411111f0},
> + {0x1b, 0x411111f0},
> + {0x1d, 0x40d6832d},
> + {0x1e, 0x411111f0},
> + {0x1f, 0x411111f0},
> + },
> + .value = ALC668_FIXUP_AUTO_MUTE,
> + },
> {}
> };
>
> --
> 1.9.1
>

Changed in linux (Ubuntu):
status: In Progress → Fix Committed
Changed in linux (Ubuntu):
importance: Undecided → Medium
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package linux - 3.16.0-3.8

---------------
linux (3.16.0-3.8) utopic; urgency=low

  [ Tim Gardner ]

  * Release Tracking Bug
    - LP: #1340091
 -- Tim Gardner <email address hidden> Thu, 10 Jul 2014 10:06:47 +0100

Changed in linux (Ubuntu):
status: Fix Committed → Fix Released
Revision history for this message
Adrian (adrian-rosian) wrote :

kentb, thank you for the fix, this also works for me on an Asus N550JV. This should be added in the kernel for 14.04 too

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.