[Alienware 18, Realtek ALC668, Speaker, Internal] Playback problem

Bug #1332900 reported by Austin Moore
24
This bug affects 6 people
Affects Status Importance Assigned to Milestone
ALSA driver
Confirmed
Medium
alsa-base
New
Undecided
Unassigned
alsa-driver (Ubuntu)
Incomplete
Undecided
Unassigned

Bug Description

Bug seems similar to another reported bug with Alienware 18 laptops. It should be Realtek ALC3661 however it shows up as ALC668. Sound only comes out of 1 Channel, which appears to be subwoofer. Unlike the other bug, closing the lid appears to have no effect on sound.

When doing the bug test, it said sound would alternate between 2 channels, however I only heard one consistent sound. It did not alternate. I believe it is playing from the subwoofer only. I would love to know more about how to route the sound to the proper speakers.

I attempted modifications to daemon.conf in pulse and .asoundrc but have not found the correct configuration yet.

This laptop is equipped with 2.1 Surround and should play sound accordingly. Also, alsamixer only shows (1) speaker control, whether this is normal I am unsure.

Ubuntu 14.04 LTS

ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: alsa-base 1.0.25+dfsg-0ubuntu4
ProcVersionSignature: Ubuntu 3.13.0-29.53-generic 3.13.11.2
Uname: Linux 3.13.0-29-generic x86_64
NonfreeKernelModules: wl nvidia
ApportVersion: 2.14.1-0ubuntu3.2
Architecture: amd64
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC1: phallix 1730 F.... pulseaudio
 /dev/snd/controlC0: phallix 1730 F.... pulseaudio
                      phallix 8573 F.... alsamixer
CurrentDesktop: Unity
Date: Sat Jun 21 21:02:28 2014
InstallationDate: Installed on 2014-06-15 (6 days ago)
InstallationMedia: Ubuntu 14.04 LTS "Trusty Tahr" - Release amd64 (20140417)
PackageArchitecture: all
SourcePackage: alsa-driver
Symptom: audio
Symptom_AlsaPlaybackTest: ALSA playback test through plughw:PCH failed
Symptom_Card: Built-in Audio - HDA Intel PCH
Symptom_Jack: Speaker, Internal
Symptom_Type: Only some of outputs are working
Title: [Alienware 18, Realtek ALC668, Speaker, Internal] Playback problem
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 04/23/2014
dmi.bios.vendor: Alienware
dmi.bios.version: A07
dmi.board.name: 01W2J2
dmi.board.vendor: Alienware
dmi.board.version: A02
dmi.chassis.type: 8
dmi.chassis.vendor: Alienware
dmi.chassis.version: A07
dmi.modalias: dmi:bvnAlienware:bvrA07:bd04/23/2014:svnAlienware:pnAlienware18:pvrA07:rvnAlienware:rn01W2J2:rvrA02:cvnAlienware:ct8:cvrA07:
dmi.product.name: Alienware 18
dmi.product.version: A07
dmi.sys.vendor: Alienware
mtime.conffile..etc.modprobe.d.alsa.base.conf: 2014-06-17T23:18:00.223827

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

You have modified /etc/modprobe.d/alsa-base.conf to include these lines:

"
options snd-hda-intel model=targa-dig
options snd slots=snd-hda-intel
# u1Nb.u_BNWJ+LvyF:82801I (ICH9 Family) HD Audio Controller
alias snd-card-0 snd-hda-intel
"

Please revert this file to the original configuration (i e remove the lines quoted above), reboot, and test again.

Changed in alsa-driver (Ubuntu):
status: New → Incomplete
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=eb844d51cccca0ce9fad316da803f1bbe53d323b

targa models have been removed

you need to file upstream report if you want to support 5.1 by two headphones Jack and mic

you need to find out the missing speakers and headset mic

it is not easy since there are not enough volume control for your 2.1 speakers and headset headphone and retasked mic

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

[ 5.445875] autoconfig: line_outs=1 (0x14/0x0/0x0/0x0/0x0) type:speaker
[ 5.445876] speaker_outs=0 (0x0/0x0/0x0/0x0/0x0)
[ 5.445877] hp_outs=2 (0x15/0x16/0x0/0x0/0x0)
[ 5.445877] mono: mono_out=0x0
[ 5.445878] inputs:
[ 5.445879] Mic=0x19
[ 5.445880] Internal Mic=0x12

you can try hda-jack-retask 0x1b for the headset mic

0x03a1113c

and trial and error to find the speaker from the remain unconnected pin complexes

Revision history for this message
Austin Moore (bluemonkii) wrote : RE: [Bug 1332900] Re: [Alienware 18, Realtek ALC668, Speaker, Internal] Playback problem
Download full text (4.3 KiB)

I tried to re-submit the bug report but I am not really sure what the alsa-base.conf should look like or how to reinstall/overwrite. It should be noted that I had this problem immediately upon installing Ubuntu, so nothing I have changed has been the cause. I have been attempting to fix it but it is hard to understand why it cannot detect this from a default install. I was though able to update the alsa daily package and now it shows ALC3661 so that part at least shows right now, but still trying to understand how it doesnt register the laptop speakers. Let me know if you have any further troubleshooting I can do...

> Date: Sun, 22 Jun 2014 04:02:05 +0000
> From: <email address hidden>
> To: <email address hidden>
> Subject: [Bug 1332900] Re: [Alienware 18, Realtek ALC668, Speaker, Internal] Playback problem
>
> You have modified /etc/modprobe.d/alsa-base.conf to include these lines:
>
> "
> options snd-hda-intel model=targa-dig
> options snd slots=snd-hda-intel
> # u1Nb.u_BNWJ+LvyF:82801I (ICH9 Family) HD Audio Controller
> alias snd-card-0 snd-hda-intel
> "
>
> Please revert this file to the original configuration (i e remove the
> lines quoted above), reboot, and test again.
>
> ** Changed in: alsa-driver (Ubuntu)
> Status: New => Incomplete
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1332900
>
> Title:
> [Alienware 18, Realtek ALC668, Speaker, Internal] Playback problem
>
> Status in “alsa-driver” package in Ubuntu:
> Incomplete
>
> Bug description:
> Bug seems similar to another reported bug with Alienware 18 laptops.
> It should be Realtek ALC3661 however it shows up as ALC668. Sound only
> comes out of 1 Channel, which appears to be subwoofer. Unlike the
> other bug, closing the lid appears to have no effect on sound.
>
> When doing the bug test, it said sound would alternate between 2
> channels, however I only heard one consistent sound. It did not
> alternate. I believe it is playing from the subwoofer only. I would
> love to know more about how to route the sound to the proper speakers.
>
> I attempted modifications to daemon.conf in pulse and .asoundrc but
> have not found the correct configuration yet.
>
> This laptop is equipped with 2.1 Surround and should play sound
> accordingly. Also, alsamixer only shows (1) speaker control, whether
> this is normal I am unsure.
>
>
> Ubuntu 14.04 LTS
>
> ProblemType: Bug
> DistroRelease: Ubuntu 14.04
> Package: alsa-base 1.0.25+dfsg-0ubuntu4
> ProcVersionSignature: Ubuntu 3.13.0-29.53-generic 3.13.11.2
> Uname: Linux 3.13.0-29-generic x86_64
> NonfreeKernelModules: wl nvidia
> ApportVersion: 2.14.1-0ubuntu3.2
> Architecture: amd64
> AudioDevicesInUse:
> USER PID ACCESS COMMAND
> /dev/snd/controlC1: phallix 1730 F.... pulseaudio
> /dev/snd/controlC0: phallix 1730 F.... pulseaudio
> phallix 8573 F.... alsamixer
> CurrentDesktop: Unity
> Date: Sat Jun 21 21:02:28 2014
> InstallationDate: Installed on 2014-06-15 (6 days ago)
> InstallationMedia: Ubuntu 14.04 LTS "T...

Read more...

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

https://bugs.launchpad.net/ubuntu/+source/alsa-driver/+bug/1302090/comments/11

subwoofer seem at node 0x1a on alienware 14 using same codec

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

> I tried to re-submit the bug report but I am not really sure what the alsa-base.conf should look like or how to reinstall/overwrite.

These commands will replace your alsa-base.conf with the original one:
sudo mv /etc/modprobe.conf/alsa-base.conf ~/alsa-base.conf.old
sudo apt-get install alsa-base --reinstall

Otherwise I think Raymond is right, you need to experiment a bit with hdajackretask (in the alsa-tools-gui package) to find the internal speaker, because BIOS does only indicate 0x14 as speaker - and that's probably the subwoofer if that's the only thing you hear audio from.

Revision history for this message
Austin Moore (bluemonkii) wrote :
Download full text (4.2 KiB)

Thanks for the response. Are there any guides for this hdajackretask as to how I can do what you say, otherwise how might I get started experimenting with hdajackretask? I am a fast learner, but new to both Ubuntu and Linux-based systems. If you have some information on how I can do this that would be great, and I can post the solution on Ubuntu forums if we are able to figure it out.

> Date: Mon, 23 Jun 2014 14:44:06 +0000
> From: <email address hidden>
> To: <email address hidden>
> Subject: [Bug 1332900] Re: [Alienware 18, Realtek ALC668, Speaker, Internal] Playback problem
>
> > I tried to re-submit the bug report but I am not really sure what the
> alsa-base.conf should look like or how to reinstall/overwrite.
>
> These commands will replace your alsa-base.conf with the original one:
> sudo mv /etc/modprobe.conf/alsa-base.conf ~/alsa-base.conf.old
> sudo apt-get install alsa-base --reinstall
>
> Otherwise I think Raymond is right, you need to experiment a bit with
> hdajackretask (in the alsa-tools-gui package) to find the internal
> speaker, because BIOS does only indicate 0x14 as speaker - and that's
> probably the subwoofer if that's the only thing you hear audio from.
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1332900
>
> Title:
> [Alienware 18, Realtek ALC668, Speaker, Internal] Playback problem
>
> Status in “alsa-driver” package in Ubuntu:
> Incomplete
>
> Bug description:
> Bug seems similar to another reported bug with Alienware 18 laptops.
> It should be Realtek ALC3661 however it shows up as ALC668. Sound only
> comes out of 1 Channel, which appears to be subwoofer. Unlike the
> other bug, closing the lid appears to have no effect on sound.
>
> When doing the bug test, it said sound would alternate between 2
> channels, however I only heard one consistent sound. It did not
> alternate. I believe it is playing from the subwoofer only. I would
> love to know more about how to route the sound to the proper speakers.
>
> I attempted modifications to daemon.conf in pulse and .asoundrc but
> have not found the correct configuration yet.
>
> This laptop is equipped with 2.1 Surround and should play sound
> accordingly. Also, alsamixer only shows (1) speaker control, whether
> this is normal I am unsure.
>
>
> Ubuntu 14.04 LTS
>
> ProblemType: Bug
> DistroRelease: Ubuntu 14.04
> Package: alsa-base 1.0.25+dfsg-0ubuntu4
> ProcVersionSignature: Ubuntu 3.13.0-29.53-generic 3.13.11.2
> Uname: Linux 3.13.0-29-generic x86_64
> NonfreeKernelModules: wl nvidia
> ApportVersion: 2.14.1-0ubuntu3.2
> Architecture: amd64
> AudioDevicesInUse:
> USER PID ACCESS COMMAND
> /dev/snd/controlC1: phallix 1730 F.... pulseaudio
> /dev/snd/controlC0: phallix 1730 F.... pulseaudio
> phallix 8573 F.... alsamixer
> CurrentDesktop: Unity
> Date: Sat Jun 21 21:02:28 2014
> InstallationDate: Installed on 2014-06-15 (6 days ago)
> InstallationMedia: Ubuntu 14.04 LTS "Trusty Tahr" - Release amd64 (20140417)
> PackageArchitecture: all
> SourcePack...

Read more...

Revision history for this message
Daniel Letzeisen (dtl131) wrote :

@David : I think you meant modprobe.d (not modprobe.conf)

@Austin: I'm not aware of any guides beyond the links already given. Install the alsa-tools-gui package and run the hdajackretask program. Check the option to show unconnected pins, and try setting them to an internal speaker.

Revision history for this message
Austin Moore (bluemonkii) wrote :
Download full text (4.0 KiB)

Ok. I will start by trying to install alsa-tools-gui package. One other thing I noticed is upon startup/load of Ubuntu, at the top of the screen it says something about snd hda codec "module has bad taint". It is difficult to read exactly because it flashes only for a second during load. I am unsure if this is related to the same problem but since it has to do with alsa I knew it was worth mentioning. If you know anything about this message please let me know. I appreciate all of the help thus far.

Austin

> Date: Mon, 23 Jun 2014 19:10:44 +0000
> From: <email address hidden>
> To: <email address hidden>
> Subject: [Bug 1332900] Re: [Alienware 18, Realtek ALC668, Speaker, Internal] Playback problem
>
> @David : I think you meant modprobe.d (not modprobe.conf)
>
> @Austin: I'm not aware of any guides beyond the links already given.
> Install the alsa-tools-gui package and run the hdajackretask program.
> Check the option to show unconnected pins, and try setting them to an
> internal speaker.
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1332900
>
> Title:
> [Alienware 18, Realtek ALC668, Speaker, Internal] Playback problem
>
> Status in “alsa-driver” package in Ubuntu:
> Incomplete
>
> Bug description:
> Bug seems similar to another reported bug with Alienware 18 laptops.
> It should be Realtek ALC3661 however it shows up as ALC668. Sound only
> comes out of 1 Channel, which appears to be subwoofer. Unlike the
> other bug, closing the lid appears to have no effect on sound.
>
> When doing the bug test, it said sound would alternate between 2
> channels, however I only heard one consistent sound. It did not
> alternate. I believe it is playing from the subwoofer only. I would
> love to know more about how to route the sound to the proper speakers.
>
> I attempted modifications to daemon.conf in pulse and .asoundrc but
> have not found the correct configuration yet.
>
> This laptop is equipped with 2.1 Surround and should play sound
> accordingly. Also, alsamixer only shows (1) speaker control, whether
> this is normal I am unsure.
>
>
> Ubuntu 14.04 LTS
>
> ProblemType: Bug
> DistroRelease: Ubuntu 14.04
> Package: alsa-base 1.0.25+dfsg-0ubuntu4
> ProcVersionSignature: Ubuntu 3.13.0-29.53-generic 3.13.11.2
> Uname: Linux 3.13.0-29-generic x86_64
> NonfreeKernelModules: wl nvidia
> ApportVersion: 2.14.1-0ubuntu3.2
> Architecture: amd64
> AudioDevicesInUse:
> USER PID ACCESS COMMAND
> /dev/snd/controlC1: phallix 1730 F.... pulseaudio
> /dev/snd/controlC0: phallix 1730 F.... pulseaudio
> phallix 8573 F.... alsamixer
> CurrentDesktop: Unity
> Date: Sat Jun 21 21:02:28 2014
> InstallationDate: Installed on 2014-06-15 (6 days ago)
> InstallationMedia: Ubuntu 14.04 LTS "Trusty Tahr" - Release amd64 (20140417)
> PackageArchitecture: all
> SourcePackage: alsa-driver
> Symptom: audio
> Symptom_AlsaPlaybackTest: ALSA playback test through plughw:PCH failed
> Symptom_Card: Built-in Audio - HDA Intel PCH
> Symptom_Jack: Speaker, Internal
> S...

Read more...

Revision history for this message
Austin Moore (bluemonkii) wrote :
Download full text (3.9 KiB)

Update:

I have reinstalled alsa-base.conf as instructed. I ran the hdajackretask program with the "show unconnected pins" option. Upon hitting apply, I get the following message:

tee: /sys/class/sound/hwC0D0/reconfig: No such file or directory

I assume it is looking for a reconfig file in that directory but there is no such file?

Let me know.

> Date: Mon, 23 Jun 2014 19:10:44 +0000
> From: <email address hidden>
> To: <email address hidden>
> Subject: [Bug 1332900] Re: [Alienware 18, Realtek ALC668, Speaker, Internal] Playback problem
>
> @David : I think you meant modprobe.d (not modprobe.conf)
>
> @Austin: I'm not aware of any guides beyond the links already given.
> Install the alsa-tools-gui package and run the hdajackretask program.
> Check the option to show unconnected pins, and try setting them to an
> internal speaker.
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1332900
>
> Title:
> [Alienware 18, Realtek ALC668, Speaker, Internal] Playback problem
>
> Status in “alsa-driver” package in Ubuntu:
> Incomplete
>
> Bug description:
> Bug seems similar to another reported bug with Alienware 18 laptops.
> It should be Realtek ALC3661 however it shows up as ALC668. Sound only
> comes out of 1 Channel, which appears to be subwoofer. Unlike the
> other bug, closing the lid appears to have no effect on sound.
>
> When doing the bug test, it said sound would alternate between 2
> channels, however I only heard one consistent sound. It did not
> alternate. I believe it is playing from the subwoofer only. I would
> love to know more about how to route the sound to the proper speakers.
>
> I attempted modifications to daemon.conf in pulse and .asoundrc but
> have not found the correct configuration yet.
>
> This laptop is equipped with 2.1 Surround and should play sound
> accordingly. Also, alsamixer only shows (1) speaker control, whether
> this is normal I am unsure.
>
>
> Ubuntu 14.04 LTS
>
> ProblemType: Bug
> DistroRelease: Ubuntu 14.04
> Package: alsa-base 1.0.25+dfsg-0ubuntu4
> ProcVersionSignature: Ubuntu 3.13.0-29.53-generic 3.13.11.2
> Uname: Linux 3.13.0-29-generic x86_64
> NonfreeKernelModules: wl nvidia
> ApportVersion: 2.14.1-0ubuntu3.2
> Architecture: amd64
> AudioDevicesInUse:
> USER PID ACCESS COMMAND
> /dev/snd/controlC1: phallix 1730 F.... pulseaudio
> /dev/snd/controlC0: phallix 1730 F.... pulseaudio
> phallix 8573 F.... alsamixer
> CurrentDesktop: Unity
> Date: Sat Jun 21 21:02:28 2014
> InstallationDate: Installed on 2014-06-15 (6 days ago)
> InstallationMedia: Ubuntu 14.04 LTS "Trusty Tahr" - Release amd64 (20140417)
> PackageArchitecture: all
> SourcePackage: alsa-driver
> Symptom: audio
> Symptom_AlsaPlaybackTest: ALSA playback test through plughw:PCH failed
> Symptom_Card: Built-in Audio - HDA Intel PCH
> Symptom_Jack: Speaker, Internal
> Symptom_Type: Only some of outputs are working
> Title: [Alienware 18, Realtek ALC668, Speaker, Internal] Playback problem
> UpgradeStatus: No upgrade l...

Read more...

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

you cannot use dynamic reconfig(apply now) if you are not using debugged version alsa driver

you need to use set as boot default which use early patching and require reboot

you can just add the subwoofer only

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

