[HDA-Intel - HDA Intel PCH, recording] No autoswitch

Bug #1446457 reported by Alexander Mishurov
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
alsa-driver (Ubuntu)
Won't Fix
Undecided
Unassigned

Bug Description

Acer E3-112
Ubuntu 14.04, 14.10, 15.04
After plugging in headset only headset earphones detected, mic from headset not detected and recording is only from built in mic.

Appending 'options snd-hda-intel model=dell-headset-multi' to /etc/modprobe.d/alsa-base.conf helps to tell xubuntu that headset mic may be plugged, but after plugging in, xubuntu doesn't automaticaly detect that mic is plugged, it can see only headset's earphones, so i need evreytime in pavucontrol tell xubuntu that mic is plugged in even after adding option.

ProblemType: Bug
DistroRelease: Ubuntu 15.04
Package: alsa-base 1.0.25+dfsg-0ubuntu4
ProcVersionSignature: Ubuntu 3.19.0-14.14-generic 3.19.3
Uname: Linux 3.19.0-14-generic x86_64
ApportVersion: 2.17.2-0ubuntu1
Architecture: amd64
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC0: mishurov 2000 F.... pulseaudio
CurrentDesktop: XFCE
Date: Tue Apr 21 07:03:19 2015
InstallationDate: Installed on 2015-04-04 (16 days ago)
InstallationMedia: Xubuntu 14.10 "Utopic Unicorn" - Release amd64 (20141022.1)
PackageArchitecture: all
SourcePackage: alsa-driver
Symptom: audio
Symptom_Card: Built-in Audio - HDA Intel PCH
Symptom_Type: No auto-switch between inputs
Title: [HDA-Intel - HDA Intel PCH, recording] No autoswitch
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 08/20/2014
dmi.bios.vendor: Insyde Corp.
dmi.bios.version: V1.10
dmi.board.asset.tag: Type2 - Board Asset Tag
dmi.board.name: R2
dmi.board.vendor: Acer
dmi.board.version: Type2 - A01 Board Version
dmi.chassis.asset.tag: No Asset Tag
dmi.chassis.type: 10
dmi.chassis.vendor: Chassis Manufacturer
dmi.chassis.version: Chassis Version
dmi.modalias: dmi:bvnInsydeCorp.:bvrV1.10:bd08/20/2014:svnAcer:pnNC-E3-112-C97Q:pvrV1.10:rvnAcer:rnR2:rvrType2-A01BoardVersion:cvnChassisManufacturer:ct10:cvrChassisVersion:
dmi.product.name: NC-E3-112-C97Q
dmi.product.version: V1.10
dmi.sys.vendor: Acer
mtime.conffile..etc.modprobe.d.alsa.base.conf: 2015-04-21T06:35:28.960726

Revision history for this message
Alexander Mishurov (ammishurov) wrote :
Revision history for this message
Raymond (superquad-vortex2) wrote :

https://git.kernel.org/cgit/linux/kernel/git/tiwai/sound.git/commit/sound/pci/hda?id=73bdd597823e2231dc882577dbbaf8df92fe1775

seem different model

1) combo jack which support headset, headphone and mic
2) headset and dock mic
3) headset mode
4) headset mode no hp mic

Revision history for this message
Raymond (superquad-vortex2) wrote :

https://git.kernel.org/cgit/linux/kernel/git/tiwai/sound.git/log/sound/pci/hda?qt=grep&q=alc283

still no acer aspire using alc283

do dell multi headset multi allow you to select hp mic ?

Revision history for this message
Alexander Mishurov (ammishurov) wrote :

$ grep -r Realtek /proc/asound/card*
/proc/asound/card0/codec#0:Codec: Realtek ALC283

Acer Aspire E3-111/112 uses combo jack for headset (CTIA, I suppose). By default pavucontrol see nothing except internal mic. After I set dell-headset-multi, system shows in pavucontrol's dropdown 'Headset Microphone' and 'Microphone' in addition to 'Internal Microphone'. When I plug headset, I can choose manualy 'Headset Microphone' and sound goes through it, otherwise it goes through internal mic, but automatically system can see only plugged in heaphones.

Revision history for this message
Raymond (superquad-vortex2) wrote :

does the user manual mention that it also support headphone ?

Dell headset multi is used for those combo jack which support headset, headphone and coventional Mic jack

if headset Mic work , this mean you have to remove the headphone Mic pin fixup from Dell fixup

and let driver switch to headset mic when headphone pin detect the jack is plugged

