Realtek ALC887-VD speakers don't mute when headphones are inserted

Bug #1457476 reported by Alberto Mardegan
20
This bug affects 4 people
Affects Status Importance Assigned to Milestone
alsa-driver (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

I Have a Gigabyte GA 970a-DS3P motherboard with integrated audio chipset, which alsamixer reports to be an ALC887-VD.

I uploaded the results of the ALSA script here:
http://www.alsa-project.org/db/?f=bb6145b1a62c657c1af981b00dd2e3928b466dcb

I have a line out connector on the back of the motherboard (along with line in and mic), and a headphones and a mic connector on the front of the PC.

The problem is that when I plug in my headphones, the speakers (connected via the back connector) continue to play as well.
Also, I haven't found yet a way to set the volume independently for the headphones and the speakers via the Gnome/Unity sound settings. I can only do that via alsamixer, where the "Headphone" control refers to the headphones, and "Front" to the speakers.
---
ApportVersion: 2.14.1-0ubuntu3.10
Architecture: amd64
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC0: mardy 25530 F.... pulseaudio
 /dev/snd/controlC1: mardy 25530 F.... pulseaudio
CRDA:
 country RU:
  (2402 - 2482 @ 40), (N/A, 20)
  (5735 - 5835 @ 20), (N/A, 30)
CurrentDesktop: Unity
DistroRelease: Ubuntu 14.04
HibernationDevice: RESUME=UUID=37820918-257b-4b60-917f-94c55c98fa24
InstallationDate: Installed on 2015-05-16 (4 days ago)
InstallationMedia: Ubuntu 14.04.2 LTS "Trusty Tahr" - Release amd64 (20150218.1)
MachineType: Gigabyte Technology Co., Ltd. To be filled by O.E.M.
Package: linux (not installed)
ProcFB:
 0 radeondrmfb
 1 radeondrmfb
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-3.16.0-37-generic root=UUID=5f77a868-de36-4b0b-91e9-bd05e1f93bf8 ro quiet splash iommu=soft vt.handoff=7
ProcVersionSignature: Ubuntu 3.16.0-37.51~14.04.1-generic 3.16.7-ckt9
RelatedPackageVersions:
 linux-restricted-modules-3.16.0-37-generic N/A
 linux-backports-modules-3.16.0-37-generic N/A
 linux-firmware 1.127.12
RfKill:
 0: phy0: Wireless LAN
  Soft blocked: no
  Hard blocked: no
Tags: trusty
Uname: Linux 3.16.0-37-generic x86_64
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm cdrom dip disk lpadmin plugdev sambashare sudo vboxusers
_MarkForUpload: True
dmi.bios.date: 12/29/2014
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: F2j
dmi.board.asset.tag: To be filled by O.E.M.
dmi.board.name: 970A-DS3P
dmi.board.vendor: Gigabyte Technology Co., Ltd.
dmi.board.version: x.x
dmi.chassis.asset.tag: To Be Filled By O.E.M.
dmi.chassis.type: 3
dmi.chassis.vendor: Gigabyte Technology Co., Ltd.
dmi.chassis.version: To Be Filled By O.E.M.
dmi.modalias: dmi:bvnAmericanMegatrendsInc.:bvrF2j:bd12/29/2014:svnGigabyteTechnologyCo.,Ltd.:pnTobefilledbyO.E.M.:pvrTobefilledbyO.E.M.:rvnGigabyteTechnologyCo.,Ltd.:rn970A-DS3P:rvrx.x:cvnGigabyteTechnologyCo.,Ltd.:ct3:cvrToBeFilledByO.E.M.:
dmi.product.name: To be filled by O.E.M.
dmi.product.version: To be filled by O.E.M.
dmi.sys.vendor: Gigabyte Technology Co., Ltd.

Revision history for this message
Brad Figg (brad-figg) wrote : Missing required logs.

This bug is missing log files that will aid in diagnosing the problem. From a terminal window please run:

apport-collect 1457476

and then change the status of the bug to 'Confirmed'.

If, due to the nature of the issue you have encountered, you are unable to run this command, please add a comment stating that fact and change the bug status to 'Confirmed'.

This change has been made by an automated script, maintained by the Ubuntu Kernel Team.

Changed in linux (Ubuntu):
status: New → Incomplete
Revision history for this message
Alberto Mardegan (mardy) wrote : AlsaInfo.txt

apport information

tags: added: apport-collected trusty
description: updated
Revision history for this message
Alberto Mardegan (mardy) wrote : BootDmesg.txt

apport information

Revision history for this message
Alberto Mardegan (mardy) wrote : CurrentDmesg.txt

apport information

Revision history for this message
Alberto Mardegan (mardy) wrote : IwConfig.txt

apport information

Revision history for this message
Alberto Mardegan (mardy) wrote : Lspci.txt

apport information

Revision history for this message
Alberto Mardegan (mardy) wrote : Lsusb.txt

apport information

Revision history for this message
Alberto Mardegan (mardy) wrote : ProcCpuinfo.txt

apport information

Revision history for this message
Alberto Mardegan (mardy) wrote : ProcEnviron.txt

apport information

Revision history for this message
Alberto Mardegan (mardy) wrote : ProcInterrupts.txt

apport information

Revision history for this message
Alberto Mardegan (mardy) wrote : ProcModules.txt

apport information

Revision history for this message
Alberto Mardegan (mardy) wrote : PulseList.txt

apport information

Revision history for this message
Alberto Mardegan (mardy) wrote : UdevDb.txt

apport information

Revision history for this message
Alberto Mardegan (mardy) wrote : UdevLog.txt

apport information

Revision history for this message
Alberto Mardegan (mardy) wrote : WifiSyslog.txt

apport information

Changed in linux (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
Alberto Mardegan (mardy) wrote :

As a workaround, loading the snd-hda-intel module with the "model=generic" seems to make the auto-mute working.

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

!Sysfs Files
!!-----------

/sys/class/sound/hwC0D0/init_pin_configs:
0x11 0x99430130
0x12 0x411111f0
0x14 0x01014410
0x15 0x411111f0
0x16 0x411111f0
0x17 0x411111f0
0x18 0x01a19c40
0x19 0x02a19c50
0x1a 0x0181344f
0x1b 0x02214c20
0x1c 0x411111f0
0x1d 0x4004c601
0x1e 0x411111f0
0x1f 0x411111f0

/sys/class/sound/hwC0D0/driver_pin_configs:
0x1b 0x02214120
0x1c 0x993301f0

you have to report upstream bug report

those patch should check the codec id since gigabyte moerthoards have same pci ssid 0x1458, 0xa002 for all alc88x codecs

https://git.kernel.org/cgit/linux/kernel/git/tiwai/sound.git/commit/sound/pci/hda/patch_realtek.c?id=b2c53e206967d01fd4fb6dd525f89ae738beb2e6

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

Thanks Raymond, this is very useful. Just to make sure I understood correctly: the front panel jack detection was turned off for my motherboard by the patch you mentioned in comment 17, because it was causing problems for some users.

So, we'd need a way to revert it, but only for those boards actually having the ALC887-VD codec.

Is my understanding correct?

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

model=nofixup

not sure it is limited to pin fixup only

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

you need to ask the author to find some unique method to identify the motherboard

dmi.board.name: 970A-DS3P
 dmi.board.vendor: Gigabyte Technology Co., Ltd.

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

for gigabyte motherboard, the driver should apply the quirk only for those motherboard of the reports using an unique id(e.g. dmi.board.name) , this mean the you have to send email to the reporters too

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

https://bugs.launchpad.net/ubuntu/+source/alsa-driver/+bug/1300844

do you have noise when you enable headphone jack detection ?

affects: linux (Ubuntu) → alsa-driver (Ubuntu)
Revision history for this message
Alberto Mardegan (mardy) wrote : Re: [Bug 1457476] Re: Realtek ALC887-VD speakers don't mute when headphones are inserted

On 23.05.2015 04:32, Raymond wrote:
> https://bugs.launchpad.net/ubuntu/+source/alsa-driver/+bug/1300844
>
> do you have noise when you enable headphone jack detection ?

No, everything seems to work fine with headphone detection enabled.
I'll try to see if I can come up with a patch myself, and if not, I'll
get in touch with the upstream developers.

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

static void alc_fixup_gigabyte(struct hda_codec *codec,
         const struct hda_fixup *fix, int action)
{

 if (action == HDA_FIXUP_ACT_PRE_PROBE) {

/*
   use table for gigabyte board name to disable HP detection
              dmi_get_system_info(DMI_BOARD_NAME)

*/
               snd_hda_apply_pincfgs(codec, hp_configs);
 }
}

 [ALC88X_FIXUP_GIGABYTE] = {
  .type = HDA_FIXUP_FUNC,
  .v.func = alc_fixup_gigabyte,
 },

Revision history for this message
Marcus Tomlinson (marcustomlinson) wrote :

This release of Ubuntu is no longer receiving maintenance updates. If this is still an issue on a maintained version of Ubuntu please let us know.

Changed in alsa-driver (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for alsa-driver (Ubuntu) because there has been no activity for 60 days.]

Changed in alsa-driver (Ubuntu):
status: Incomplete → Expired
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.