+ [ALC668_FIXUP_DELL_MIC_NO_PRESENCE] = {
+ .type = HDA_FIXUP_PINS,
+ .v.pins = (const struct hda_pintbl[]) {
+ { 0x19, 0x03a1913d }, /* use as headphone mic, without its own jack detect */
+ { 0x1b, 0x03a1113c }, /* use as headset mic, without its own jack detect */
+ { }
+ },

is there any reason add two pin complex when only headset mic is needed for dell laptop?

this create an useless pin complex headphone Mic

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

there is no need to add headphone Mic pin complex if the one and only one Jack "headphone" Jack is retasked as mic jack

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

 > One other thing I noticed is upon startup/load of Ubuntu, at the top of the screen it says something about snd hda codec "module has bad taint".

This is the alsa daily build module. It is printing an warning message to inform you that you're running a module that was not compiled with the rest of the kernel. You can ignore it.

> tee: /sys/class/sound/hwC0D0/reconfig: No such file or directory

Hmm, maybe this is related to the daily HDA DKMS too, somehow. There has been some reorganising upstream w r t the devices. Try uninstalling the daily DKMS again, reboot, and retry.

> Are there any guides for this hdajackretask as to how I can do what you say, otherwise how might I get started experimenting with hdajackretask?

Omgubuntu wrote a small introduction here, not sure how helpful it is:

http://www.omgubuntu.co.uk/2013/12/turn-headphone-jack-microphone-jack-ubuntu

> @David : I think you meant modprobe.d (not modprobe.conf)

Yes, thanks.

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

do hda jack sense test also indicate the headset Jack is node 0x15, headphone Jack is 0x16

and Mic Jack is 0x19

https://bugs.launchpad.net/ubuntu/+source/alsa-driver/+bug/1302090/comments/4

the current driver put two headphone jacks in multi out , this is good for supporting 5.1 but the drawback is your 2.1 speaker share the volume control and no bass playback volume controls

may need hint or Def assoicstion of the pins to determine whether subwoofer/headphone have priority to use the volume controls

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

http://www.dell.com/us/p/alienware-18/pd

(2x) Audio Out 1/8" Ports (One compatible with inline mic headset)
 (1x) Line In Microphone 1/8" Port (retaskable for 5.1 analog audio output)

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

https://git.kernel.org/cgit/linux/kernel/git/tiwai/sound.git/commit/sound/pci/hda/hda_auto_parser.c?id=1c70a583417e8db1e1d5069d7651ba294e9499de

using hda Jack retask to add headset mic

and specify hint by modifying hda-jack-retask.fw generated by hda Jack retask

parser_flags = 4

to force the parser to find headset Mic which have specific sequence number 0x0c and set misc bit (bit 8)

https://git.kernel.org/cgit/linux/kernel/git/tiwai/sound.git/tree/Documentation/sound/alsa/HD-Audio.txt

however the current logic of auto Mic selection won't consider the extra Mic jack in alienware

Revision history for this message
Austin Moore (bluemonkii) wrote :
Download full text (4.3 KiB)

Just got back from vacation and continuing this effort to resolve. In reviewing your notes, Do you understand that My headphone jacks sound fine, however the internal speakers seem to be mapped wrong or unmapped? I just need to know how to find which speakers are on what nodes and also how to group/set them up in 'hda jack retask' so that the sound will split to each of them. I believe it should be 2.1 for the laptop so (2) speakers and (1) subwoofer.

> Date: Wed, 25 Jun 2014 10:10:40 +0000
> From: <email address hidden>
> To: <email address hidden>
> Subject: [Bug 1332900] Re: [Alienware 18, Realtek ALC668, Speaker, Internal] Playback problem
>
> https://git.kernel.org/cgit/linux/kernel/git/tiwai/sound.git/commit/sound/pci/hda/hda_auto_parser.c?id=1c70a583417e8db1e1d5069d7651ba294e9499de
>
> using hda Jack retask to add headset mic
>
> and specify hint by modifying hda-jack-retask.fw generated by hda Jack
> retask
>
> parser_flags = 4
>
> to force the parser to find headset Mic which have specific sequence
> number 0x0c and set misc bit (bit 8)
>
> https://git.kernel.org/cgit/linux/kernel/git/tiwai/sound.git/tree/Documentation/sound/alsa
> /HD-Audio.txt
>
> however the current logic of auto Mic selection won't consider the extra
> Mic jack in alienware
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1332900
>
> Title:
> [Alienware 18, Realtek ALC668, Speaker, Internal] Playback problem
>
> Status in “alsa-driver” package in Ubuntu:
> Incomplete
>
> Bug description:
> Bug seems similar to another reported bug with Alienware 18 laptops.
> It should be Realtek ALC3661 however it shows up as ALC668. Sound only
> comes out of 1 Channel, which appears to be subwoofer. Unlike the
> other bug, closing the lid appears to have no effect on sound.
>
> When doing the bug test, it said sound would alternate between 2
> channels, however I only heard one consistent sound. It did not
> alternate. I believe it is playing from the subwoofer only. I would
> love to know more about how to route the sound to the proper speakers.
>
> I attempted modifications to daemon.conf in pulse and .asoundrc but
> have not found the correct configuration yet.
>
> This laptop is equipped with 2.1 Surround and should play sound
> accordingly. Also, alsamixer only shows (1) speaker control, whether
> this is normal I am unsure.
>
>
> Ubuntu 14.04 LTS
>
> ProblemType: Bug
> DistroRelease: Ubuntu 14.04
> Package: alsa-base 1.0.25+dfsg-0ubuntu4
> ProcVersionSignature: Ubuntu 3.13.0-29.53-generic 3.13.11.2
> Uname: Linux 3.13.0-29-generic x86_64
> NonfreeKernelModules: wl nvidia
> ApportVersion: 2.14.1-0ubuntu3.2
> Architecture: amd64
> AudioDevicesInUse:
> USER PID ACCESS COMMAND
> /dev/snd/controlC1: phallix 1730 F.... pulseaudio
> /dev/snd/controlC0: phallix 1730 F.... pulseaudio
> phallix 8573 F.... alsamixer
> CurrentDesktop: Unity
> Date: Sat Jun 21 21:02:28 2014
> InstallationDate: Installed on 2014-06-15 (6 days ago)
> InstallationMedia: Ubuntu 14.04 LTS "Trust...

Read more...

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

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

follow his step

the multi channel speakers must have same def assosication and ascending sequence number

HP Mic need to use 0xc sequence number and parser_flags=4

Revision history for this message
Austin Moore (bluemonkii) wrote :
Download full text (7.0 KiB)

Update:

I reinstalled alsa-daily and I was able to get 'hda jack retask' to function. I choose show unconnected pins and advanced override. Raymond suggested a couple of nodes that might be the internal speakers for this model. I tried experimenting by checking "override" and setting to "speaker", "internal" etc changing various settings. I am not sure what I should set these to or if they are just labels? Does it matter? Regardless, it does not seem to affect anything in speaker-test. One thing I should note though is that somehow now the speaker-test has sound only coming out when displaying "LFE". Previously sound was only coming out of one channel, however sound would come out of that channel while displaying "front-left", "front-right"...etc. Nothing has really changed though in regards to the actual sound, only what is displayed on the screen while testing has changed, so maybe just the config? So, now I have only sound coming out of LFE (as before) but now it only
comes out when "LFE" is displayed, rather than playing sound while the
other channel names are displayed.

Secondly, When I use "override", I see that it adds a control to "alsamixer", however it doesnt add a full bar, but rather just says "00" and is at a fixed position in alsamixer. I am uncertain if this is normal. At this point I dont fully understand if all of these are making up one collective, or if I should be able to adjust each one separate. I would assume because it is a laptop that there should only be one Master control in alsamixer?...and that sound should be automatically mapped to each present speaker. Let me know if that is correct.

If that is the case, then I am still hung up with detection of those "missing" speakers. Why are they not detected automatically and am I on the right track using 'hdajackretask' to get them detected/assigned?

I could not find a guide on using hdajackretask, so I just need to know what settings to use and i assume I just trial and error by hitting "apply", then doing speaker-test to see if any others show sound? If that is the case, however ...why was i told i was getting sound on (4) of those speakers, but in actuality it only came out of (1) of them, while displaying each one.

I am just trying to understand why it does not display the actual speaker which is playing. The only idea i had was that sound is right now mapped only to the subwoofer and so when it does the test right now for each speaker, the subwoofer receives the test for each instead of the missing speakers. So, I need to know how to reassign it so that the subwoofer only receives the test for the subwoofer, and the other 2 speakers receive their own test signal.

I hope this makes sense.

P.S. - Many of the suggestions have to do with the Headphone jacks, but my problem is related to the internal speakers. As far as I understand, they are separate issues?

> Date: Tue, 24 Jun 2014 11:27:26 +0000
> From: <email address hidden>
> To: <email address hidden>
> Subject: [Bug 1332900] Re: [Alienware 18, Realtek ALC668, Speaker, Internal] Playback problem
>
> > One other thing I noticed is upon startup/load of Ubuntu, at the top
> of the screen it says som...

Read more...

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

https://bugs.launchpad.net/ubuntu/+source/alsa-lib/+bug/1286021

do you get sound from from subwoofer after retasking node 0x1a ?

since you have two headphone , speakers and subwoofer

the current driver only create two volume controls for headphone And speaker

you may need to retask one headphone Jack to UN connected if you want the driver to create volume controls for speaker and subwoofer

https://git.kernel.org/cgit/linux/kernel/git/tiwai/sound.git/tree/Documentation/sound/alsa/HD-Audio.txt

`CONFIG_SND_HDA_HWDEP` is a useful option for debugging the driver.
When this is enabled, the driver creates hardware-dependent devices
(one per each codec), and you have a raw access to the device via
these device files. For example, `hwC0D2` will be created for the
codec slot #2 of the first card (#0). For debug-tools such as
hda-verb and hda-analyzer, the hwdep device has to be enabled.
Thus, it'd be better to turn this on always.

`CONFIG_SND_HDA_RECONFIG` is a new option, and this depends on the
hwdep option above. When enabled, you'll have some sysfs files under
the corresponding hwdep directory. See "HD-audio reconfiguration"
section below.

http://git.alsa-project.org/?p=alsa-tools.git;a=blob;f=hdajackretask/README;hb=HEAD

apply now button work only when driver is build with reconfig and the program can kill pulseaudio and can dynamic receive configure the driver

the alternative is to use hda analyzer , just set pinctl of the subwoofer node to out and connected the node to one of the audio output , unmute the switch along the path and change the volume slider

Revision history for this message
Austin Moore (bluemonkii) wrote :
Download full text (6.3 KiB)

I am uncertain if HDA retask made permanent changes to the mapping? I chose boot override and then restarted. When relaunching hdajackretask i see that none of the overrides are checked. Is this because changes were already made and are now in effect?

I still do not understand which nodes are for which speakers. The other Alienware bug guy said 0x1a is subwoofer? I probably dont need a separate volume control for subwoofer, as I dont even think windows has this.

I just need sound to come out of the 2 missing speakers.

So, I assume 0x1a is for Subwoofer?

How do I get sound out of other speakers? Are they "left" and "right" or "front" and "back"? And are you saying one or two of the pins from hdajackretask is assigned to internal speakers?

I read the other bug report, but I do not understand fully how pins work, or how to locate and assign missing speakers. I just want sound to play out of all internal speakers. Right now I can get good sound from Headphones, that is not a problem so far, but sound is bad quality, probably because all of it coming through subwoofer. How does it know how to split sound to the (2) other speakers in addition to subwoofer?

Also, what should my .asoundrc file look like for a 2.1 surround setup?

And, does daemon.conf make a difference, or that is only related to the controls in PulseAudio?

I think I need some sort of simple instructions because I am not a hardware expert, and do not fully understand how the hardware is mapped by default.

> Date: Sun, 6 Jul 2014 05:21:52 +0000
> From: <email address hidden>
> To: <email address hidden>
> Subject: [Bug 1332900] Re: [Alienware 18, Realtek ALC668, Speaker, Internal] Playback problem
>
> https://bugs.launchpad.net/ubuntu/+source/alsa-lib/+bug/1286021
>
> do you get sound from from subwoofer after retasking node 0x1a ?
>
> since you have two headphone , speakers and subwoofer
>
> the current driver only create two volume controls for headphone And
> speaker
>
> you may need to retask one headphone Jack to UN connected if you want
> the driver to create volume controls for speaker and subwoofer
>
> https://git.kernel.org/cgit/linux/kernel/git/tiwai/sound.git/tree/Documentation/sound/alsa
> /HD-Audio.txt
>
> `CONFIG_SND_HDA_HWDEP` is a useful option for debugging the driver.
> When this is enabled, the driver creates hardware-dependent devices
> (one per each codec), and you have a raw access to the device via
> these device files. For example, `hwC0D2` will be created for the
> codec slot #2 of the first card (#0). For debug-tools such as
> hda-verb and hda-analyzer, the hwdep device has to be enabled.
> Thus, it'd be better to turn this on always.
>
> `CONFIG_SND_HDA_RECONFIG` is a new option, and this depends on the
> hwdep option above. When enabled, you'll have some sysfs files under
> the corresponding hwdep directory. See "HD-audio reconfiguration"
> section below.
>
> http://git.alsa-project.org/?p=alsa-
> tools.git;a=blob;f=hdajackretask/README;hb=HEAD
>
>
> apply now button work only when driver is build with reconfig and the program can kill pulseaudio and can dynamic receive configure the driver
>
> the alternative is to u...

Read more...

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

do you mean node 0x14 is the subwoofer ?

you can use hda analyzer to mute and unmute node 0x14 to find out whether it is the subwoofer and internal Mic is node 0x12

[ 5.445875] autoconfig: line_outs=1 (0x14/0x0/0x0/0x0/0x0) type:speaker
 [ 5.445876] speaker_outs=0 (0x0/0x0/0x0/0x0/0x0)
 [ 5.445877] hp_outs=2 (0x15/0x16/0x0/0x0/0x0)
 [ 5.445877] mono: mono_out=0x0
 [ 5.445878] inputs:
 [ 5.445879] Mic=0x19
 [ 5.445880] Internal Mic=0x12

use hda jack sense test to verify the three jacks are 0x15, 0x16 and 0x19

if the above nodes are correct, only pincap of nodes 0x18 and 0x1a support OUT which may be the missing speakers

the driver create bass playback switch at the node with higher sequence number , so you need to adjust the sequence number so that subwoofer node has higher sequence number then the stereo speakers node

Control: name="Bass Speaker Playback Switch", index=0, device=0
    ControlAmp: chs=3, dir=Out, idx=0, ofs=0
  Control: name="Speaker Surround Phantom Jack", index=0, device=0

use early patching instead of dynamic reconfig since dynamic reconfigure keep on create inputs

152679.662071] input: HDA Intel PCH Headphone Surround as /devices/pci0000:00/0000:00:1b.0/sound/card0/input16
[152679.662173] input: HDA Intel PCH Headphone Front as /devices/pci0000:00/0000:00:1b.0/sound/card0/input15
[152679.662527] input: HDA Intel PCH Mic as /devices/pci0000:00/0000:00:1b.0/sound/card0/input14
[152759.157431] hda-codec: reconfiguring
[152759.157433] The codec is being used, can't reconfigure.
[152768.037378] hda-codec: reconfiguring
[152768.087470] SKU: Nid=0x1d sku_cfg=0x41000001
--
[152768.087760] realtek: Enabling init ASM_ID=0x0001 CODEC_ID=10ec0668
[152768.092201] input: HDA Intel PCH Headphone Surround as /devices/pci0000:00/0000:00:1b.0/sound/card0/input19
[152768.092392] input: HDA Intel PCH Headphone Front as /devices/pci0000:00/0000:00:1b.0/sound/card0/input18
[152768.092619] input: HDA Intel PCH Mic as /devices/pci0000:00/0000:00:1b.0/sound/card0/input17
[152890.220402] hda-codec: reconfiguring

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

to add volume controls to speaker and subwoofer ,

either use hda Jack retask to remove one headphone jack

or

modify driver to increase badness when there are two headphone Jacks and two speaker pins ,but only three audio output when cfg->line_out_type == auto_pin_hp_out since Def assoc of second headphone Jack is larger than that of subwoofer (lower priority to assign volume control/audio output )

this force driver to assign audio output/volume control to two speakers first

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

> I am uncertain if HDA retask made permanent changes to the mapping? I chose boot override and then restarted.
> When relaunching hdajackretask i see that none of the overrides are checked.

This sounds like a bug in hdajackretask.

> I still do not understand which nodes are for which speakers.

This is what we need you to figure out. I suggest you try the following:
Start hdajackretask and make sure "show unconnected pins" is checked.
1) Override all nodes to "Not connected" except the first one, which you set to "Internal Speaker". Click "Apply now". Verify that sound is not muted. Do a sound test and see if you hear anything.
2) Now, override all nodes to "Not connected" except the second one, which you set to "Internal Speaker". Click "Apply now". Verify that sound is not muted. Do a sound test and see if you hear anything.
3) Override all nodes to "Not connected" except the third one...

...and continue until you have tested all pins. If a pin can't be set to "Internal Speaker" because it does not show in the drop down, you can skip that pin.
During testing, other I/O will disappear (Mic, Headphones etc). This is expected.

If you at any point hear output from the primary speakers, let us know which node it was.

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

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

the above patch only expect notebook have one Jack but this note book has three and there is no line out mode

(2x) Audio Out 1/8" Ports (One compatible with inline mic headset)
  (1x) Line In Microphone 1/8" Port (retaskable for 5.1 analog audio output)

do the headset and headphone need vendor coefficients to retask as line out to support external 4.0 speakers ?

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

to find the headset Mic , you may need to disable the Mic jack by retasking or stop pulseaudio

since the module switch on available port will switch the port to internal Mic when it found Mic Jack is not plugged

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
Revision history for this message
In , gaznims (gaznims-linux-kernel-bugs) wrote :

Created attachment 188161
Hardware

I installed Linux Mint 17.2 on my Rig
I installed it on my mSata drive
I have no Windows Op system at all
Everything installed perfectly except the sound

The sound is very quiet not really even usable the sound is also bad quality
and the Sub-woofer isn't in use and doesn't show up in the sound settings

I have tried many different fixes from searching the Net I had the sound better at one stage but still no Sub
I have tried things and lost all sound and and sound devices to getting locked out when I got to logon
Then I tried something else and had to do a re-install I'm getting very good at installing as do it every day or two

I did a re-install last night so things are standard and fresh at this stage

I also contacted Dell they were not interested !

I have posted topics on Linux Mint forum and Linux forums but no luck yet
I have posted information about my rig there

https://www.linux.com/community/forums/multimedia/alienware-18x-r2-bad-quallity-sound-and-not-coming-through-the-sub/24443#p24443

I'm new to Linux so don't really know what required when posting on these sites

So please tell me the "codes" to get the info you require

Thanks in advance for your help
Gary

Revision history for this message
In , gaznims (gaznims-linux-kernel-bugs) wrote :

I should add too
The sound through Headphones works perfectly