Revision history for this message
Alexander Mishurov (ammishurov) wrote :

Yes, manual mentions this. Native Windows drivers open dialog to point what device I plugged in after I plug headset. Ubuntu (Unity) also has similar popup: http://bazaar.launchpad.net/~unity-settings-daemon-team/unity-settings-daemon/trunk/files/head:/plugins/media-keys/what-did-you-plug-in/ but it doesn't open, when I plug something into jack. Xubuntu doesn't have things such as that.

acpi_listen, when I plug/unplug headset, outputs only headphone's event
jack/headphone HEADPHONE plug|unplug

event about microphone such as
jack/microphone MICROPHONE plug or unplug
is not listed in acpi_listen output

I'm not sure I have a time to figure out Takashi's sources such as that and make patches

enum {
 ALC_HEADSET_MODE_UNKNOWN,
 ALC_HEADSET_MODE_UNPLUGGED,
 ALC_HEADSET_MODE_HEADSET,
 ALC_HEADSET_MODE_MIC,
 ALC_HEADSET_MODE_HEADPHONE,
};

But I found semi-silution with acpid

I created /etc/acpi/events/acer-headset which runs script on jack acpi event:
event=jack/headphone HEADPHONE plug
action=/etc/acpi/acer-headset.sh

And script (/etc/acpi/acer-headset.sh) which opens pavucontrol to chose input source everytime when I plug headset

#!/bin/bash
USR=<username>
XDISPLAY=":0.0" # echo $DISPLAY in users env
TAB=4 # tab with input source selection

# set X environment
export DISPLAY=${XDISPLAY}
export XAUTHORITY="/home/${USR}/.Xauthority"

sudo -u ${USR} -E pavucontrol --tab=${TAB}

The solution is quite comfortable for me. Thanks for explanation of some details, Raymond, it helped me.

Revision history for this message
Raymond (superquad-vortex2) wrote :

http://bazaar.launchpad.net/~unity-settings-daemon-team/unity-settings-daemon/trunk/view/head:/plugins/media-keys/what-did-you-plug-in/pa-backend.c

   Headset Mic Phantom Jack - indicates headset jack where hardware can not
     distinguish between headphones and headsets
   Headset Mic Jack - indicates headset jack where hardware can distinguish
     between headphones and headsets. There is no use popping up a dialog in
     this case, unless we already need to do this for the mic-in mode.

Revision history for this message
Raymond (superquad-vortex2) wrote :

no popup because bios setup internal Mic only

[ 7.890594] sound hdaudioC0D0: autoconfig: line_outs=1 (0x14/0x0/0x0/0x0/0x0) type:speaker
[ 7.890601] sound hdaudioC0D0: speaker_outs=0 (0x0/0x0/0x0/0x0/0x0)
[ 7.890605] sound hdaudioC0D0: hp_outs=1 (0x21/0x0/0x0/0x0/0x0)
[ 7.890607] sound hdaudioC0D0: mono: mono_out=0x0
[ 7.890610] sound hdaudioC0D0: inputs:
[ 7.890613] sound hdaudioC0D0: Mic=0x12

Revision history for this message
Ben (7-ben-a) wrote :

i also have this problem with my acer aspire E3 (phone not recognised when pluggin in headset) but i am not sure how to read the solutions in here. i understand code a bit but i am not a pro. i would prefer a simple solution, some lines i have to type into the terminal each time i want to use the headset.

Revision history for this message
Ben (7-ben-a) wrote :

I added the driver to the alsa-base.conf and can now use the headset, but it makes strange noises while using skype. but it's just on my side. the other person does not experience this. i am sorry for this non-pro stuff here, but i bought this acer aspire e3, built in an SSD and uploaded Lubuntu, like I did before in other laptops an PCs. its awesome and I thank all the guys that are contributing to ubuntu and specially Lubuntu since I love the lean design. can the problem be the mentioned Dell fix?

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Thank you for reporting this bug to Ubuntu.
Ubuntu 15.04 (vivid) reached end-of-life on February 4, 2016.

See this document for currently supported Ubuntu releases:
https://wiki.ubuntu.com/Releases

We appreciate that this bug may be old and you might not be interested in discussing it any more. But if you are then please upgrade to the latest Ubuntu version and re-test. If you then find the bug is still present in the newer Ubuntu version, please add a comment here telling us which new version it is in and change the bug status to Confirmed.

Changed in alsa-driver (Ubuntu):
status: New → Won't Fix
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.