I can confirm. This is still existing for me on:
- Ubuntu 20.04.2
- Linux 5.8.0-44-generic
- HP-EliteBook-840-G6
- HP UltraSlim Dock 2013
- Realtek ALC215

I tried almost all steps described here and in other places. Without any
luck.

If I use hdajacksensetest with plugged jack in dock I get:

$ hdajacksensetest -c 0 -a
Pin 0x12 (Not connected): present = No
Pin 0x13 (Not connected): present = No
Pin 0x14 (Internal Speaker): present = No
Pin 0x16 (Not connected): present = Yes
Pin 0x17 (Not connected): present = No
Pin 0x18 (Not connected): present = No
Pin 0x19 (Black Mic, Right side): present = No
Pin 0x1a (Not connected): present = Yes
Pin 0x1b (Not connected): present = No
Pin 0x1d (Not connected): present = No
Pin 0x1e (Not connected): present = No
Pin 0x21 (Black Headphone, Right side): present = No

If I use hdajacksensetest with unplugged jack in dock I get:

$ hdajacksensetest -c 0 -a
Pin 0x12 (Not connected): present = No
Pin 0x13 (Not connected): present = No
Pin 0x14 (Internal Speaker): present = No
Pin 0x16 (Not connected): present = No
Pin 0x17 (Not connected): present = No
Pin 0x18 (Not connected): present = No
Pin 0x19 (Black Mic, Right side): present = No
Pin 0x1a (Not connected): present = Yes
Pin 0x1b (Not connected): present = No
Pin 0x1d (Not connected): present = No
Pin 0x1e (Not connected): present = No
Pin 0x21 (Black Headphone, Right side): present = No

Which leads me to the assumption pin 0x16 is the one Iam looking for.

I tried to hdajackretask it but got:
"tee: /sys/class/sound/hwC0D0/reconfig: Device or resource busy"

I followed the steps to temporary disable pulseaudio as suggested in
different posts.

But trying to hdajackretask now, it always freezes the tool (ubuntu
shows the "force quit" dialog every now and then) when I click on "Apply
now" and after entering my password. After killing it computer stays
busy a lot and all sound devices are gone. Having a look at alsamixer
also fails then:

$ alsamixer
alsamixer - cannot open mixer: No such file or directory

After reboot everything is back in place. But still no output on the
jack of the dock.

After investing some hours of try and error i found this:
https://ubuntuforums.org/showthread.php?t=2392730

So I tried to simply overwrite my pin 0x16 with "Dock line out".

It seems to work. At least I get a file stored in /lib/firmware/:

$ cat /lib/firmware/hda-jack-retask.fw
[codec]
0x10ec0215 0x103c854d 0

[pincfg]
0x12 0x40000000
0x13 0x411111f0
0x14 0x90170110
0x16 0x220140b0
0x17 0x411111f0
0x18 0x411111f0
0x19 0x04a11040
0x1a 0x411111f0
0x1b 0x411111f0
0x1d 0x40600001
0x1e 0x411111f0
0x21 0x04211020

And one in /etc/modprobe.d/:
$ cat /etc/modprobe.d/hda-jack-retask.conf
# This file was added by the program 'hda-jack-retask'.
# If you want to revert the changes made by this program, you can simply erase 
this file and reboot your computer.
options snd-hda-intel 
patch=hda-jack-retask.fw,hda-jack-retask.fw,hda-jack-retask.fw,hda-jack-retask.fw

Which makes me confident that at least hdajackretask did its job.

But now I dont have sound at all.

If I use hdajacksensetest with plugged jack in dock now I get:

$ hdajacksensetest -c 0 -a
Pin 0x12 (Not connected): present = No
Pin 0x13 (Not connected): present = No
Pin 0x14 (Internal Speaker): present = No
Pin 0x16 (Not connected): present = Yes
Pin 0x17 (Not connected): present = No
Pin 0x18 (Not connected): present = No
Pin 0x19 (Black Mic, Right side): present = No
Pin 0x1a (Not connected): present = Yes
Pin 0x1b (Not connected): present = No
Pin 0x1d (Not connected): present = No
Pin 0x1e (Not connected): present = No
Pin 0x21 (Black Headphone, Right side): present = No