Revision history for this message
In , superquad.vortex2 (superquad.vortex2-linux-kernel-bugs) wrote :

you have to post the output of alsa-info.sh

try hdajackretask to change of the remaining nodes (e.g. 0x1a) to speaker with same default assoc and higher sequence number

find out which headphones is headset and headphone

most likely the headset mic is similar to dell-headset-multi but alienware don't need headphone mic since it has a mic jack

the easy way is to disable one headphone jack so that the driver can create volume controls for the speaker, subwoofer and headphone since alc668 only have three volume control

you need lfe filter which is available in pulseaudio 7.0

http://cgit.freedesktop.org/pulseaudio/pulseaudio/log/?qt=grep&q=lfe+filter

Revision history for this message
In , gaznims (gaznims-linux-kernel-bugs) wrote :

Ok
When I try and add these commands in the Terminal
each one just says no such directory
Can someone explain what I'm doing wrong
Thanks

-rw-r--r-- man/pulse-daemon.conf.5.xml.in
-rw-r--r-- src/daemon/daemon-conf.c
-rw-r--r-- src/daemon/daemon.conf.in

gary-Alienware-18 gary #
gary-Alienware-18 gary # -rw-r--r--man/pulse-daemon.conf.5.xml.in
bash: -rw-r--r--man/pulse-daemon.conf.5.xml.in: No such file or directory
gary-Alienware-18 gary # -rw-r--r--src/daemon/daemon-conf.c
bash: -rw-r--r--src/daemon/daemon-conf.c: No such file or directory
gary-Alienware-18 gary # -rw-r--r--src/daemon/daemon.conf.in
bash: -rw-r--r--src/daemon/daemon.conf.in: No such file or directory
gary-Alienware-18 gary #

Revision history for this message
In , gaznims (gaznims-linux-kernel-bugs) wrote :

Created attachment 188171
alsa-info.txt.jygArwylRC

Revision history for this message
In , gaznims (gaznims-linux-kernel-bugs) wrote :

I don't understand what to do here
I am new to Linux
and I'm not a computer Tech
I just know general knowledge of computers
But I am willing to learn

the easy way is to disable one headphone jack so that the driver can create volume controls for the speaker, subwoofer and headphone since alc668 only have three volume control

I see my Codec is Codec: Realtek ALC3661 not alc668 I don't know if this makes any Difference or not

Sorry for being so dumb

Revision history for this message
In , gaznims (gaznims-linux-kernel-bugs) wrote :

I should also add the Sub-woofer isn't present in the volume control
Only analog stereo output
and Analog Surround 4.0 but only plays stereo when texting
The is also "no" sign of my Nvidia cards in the sound settings either

There are 3 output Jacks on the left side of laptop
The Jack closest to the screen does nothing no sound and no Mic

The one in the middle has sound and Mic

The one at closest to me the front end has sound and Mic too

This "alsa-info.sh" does nothing either when posted in the Terminal
I had to search the net I found this and it worked
wget -O alsa-info.sh http://www.alsa-project.org/alsa-info.sh && chmod +x ./alsa-info.sh && ./alsa-info.sh

Why do those commands do nothing ?
anyway the Alsa info is in attachments

Revision history for this message
In , gaznims (gaznims-linux-kernel-bugs) wrote :

Created attachment 188181
More Info

Revision history for this message
In , gaznims (gaznims-linux-kernel-bugs) wrote :

HDAJacRetask as below

And now the sound only comes through the Sub and sounds very Dull

I set-up 0x1a

as
Connectivity ,Internal
Location ,Internal
Device, Speaker
Jack , Other Analog

Colour, Unknown
Jack detection , Not present
Channel Group, 5
Channel in group ,Centre LFE

This has added another Output in sound control

Headphones Built-in Audio

Speakers built-in Audio

Analog output built-in Audio (New)

and in Alsa Mixer there is a Bass Speaker (New)

Can you explain the difference between headset and headphone
I use Nokia Purity Pro BH 940 over ear bluetooth nfc etc it says these are head-set on the Box they cam in
I use them through a cable as they dont charge up anymore

┌────────────────────────────── AlsaMixer v1.0.27.2 ───────────────────────────────┐
│ Card: HDA Intel PCH F1: Help │
│ Chip: Realtek ALC3661 F2: System information │
│ View: F3:[Playback] F4: Capture F5: All F6: Select sound card │
│ Item: Master [dB gain: -15.75] Esc: Exit │
│ │
│ ┌──┐ ┌──┐ ┌──┐ ┌──┐ ┌──┐ ┌──┐ ┌──┐ │
│ │ │ │▒▒│ │▒▒│ │ │ │▒▒│ │ │ │▒▒│ │
│ │ │ │▒▒│ │▒▒│ │ │ │▒▒│ │ │ │▒▒│ │
│ │ │ │▒▒│ │▒▒│ │ │ │▒▒│ │ │ │▒▒│ │
│ │ │ │▒▒│ │▒▒│ │ │ │▒▒│ │ │ │▒▒│ │
│ │ │ │▒▒│ │▒▒│ │ │ │▒▒│ │ │ │▒▒│ │
│ │▒▒│ │▒▒│ │▒▒│ │ │ │▒▒│ │ │ │▒▒│ │
│ │▒▒│ │▒▒│ │▒▒│ │ │ │▒▒│ │ │ │▒▒│ │
│ │▒▒│ │▒▒│ │▒▒│ │ │ │▒▒│ │ │ │▒▒│ │
│ │▒▒│ │▒▒│ │▒▒│ │ │ │▒▒│ │ │ │▒▒│ │
│ │▒▒│ │▒▒│ │▒▒│ │ │ │▒▒│ │ │ │▒▒│ │
│ │▒▒│ │▒▒│ │▒▒│ │ │ │▒▒│ │ │ │▒▒│ │
│ ├──┤ ├──┤ ├──┤ ├──┤ ┌──┐ └──┘ ├──┤ └──┘ Disabled │
│ │OO│ │OO│ │OO│ │MM│ │OO│ │MM│ │
│ └──┘ └──┘ └──┘ └──┘ └──┘ └──┘ │
│ 51 100<>100 100<>100 0<>0 98<>98 0<>0 100<>100 │
│< Master >Headphon Headphon Speaker Bass Spe PCM Mic Mic Boos Auto-Mut │
└──────────────────────────────────────────────────────────────────────────────────┘

Revision history for this message
In , gaznims (gaznims-linux-kernel-bugs) wrote :

Ok just sussed out the Analog Output Built-in Audio that’s present in the sound output play sound through does nothing no sound comes from that device at all

So the only two devices that sound comes from is
Headphones built in Audio
Speakers Built in Audio

And during testing when playing music and its Dull
If I plug-in the head-set to outlet 1 and 2 the two closest to me
the sound changes and sounds really good through the speakers But I suspect its still in Mono but the sound is crisp and clear

Revision history for this message
In , superquad.vortex2 (superquad.vortex2-linux-kernel-bugs) wrote :

910.176691] sound hdaudioC0D0: autoconfig: line_outs=1 (0x14/0x0/0x0/0x0/0x0) type:speaker
[22910.176694] sound hdaudioC0D0: speaker_outs=0 (0x0/0x0/0x0/0x0/0x0)
[22910.176695] sound hdaudioC0D0: hp_outs=2 (0x15/0x16/0x0/0x0/0x0)
[22910.176697] sound hdaudioC0D0: mono: mono_out=0x0
[22910.176698] sound hdaudioC0D0: inputs:
[22910.176699] sound hdaudioC0D0: Mic=0x19
[22910.176701] sound hdaudioC0D0: Internal Mic=0x12

which node 0x15 or node 0x16 is the headset ?

do one of the jack has headset icon and the other has headphone icon ?

the driver assign two volume controls to two headphone jacks first and speaker and subwoofer share the volume control

you need to recompile the driver and change the badness or dac assigment logic to force the driver to assign volume controls to speaker and subwoofer and let headset and headphone share the volume control

without recompile the driver, you need to disable one headphone jack by hdajackretask to find the subwoofer

Revision history for this message
In , superquad.vortex2 (superquad.vortex2-linux-kernel-bugs) wrote :

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

the other dell notebook with one combo jack support headset, headphone or mic

if your alienware 18 support headset , node 0x1b is most likely the headset mic pin but you don't need headphone mic pin since your alienware 18 have mic jack

  },
+ [ALC668_FIXUP_DELL_MIC_NO_PRESENCE] = {
+ .type = HDA_FIXUP_PINS,
+ .v.pins = (const struct hda_pintbl[]) {
+ { 0x19, 0x03a1913d }, /* use as headphone mic, without its own jack detect */
+ { 0x1b, 0x03a1113c }, /* use as headset mic, without its own jack detect */
+ { }
+ },
+ .chained = true,
+ .chain_id = ALC668_FIXUP_HEADSET_MODE
+ },

Revision history for this message
In , superquad.vortex2 (superquad.vortex2-linux-kernel-bugs) wrote :

Node 0x14 [Pin Complex] wcaps 0x40058f: Stereo Amp-In Amp-Out
  Control: name="Speaker Playback Switch", index=0, device=0
    ControlAmp: chs=3, dir=Out, idx=0, ofs=0
  Control: name="Speaker Phantom Jack", index=0, device=0
  Amp-In caps: N/A
  Amp-In vals: [0x00 0x00]
  Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
  Amp-Out vals: [0x00 0x00]
  Pincap 0x0001003c: IN OUT HP EAPD Detect
  EAPD 0x2: EAPD
  Pin Default 0x90170110: [Fixed] Speaker at Int N/A
    Conn = Analog, Color = Unknown
    DefAssociation = 0x1, Sequence = 0x0
    Misc = NO_PRESENCE
  Pin-ctls: 0x40: OUT
  Unsolicited: tag=00, enabled=0
  Power states: D0 D1 D2 D3 EPSS
  Power: setting=D0, actual=D0
  Connection: 3
     0x0c* 0x0d 0x0e

if your internal speaket is at node 0x14 , you need to assign pin default 0x90170111 to subwoofer pin complex

Revision history for this message
In , superquad.vortex2 (superquad.vortex2-linux-kernel-bugs) wrote :

Node 0x15 [Pin Complex] wcaps 0x40058d: Stereo Amp-Out
  Control: name="Headphone Playback Switch", index=0, device=0
    ControlAmp: chs=3, dir=Out, idx=0, ofs=0
  Control: name="Headphone Jack", index=0, device=0
  Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
  Amp-Out vals: [0x00 0x00]
  Pincap 0x0001001c: OUT HP EAPD Detect
  EAPD 0x2: EAPD
  Pin Default 0x0321101f: [Jack] HP Out at Ext Left
    Conn = 1/8, Color = Black
    DefAssociation = 0x1, Sequence = 0xf
  Pin-ctls: 0xc0: OUT HP
  Unsolicited: tag=01, enabled=1
  Power states: D0 D1 D2 D3 EPSS
  Power: setting=D0, actual=D0
  Connection: 3
     0x0c 0x0d* 0x0e
Node 0x16 [Pin Complex] wcaps 0x40058d: Stereo Amp-Out
  Control: name="Headphone Playback Switch", index=1, device=0
    ControlAmp: chs=3, dir=Out, idx=0, ofs=0
  Control: name="Headphone Jack", index=1, device=0
  Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
  Amp-Out vals: [0x00 0x00]
  Pincap 0x0000001c: OUT HP Detect
  Pin Default 0x03211020: [Jack] HP Out at Ext Left
    Conn = 1/8, Color = Black
    DefAssociation = 0x2, Sequence = 0x0
  Pin-ctls: 0xc0: OUT HP
  Unsolicited: tag=02, enabled=1
  Power states: D0 D1 D2 D3 EPSS
  Power: setting=D0, actual=D0
  Connection: 3
     0x0c 0x0d 0x0e*

in theory if the driver follow hda specification, it should assign DAC and other resource to those pin complex with lowest default association firsy

Revision history for this message
In , superquad.vortex2 (superquad.vortex2-linux-kernel-bugs) wrote :

do your alienware 18 support surround5.1 since there are three jacks at same location (Ext left) ?

Node 0x19 [Pin Complex] wcaps 0x40058f: Stereo Amp-In Amp-Out
  Control: name="Mic Boost Volume", index=0, device=0
    ControlAmp: chs=3, dir=In, idx=0, ofs=0
  Control: name="Mic Jack", index=0, device=0
  Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x27, mute=0
  Amp-In vals: [0x00 0x00]
  Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
  Amp-Out vals: [0x80 0x80]
  Pincap 0x0000373c: IN OUT HP Detect
    Vref caps: HIZ 50 GRD 80 100
  Pin Default 0x03a11030: [Jack] Mic at Ext Left
    Conn = 1/8, Color = Black
    DefAssociation = 0x3, Sequence = 0x0
  Pin-ctls: 0x24: IN VREF_80
  Unsolicited: tag=04, enabled=1
  Power states: D0 D1 D2 D3 EPSS
  Power: setting=D0, actual=D0
  Connection: 3
     0x0c* 0x0d 0x0e

Revision history for this message
In , gaznims (gaznims-linux-kernel-bugs) wrote :

Created attachment 188231
which node 0x15 or node 0x16 is the headset ?

Revision history for this message
In , gaznims (gaznims-linux-kernel-bugs) wrote :

Created attachment 188241
Jacks Headphone Headset etc

Revision history for this message
In , gaznims (gaznims-linux-kernel-bugs) wrote :

(In reply to Raymond from comment #12)
> Node 0x14 [Pin Complex] wcaps 0x40058f: Stereo Amp-In Amp-Out
> Control: name="Speaker Playback Switch", index=0, device=0
> ControlAmp: chs=3, dir=Out, idx=0, ofs=0
> Control: name="Speaker Phantom Jack", index=0, device=0
> Amp-In caps: N/A
> Amp-In vals: [0x00 0x00]
> Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
> Amp-Out vals: [0x00 0x00]
> Pincap 0x0001003c: IN OUT HP EAPD Detect
> EAPD 0x2: EAPD
> Pin Default 0x90170110: [Fixed] Speaker at Int N/A
> Conn = Analog, Color = Unknown
> DefAssociation = 0x1, Sequence = 0x0
> Misc = NO_PRESENCE
> Pin-ctls: 0x40: OUT
> Unsolicited: tag=00, enabled=0
> Power states: D0 D1 D2 D3 EPSS
> Power: setting=D0, actual=D0
> Connection: 3
> 0x0c* 0x0d 0x0e
>
> if your internal speaket is at node 0x14 , you need to assign pin default
> 0x90170111 to subwoofer pin complex

Yes the internal speaker is at 0x14 There is no 0x9*****

Revision history for this message
In , superquad.vortex2 (superquad.vortex2-linux-kernel-bugs) wrote :

plug your headphone into the jack with headset icon

try

hdajacksensetest -a -c0

to verify that node 0x15 is headset and node 0x16 is headphone

dell-headset-multi by default assume the jack is headphone and need to change the capture source to headset mic in order to change the role of the combo jack

Revision history for this message
In , superquad.vortex2 (superquad.vortex2-linux-kernel-bugs) wrote :

use advanced override mode to change the pin default of node 0x1a

and disable node 0x16 change [Jack] to [N/A] in order to assign DAC and volume control to subwoofer

you need to set as boot default instead of dynamic reconfiguration

speaker-test -Dhw:0,0 -c4 -t wav

to find out the subwoofer use left, right or both of rear channels

Revision history for this message
In , superquad.vortex2 (superquad.vortex2-linux-kernel-bugs) wrote :

if it support surround 5.1 by three audio jacks

the easy way is to use hdajackretask to change them to line out

although this patch allow desktop to use 5.1 speakers as 2.1

but pulseaudio alway use your internal 2.1 speakers when select 2.1 profile

http://git.alsa-project.org/?p=alsa-lib.git;a=commit;h=48f1b308cc66152eb6db66742dd0d08d888cda8d

Revision history for this message
In , superquad.vortex2 (superquad.vortex2-linux-kernel-bugs) wrote :

dell alc668 combo jack can support both
headphone, headsets (of both CTIA and OMTP type) and mic-in

but it cannot auto matically differentiate headset and headphone

http://voices.canonical.com/david.henningsson/2014/03/07/headset-jacks-on-newer-laptops/

user have to set the jack type every time when they plug the jack

Revision history for this message
In , gaznims (gaznims-linux-kernel-bugs) wrote :

(In reply to Raymond from comment #18)
>
> plug your headphone into the jack with headset icon
>
>
> try
>
> hdajacksensetest -a -c0
>
>
> to verify that node 0x15 is headset and node 0x16 is headphone
>
>
> dell-headset-multi by default assume the jack is headphone and need to
> change the capture source to headset mic in order to change the role of the
> combo jack

I don't understand what you mean here I tried putting the command into the terminal no such command hdajacksensetest -a -c0

Revision history for this message
In , gaznims (gaznims-linux-kernel-bugs) wrote :

Created attachment 188271
Jacks top

Revision history for this message
In , gaznims (gaznims-linux-kernel-bugs) wrote :

Created attachment 188281
Jacks bottom

Revision history for this message
In , gaznims (gaznims-linux-kernel-bugs) wrote :

>
>
>
> you need lfe filter which is available in pulseaudio 7.0
>
> http://cgit.freedesktop.org/pulseaudio/pulseaudio/log/?qt=grep&q=lfe+filter

No one has explained how I add this in my computer yet ??

Revision history for this message
In , gaznims (gaznims-linux-kernel-bugs) wrote :

(In reply to Raymond from comment #19)
> use advanced override mode to change the pin default of node 0x1a
>
> and disable node 0x16 change [Jack] to [N/A] in order to assign DAC and
> volume control to subwoofer
>
>
> you need to set as boot default instead of dynamic reconfiguration
>
> speaker-test -Dhw:0,0 -c4 -t wav
>
>
> to find out the subwoofer use left, right or both of rear channels

I dont understand this Please explain ?

use advanced override mode to change the pin default of node 0x1a

With 0x16 put as not connected
it wont allow me to do the sound test see below

 # speaker-test -Dhw:0,0 -c4 -t wav

speaker-test 1.0.27.2

Playback device is hw:0,0
Stream parameters are 48000Hz, S16_LE, 4 channels
WAV file(s)
Channels count (4) not available for playbacks: Invalid argument
Setting of hwparams failed: Invalid argument

But I disconnected 0x15 and both left and right rear was coming out of the center Sub

Revision history for this message
In , superquad.vortex2 (superquad.vortex2-linux-kernel-bugs) wrote :
Revision history for this message
In , gaznims (gaznims-linux-kernel-bugs) wrote :

Ok so how are we doing so far?

I still have no idea how to install this

> you need lfe filter which is available in pulseaudio 7.0

or is it not need now ?

Revision history for this message
In , superquad.vortex2 (superquad.vortex2-linux-kernel-bugs) wrote :

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

default 2.1 channel map is

 { .channels = 4,
+ .map = { SNDRV_CHMAP_FL, SNDRV_CHMAP_FR,
+ SNDRV_CHMAP_LFE, SNDRV_CHMAP_LFE

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

asus sonic master subwoofer is

 { .channels = 4,
+ .map = { SNDRV_CHMAP_FL, SNDRV_CHMAP_FR,
+ SNDRV_CHMAP_NA, SNDRV_CHMAP_LFE } }, /* LFE only on right *

Revision history for this message
In , superquad.vortex2 (superquad.vortex2-linux-kernel-bugs) wrote :

if you can hear high frequency signal from subwoofer, this mean that it don't have any hardware low pass filter, you will need software low pass filter

Changed in alsa-driver (Ubuntu):
status: Expired → Incomplete
Revision history for this message
In , superquad.vortex2 (superquad.vortex2-linux-kernel-bugs) wrote :

after you can confirm the subwoofer node, you need to specify preferred dac pairs for assign DAC to speaker and subwoofer

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

Revision history for this message
In , gaznims (gaznims-linux-kernel-bugs) wrote :

Am I meant to adding this above somehow??

Revision history for this message
In , superquad.vortex2 (superquad.vortex2-linux-kernel-bugs) wrote :

it is because you retask the node as line out jack

Node 0x1a [Pin Complex] wcaps 0x40058f: Stereo Amp-In Amp-Out
  Control: name="PCM Playback Switch", index=0, device=0
    ControlAmp: chs=3, dir=Out, idx=0, ofs=0
  Control: name="Line Out Jack", index=0, device=0
  Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x27, mute=0
  Amp-In vals: [0x00 0x00]
  Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
  Amp-Out vals: [0x00 0x00]
  Pincap 0x0000373c: IN OUT HP Detect
    Vref caps: HIZ 50 GRD 80 100
  Pin Default 0x411111f0: [N/A] Speaker at Ext Rear
    Conn = 1/8, Color = Black
    DefAssociation = 0xf, Sequence = 0x0
    Misc = NO_PRESENCE
  Pin-ctls: 0x40: OUT VREF_HIZ
  Unsolicited: tag=03, enabled=1
  Power states: D0 D1 D2 D3 EPSS
  Power: setting=D0, actual=D0
  Connection: 3
     0x0c* 0x0d 0x0e

Revision history for this message
In , superquad.vortex2 (superquad.vortex2-linux-kernel-bugs) wrote :

/sys/class/sound/hwC0D0/init_pin_configs:
0x12 0x99a30140
0x14 0x90170110
0x15 0x0321101f
0x16 0x03211020
0x18 0x40030008
0x19 0x03a11030
0x1a 0x411111f0
0x1b 0x411111f0
0x1d 0x41000001
0x1e 0x411111f0
0x1f 0x411111f0

/sys/class/sound/hwC0D0/driver_pin_configs:

/sys/class/sound/hwC0D0/user_pin_configs:
0x12 0x99a30140
0x14 0x90170110
0x15 0x0321101f
0x16 0x03211020
0x18 0x40030008
0x19 0x03a11030
0x1a 0x01014411
0x1b 0x411111f0
0x1d 0x41000001
0x1e 0x411111f0
0x1f 0x411111f0

you need to change the subwoofer node to 0x90170111

Revision history for this message
In , superquad.vortex2 (superquad.vortex2-linux-kernel-bugs) wrote :

(In reply to Gary from comment #26)
> (In reply to Raymond from comment #19)
> > use advanced override mode to change the pin default of node 0x1a
> >
> > and disable node 0x16 change [Jack] to [N/A] in order to assign DAC and
> > volume control to subwoofer
> >
> >
> > you need to set as boot default instead of dynamic reconfiguration
> >
> > speaker-test -Dhw:0,0 -c4 -t wav
> >
> >
> > to find out the subwoofer use left, right or both of rear channels
>
>
>
> I dont understand this Please explain ?
>
> use advanced override mode to change the pin default of node 0x1a
>
> With 0x16 put as not connected
> it wont allow me to do the sound test see below
>
> # speaker-test -Dhw:0,0 -c4 -t wav
>
> speaker-test 1.0.27.2
>
> Playback device is hw:0,0
> Stream parameters are 48000Hz, S16_LE, 4 channels
> WAV file(s)
> Channels count (4) not available for playbacks: Invalid argument
> Setting of hwparams failed: Invalid argument
>
> But I disconnected 0x15 and both left and right rear was coming out of the
> center Sub

you have to the output of alsa-info.sh after your retask

four chanels only available when

you have two speaker with same default assoc but different sequence after you disable node 0x16

or

two headphone jacks

change the node 0x1a to line out create pcm playback switch means your are not using latest alsa driver

Revision history for this message
In , gaznims (gaznims-linux-kernel-bugs) wrote :

With 0x16 disabled it wont do the test
There is only 1 device in sound "speakers built in Audio"

Revision history for this message
In , gaznims (gaznims-linux-kernel-bugs) wrote :

Created attachment 188291
0x16 disabled

Revision history for this message
In , gaznims (gaznims-linux-kernel-bugs) wrote :

Ok with 0x1a disabled
and in sound control on "Speaker Built in Audio" doing a sound Surround 4.0 test test only the Rears have sound and they both come from the Center Speaker

Revision history for this message
In , gaznims (gaznims-linux-kernel-bugs) wrote :

Created attachment 188301
0x1a disabled

Revision history for this message
In , superquad.vortex2 (superquad.vortex2-linux-kernel-bugs) wrote :

none of your alsa info change node 0x1a to subwoofer

try set as boot default in hdajack retask

this will generate

/lib/firmware/hda-jack-retask.fw

and reboot

post the output of alsa-info.sh

Revision history for this message
In , gaznims (gaznims-linux-kernel-bugs) wrote :

That was after Boot override hda-jack-retask.fw attached that last alsa-info-sh was after reboot on boot over ride as it wouldnt let me doing otherwise it was saying sound was busy and wouldnt let me aply the setting
So thats why I did the Boot override

Revision history for this message
In , gaznims (gaznims-linux-kernel-bugs) wrote :

Created attachment 188311
HDA-JACK RETASK

Revision history for this message
In , superquad.vortex2 (superquad.vortex2-linux-kernel-bugs) wrote :

http://git.alsa-project.org/?p=alsa-tools.git;a=blob;f=hdajackretask/sysfs-pin-configs.c;hb=HEAD

the program hardcode defaultassoc to 5

you need to change the speaker too

1 static typical_pins_t simple_typical_pins[] = {

 609 {"Internal speaker", lineout_caps, 0x90170150, DEFAULT_MASK | AC_DEFCFG_SEQUENCE, },
 610 {"Internal speaker (LFE)", lineout_caps, 0x90170151, DEFAULT_MASK | AC_DEFCFG_SEQUENCE, },
 611 {"Internal speaker (Back)", lineout_caps, 0x90170152, DEFAULT_MASK | AC_DEFCFG_SEQUENCE, },

Revision history for this message
In , gaznims (gaznims-linux-kernel-bugs) wrote :

OK how do I do this

Revision history for this message
In , superquad.vortex2 (superquad.vortex2-linux-kernel-bugs) wrote :

[codec]
0x10ec0668 0x102805ab 0

[pincfg]
0x16 0x411111f0
0x1a 0x90170111

Revision history for this message
In , gaznims (gaznims-linux-kernel-bugs) wrote :

Do I change those numbers in the HDA-Jack-Retask.fw file ?

Revision history for this message
In , superquad.vortex2 (superquad.vortex2-linux-kernel-bugs) wrote :

(In reply to Gary from comment #25)
> >
> >
> >
> > you need lfe filter which is available in pulseaudio 7.0
> >
> > http://cgit.freedesktop.org/pulseaudio/pulseaudio/log/?qt=grep&q=lfe+filter
>
> No one has explained how I add this in my computer yet ??

http://colin.guthr.ie/2010/09/compiling-and-running-pulseaudio-from-git/

you can just test the latest git version without installing

Revision history for this message
In , gaznims (gaznims-linux-kernel-bugs) wrote :

How do I test it ?

Revision history for this message
In , gaznims (gaznims-linux-kernel-bugs) wrote :

It doesn't work

gary # -rw-r--r--src/pulsecore/filter/lfe-filter.c
bash: -rw-r--r--src/pulsecore/filter/lfe-filter.c: No such file or directory
gary-Alienware-18 gary #

Revision history for this message
In , gaznims (gaznims-linux-kernel-bugs) wrote :

Reading through the other web page

I found in the commands "pulseaudio -k"
In the past every time is use that command I have to do a re-install
As it locks me out of my computer it wont take my login password
So don't like that one

Revision history for this message
In , superquad.vortex2 (superquad.vortex2-linux-kernel-bugs) wrote :

(In reply to Gary from comment #46)
> Do I change those numbers in the HDA-Jack-Retask.fw file ?

just edit /lib/firmware/hda-jack-retask.fw

or

tick advanced mode checkbox which allow you to choose def assoc, sequence number, location

or

override internal speaker node to force both speakers node use same def assoc

Revision history for this message
In , gaznims (gaznims-linux-kernel-bugs) wrote :

Created attachment 188321
attachment-12953-0.html

I'll be out for a few hours
Gaz
On 25 Sep 2015 8:24 am, <email address hidden> wrote:

> https://bugzilla.kernel.org/show_bug.cgi?id=104901
>
> --- Comment #51 from Raymond <email address hidden> ---
> (In reply to Gary from comment #46)
> > Do I change those numbers in the HDA-Jack-Retask.fw file ?
>
> just edit /lib/firmware/hda-jack-retask.fw
>
> or
>
> tick advanced mode checkbox which allow you to choose def assoc, sequence
> number, location
>
> or
>
> override internal speaker node to force both speakers node use same def
> assoc
>
> --
> You are receiving this mail because:
> You reported the bug.
>

Revision history for this message
In , superquad.vortex2 (superquad.vortex2-linux-kernel-bugs) wrote :

(In reply to Gary from comment #1)
> I should add too
> The sound through Headphones works perfectly

are you sure that both headphone work perfectly

http://cgit.freedesktop.org/pulseaudio/pulseaudio/tree/src/modules/alsa/mixer/paths

there are headphones.conf and headphone2.conf

but you don't have Headphone2 Playback Volume/Switch

control.343 {
  iface MIXER
  name 'Headphone Playback Volume'
  value.0 87
  value.1 87
  comment {
   access 'read write'
   type INTEGER
   count 2
   range '0 - 87'
   dbmin -6525
   dbmax 0
   dbvalue.0 0
   dbvalue.1 0
  }
 }
 control.344 {
  iface MIXER
  name 'Headphone Playback Switch'
  value.0 true
  value.1 true
  comment {
   access 'read write'
   type BOOLEAN
   count 2
  }
 }
 control.345 {
  iface MIXER
  name 'Headphone Playback Volume'
  index 1
  value.0 87
  value.1 87
  comment {
   access 'read write'
   type INTEGER
   count 2
   range '0 - 87'
   dbmin -6525
   dbmax 0
   dbvalue.0 0
   dbvalue.1 0
  }
 }
 control.346 {
  iface MIXER
  name 'Headphone Playback Switch'
  index 1
  value.0 true
  value.1 true
  comment {
   access 'read write'
   type BOOLEAN
   count 2
  }
 }

Revision history for this message
In , gaznims (gaznims-linux-kernel-bugs) wrote :

Created attachment 188331
attachment-14112-0.html

The jack nearest me did have a very quiet squealing you only noticed when
the music stopped
But the middle jack is perfect
On 25 Sep 2015 9:01 am, <email address hidden> wrote:

> https://bugzilla.kernel.org/show_bug.cgi?id=104901
>
> --- Comment #53 from Raymond <email address hidden> ---
> (In reply to Gary from comment #1)
> > I should add too
> > The sound through Headphones works perfectly
>
> are you sure that both headphone work perfectly
>
>
>
>
> http://cgit.freedesktop.org/pulseaudio/pulseaudio/tree/src/modules/alsa/mixer/paths
>
>
> there are headphones.conf and headphone2.conf
>
> but you don't have Headphone2 Playback Volume/Switch
>
>
> control.343 {
> iface MIXER
> name 'Headphone Playback Volume'
> value.0 87
> value.1 87
> comment {
> access 'read write'
> type INTEGER
> count 2
> range '0 - 87'
> dbmin -6525
> dbmax 0
> dbvalue.0 0
> dbvalue.1 0
> }
> }
> control.344 {
> iface MIXER
> name 'Headphone Playback Switch'
> value.0 true
> value.1 true
> comment {
> access 'read write'
> type BOOLEAN
> count 2
> }
> }
> control.345 {
> iface MIXER
> name 'Headphone Playback Volume'
> index 1
> value.0 87
> value.1 87
> comment {
> access 'read write'
> type INTEGER
> count 2
> range '0 - 87'
> dbmin -6525
> dbmax 0
> dbvalue.0 0
> dbvalue.1 0
> }
> }
> control.346 {
> iface MIXER
> name 'Headphone Playback Switch'
> index 1
> value.0 true
> value.1 true
> comment {
> access 'read write'
> type BOOLEAN
> count 2
> }
> }
>
> --
> You are receiving this mail because:
> You reported the bug.
>

Revision history for this message
In , gaznims (gaznims-linux-kernel-bugs) wrote :

Ok I have changed these in the fw file to

[codec]
0x10ec0668 0x102805ab 0

[pincfg]
0x16 0x411111f0
0x1a 0x90170111

Should I disable the HDA-Jack-Retask on boot over-ride

Revision history for this message
In , gaznims (gaznims-linux-kernel-bugs) wrote :

Ok I disabled HDA-Jack-Retask boot Override

and rebooted

Sound is very quiet and only coming out of the Sub
Will this work at all without the lfe filter installed?

there is no 4.1 surround in sound settings

Ok that didnt work
I configured the fw file and put it back in /lib/firmware/

Rebooting

Revision history for this message
In , gaznims (gaznims-linux-kernel-bugs) wrote :

Ok what I’ve done has changed nothing at all

It did upset my boot which took about 5 minutes just a black screen with a mouse Cursor most that time

Boot up normally takes 15 to 20 seconds

Revision history for this message
In , superquad.vortex2 (superquad.vortex2-linux-kernel-bugs) wrote :

http://git.alsa-project.org/?p=alsa-tools.git;a=blob;f=hdajackretask/apply-changes.c;hb=HEAD

you are using early patching which need the firmware file and

options snd-hda-intel patch=hda-jack-retask.fw

to fix those pin default or add hint

https://git.kernel.org/cgit/linux/kernel/git/tiwai/sound.git/tree/Documentation/sound/alsa/HD-Audio.txt

Revision history for this message
In , superquad.vortex2 (superquad.vortex2-linux-kernel-bugs) wrote :

the objective is to let driver found two speaker node and one headphone so that you have speaker playback volume, bass speaker volume and headphone playback volume for you to determine the subwoofer use which channel (left/right/both)

subwoofer node can be one of the unconnected nodes

sound hdaudioC0D0: autoconfig: line_outs=2 (0x14/subwoofer node/0x0/0x0/0x0) type:speaker
sound hdaudioC0D0: speaker_outs=0 (0x0/0x0/0x0/0x0/0x0)
sound hdaudioC0D0: hp_outs=1 (0x15/0x0/0x0/0x0/0x0)
 sound hdaudioC0D0: mono: mono_out=0x0
sound hdaudioC0D0: inputs:
sound hdaudioC0D0: Mic=0x19
sound hdaudioC0D0: Internal Mic=0x12

Revision history for this message
In , superquad.vortex2 (superquad.vortex2-linux-kernel-bugs) wrote :

Node 0x02 [Audio Output] wcaps 0x41d: Stereo Amp-Out
  Control: name="PCM Playback Volume", index=1, device=0
    ControlAmp: chs=3, dir=Out, idx=0, ofs=0
  Device: name="ALC3661 Analog", type="Audio", device=0
  Amp-Out caps: ofs=0x57, nsteps=0x57, stepsize=0x02, mute=0
  Amp-Out vals: [0x40 0x40]
  Converter: stream=8, channel=0
  PCM:
    rates [0x560]: 44100 48000 96000 192000
    bits [0xe]: 16 20 24
    formats [0x1]: PCM
  Power states: D0 D1 D2 D3 EPSS
  Power: setting=D0, actual=D0
Node 0x03 [Audio Output] wcaps 0x41d: Stereo Amp-Out
  Control: name="Headphone Playback Volume", index=0, device=0
    ControlAmp: chs=3, dir=Out, idx=0, ofs=0
  Amp-Out caps: ofs=0x57, nsteps=0x57, stepsize=0x02, mute=0
  Amp-Out vals: [0x40 0x40]
  Converter: stream=8, channel=0
  PCM:
    rates [0x560]: 44100 48000 96000 192000
    bits [0xe]: 16 20 24
    formats [0x1]: PCM
  Power states: D0 D1 D2 D3 EPSS
  Power: setting=D0, actual=D0
Node 0x04 [Audio Output] wcaps 0x41d: Stereo Amp-Out
  Control: name="Headphone Playback Volume", index=1, device=0
    ControlAmp: chs=3, dir=Out, idx=0, ofs=0
  Amp-Out caps: ofs=0x57, nsteps=0x57, stepsize=0x02, mute=0
  Amp-Out vals: [0x40 0x40]
  Converter: stream=8, channel=0
  PCM:
    rates [0x560]: 44100 48000 96000 192000
    bits [0xe]: 16 20 24
    formats [0x1]: PCM
  Power states: D0 D1 D2 D3 EPSS
  Power: setting=D0, actual=D0

amp out/volume control is at the audio output,

preferred_dac pair is needed when you want the driver to assign THREE DAC to specific pin complex first and the other pin complexes share the volume control

Revision history for this message
In , gaznims (gaznims-linux-kernel-bugs) wrote :

So once we have this worked out
will a patch be sent to Linux so this patching will be in the system when first installed
or will everyone with Alienware 18x have to install this patch manually ?

Revision history for this message
In , superquad.vortex2 (superquad.vortex2-linux-kernel-bugs) wrote :

after you have found

1) subwoofer node and which channel
2) headset mic node
3) confirm that node 0x15 is headset
4) confirm that node 0x16 is headphone

which control return true when you plug your hp into your two hp jacks ?

control.359 {
  iface CARD
  name 'Headphone Jack'
  value false
  comment {
   access read
   type BOOLEAN
   count 1
  }
 }
 control.360 {
  iface CARD
  name 'Headphone Jack'
  index 1
  value false
  comment {
   access read
   type BOOLEAN
   count 1
  }
 }

you will need to recompile the modified alsa driver

Revision history for this message
In , superquad.vortex2 (superquad.vortex2-linux-kernel-bugs) wrote :
Revision history for this message
In , gaznims (gaznims-linux-kernel-bugs) wrote :

(In reply to Raymond from comment #62)
> after you have found
>
> 1) subwoofer node and which channel
> 2) headset mic node
> 3) confirm that node 0x15 is headset
> 4) confirm that node 0x16 is headphone
>
> which control return true when you plug your hp into your two hp jacks ?
>
> control.359 {
> iface CARD
> name 'Headphone Jack'
> value false
> comment {
> access read
> type BOOLEAN
> count 1
> }
> }
> control.360 {
> iface CARD
> name 'Headphone Jack'
> index 1
> value false
> comment {
> access read
> type BOOLEAN
> count 1
> }
> }
>
>
> you will need to recompile the modified alsa driver

Ok with the headphones plugged into headset its a little louder but has a slight squeal

Plugged into headphones "Middle" also works well just a little quieter (Little)

Both work from "Headphones built-in Audio"
Or "Speakers Built-in Audio"
In sound control

Revision history for this message
In , gaznims (gaznims-linux-kernel-bugs) wrote :

(In reply to Raymond from comment #63)
> http://www.freedesktop.org/wiki/Software/PulseAudio/Notes/7.0/

Still don’t know how to install it
  Is there a command I can put in the Terminal ?
or some sort of file to download and install

or can it be installed through the in-built system?

Revision history for this message
In , gaznims (gaznims-linux-kernel-bugs) wrote :

Ok I installed something in Pulseaudio
with this command
git clone git://anongit.freedesktop.org/pulseaudio/pulseaudio

I don’t know if it was version 7 or not
how do I check

Revision history for this message
In , gaznims (gaznims-linux-kernel-bugs) wrote :

Created attachment 188441
Alsa-info-sh after installing Pulseauido 7 maybe

Revision history for this message
In , gaznims (gaznims-linux-kernel-bugs) wrote :

gary-Alienware-18 gary # pulseaudio --version
pulseaudio 4.0
gary-Alienware-18 gary #

Revision history for this message
In , gaznims (gaznims-linux-kernel-bugs) wrote :

gary-Alienware-18 gary # dpkg -l pulseaudio
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-==============-============-============-=================================
ii pulseaudio 1:4.0-0ubunt amd64 PulseAudio sound server
gary-Alienware-18 gary #

Revision history for this message
In , superquad.vortex2 (superquad.vortex2-linux-kernel-bugs) wrote :

do you mean that node 0x1a is not your subwofer ?

there should be a line

options snd-hda-intel patch=xxx.fw

and patch module parameter is not null

!!Modprobe options (Sound related) !!--------------------------------

snd_atiixp_modem: index=-2 snd_intel8x0m: index=-2 snd_via82xx_modem: index=-2 snd_usb_audio: index=-2 snd_usb_caiaq: index=-2 snd_usb_ua101: index=-2 snd_usb_us122l: index=-2 snd_usb_usx2y: index=-2 snd_cmipci: mpu_port=0x330 fm_port=0x388 snd_pcsp: index=-2 snd_usb_audio: index=-2

!!Loaded sound module options !!---------------------------

!!Module: snd_hda_intel align_buffer_size : -1 bdl_pos_adj : 1,32,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1 beep_mode : N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N enable : Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y enable_msi : -1 id : (null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null), (null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null) index : -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1 jackpoll_ms : 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 model : (null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null), (null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null) patch : (null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null), (null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null) position_fix : -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1 power_save : 0 power_save_controller : Y probe_mask : -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1 probe_only : 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 single_cmd : N snoop : Y

Revision history for this message
In , gaznims (gaznims-linux-kernel-bugs) wrote :

I have no idea
the only things I have in place right now are the changes to the hda-jack-retask.fw

I have downloaded the Pulse Audio 7
is there some way to install these files ?

Revision history for this message
In , gaznims (gaznims-linux-kernel-bugs) wrote :
Revision history for this message
In , gaznims (gaznims-linux-kernel-bugs) wrote :
Download full text (14.3 KiB)

I have done this
But don’t know what to do next to make it install

-Alienware-18 pulseaudio-7.0 # ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether UID '0' is supported by ustar format... yes
checking whether GID '0' is supported by ustar format... yes
checking how to create a ustar tar archive... gnutar
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking for stow... no
checking whether make supports nested variables... (cached) yes
checking whether ln -s works... yes
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for gcc option to accept ISO C99... -std=gnu99
checking for g++... no
checking for c++... no
checking for gpp... no
checking for aCC... no
checking for CC... no
checking for cxx... no
checking for cc++... no
checking for cl.exe... no
checking for FCC... no
checking for KCC... no
checking for RCC... no
checking for xlC_r... no
checking for xlC... no
checking whether we are using the GNU C++ compiler... no
checking whether g++ accepts -g... no
checking dependency style of g++... none
checking how to run the C preprocessor... gcc -std=gnu99 -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking whether gcc -std=gnu99 needs -traditional... no
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking for gm4... no
checking for m4... m4
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking whether NLS is requested... yes
checking for intltool >= 0.35.0... 0.50.2 found
checking for intltool-update... /usr/bin/intltool-update
checking for intltool-merge... /usr/bin/intltool-merge
checking for intltool-extract... /usr/bin/intltool-extract
checking for xgettext... /usr/bin/xgettext
checking for msgmerge... /usr/bin/msgmerge
checking for msgfmt... /usr/bin/msgfmt
checking for gmsgfmt... /usr/bin/msgfmt
checking for perl... /usr/bin/perl
checking for perl >= 5.8.1... 5.18.2
chec...

Revision history for this message
In , gaznims (gaznims-linux-kernel-bugs) wrote :

These are the only changes to my system right now
just these settings in my /lib/firmware/hda-jack-retask.fw

[codec]
0x10ec0668 0x102805ab 0

[pincfg]
0x12 0x99a30140
0x14 0x90170110
0x15 0x0321101f
0x16 0x411111f0
0x18 0x40030008
0x19 0x03a11030
0x1a 0x90170111
0x1b 0x411111f0
0x1d 0x41000001
0x1e 0x411111f0
0x1f 0x411111f0

Revision history for this message
In , superquad.vortex2 (superquad.vortex2-linux-kernel-bugs) wrote :

it is meaningless to try pulseaudio 7.0 if you cannot find the subwoofer node

Revision history for this message
In , gaznims (gaznims-linux-kernel-bugs) wrote :

You have to guide me I am not a technician

I am not in the Computer business at all

Revision history for this message
In , superquad.vortex2 (superquad.vortex2-linux-kernel-bugs) wrote :

http://git.alsa-project.org/?p=alsa-tools.git;a=blob;f=hdajackretask/apply-changes.c;hb=HEAD

static const gchar* remove_script =
 244 "#!/bin/sh\n"
 245 "rm /etc/modprobe.d/hda-jack-retask.conf 2>>%s\n"
 246 "rm /lib/firmware/hda-jack-retask.fw 2>>%s\n";
 247
 248 static const gchar* retask_conf =
 249 "# This file was added by the program 'hda-jack-retask'.\n"
 250 "# If you want to revert the changes made by this program, you can simply erase this file and reboot your computer.\n"
 251 "options snd-hda-intel patch=hda-jack-retask.fw,hda-jack-retask.fw,hda-jack-retask.fw,hda-jack-retask.fw\n";
 252
 253 static const gchar* install_script =
 254 "#!/bin/sh\n"
 255 "mv %s/hda-jack-retask.fw /lib/firmware/hda-jack-retask.fw\n 2>>%s\n"
 256 "mv %s/hda-jack-retask.conf /etc/modprobe.d/hda-jack-retask.conf 2>>%s\n";

refer to the source code of hdajackretask

either you remove

/etc/modprobe.d/hda-jack-retask.conf

or your distibution not use hda-jack-retask.conf to change the sound card module paramter

Revision history for this message
In , gaznims (gaznims-linux-kernel-bugs) wrote :

I have tried to install with this command but it just doesnt work

 Installation of PulseAudio

Install PulseAudio by running the following commands:

./configure --prefix=/usr \
            --sysconfdir=/etc \
            --localstatedir=/var \
            --disable-bluez4 \
            --disable-rpath &&
make

To test the results, issue: make check.

Now, as the root user:

make install

http://www.linuxfromscratch.org/blfs/view/svn/multimedia/pulseaudio.html

Revision history for this message
In , gaznims (gaznims-linux-kernel-bugs) wrote :

so you want me to remove this file ? /etc/modprobe.d/hda-jack-retask.conf

is that correct?

Revision history for this message
In , gaznims (gaznims-linux-kernel-bugs) wrote :

There is no hda-jack-retask.conf file in /etc/modprobe.d/

Revision history for this message
In , gaznims (gaznims-linux-kernel-bugs) wrote :

Created attachment 188451
/etc/modprobe.d

Revision history for this message
In , superquad.vortex2 (superquad.vortex2-linux-kernel-bugs) wrote :

you need to add this line to /etx/modprobe.d/alsa-base.conf and reboot

as you only has one HDA controller and HDA codec need to load the patch

options snd-hda-intel patch=hda-jack-retask.fw

Revision history for this message
In , superquad.vortex2 (superquad.vortex2-linux-kernel-bugs) wrote :

thr driver assume headset use the first hp_pins

 hp_pin = spec->gen.autocfg.hp_pins[0];

you must verify that the jack with headset icon is node 0x15

which headphone playback volume affect that jack,

index=0 or index=1

static void alc_update_headset_mode(struct hda_codec *codec)
+{
+ struct alc_spec *spec = codec->spec;
+
+ hda_nid_t mux_pin = spec->gen.imux_pins[spec->gen.cur_mux[0]];
+ hda_nid_t hp_pin = spec->gen.autocfg.hp_pins[0];
+
+ int new_headset_mode;
+
+ if (!snd_hda_jack_detect(codec, hp_pin))
+ new_headset_mode = ALC_HEADSET_MODE_UNPLUGGED;
+ else if (mux_pin == spec->headset_mic_pin)
+ new_headset_mode = ALC_HEADSET_MODE_HEADSET;
+ else if (mux_pin == spec->headphone_mic_pin)
+ new_headset_mode = ALC_HEADSET_MODE_MIC;
+ else
+ new_headset_mode = ALC_HEADSET_MODE_HEADPHONE;
+
+ if (new_headset_mode == spec->current_headset_mode)
+ return;
+
+ switch (new_headset_mode) {
+ case ALC_HEADSET_MODE_UNPLUGGED:
+ alc_headset_mode_unplugged(codec);
+ spec->gen.hp_jack_present = false;
+ break;
+ case ALC_HEADSET_MODE_HEADSET:
+ if (spec->current_headset_type == ALC_HEADSET_TYPE_UNKNOWN)
+ alc_determine_headset_type(codec);
+ if (spec->current_headset_type == ALC_HEADSET_TYPE_CTIA)
+ alc_headset_mode_ctia(codec);
+ else if (spec->current_headset_type == ALC_HEADSET_TYPE_OMTP)
+ alc_headset_mode_omtp(codec);
+ spec->gen.hp_jack_present = true;
+ break;
+ case ALC_HEADSET_MODE_MIC:
+ alc_headset_mode_mic_in(codec, hp_pin, spec->headphone_mic_pin);
+ spec->gen.hp_jack_present = false;
+ break;
+ case ALC_HEADSET_MODE_HEADPHONE:
+ alc_headset_mode_default(codec);
+ spec->gen.hp_jack_present = true;
+ break;
+ }

Revision history for this message
In , gaznims (gaznims-linux-kernel-bugs) wrote :

I thought I might do are-install as it looks like to me something has become corrupted
Do you think I should yes or no

Revision history for this message
In , gaznims (gaznims-linux-kernel-bugs) wrote :

Created attachment 188501
After Modprobd retask added

you need to add this line to /etx/modprobe.d/alsa-base.conf and reboot

as you only has one HDA controller and HDA codec need to load the patch

options snd-hda-intel patch=hda-jack-retask.fw

Revision history for this message
In , gaznims (gaznims-linux-kernel-bugs) wrote :

Created attachment 188511
Headphones plugged into head "set jack"

Revision history for this message
In , gaznims (gaznims-linux-kernel-bugs) wrote :

Created attachment 188521
after reboot

Revision history for this message
In , gaznims (gaznims-linux-kernel-bugs) wrote :

Created attachment 188531
with headphones plugged into head set jack

Revision history for this message
In , gaznims (gaznims-linux-kernel-bugs) wrote :

I have not done a Re-install yet
But no problem if I have to as it only takes 20 minutes

Revision history for this message
In , gaznims (gaznims-linux-kernel-bugs) wrote :

Sound quality is much better though the speakers now too

But doesn't sound like Stereo

But much clearer and not muffled

Revision history for this message
In , superquad.vortex2 (superquad.vortex2-linux-kernel-bugs) wrote :

(In reply to Gary from comment #88)
> Created attachment 188531 [details]
> with headphones plugged into head set jack

this confirm node 0x15 is the headset jack

do you hear any sound from subwoofer ?

speaker-test -Dhw:0,0 -c4 -t wav

do left or right channel volume slider affect the subwoofer ?

control.3 {
 iface MIXER
name 'Bass Speaker Playback Volume'
value.0 87
value.1 87
comment {

} } control.4 {
 iface MIXER
name 'Bass Speaker Playback Switch'
value.0 true
value.1 true
comment {

} }

Revision history for this message
In , gaznims (gaznims-linux-kernel-bugs) wrote :

Front left speaker yes working

front right speaker yes working

Rear left and right both come through the center Sub

What command do I do to stop the sound test ??

Revision history for this message
In , gaznims (gaznims-linux-kernel-bugs) wrote :

(In reply to Raymond from comment #91)
> (In reply to Gary from comment #88)
> > Created attachment 188531 [details]
> > with headphones plugged into head set jack
>
> this confirm node 0x15 is the headset jack
>
>
> do you hear any sound from subwoofer ?
>
> speaker-test -Dhw:0,0 -c4 -t wav
>
>
> do left or right channel volume slider affect the subwoofer ?
>
> control.3 {
> iface MIXER
> name 'Bass Speaker Playback Volume'
> value.0 87
> value.1 87
> comment {
>
> } } control.4 {
> iface MIXER
> name 'Bass Speaker Playback Switch'
> value.0 true
> value.1 true
> comment {
>
> } }

The Sub-woofer is still greyed out not usable

Revision history for this message
In , gaznims (gaznims-linux-kernel-bugs) wrote :

Oops I didn't see the 5.1 in their yes the slider does work
But cannot do the sound test it seems

Doing restart and will do retest

Revision history for this message
In , gaznims (gaznims-linux-kernel-bugs) wrote :

the Slider does work but doesn't seem to change anything

It shows HDMI in sound devices

How do you stop the sound test ?

Ill be out for the next few hours now

Revision history for this message
In , gaznims (gaznims-linux-kernel-bugs) wrote :

I should HDMI only show while doing the sound test

Revision history for this message
In , superquad.vortex2 (superquad.vortex2-linux-kernel-bugs) wrote :

https://git.kernel.org/cgit/linux/kernel/git/tiwai/sound.git/tree/sound/pci/hda/patch_realtek.c

you need to modified patch_realtek.c by adding a new model for your alienware 18

+static void alc668_fixup_dell_alienware(struct hda_codec *codec,
+ const struct hda_fixup *fix, int action)
+{
+ const struct hda_pintbl pincfgs[] = {
+ { 0x1a, 0x99130112 }, /* subwoofer */
+ { 0x1b, 0x03a1113c }, /* headset mic */
+ { }
+ };
+ static hda_nid_t preferred_pair[] = {
+ 0x14, 0x03,
+ 0x1a, 0x04,
+ 0x15, 0x02,
+ 0x16, 0x02,
+ 0
+ };
+ struct alc_spec *spec = codec->spec;
+
+ switch (action) {
+ case HDA_FIXUP_ACT_PRE_PROBE:
+ snd_hda_apply_pincfgs(codec, pincfgs);
+ spec->gen.preferred_dacs = preferred_pair;
+ break;
+ }
+}
+

  ALC662_FIXUP_DELL_MIC_NO_PRESENCE,
  ALC668_FIXUP_DELL_MIC_NO_PRESENCE,
+ ALC668_FIXUP_DELL_ALIENWARE,
  ALC662_FIXUP_HEADSET_MODE,

+ [ALC668_FIXUP_DELL_ALIENWARE] = {
+ .type = HDA_FIXUP_FUNC,
+ .v.func = alc668_fixup_dell_alienware,
+ .chained = true,
+ .chain_id = ALC668_FIXUP_HEADSET_MODE
+ },
  [ALC668_FIXUP_HEADSET_MODE] = {
   .type = HDA_FIXUP_FUNC,
   .v.func = alc_fixup_headset_mode_alc668,
  },

+ SND_PCI_QUIRK(0x1028, 0x05ab, "Dell Alienware 18", ALC668_FIXUP_DELL_ALIENWARE),
  SND_PCI_QUIRK(0x1028, 0x069f, "Dell", ALC668_FIXUP_DELL_MIC_NO_PRESENCE),

Revision history for this message
In , gaznims (gaznims-linux-kernel-bugs) wrote :

And how do I go about that?

Revision history for this message
In , gaznims (gaznims-linux-kernel-bugs) wrote :

I do not have this file on my system patch_realtek.c ?

Revision history for this message
In , gaznims (gaznims-linux-kernel-bugs) wrote :

I have searched for this path manually and automatically

/root/sound/pci/hda/patch_realtek.c

This file does not exist

I have searched for the file "sound" doesn't exist

I have searched for this path "/sound/pci/hda" it doesn't exist

Revision history for this message
In , gaznims (gaznims-linux-kernel-bugs) wrote :

I did find this /usr/src/linux-headers-3.16.0-38/sound/pci/hda

Do you want me to make a file and place it in this directory???????????

With all this information in it

Is that what you want me to do??????/

+static void alc668_fixup_dell_alienware(struct hda_codec *codec,
+ const struct hda_fixup *fix, int action)
+{
+ const struct hda_pintbl pincfgs[] = {
+ { 0x1a, 0x99130112 }, /* subwoofer */
+ { 0x1b, 0x03a1113c }, /* headset mic */
+ { }
+ };
+ static hda_nid_t preferred_pair[] = {
+ 0x14, 0x03,
+ 0x1a, 0x04,
+ 0x15, 0x02,
+ 0x16, 0x02,
+ 0
+ };
+ struct alc_spec *spec = codec->spec;
+
+ switch (action) {
+ case HDA_FIXUP_ACT_PRE_PROBE:
+ snd_hda_apply_pincfgs(codec, pincfgs);
+ spec->gen.preferred_dacs = preferred_pair;
+ break;
+ }
+}
+

  ALC662_FIXUP_DELL_MIC_NO_PRESENCE,
  ALC668_FIXUP_DELL_MIC_NO_PRESENCE,
+ ALC668_FIXUP_DELL_ALIENWARE,
  ALC662_FIXUP_HEADSET_MODE,

+ [ALC668_FIXUP_DELL_ALIENWARE] = {
+ .type = HDA_FIXUP_FUNC,
+ .v.func = alc668_fixup_dell_alienware,
+ .chained = true,
+ .chain_id = ALC668_FIXUP_HEADSET_MODE
+ },
  [ALC668_FIXUP_HEADSET_MODE] = {
   .type = HDA_FIXUP_FUNC,
   .v.func = alc_fixup_headset_mode_alc668,
  },

+ SND_PCI_QUIRK(0x1028, 0x05ab, "Dell Alienware 18", ALC668_FIXUP_DELL_ALIENWARE),
  SND_PCI_QUIRK(0x1028, 0x069f, "Dell", ALC668_FIXUP_DELL_MIC_NO_PRESENCE),

Revision history for this message
In , gaznims (gaznims-linux-kernel-bugs) wrote :

Ok that's what I've done and I changed the codec to alc3661

Revision history for this message
In , gaznims (gaznims-linux-kernel-bugs) wrote :

Created attachment 188571
After Patch installed

Revision history for this message
In , gaznims (gaznims-linux-kernel-bugs) wrote :

Created attachment 188581
Sound Devices

Bass speaker shows up in alsamixer but no change in the sound devices
Will test sound in the morning

┌──────────────────────────── AlsaMixer v1.0.27.2 ─────────────────────────────┐
│ Card: HDA Intel PCH F1: Help │
│ Chip: Realtek ALC3661 F2: System information │
│ View: F3:[Playback] F4: Capture F5: All F6: Select sound card │
│ Item: Master [dB gain: -11.25] Esc: Exit │
│ │
│ ┌──┐ ┌──┐ ┌──┐ ┌──┐ ┌──┐ ┌──┐ ┌──┐ │
│ │ │ │▒▒│ │▒▒│ │▒▒│ │▒▒│ │ │ │ │ │
│ │ │ │▒▒│ │▒▒│ │▒▒│ │▒▒│ │ │ │ │ │
│ │ │ │▒▒│ │▒▒│ │▒▒│ │▒▒│ │ │ │ │ │
│ │ │ │▒▒│ │▒▒│ │▒▒│ │▒▒│ │ │ │ │ │
│ │▒▒│ │▒▒│ │▒▒│ │▒▒│ │▒▒│ │ │ │ │ │
│ │▒▒│ │▒▒│ │▒▒│ │▒▒│ │▒▒│ │ │ │ │ │
│ │▒▒│ │▒▒│ │▒▒│ │▒▒│ │▒▒│ │ │ │ │ │
│ │▒▒│ │▒▒│ │▒▒│ │▒▒│ │▒▒│ │ │ │ │ │
│ │▒▒│ │▒▒│ │▒▒│ │▒▒│ │▒▒│ │ │ │ │ │
│ │▒▒│ │▒▒│ │▒▒│ │▒▒│ │▒▒│ │ │ │ │ │
│ │▒▒│ │▒▒│ │▒▒│ │▒▒│ │▒▒│ │ │ │ │ │
│ ├──┤ ├──┤ ├──┤ ├──┤ └──┘ ├──┤ └──┘ Enabled │
│ │OO│ │OO│ │OO│ │OO│ │MM│ │
│ └──┘ └──┘ └──┘ └──┘ └──┘ │
│ 62 100<>100 100<>100 100<>100 100<>100 0<>0 0<>0 │
│ < Master >Headphon Speaker Bass Spe PCM Mic Mic Boos Auto-Mut │
└──────────────────────────────────────────────────────────────────────────────

Revision history for this message
In , superquad.vortex2 (superquad.vortex2-linux-kernel-bugs) wrote :

the only way to test the headset mic is modify patch_realtek.c

the driver's pin fixup will add the missing pin and you don't need those user pin fixup anymore by remove patch=*.fw in alsa-base.conf

the driver disable auto mic selection when there is internal mic, headset mic and external mic after you add the headset mic pin

 mux pin (capture source control) in alsamixer determine the role of the combo jack is a headset or headphone

the current logic still not handle the external mic correctly and default to headphone

if (!snd_hda_jack_detect(codec, hp_pin))
  new_headset_mode = ALC_HEADSET_MODE_UNPLUGGED;
else if (mux_pin == spec->headset_mic_pin)
  new_headset_mode = ALC_HEADSET_MODE_HEADSET;
else if (mux_pin == spec->headphone_mic_pin)
 new_headset_mode = ALC_HEADSET_MODE_MIC;
 else
 new_headset_mode = ALC_HEADSET_MODE_HEADPHONE;

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

/sys/class/sound/hwC0D0/init_pin_configs:
0x12 0x99a30140
0x14 0x90170110
0x15 0x0321101f
0x16 0x03211020
0x18 0x40030008
0x19 0x03a11030
0x1a 0x411111f0
0x1b 0x411111f0
0x1d 0x41000001
0x1e 0x411111f0
0x1f 0x411111f0

/sys/class/sound/hwC0D0/driver_pin_configs:

/sys/class/sound/hwC0D0/user_pin_configs:
 0x12 0x99a30140
0x14 0x90170110
0x15 0x0321101f
0x16 0x411111f0
0x18 0x40030008
 0x19 0x03a11030
0x1a 0x90170111
 0x1b 0x411111f0
 0x1d 0x41000001
0x1e 0x411111f0
0x1f 0x411111f0

Revision history for this message
In , superquad.vortex2 (superquad.vortex2-linux-kernel-bugs) wrote :

static hda_nid_t preferred_pair[] = {
 0x14, 0x03,
  0x1a, 0x04,
 0x15, 0x02,
  0x16, 0x02,
 0
}

the preferred_pair force the driver to assign DAC to specific pin complex

if you want spearate volume control for speaker and subwoofer, the two hp pins have to share DAC

Revision history for this message
In , superquad.vortex2 (superquad.vortex2-linux-kernel-bugs) wrote :

you can add another model to support surround51

[ALC668_FIXUP_ALIENWARE_SURROUND51] = {
  .type = HDA_FIXUP_PINS,
  .v.pins = (const struct hda_pintbl[]) {
   { 0x14, 0x02011010 }, /* Front Line Out */
   { 0x15, 0x02011011 }, /* Rear Line Out */
   { 0x19, 0x02011012 }, /* Center / LFE */
   { 0x1a, 0x90170111 }, /* subwoofer */
   { }
  },
 },

static const struct hda_model_fixup alc662_fixup_models[] = {
 {.id = ALC272_FIXUP_MARIO, .name = "mario"},
 {.id = ALC662_FIXUP_ASUS_MODE1, .name = "asus-mode1"},
 {.id = ALC662_FIXUP_ASUS_MODE2, .name = "asus-mode2"},
 {.id = ALC662_FIXUP_ASUS_MODE3, .name = "asus-mode3"},
 {.id = ALC662_FIXUP_ASUS_MODE4, .name = "asus-mode4"},
 {.id = ALC662_FIXUP_ASUS_MODE5, .name = "asus-mode5"},
 {.id = ALC662_FIXUP_ASUS_MODE6, .name = "asus-mode6"},
 {.id = ALC662_FIXUP_ASUS_MODE7, .name = "asus-mode7"},
 {.id = ALC662_FIXUP_ASUS_MODE8, .name = "asus-mode8"},
 {.id = ALC662_FIXUP_INV_DMIC, .name = "inv-dmic"},
 {.id = ALC668_FIXUP_DELL_MIC_NO_PRESENCE, .name = "dell-headset-multi"},
+ {.id = ALC668_FIXUP_DELL_ALIENWARE, .name = "alienware-headset-hp-mic"},
+ {.id = ALC668_FIXUP_DELL_ALIENWARE_SURROUND51, .name = "alienware-surround51"},
 {}
};

user need to specify model to change the usage of the three audio jacks by specify model

options snd-hda-intel model=alienware-headset-hp-mic

options snd-hda-intel model=alienware-surround51

Revision history for this message
In , superquad.vortex2 (superquad.vortex2-linux-kernel-bugs) wrote :

(In reply to Gary from comment #90)
> Sound quality is much better though the speakers now too
>
> But doesn't sound like Stereo
>
> But much clearer and not muffled

do you mean the unclear sound is caused by two headphone jacks since the state of speakers is determined by the states of two headphone jacks ?

check the pulseaudio verbose log whether pulseaudio mute/unmute the speaker rapidly when it found one headphone jack is plugged but another headphone is not plugged

Revision history for this message
In , superquad.vortex2 (superquad.vortex2-linux-kernel-bugs) wrote :

if you don't know how to install pulseaudio, you have to wait until ubuntu 15.10 is releassed

Revision history for this message
In , gaznims (gaznims-linux-kernel-bugs) wrote :

pulseaudio 7.0

I go ./configure

I does its thing

then go "make"
stops
then "make install" does nothing

So something is wrong I thought a re-install might sort it out

Revision history for this message
In , gaznims (gaznims-linux-kernel-bugs) wrote :

(In reply to Raymond from comment #108)
> (In reply to Gary from comment #90)
> > Sound quality is much better though the speakers now too
> >
> > But doesn't sound like Stereo
> >
> > But much clearer and not muffled
>
> do you mean the unclear sound is caused by two headphone jacks since the
> state of speakers is determined by the states of two headphone jacks ?
>
> check the pulseaudio verbose log whether pulseaudio mute/unmute the speaker
> rapidly when it found one headphone jack is plugged but another headphone is
> not plugged

I just mean in general the sound is much better

Revision history for this message
In , gaznims (gaznims-linux-kernel-bugs) wrote :

(In reply to Raymond from comment #105)
> the only way to test the headset mic is modify patch_realtek.c
>
> the driver's pin fixup will add the missing pin and you don't need those
> user pin fixup anymore by remove patch=*.fw in alsa-base.conf
>
>
>
>
> the driver disable auto mic selection when there is internal mic, headset
> mic and external mic after you add the headset mic pin
>
>
> mux pin (capture source control) in alsamixer determine the role of the
> combo jack is a headset or headphone
>
> the current logic still not handle the external mic correctly and default to
> headphone
>
>
> if (!snd_hda_jack_detect(codec, hp_pin))
> new_headset_mode = ALC_HEADSET_MODE_UNPLUGGED;
> else if (mux_pin == spec->headset_mic_pin)
> new_headset_mode = ALC_HEADSET_MODE_HEADSET;
> else if (mux_pin == spec->headphone_mic_pin)
> new_headset_mode = ALC_HEADSET_MODE_MIC;
> else
> new_headset_mode = ALC_HEADSET_MODE_HEADPHONE;
>
>
>
> Sysfs Files !!-----------
>
> /sys/class/sound/hwC0D0/init_pin_configs:
> 0x12 0x99a30140
> 0x14 0x90170110
> 0x15 0x0321101f
> 0x16 0x03211020
> 0x18 0x40030008
> 0x19 0x03a11030
> 0x1a 0x411111f0
> 0x1b 0x411111f0
> 0x1d 0x41000001
> 0x1e 0x411111f0
> 0x1f 0x411111f0
>
> /sys/class/sound/hwC0D0/driver_pin_configs:
>
> /sys/class/sound/hwC0D0/user_pin_configs:
> 0x12 0x99a30140
> 0x14 0x90170110
> 0x15 0x0321101f
> 0x16 0x411111f0
> 0x18 0x40030008
> 0x19 0x03a11030
> 0x1a 0x90170111
> 0x1b 0x411111f0
> 0x1d 0x41000001
> 0x1e 0x411111f0
> 0x1f 0x411111f0

The only jack working now is the Headset jack the other 2 do nothing at all but that’s ok

Revision history for this message
In , gaznims (gaznims-linux-kernel-bugs) wrote :

(In reply to Raymond from comment #107)
> you can add another model to support surround51
>
> [ALC668_FIXUP_ALIENWARE_SURROUND51] = {
> .type = HDA_FIXUP_PINS,
> .v.pins = (const struct hda_pintbl[]) {
> { 0x14, 0x02011010 }, /* Front Line Out */
> { 0x15, 0x02011011 }, /* Rear Line Out */
> { 0x19, 0x02011012 }, /* Center / LFE */
> { 0x1a, 0x90170111 }, /* subwoofer */
> { }
> },
> },
>
>
>
> static const struct hda_model_fixup alc662_fixup_models[] = {
> {.id = ALC272_FIXUP_MARIO, .name = "mario"},
> {.id = ALC662_FIXUP_ASUS_MODE1, .name = "asus-mode1"},
> {.id = ALC662_FIXUP_ASUS_MODE2, .name = "asus-mode2"},
> {.id = ALC662_FIXUP_ASUS_MODE3, .name = "asus-mode3"},
> {.id = ALC662_FIXUP_ASUS_MODE4, .name = "asus-mode4"},
> {.id = ALC662_FIXUP_ASUS_MODE5, .name = "asus-mode5"},
> {.id = ALC662_FIXUP_ASUS_MODE6, .name = "asus-mode6"},
> {.id = ALC662_FIXUP_ASUS_MODE7, .name = "asus-mode7"},
> {.id = ALC662_FIXUP_ASUS_MODE8, .name = "asus-mode8"},
> {.id = ALC662_FIXUP_INV_DMIC, .name = "inv-dmic"},
> {.id = ALC668_FIXUP_DELL_MIC_NO_PRESENCE, .name =
> "dell-headset-multi"},
> + {.id = ALC668_FIXUP_DELL_ALIENWARE, .name =
> "alienware-headset-hp-mic"},
> + {.id = ALC668_FIXUP_DELL_ALIENWARE_SURROUND51, .name =
> "alienware-surround51"},
> {}
> };
>
>
> user need to specify model to change the usage of the three audio jacks by
> specify model
>
> options snd-hda-intel model=alienware-headset-hp-mic
>
> options snd-hda-intel model=alienware-surround51

So where do I add these and do I change the codec to alc3661
and name from Asus to alienware

Revision history for this message
In , superquad.vortex2 (superquad.vortex2-linux-kernel-bugs) wrote :

(In reply to Gary from comment #104)
> Created attachment 188581 [details]
> Sound Devices

with pulseaudio 7.0, you need to select surround2.1 profile which have two sliders volume and bass

 pulseaudio automatically change back to stereo when you plug the headphone

however when pulseaudio does not switch back to 2.1 profile after you unplugg the headphone

if your subwoofer use both rear left and rear left when speaker-test use -c4

you should also hear sound from subwoofer when speaker-test -c2 since snd-hda-intel copy front to all unused surround channel

that is the reason why you can hear signal from your two headphone jacks

Revision history for this message
In , gaznims (gaznims-linux-kernel-bugs) wrote :

yes but one Jack is for headphones and one for headset

So do you know why Pulseaudio 7.0 is not installing ?

Revision history for this message
In , gaznims (gaznims-linux-kernel-bugs) wrote :

(In reply to Gary from comment #115)
> yes but one Jack is for headphones and one for headset
>
> So do you know why Pulseaudio 7.0 is not installing ?

But I should add there is only sound coming from the headset jack now

Revision history for this message
In , gaznims (gaznims-linux-kernel-bugs) wrote :

Created attachment 188641
Bench Mark just for Fun

Revision history for this message
In , superquad.vortex2 (superquad.vortex2-linux-kernel-bugs) wrote :

(In reply to Gary from comment #116)
> (In reply to Gary from comment #115)
> > yes but one Jack is for headphones and one for headset
> >
> > So do you know why Pulseaudio 7.0 is not installing ?
>
> But I should add there is only sound coming from the headset jack now

it is because you disable node 0x16

if you confirm node 0x1a is the subwoofer, you can reenable the headphone

Revision history for this message
In , superquad.vortex2 (superquad.vortex2-linux-kernel-bugs) wrote :

[codec]
0x10ec0668 0x102805ab 0

[pincfg]
0x1a 0x90170111

just add the subwoofer in hdajackretask.fw

to find out the cause of unclear sound is the two headphone jacks

Revision history for this message
In , gaznims (gaznims-linux-kernel-bugs) wrote :

(In reply to Raymond from comment #119)
> [codec]
> 0x10ec0668 0x102805ab 0
>
> [pincfg]
> 0x1a 0x90170111
>
>
> just add the subwoofer in hdajackretask.fw
>
> to find out the cause of unclear sound is the two headphone jacks

These setting are already in hdajackretask.fw

Revision history for this message
In , superquad.vortex2 (superquad.vortex2-linux-kernel-bugs) wrote :

you have to remove

0x16 0x411111f0

from hdajackretask.fw

your kernel 3.16 is released last year august which is quite old

not sure model surround 5.1 work or not since there are three line out nodes and two speaker nodes but there are only three playback volume controls

Revision history for this message
In , gaznims (gaznims-linux-kernel-bugs) wrote :

OK Ill remove 0x16

I have upgraded the Kernel to "Linux Kernel 4.1.7"
on previous times I’ve done re-install
would it be OK to do it again?

Revision history for this message
In , gaznims (gaznims-linux-kernel-bugs) wrote :

OK tested both Jacks are working again now

Headset and Headphone

So where do I put these please ??
and do I change the Codec to alc3661 and name from Asus to Alienware??

> you can add another model to support surround51
>
> [ALC668_FIXUP_ALIENWARE_SURROUND51] = {
> .type = HDA_FIXUP_PINS,
> .v.pins = (const struct hda_pintbl[]) {
> { 0x14, 0x02011010 }, /* Front Line Out */
> { 0x15, 0x02011011 }, /* Rear Line Out */
> { 0x19, 0x02011012 }, /* Center / LFE */
> { 0x1a, 0x90170111 }, /* subwoofer */
> { }
> },
> },
>
>
>
> static const struct hda_model_fixup alc662_fixup_models[] = {
> {.id = ALC272_FIXUP_MARIO, .name = "mario"},
> {.id = ALC662_FIXUP_ASUS_MODE1, .name = "asus-mode1"},
> {.id = ALC662_FIXUP_ASUS_MODE2, .name = "asus-mode2"},
> {.id = ALC662_FIXUP_ASUS_MODE3, .name = "asus-mode3"},
> {.id = ALC662_FIXUP_ASUS_MODE4, .name = "asus-mode4"},
> {.id = ALC662_FIXUP_ASUS_MODE5, .name = "asus-mode5"},
> {.id = ALC662_FIXUP_ASUS_MODE6, .name = "asus-mode6"},
> {.id = ALC662_FIXUP_ASUS_MODE7, .name = "asus-mode7"},
> {.id = ALC662_FIXUP_ASUS_MODE8, .name = "asus-mode8"},
> {.id = ALC662_FIXUP_INV_DMIC, .name = "inv-dmic"},
> {.id = ALC668_FIXUP_DELL_MIC_NO_PRESENCE, .name =
> "dell-headset-multi"},
> + {.id = ALC668_FIXUP_DELL_ALIENWARE, .name =
> "alienware-headset-hp-mic"},
> + {.id = ALC668_FIXUP_DELL_ALIENWARE_SURROUND51, .name =
> "alienware-surround51"},
> {}
> };
>
>
> user need to specify model to change the usage of the three audio jacks by
> specify model
>
> options snd-hda-intel model=alienware-headset-hp-mic
>
> options snd-hda-intel model=alienware-surround51

Revision history for this message
In , gaznims (gaznims-linux-kernel-bugs) wrote :

Created attachment 188671
After 0x16 was taken out of HDAJackRetask

Revision history for this message
In , tiwai (tiwai-linux-kernel-bugs) wrote :

The code snippet Raymond attached is the patch to the kernel code. That is, you need to learn how to build the latest upstream kernel from the source tree, how to patch it and how to install and use it. In that way, we can confirm that the patch works for the latest upstream code.

If you can't manage it, try to ask someone of your distribution for help. They might be able to build an installable patched kernel package on behalf of you.

Revision history for this message
In , gaznims (gaznims-linux-kernel-bugs) wrote :

I already have a post on the Linux Mite forum asking for help
and haven’t even got one reply yet and that’s been about 3 weeks now roughly

The other problem is I don’t really even know what to ask

Im an underground Hardrock Miner with home tough computer skills and Ive only been playing around with Linux for about a month

If I can get someone to guide me I could maybe do it that’s a Maybe

Revision history for this message
In , gaznims (gaznims-linux-kernel-bugs) wrote :

I have also been asking where I’m going wrong trying to install Pulseaudio 7.0
But never get an answer

You guys have been great
When you ask me to do something I search the net to find out how most times

But with Pulseaudio 7.0 there doesn’t seem to be any answers on the net
and Version 6.0 instruction don’t work on version 7.0 either

Revision history for this message
In , gaznims (gaznims-linux-kernel-bugs) wrote :

Ok guys I’ve asked the question at the Mint Forum link here so fingers crossed

http://forums.linuxmint.com/viewtopic.php?f=49&t=206055

Revision history for this message
In , gaznims (gaznims-linux-kernel-bugs) wrote :

I installed Kernel 4.2.1
rebooted no good was in some sort of recovery mode
so I purged it all is good again

Revision history for this message
In , superquad.vortex2 (superquad.vortex2-linux-kernel-bugs) wrote :

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

those realtek codecs on dell computers have aliases name

as front , surround , center/lfe playback volume controls are needed for surround5.1 , how do the driver name the volume controls when speaker, bass speaker have to shared with the above three line out jack

speaker+LO seem only for HDA codecs with two DAC

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

do pulseaudio still work when there is no headphone jack ?

http://cgit.freedesktop.org/pulseaudio/pulseaudio/tree/src/modules/alsa/mixer/paths

do pulseaudio still mute the speaker path when line out jack is plugged ?

Revision history for this message
In , gaznims (gaznims-linux-kernel-bugs) wrote :

Ok this morning while watching a you-tube Video after restart
the sound was muffled again

So I put 0x16 0x411111f0 back in HDAJackRetask and its all good again

Revision history for this message
In , gaznims (gaznims-linux-kernel-bugs) wrote :

Kernel updated to 4.1.7-040107-generic

Revision history for this message
In , gaznims (gaznims-linux-kernel-bugs) wrote :
Download full text (14.6 KiB)

Tried to install Pulseaudio 7.0 after Kernel upgrade But still will not install
can anyone please point me in the direction that can help me out here

gary-Alienware-18 pulseaudio-7.0 # ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether UID '0' is supported by ustar format... yes
checking whether GID '0' is supported by ustar format... yes
checking how to create a ustar tar archive... gnutar
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking for stow... no
checking whether make supports nested variables... (cached) yes
checking whether ln -s works... yes
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for gcc option to accept ISO C99... -std=gnu99
checking for g++... no
checking for c++... no
checking for gpp... no
checking for aCC... no
checking for CC... no
checking for cxx... no
checking for cc++... no
checking for cl.exe... no
checking for FCC... no
checking for KCC... no
checking for RCC... no
checking for xlC_r... no
checking for xlC... no
checking whether we are using the GNU C++ compiler... no
checking whether g++ accepts -g... no
checking dependency style of g++... none
checking how to run the C preprocessor... gcc -std=gnu99 -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking whether gcc -std=gnu99 needs -traditional... no
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking for gm4... no
checking for m4... m4
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking whether NLS is requested... yes
checking for intltool >= 0.35.0... 0.50.2 found
checking for intltool-update... /usr/bin/intltool-update
checking for intltool-merge... /usr/bin/intltool-merge
checking for intltool-extract... /usr/bin/intltool-extract
checking for xgettext... /usr/bin/xgettext
checking for msgmerge... /usr/bin/msgmerge
checking for msgfmt... /usr/bin/msgfmt
checking for gmsgfmt... /usr...

Revision history for this message
In , gaznims (gaznims-linux-kernel-bugs) wrote :

Just finished Fresh Install
trying to install Pulseaudio something failed and locked me out of my computer
So new Install it was

Revision history for this message
In , gaznims (gaznims-linux-kernel-bugs) wrote :

Created attachment 188741
Alsa Info after reinstall

Revision history for this message
In , superquad.vortex2 (superquad.vortex2-linux-kernel-bugs) wrote :

0x14 0x02011010
0x15 0x02011011
0x19 0x02011012
0x1a 0x90170111

how about three line out and subwoofer in hdajackretask.fw

the driver create front , surround , center and lfe playback volume

front, surround, center/lfe , speaker and bass speaker switch

there is no way for pulseaudio to know

front playback volume is shared by line out and internal speaker
surround playback volume is shared by lineout and bass speaker

Revision history for this message
In , gaznims (gaznims-linux-kernel-bugs) wrote :

Do you want me to have these 4

0x14 0x02011010
0x15 0x02011011
0x19 0x02011012
0x1a 0x90170111

in hdajackretask.fw

delete all the others ????

Revision history for this message
In , superquad.vortex2 (superquad.vortex2-linux-kernel-bugs) wrote :

you only need to specify the modified pin in hdajackretask.fw since BIOS already initialze the other pins

just want to know the name of those line out jacks kctl

amixer -c0 contents

0x2011010 is Line Out at Ext Front, color = Black, DefAssoc =1 , sequence =0

http://cgit.freedesktop.org/pulseaudio/pulseaudio/patch/src/modules/alsa/mixer/paths/analog-output-lineout.conf?id=c50766b52ad4cdefa51d7186389c1fb777402802

Revision history for this message
In , gaznims (gaznims-linux-kernel-bugs) wrote :

 ~ $ amixer -c0 contents
numid=19,iface=CARD,name='Headphone Jack'
  ; type=BOOLEAN,access=r-------,values=1
  : values=off
numid=16,iface=CARD,name='Internal Mic Phantom Jack'
  ; type=BOOLEAN,access=r-------,values=1
  : values=on
numid=15,iface=CARD,name='Mic Jack'
  ; type=BOOLEAN,access=r-------,values=1
  : values=off
numid=17,iface=CARD,name='Speaker Front Phantom Jack'
  ; type=BOOLEAN,access=r-------,values=1
  : values=on
numid=18,iface=CARD,name='Speaker Surround Phantom Jack'
  ; type=BOOLEAN,access=r-------,values=1
  : values=on
numid=14,iface=MIXER,name='Master Playback Switch'
  ; type=BOOLEAN,access=rw------,values=1
  : values=on
numid=13,iface=MIXER,name='Master Playback Volume'
  ; type=INTEGER,access=rw---R--,values=1,min=0,max=87,step=0
  : values=76
  | dBscale-min=-65.25dB,step=0.75dB,mute=0
numid=6,iface=MIXER,name='Headphone Playback Switch'
  ; type=BOOLEAN,access=rw------,values=2
  : values=on,on
numid=5,iface=MIXER,name='Headphone Playback Volume'
  ; type=INTEGER,access=rw---R--,values=2,min=0,max=87,step=0
  : values=87,87
  | dBscale-min=-65.25dB,step=0.75dB,mute=0
numid=22,iface=MIXER,name='PCM Playback Volume'
  ; type=INTEGER,access=rw---RW-,values=2,min=0,max=255,step=0
  : values=254,254
  | dBscale-min=-51.00dB,step=0.20dB,mute=0
numid=12,iface=MIXER,name='Mic Boost Volume'
  ; type=INTEGER,access=rw---R--,values=2,min=0,max=3,step=0
  : values=0,0
  | dBscale-min=0.00dB,step=10.00dB,mute=0
numid=8,iface=MIXER,name='Mic Playback Switch'
  ; type=BOOLEAN,access=rw------,values=2
  : values=off,off
numid=7,iface=MIXER,name='Mic Playback Volume'
  ; type=INTEGER,access=rw---R--,values=2,min=0,max=31,step=0
  : values=0,0
  | dBscale-min=-34.50dB,step=1.50dB,mute=0
numid=11,iface=MIXER,name='Capture Switch'
  ; type=BOOLEAN,access=rw------,values=2
  : values=on,on
numid=10,iface=MIXER,name='Capture Volume'
  ; type=INTEGER,access=rw---R--,values=2,min=0,max=63,step=0
  : values=38,38
  | dBscale-min=-17.25dB,step=0.75dB,mute=0
numid=9,iface=MIXER,name='Auto-Mute Mode'
  ; type=ENUMERATED,access=rw------,values=1,items=2
  ; Item #0 'Disabled'
  ; Item #1 'Enabled'
  : values=1
numid=4,iface=MIXER,name='Bass Speaker Playback Switch'
  ; type=BOOLEAN,access=rw------,values=2
  : values=on,on
numid=3,iface=MIXER,name='Bass Speaker Playback Volume'
  ; type=INTEGER,access=rw---R--,values=2,min=0,max=87,step=0
  : values=87,87
  | dBscale-min=-65.25dB,step=0.75dB,mute=0
numid=2,iface=MIXER,name='Speaker Playback Switch'
  ; type=BOOLEAN,access=rw------,values=2
  : values=on,on
numid=1,iface=MIXER,name='Speaker Playback Volume'
  ; type=INTEGER,access=rw---R--,values=2,min=0,max=87,step=0
  : values=87,87
  | dBscale-min=-65.25dB,step=0.75dB,mute=0
numid=21,iface=PCM,name='Capture Channel Map'
  ; type=INTEGER,access=r----R--,values=2,min=0,max=36,step=0
  : values=0,0
  | | chmap-fixed=FL,FR

numid=20,iface=PCM,name='Playback Channel Map'
  ; type=INTEGER,access=r----R--,values=4,min=0,max=36,step=0
  : values=0,0,0,0
  | | chmap-fixed=FL,FR

Revision history for this message
In , superquad.vortex2 (superquad.vortex2-linux-kernel-bugs) wrote :

Pin Default 0x0321101f: [Jack] HP Out at Ext Left
    Conn = 1/8, Color = Black
    DefAssociation = 0x1, Sequence = 0xf

if your HPs and Mic are at Ext Left

you need to change those line out at ext left

Revision history for this message
In , gaznims (gaznims-linux-kernel-bugs) wrote :

Created attachment 188901
Sound control

OK I have just done a restart
I have 5.0 5.1 and 4.0 4.1 and stereo
in sound control
and it shows the Sub slider but no sound coming out of the Rears or Sub during sound test

Revision history for this message
In , gaznims (gaznims-linux-kernel-bugs) wrote :

Headphones are back in the center Jack the Headphone Jack
also no sound in Center on 5.1

So it shows 5.1 and 4.1 But sound is only stereo

Revision history for this message
In , gaznims (gaznims-linux-kernel-bugs) wrote :

That's with this configuration

0x14 0x02011010
0x15 0x02011011
0x19 0x02011012
0x1a 0x90170111

Revision history for this message
In , superquad.vortex2 (superquad.vortex2-linux-kernel-bugs) wrote :

0x14 0x03011010
0x15 0x03011011
0x19 0x03011012
0x1a 0x90170111

line out at ext left is 0x03011010

Revision history for this message
In , superquad.vortex2 (superquad.vortex2-linux-kernel-bugs) wrote :

you have to post output of alsa-info.sh

do you have 5.1 speakers ?

the internal subwoofer won't give you sound when you retask the audio jacks to line out since the driver auto those internal speakers when "auto mute" control is enabled

Revision history for this message
In , gaznims (gaznims-linux-kernel-bugs) wrote :

Created attachment 188911
Alsa info

The 5.1 shows in sound but no sound comes out
This is just HDA and not HDMI

Revision history for this message
In , gaznims (gaznims-linux-kernel-bugs) wrote :

───────────────────────────────── AlsaMixer v1.0.27.2 ──────────────────────────────────┐
│ Card: HDA Intel PCH F1: Help │
│ Chip: Realtek ALC3661 F2: System information │
│ View: F3:[Playback] F4: Capture F5: All F6: Select sound card │
│ Item: Master [dB gain: -8.25, -8.25] Esc: Exit │
│ │
│ ┌──┐ ┌──┐ ┌──┐ ┌──┐ ┌──┐ │
│ │ │ │▒▒│ │▒▒│ │▒▒│ │▒▒│ │
│ │ │ │▒▒│ │▒▒│ │▒▒│ │▒▒│ │
│ │ │ │▒▒│ │▒▒│ │▒▒│ │▒▒│ │
│ │ │ │▒▒│ │▒▒│ │▒▒│ │▒▒│ │
│ │▒▒│ │▒▒│ │▒▒│ │▒▒│ │▒▒│ │
│ │▒▒│ │▒▒│ │▒▒│ │▒▒│ │▒▒│ │
│ │▒▒│ │▒▒│ │▒▒│ │▒▒│ │▒▒│ │
│ │▒▒│ │▒▒│ │▒▒│ │▒▒│ │▒▒│ │
│ │▒▒│ │▒▒│ │▒▒│ │▒▒│ │▒▒│ │
│ │▒▒│ │▒▒│ │▒▒│ │▒▒│ │▒▒│ │
│ │▒▒│ │▒▒│ │▒▒│ │▒▒│ │▒▒│ │
│ │▒▒│ │▒▒│ │▒▒│ │▒▒│ │▒▒│ │
│ ├──┤ ┌──┐ ┌──┐ └──┘ ┌──┐ ├──┤ ├──┤ ├──┤ Disabled │
│ │OO│ │OO│ │OO│ │OO│ │OO│ │OO│ │OO│ │
│ └──┘ └──┘ └──┘ └──┘ └──┘ └──┘ └──┘ │
│ 70<>70 99<>99 100<>100 100 100 │
│ < Master >Headphon Speaker PCM Front Surround Center LFE Auto-Mut │

Revision history for this message
In , gaznims (gaznims-linux-kernel-bugs) wrote :

With Headphone plugged in

┌───────────────────────────────── AlsaMixer v1.0.27.2 ──────────────────────────────────┐
│ Card: HDA Intel PCH F1: Help │
│ Chip: Realtek ALC3661 F2: System information │
│ View: F3:[Playback] F4: Capture F5: All F6: Select sound card │
│ Item: Master [dB gain: -11.25, -11.25] Esc: Exit │
│ │
│ ┌──┐ ┌──┐ ┌──┐ ┌──┐ ┌──┐ │
│ │ │ │▒▒│ │ │ │ │ │ │ │
│ │ │ │▒▒│ │ │ │ │ │ │ │
│ │ │ │▒▒│ │ │ │ │ │ │ │
│ │ │ │▒▒│ │ │ │ │ │ │ │
│ │ │ │▒▒│ │ │ │ │ │ │ │
│ │▒▒│ │▒▒│ │ │ │ │ │ │ │
│ │▒▒│ │▒▒│ │ │ │ │ │ │ │
│ │▒▒│ │▒▒│ │ │ │ │ │ │ │
│ │▒▒│ │▒▒│ │ │ │ │ │ │ │
│ │▒▒│ │▒▒│ │ │ │ │ │ │ │
│ │▒▒│ │▒▒│ │ │ │ │ │ │ │
│ │▒▒│ │▒▒│ │ │ │ │ │ │ │
│ ├──┤ ┌──┐ ┌──┐ └──┘ ┌──┐ ├──┤ ├──┤ ├──┤ Disabled │
│ │OO│ │OO│ │MM│ │OO│ │MM│ │MM│ │MM│ │
│ └──┘ └──┘ └──┘ └──┘ └──┘ └──┘ └──┘ │
│ 62<>62 98<>98 0<>0 0 0 │
│ < Master >Headphon Speaker PCM Front Surround Center LFE Auto-Mut │

Revision history for this message
In , superquad.vortex2 (superquad.vortex2-linux-kernel-bugs) wrote :

should be

0x15 0x03011010
0x16 0x03011011
0x19 0x03011012
0x1a 0x90170111

headset to front line out
headphone to surround
mic to center/lfe

Revision history for this message
In , superquad.vortex2 (superquad.vortex2-linux-kernel-bugs) wrote :

do the user manual mention how the audio jacks is used when playing surround 5.1 ?

Revision history for this message
In , gaznims (gaznims-linux-kernel-bugs) wrote :

──────────────────────────── AlsaMixer v1.0.27.2 ─────────────────────────────┐
│ Card: HDA Intel PCH F1: Help │
│ Chip: Realtek ALC3661 F2: System information │
│ View: F3:[Playback] F4: Capture F5: All F6: Select sound card │
│ Item: Master [dB gain: 0.00] Esc: Exit │
│ │
│ ┌──┐ ┌──┐ ┌──┐ ┌──┐ ┌──┐ ┌──┐ │
│ │▒▒│ │▒▒│ │ │ │ │ │▒▒│ │▒▒│ │
│ │▒▒│ │▒▒│ │ │ │ │ │▒▒│ │▒▒│ │
│ │▒▒│ │▒▒│ │ │ │ │ │▒▒│ │▒▒│ →
│ │▒▒│ │▒▒│ │ │ │ │ │▒▒│ │▒▒│ →
│ │▒▒│ │▒▒│ │ │ │ │ │▒▒│ │▒▒│ →
│ │▒▒│ │▒▒│ │▒▒│ │▒▒│ │▒▒│ │▒▒│ →
│ │▒▒│ │▒▒│ │▒▒│ │▒▒│ │▒▒│ │▒▒│ →
│ │▒▒│ │▒▒│ │▒▒│ │▒▒│ │▒▒│ │▒▒│ →
│ │▒▒│ │▒▒│ │▒▒│ │▒▒│ │▒▒│ │▒▒│ →
│ │▒▒│ │▒▒│ │▒▒│ │▒▒│ │▒▒│ │▒▒│ │
│ │▒▒│ │▒▒│ │▒▒│ │▒▒│ │▒▒│ │▒▒│ │
│ ├──┤ ┌──┐ ┌──┐ └──┘ ├──┤ ├──┤ ├──┤ ├──┤ │
│ │OO│ │MM│ │OO│ │OO│ │MM│ │MM│ │MM│ │
│ └──┘ └──┘ └──┘ └──┘ └──┘ └──┘ └──┘ │
│ 100 100<>100 54<>54 52<>52 100 100 │
│ < Master >Speaker Bass Spe PCM Front Surround Center LFE

Revision history for this message
In , gaznims (gaznims-linux-kernel-bugs) wrote :

Created attachment 188951
after change

Ok the 5.1 and 4.1 5-0 4.0 and 2 .0 still show up in sound control
Subwoofer slide is active
But no sound comes out of the Sub
When I plug in the headphones into either headset or headphones jack Sub noise comes out of right side headphone speaker

Revision history for this message
In , gaznims (gaznims-linux-kernel-bugs) wrote :

Created attachment 188961
Alienware 18x r2 users Manual

Revision history for this message
In , gaznims (gaznims-linux-kernel-bugs) wrote :

Created attachment 188971
Alienware 18x r2 Ref Guide

Revision history for this message
In , gaznims (gaznims-linux-kernel-bugs) wrote :

Created attachment 188981
Alienware 18x r2 Setup Guide

Revision history for this message
In , gaznims (gaznims-linux-kernel-bugs) wrote :

The above 3 manuals are the wrong ones sorry
The 3 below are the correct ones for my Model

Revision history for this message
In , gaznims (gaznims-linux-kernel-bugs) wrote :

Created attachment 189001
Ref guide

Revision history for this message
In , gaznims (gaznims-linux-kernel-bugs) wrote :

Created attachment 189011
Seup Guide

Revision history for this message
In , gaznims (gaznims-linux-kernel-bugs) wrote :

Created attachment 189021
Owners Manual

Revision history for this message
In , superquad.vortex2 (superquad.vortex2-linux-kernel-bugs) wrote :

if the specification does not mention that it support surround 5.1

do you have any headset (iphone or nokia) to test the headset jack ?

static void alc_determine_headset_type(struct hda_codec *codec)
+{
+ int val;
+ bool is_ctia = false;
+ struct alc_spec *spec = codec->spec;
+
+ switch (codec->vendor_id) {
+
+ case 0x10ec0668:
+ alc_write_coef_idx(codec, 0x11, 0x0001);
+ alc_write_coef_idx(codec, 0xb7, 0x802b);
+ alc_write_coef_idx(codec, 0x15, 0x0d60);
+ alc_write_coef_idx(codec, 0xc3, 0x0c00);
+ msleep(300);
+ val = alc_read_coef_idx(codec, 0xbe);
+ is_ctia = (val & 0x1c02) == 0x1c02;
+ break;
+ }
+
+ snd_printdd("Headset jack detected iPhone-style headset: %s\n",
+ is_ctia ? "yes" : "no");
+ spec->current_headset_type = is_ctia ? ALC_HEADSET_TYPE_CTIA : ALC_HEADSET_TYPE_OMTP;
+}

Revision history for this message
In , gaznims (gaznims-linux-kernel-bugs) wrote :

There is no output from 5.1 at all

But 4.1 is working fine

Revision history for this message
In , gaznims (gaznims-linux-kernel-bugs) wrote :

My headphones all all in one headset headphones wired bluetooth nfc
Nokia Monster Purity

Revision history for this message
In , gaznims (gaznims-linux-kernel-bugs) wrote :

Ok I tried an Samsung headset
that changes everything
Sound works on all jacks but does shut off main speakers the Mic jack is quieter than the rest
This headset also had a Mic though

Revision history for this message
In , gaznims (gaznims-linux-kernel-bugs) wrote :

when I plugin my headphones now
there auto mute doesn’t seem to work at all

Revision history for this message
In , superquad.vortex2 (superquad.vortex2-linux-kernel-bugs) wrote :

you need to add function just before coef_fw alc668_coefs in patch_realtek.c

static void alc668_fixup_dell_alienware(struct hda_codec *codec,
        const struct hda_fixup *fix, int action)
{
 const struct hda_pintbl pincfgs[] = {
  { 0x1a, 0x90170111 }, /* subwoofer */
  { 0x1b, 0x03a1113c }, /* headset mic */
  { }
 };
static hda_nid_t preferred_pair[] = {
  0x14, 0x03,
     0x1a, 0x04,
  0x15, 0x02,
  0x16, 0x02,
  0
 };
 struct alc_spec *spec = codec->spec;

 switch (action) {
 case HDA_FIXUP_ACT_PRE_PROBE:
  snd_hda_apply_pincfgs(codec, pincfgs);
  spec->gen.preferred_dacs = preferred_pair;
  break;
 }
}

add the following line after ALC668_FIXUP_DELL_XPS13, in enum

 ALC668_FIXUP_DELL_ALIENWARE,

add following to hda_fixup alc662_fixups

[ALC668_FIXUP_DELL_ALIENWARE] = {
  .type = HDA_FIXUP_FUNC,
  .v.func = alc668_fixup_dell_alienware,
  .chained = true,
  .chain_id = ALC668_FIXUP_HEADSET_MODE
 },

add the following pci quirk to snd_pci_quirk alc662_fixup_tbl

  SND_PCI_QUIRK(0x1028, 0x05ab, "Dell Alienware 18", ALC668_FIXUP_DELL_ALIENWARE),

recompile alsa driver

https://git.kernel.org/cgit/linux/kernel/git/tiwai/sound.git/tree/sound/pci/hda/hda_local.h

if you want the driver output debug info to system log about the headset type, need to change

#define codec_dbg(codec, fmt, args...) \
 dev_dbg(hda_codec_dev(codec), fmt, ##args)

to

#define codec_dbg(codec, fmt, args...) \
 dev_info(hda_codec_dev(codec), fmt, ##args)

Revision history for this message
In , gaznims (gaznims-linux-kernel-bugs) wrote :

Ok so where do I add this please??

Revision history for this message
In , superquad.vortex2 (superquad.vortex2-linux-kernel-bugs) wrote :

https://git.kernel.org/cgit/linux/kernel/git/tiwai/sound.git/tree/sound/pci/hda

patch_realtek.c

don't need patch or any model after you recompile alsa driver since the subwoofer pin and headset mic pin will be added by the driver as

/sys/class/sound/hwC0D0/driver_pin_configs:

the driver create capture source control which have three selections

internal mic, headset mic and external mic

those TRS headphone still support when you select internal mic

TRRS headset is supported when you select headset mic

don't plug external mic and headset at the same time when you select external mic as capture source

the driver logic still assume the jack is headphone

Revision history for this message
In , superquad.vortex2 (superquad.vortex2-linux-kernel-bugs) wrote :

i guess you get bad sound because you plug TRRS headset into the headphone jack TRS

Revision history for this message
In , superquad.vortex2 (superquad.vortex2-linux-kernel-bugs) wrote :
Revision history for this message
In , gaznims (gaznims-linux-kernel-bugs) wrote :

So I have no auto mute now should I revert back to

0x14 0x02011010
0x15 0x02011011
0x19 0x02011012
0x1a 0x90170111

Revision history for this message
In , superquad.vortex2 (superquad.vortex2-linux-kernel-bugs) wrote :

if user manual does not mention support surround 5.1 since your headset jack is designed for TRRS heaset which may not support Line out TRS

Revision history for this message
In , superquad.vortex2 (superquad.vortex2-linux-kernel-bugs) wrote :

http://www.alienware.com/landings/laptops.aspx

(2x) Audio Out 1/8" Ports (One compatible with inline mic headset)
 (1x) Line In Microphone 1/8" Port (retaskable for 5.1 analog audio output)

Revision history for this message
In , superquad.vortex2 (superquad.vortex2-linux-kernel-bugs) wrote :

(In reply to Gary from comment #170)
> So I have no auto mute now should I revert back to
>
> 0x14 0x02011010
> 0x15 0x02011011
> 0x19 0x02011012
> 0x1a 0x90170111

it should be 0x03011010 for Line Out at Ext Left

can you post output of alsa-info.sh

since the result of hda-emu seem good

jack 0x15 1 (plug line out)
set pin ctl of node 0x14 and node 0x1a to zero

jack 0x15

Revision history for this message
In , gaznims (gaznims-linux-kernel-bugs) wrote :

Created attachment 189121
Alsa info

Revision history for this message
In , superquad.vortex2 (superquad.vortex2-linux-kernel-bugs) wrote :

you have to remove all model lines unless you modified source code and recompiled alsa ddriver

snd_hda_intel: patch=hda-jack-retask.fw
snd_hda_intel: model=alienware-headset-hp-mic
snd_hda_intel: model=alienware-surround51

Revision history for this message
In , gaznims (gaznims-linux-kernel-bugs) wrote :

Where do I find these to remove them Please?

Revision history for this message
In , gaznims (gaznims-linux-kernel-bugs) wrote :

Found them

Revision history for this message
In , gaznims (gaznims-linux-kernel-bugs) wrote :

Created attachment 189131
Alsa Info after removing 3 files

Revision history for this message
In , superquad.vortex2 (superquad.vortex2-linux-kernel-bugs) wrote :

control.17 {
  iface CARD
  name 'Headphone Front Jack'
  value false
  comment {
   access read
   type BOOLEAN
   count 1
  }
 }
 control.18 {
  iface CARD
  name 'Headphone Surround Jack'
  value false
  comment {
   access read
   type BOOLEAN
   count 1
  }
 }

without subwoofer

the two headphone already support surround40, which only need retask mic jack to output

however when headset jack require capture source to change role of the combo jack

the speaker should still be auto mute by the driver

pinctl of speaker node 0x14 change from OUT to zero when you plug headset or headphome

 Pin Default 0x90170110: [Fixed] Speaker at Int N/A
    Conn = Analog, Color = Unknown
    DefAssociation = 0x1, Sequence = 0x0
    Misc = NO_PRESENCE
  Pin-ctls: 0x40: OUT

it is pulseaudio mute/unmute the speaker playback switch according to state of those[JACK] in pulseaudio conf files

http://cgit.freedesktop.org/pulseaudio/pulseaudio/tree/src/modules/alsa/mixer/paths/analog-output-headphones.conf

http://cgit.freedesktop.org/pulseaudio/pulseaudio/tree/src/modules/alsa/mixer/paths/analog-output-speaker.conf

Revision history for this message
In , superquad.vortex2 (superquad.vortex2-linux-kernel-bugs) wrote :

if you retask node 0x15 , 0x16 and node 0x19 to line out

the driver stillauto mute speaker and subwoofer by set pinctl to zero

pulseaudio will mute /unmute speaker and bass speaker accorrding to those [JACK] in

http://cgit.freedesktop.org/pulseaudio/pulseaudio/tree/src/modules/alsa/mixer/paths/analog-output-lineout.conf

http://cgit.freedesktop.org/pulseaudio/pulseaudio/tree/src/modules/alsa/mixer/paths/analog-output-speaker.conf

Revision history for this message
In , superquad.vortex2 (superquad.vortex2-linux-kernel-bugs) wrote :
Revision history for this message
In , gaznims (gaznims-linux-kernel-bugs) wrote :

So If I install the PPA will it install the latest Pulse Audio 7.0

Revision history for this message
In , gaznims (gaznims-linux-kernel-bugs) wrote :

I haven't done anything since I took these out

d_hda_intel: patch=hda-jack-retask.fw
snd_hda_intel: model=alienware-headset-hp-mic
snd_hda_intel: model=alienware-surround51

Is that correct or should had done something with those codes above

The sound is back to standard apart from no mute for the in the headphone headset jacks

Revision history for this message
In , gaznims (gaznims-linux-kernel-bugs) wrote :

New install again
Is there a way to bypass login when your account has been disabled
or to enable your account during login?
I have searched one guy said from Root "usermod -U username" but it didnt work are there any sites that show what to do
Thanks
Gary

Revision history for this message
In , gaznims (gaznims-linux-kernel-bugs) wrote :

Kernel updated to 4.2.3-040203-generic

Revision history for this message
In , superquad.vortex2 (superquad.vortex2-linux-kernel-bugs) wrote :

you have to learn how to recompile alsa driver in order to test and fix the subwoofer , headset, headphone and surround 5.1 since early patching is limited to pin fixup and cannot change DAC assignment

Revision history for this message
In , gaznims (gaznims-linux-kernel-bugs) wrote :

Ok Raymond
I’m not capable of that
I asked for help on the Linux Mint site
with no response at all

So it looks like we have come to a stalling point

I thank you very much for your help
Gary

Revision history for this message
In , imranmohd72 (imranmohd72-linux-kernel-bugs) wrote :

My bug report can anyone link it to this bug report.

Revision history for this message
In , imranmohd72 (imranmohd72-linux-kernel-bugs) wrote :

(In reply to mohammed imran from comment #188)
> My bug report can anyone link it to this bug report.

https://bugzilla.kernel.org/show_bug.cgi?id=107851

Revision history for this message
Mohd Imran Jamadar (imranmohd72) wrote :

0
down vote
I've been able to get the latest alsa dev working (2016-04-02) by following the instructions here (https://wiki.ubuntu.com/Audio/UpgradingAlsa), installing the "alsa daily development build" and rebooting. If you've followed the instructions in my previous answer, you can simply "remove the boot profile" and reboot. It now correctly identifies the chipset, and the audio speakers and headphones (including jack detection) works sensibly.

Revision history for this message
In , imranmohd72 (imranmohd72-linux-kernel-bugs) wrote :

I've been able to get the latest alsa dev working (2016-04-02) by following the instructions here (https://wiki.ubuntu.com/Audio/UpgradingAlsa), installing the "alsa daily development build" and rebooting. If you've followed the instructions in my previous answer, you can simply "remove the boot profile" and reboot. It now correctly identifies the chipset, and the audio speakers and headphones (including jack detection) works sensibly.

http://askubuntu.com/questions/491301/realtek-alc-3661

Gary try the solution here should work, i hope. sound is better for me.

Revision history for this message
In , imranmohd72 (imranmohd72-linux-kernel-bugs) wrote :

HDAUDIO\FUNC_01&VEN_10EC&DEV_0668&SUBSYS_102805A9&REV_1000

Revision history for this message
In , gaznims (gaznims-linux-kernel-bugs) wrote :

Hi mohammed imran
Ive just sen this now after all this time
installed as above
Fingers crossed

Revision history for this message
In , gaznims (gaznims-linux-kernel-bugs) wrote :

No Hasn't changed anything
Still doesn't detect my Sub
Thanks for trying anyway
Cheers
Gaz

Revision history for this message
In , gaznims (gaznims-linux-kernel-bugs) wrote :

Hi Guys I've been installing the Updates everyday @ https://code.launchpad.net/~ubuntu-audio-dev/+archive/ubuntu/alsa-daily/+packages

But there hasn't been any changes to my system yet
But Ill keep trying
Gaz

Revision history for this message
In , imranmohd72 (imranmohd72-linux-kernel-bugs) wrote :

Hey Gary, i have a seperate bug report that i have started, which you can follow and comment, and maybe we can get the audio issue sorted out. try this link and follow their.

https://bugzilla.kernel.org/show_bug.cgi?id=107851

Revision history for this message
In , imranmohd72 (imranmohd72-linux-kernel-bugs) wrote :

(In reply to Gary from comment #194)
> Hi Guys I've been installing the Updates everyday @
> https://code.launchpad.net/~ubuntu-audio-dev/+archive/ubuntu/alsa-daily/
> +packages
>
> But there hasn't been any changes to my system yet
> But Ill keep trying
> Gaz

Hey Gary, i have a seperate bug report that i have started, which you can follow and comment, and maybe we can get the audio issue sorted out. try this link and follow their.

https://bugzilla.kernel.org/show_bug.cgi?id=107851

Revision history for this message
In , gaznims (gaznims-linux-kernel-bugs) wrote :

(In reply to mohammed imran from comment #196)
> (In reply to Gary from comment #194)
> > Hi Guys I've been installing the Updates everyday @
> > https://code.launchpad.net/~ubuntu-audio-dev/+archive/ubuntu/alsa-daily/
> > +packages
> >
> > But there hasn't been any changes to my system yet
> > But Ill keep trying
> > Gaz
>
> Hey Gary, i have a seperate bug report that i have started, which you can
> follow and comment, and maybe we can get the audio issue sorted out. try
> this link and follow their.
>
> https://bugzilla.kernel.org/show_bug.cgi?id=107851

Still no go with Mine

I followed that last post on your thread but still no go

Cheers and please keep me posted
Gary

Revision history for this message
In , imranmohd72 (imranmohd72-linux-kernel-bugs) wrote :

try this it worked for me,

So you fix the sound:

1. Open a Terminal (Ctrl + Alt + T).

2. Write 'sudo su' to login as root.

3. Install via apt 'alsa-tools-gui'.

4. Logout via exit.

5. Write 'hdajackretask' and press enter.

6. Click on 'Intel Haswell HDMI' and select 'Realtek ALC3661'.

7. A lot of new entrys are visible. Select 'Show unconnected pins'.

8. Click on 'Overwrite' on Pin ID '0x1a'.

9. Click on the Context Menu and select 'Line out (Center/LFE)'.

10. Click on 'Apply now' and enter your user password.

11. Click on 'Install boot overwrite' to save the settings permanently.

12. Click on your Volume Icon on the top (Ubuntu Unity) and remove the marker 'mute'.

13. Reboot and your sound work perfect.

Revision history for this message
Mohd Imran Jamadar (imranmohd72) wrote :

So you fix the sound:

1. Open a Terminal (Ctrl + Alt + T).

2. Write 'sudo su' to login as root.

3. Install via apt 'alsa-tools-gui'.

4. Logout via exit.

5. Write 'hdajackretask' and press enter.

6. Click on 'Intel Haswell HDMI' and select 'Realtek ALC3661'.

7. A lot of new entrys are visible. Select 'Show unconnected pins'.

8. Click on 'Overwrite' on Pin ID '0x1a'.

9. Click on the Context Menu and select 'Line out (Center/LFE)'.

10. Click on 'Apply now' and enter your user password.

11. Click on 'Install boot overwrite' to save the settings permanently.

12. Click on your Volume Icon on the top (Ubuntu Unity) and remove the marker 'mute'.

13. Reboot and your sound work perfect.

Revision history for this message
In , gaznims (gaznims-linux-kernel-bugs) wrote :

All I need is my computer to recognize my Subwooffer

I have 2 speakers and a Sub

I there a way to show Linux my Hardware?

Revision history for this message
In , gaznims (gaznims-linux-kernel-bugs) wrote :

After reading this page

I think I may as well give up on my quest for 2.1 sound

http://voices.canonical.com/david.henningsson/2015/12/15/2-1-surround-sound-support/

Gaz

Revision history for this message
In , gaznims (gaznims-linux-kernel-bugs) wrote :
Revision history for this message
In , gaznims (gaznims-linux-kernel-bugs) wrote :
Revision history for this message
In , imranmohd72 (imranmohd72-linux-kernel-bugs) wrote :

(In reply to Raymond from comment #186)
> you have to learn how to recompile alsa driver in order to test and fix the
> subwoofer , headset, headphone and surround 5.1 since early patching is
> limited to pin fixup and cannot change DAC assignment

Gary,
Please refer to this above command on how to download all the files, i mean pull them and then amend them , compile them and then apply the test cases as said by raymond.

check how to pull the code from git and do the needful.

Regards.

Revision history for this message
In , gaznims (gaznims-linux-kernel-bugs) wrote :

Code yes I wish I knew what that was hahhahahah

I'm a Blue Collar worker not a Technician

Revision history for this message
In , gaznims (gaznims-linux-kernel-bugs) wrote :

Hi Team if there anyone there
I installed Mint 19.1 and lost my sound all together

So went back to Mint 18
and did some Pin work and got my sound going in the two speaker on my Laptop
But still no Sub

I was wondering if there are any updates or new Drivers out there

Any updates would be most welcome
Cheers
Gary

Changed in alsa-driver:
importance: Unknown → Medium
status: Unknown → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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