Which is exactly the same as before.

I also tried the approach from Gijs with the "Advanced options". Same
result.

Would appreciate help on that.

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to alsa-driver in Ubuntu.
https://bugs.launchpad.net/bugs/1470730

Title:
  [HP EliteBook 840 G2, Realtek ALC3228, HP UltraSlim Dock 2013] Line
  in/Line out on docking station doesn't work

Status in alsa-driver package in Ubuntu:
  Expired

Bug description:
  When I plug in external speakers to line in/line out combo on the
  laptop the internal speakers are turned off but when I plug the
  speakers into the docking station (HP UltraSlim Dock 2013 EURO,
  D9Y32AA) music keeps playing in the internal speakers. Similar
  behaviour (nothing happens) is experienced with microphone connected
  to line in on docking station.

  ### Expected behaviour
  Plugging in external speakers to docking station should turn off sound from 
laptop internal speakers.

  Plugging in microphone to line in on docking station should switch
  from "internal microphone" to "microphone" in Ubuntu sound settings.

  ### Current behaviour
  Sound keeps playing in internal speakers when plugging in external speakers 
to docking station.

  Plugging in microphone to line in on docking station, nothing happens.

  ### Hardware
  Laptop: HP EliteBook 840 G2
  Product number: H9W19EA#AK8

  Docking station: HP UltraSlim Dock 2013 EURO
  Product number: D9Y32AA

  ProblemType: Bug
  DistroRelease: Ubuntu 15.04
  Package: alsa-base 1.0.25+dfsg-0ubuntu4
  ProcVersionSignature: Ubuntu 3.19.0-21.21-generic 3.19.8
  Uname: Linux 3.19.0-21-generic x86_64
  ApportVersion: 2.17.2-0ubuntu1.1
  Architecture: amd64
  AudioDevicesInUse:
   USER        PID ACCESS COMMAND
   /dev/snd/controlC2:  chol       2001 F.... pulseaudio
   /dev/snd/controlC0:  chol       2001 F.... pulseaudio
   /dev/snd/controlC1:  chol       2001 F.... pulseaudio
  CurrentDesktop: Unity
  Date: Thu Jul  2 08:16:15 2015
  EcryptfsInUse: Yes
  InstallationDate: Installed on 2015-06-05 (26 days ago)
  InstallationMedia: Ubuntu 15.04 "Vivid Vervet" - Release amd64 (20150422)
  PackageArchitecture: all
  SourcePackage: alsa-driver
  Symptom: audio
  Symptom_AlsaPlaybackTest: ALSA playback test through plughw:PCH successful
  Symptom_Card: Built-in Audio - HDA Intel PCH
  Symptom_Jack: Black Headphone Out, Right
  Symptom_PulsePlaybackTest: PulseAudio playback test successful
  Symptom_Type: Only some of outputs are working
  Title: [HP EliteBook 840 G2, Realtek ALC3228, Black Headphone Out, Right] 
Playback problem
  UpgradeStatus: No upgrade log present (probably fresh install)
  dmi.bios.date: 02/24/2015
  dmi.bios.vendor: Hewlett-Packard
  dmi.bios.version: M71 Ver. 01.04
  dmi.board.name: 2216
  dmi.board.vendor: Hewlett-Packard
  dmi.board.version: KBC Version 96.54
  dmi.chassis.asset.tag: 5CG5093YZ7
  dmi.chassis.type: 10
  dmi.chassis.vendor: Hewlett-Packard
  dmi.modalias: 
dmi:bvnHewlett-Packard:bvrM71Ver.01.04:bd02/24/2015:svnHewlett-Packard:pnHPEliteBook840G2:pvrA3009D410303:rvnHewlett-Packard:rn2216:rvrKBCVersion96.54:cvnHewlett-Packard:ct10:cvr:
  dmi.product.name: HP EliteBook 840 G2
  dmi.product.version: A3009D410303
  dmi.sys.vendor: Hewlett-Packard

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/alsa-driver/+bug/1470730/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to