Bug 101931

Summary: Alienware14 lower range sound output until pin 0x1a is set for a full deeper stereo sound output
Product: PulseAudio Reporter: mohammed imran <imranmohd72>
Component: coreAssignee: pulseaudio-bugs
Status: RESOLVED MOVED QA Contact: pulseaudio-bugs
Severity: normal    
Priority: medium CC: lennart
Version: unspecified   
Hardware: x86-64 (AMD64)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:
Attachments: before_pin_set
pin details
after setting pin using hdajackretask
before_pin_set_again
after_pinset_again
Alienware14_manual
hdajackretask
inbuilt_mic
sound_withoutpinset
pactl list cards
jack location
amixer output

Description mohammed imran 2017-07-26 16:31:43 UTC
Created attachment 132993 [details]
before_pin_set

I have Alienware14 laptop, it has three jacks, a dedicated Mic jack, Headset and Headphone jacks.

But in sound panel i only see, Headphone and Speakers option and input via inbuilt Mic.

I have to use hdajackretask to set 0x1a pin to get full sound with bass from my laptops in built speakers, but loose headphone option in sound panel.

So can you be of help to resolve this issue for all Alienware laptop users. 

Card: HDA Intel PCH
Chip: Realtek ALC3661

On Windows everything works, and when i plug in a headphone/w mic i am asked what i have plugged in but on Linux_ubuntu i don't see as such.
Also, i plug in my headphone i get full proper stereo sound.

Please advise?
Regards.
Comment 1 mohammed imran 2017-07-26 16:59:16 UTC
Created attachment 132995 [details]
pin details
Comment 2 mohammed imran 2017-07-26 17:06:16 UTC
Created attachment 132996 [details]
after setting pin using hdajackretask
Comment 3 Tanu Kaskinen 2017-07-27 04:23:38 UTC
Card 0 seems to be HDMI-only, so the attached amixer output isn't helpful. Can you rerun the commands using "-c1" instead of "-c0" in the amixer arguments? Can you also attach the output from "pactl list", both before and after modifying the pin configuration?
Comment 4 mohammed imran 2017-07-27 18:35:04 UTC
Created attachment 133079 [details]
before_pin_set_again
Comment 5 mohammed imran 2017-07-27 18:35:39 UTC
Created attachment 133080 [details]
after_pinset_again

after_pinset_again
Comment 6 Tanu Kaskinen 2017-07-27 19:20:40 UTC
(In reply to mohammed imran from comment #0)
> I have Alienware14 laptop, it has three jacks, a dedicated Mic jack, Headset
> and Headphone jacks.
> 
> But in sound panel i only see, Headphone and Speakers option and input via
> inbuilt Mic.

Alsa reports that there are two headphone jacks, but it's a known limitation in pulseaudio that if there are two mixer elements with the same name, only the first one will be used.

Pulseaudio detects the dedicated mic jack. If you don't see it in your audio configuration application, that may be because you don't have a mic plugged in, so the application hides the unavailable port.

The headset input is not detected at all, because the alsa mixer doesn't indicate that such input exists. The kernel driver should be fixed.

> I have to use hdajackretask to set 0x1a pin to get full sound with bass from
> my laptops in built speakers, but loose headphone option in sound panel.

The "pactl list" output shows that the headphone output is still detected, but headphones are not plugged in. Did you have headphones plugged in when you ran "pactl list" in after_pinset_again?
Comment 7 mohammed imran 2017-07-28 07:37:21 UTC
(In reply to Tanu Kaskinen from comment #6)
> (In reply to mohammed imran from comment #0)
> > I have Alienware14 laptop, it has three jacks, a dedicated Mic jack, Headset
> > and Headphone jacks.
> > 
> > But in sound panel i only see, Headphone and Speakers option and input via
> > inbuilt Mic.
> 
> Alsa reports that there are two headphone jacks, but it's a known limitation
> in pulseaudio that if there are two mixer elements with the same name, only
> the first one will be used.

I have three jacks,Headphone, Headset and Mic jack, so three jacks, but
without pin set, Ubuntu shows me Headphone and Speakers (both inbuilt only).

Please refer to my attached Alienware14 manual page 3 , which i have pasted here,

Audio •	 One microphone port
•	 One headphone and microphone combo port
•	 One headphone/speakers port
Controller Realtek ALC3661 with Dolby Home Theater
Speaker Klipsch 2.1 powered speaker system
(stereo speakers with subwoofer)
Internal microphone support Dual digital-array microphones in camera
assembly

> 
> Pulseaudio detects the dedicated mic jack. If you don't see it in your audio
> configuration application, that may be because you don't have a mic plugged
> in, so the application hides the unavailable port.
> 
> The headset input is not detected at all, because the alsa mixer doesn't
> indicate that such input exists. The kernel driver should be fixed.
> 
> > I have to use hdajackretask to set 0x1a pin to get full sound with bass from
> > my laptops in built speakers, but loose headphone option in sound panel.

As commented above i have 
Klipsch 2.1 powered speaker system (stereo speakers with subwoofer), but to get this woofer to work, i need to set pin to 0x1a. screen shot also attached.
> 
> The "pactl list" output shows that the headphone output is still detected,
> but headphones are not plugged in. Did you have headphones plugged in when
> you ran "pactl list" in after_pinset_again?

No, none of the jack where plugged in when i did the tests.
Comment 8 mohammed imran 2017-07-28 07:41:51 UTC
Created attachment 133085 [details]
Alienware14_manual

Alienware14_manual
Comment 9 mohammed imran 2017-07-28 07:44:50 UTC
Created attachment 133086 [details]
hdajackretask

which pin i need to set in jackretask and the output also.
Comment 10 mohammed imran 2017-07-28 07:45:28 UTC
Created attachment 133087 [details]
inbuilt_mic

screenshot detailing my in-built mic.
Comment 11 mohammed imran 2017-07-28 07:48:36 UTC
Created attachment 133088 [details]
sound_withoutpinset

this is the state of sound in my ubuntu system, when the pin 0x1a is not set,or connected to output.
Comment 12 mohammed imran 2017-07-28 08:02:15 UTC
Also when i connect my samsung earphones to the One headphone and microphone combo port, no sound output is noted or heard. ok :)

regards.
Comment 13 Tanu Kaskinen 2017-07-31 03:50:27 UTC
It remains unclear to me whether the headphone output really doesn't work after you have set the pin. The headphone and microphone combo jack isn't reported by alsa, so it's not really a surprise if you don't get any audio from it. If you plug in headphones to the headphone-only jack, does that work? If not, what do these commands print?

    pactl list cards
    amixer -c1 cget numid=20,iface=CARD,name='Headphone Jack'
Comment 14 mohammed imran 2017-07-31 19:14:22 UTC
(In reply to Tanu Kaskinen from comment #13)
> It remains unclear to me whether the headphone output really doesn't work
> after you have set the pin. The headphone and microphone combo jack isn't
> reported by alsa, so it's not really a surprise if you don't get any audio
> from it. If you plug in headphones to the headphone-only jack, does that
> work? If not, what do these commands print?
Yes i do hear sound in both cases of setting the pin or not, if i plug in my headphones to the headset only socket. Ref to pic the middle jack, in the picture attached.
> 
>     pactl list cards

===============================================================================
>     amixer -c1 cget numid=20,iface=CARD,name='Headphone Jack'

 amixer -c1 cget numid=20,iface=CARD,name='Headphone Jack'
numid=20,iface=CARD,name='Headphone Jack'
  ; type=BOOLEAN,access=r-------,values=1
  : values=off
-------------------------------------------------------------------------------

If the pin is unset or not set, then if i plug in the Headphone Jack, then i won't hear any audio from this jack.

If i set the pin, and plug the headphone in the jack then i would be hearing audio output from my laptop speakers, and would keep hearing audio if the headphone is plugged in or not.
Comment 15 mohammed imran 2017-07-31 19:16:04 UTC
Created attachment 133160 [details]
pactl list cards
Comment 16 mohammed imran 2017-07-31 19:16:25 UTC
Created attachment 133161 [details]
jack location
Comment 17 mohammed imran 2017-07-31 19:19:47 UTC
Created attachment 133162 [details]
amixer output
Comment 18 Tanu Kaskinen 2017-08-03 05:46:41 UTC
I'm very confused by comment #14. You seem to be contradicting yourself, but that's probably just me misinterpreting what you say.

Please be careful with the terms. A "headphone" means a device with no mic, a "headset" means a device with headphones and a microphone. If you mix these up, it's impossible for me to understand what is really happening.

From the discussion so far, I understand that you have at least a headset, do you also have plain headphones available for testing? What about a separate microphone, do you have that?

I'd like you to run a little script four times before and after setting the pin in hdajackretask:
 - without anything plugged in
 - headphones plugged in to the headphone jack (if you don't have headphones, use the headset instead, and note that in a comment)
 - headset plugged in to the headset jack
 - microphone plugged in to the microphone jack (if you don't have a microphone, use the headset instead, and note that in a comment)

Here's the script:

pactl list cards
while read -r line; do
  amixer -c1 cget "$line"
done <<< $(amixer -c1 controls | grep Jack)

That will first run "pactl list cards", which will show what pulseaudio thinks the port state is in each case. Then there's a loop that will print the status of each alsa mixer jack control.

If you want, you can also report where you hear sound in each case, but if you do that, please note in each case what this command prints:

pactl list | grep 'Active Port'

I'm sorry I'm asking you to do so many tests, but there are multiple problems and many different states that the system can be in, so it takes some effort to get a clear picture about what happens when you do this or that.
Comment 19 mohammed imran 2017-08-07 16:08:50 UTC
0x12 0x99a30140
0x14 0x90170110
0x15 0x0321101f
0x16 0x03211020
0x18 0x40030008
0x19 0x03a11030
0x1a 0x411111f0
0x1b 0x411111f0
0x1d 0x41000001
0x1e 0x411111f0
0x1f 0x411111f0


After removing the pin set. further data is being collected.
Comment 20 mohammed imran 2017-08-07 16:22:01 UTC
(In reply to Tanu Kaskinen from comment #18)
> I'm very confused by comment #14. You seem to be contradicting yourself, but
> that's probably just me misinterpreting what you say.
> 
> Please be careful with the terms. A "headphone" means a device with no mic,
> a "headset" means a device with headphones and a microphone. If you mix
> these up, it's impossible for me to understand what is really happening.
> 
> From the discussion so far, I understand that you have at least a headset,
> do you also have plain headphones available for testing? What about a
> separate microphone, do you have that?
> 
> I'd like you to run a little script four times before and after setting the
> pin in hdajackretask:
>  - without anything plugged in
>  - headphones plugged in to the headphone jack (if you don't have
> headphones, use the headset instead, and note that in a comment)
>  - headset plugged in to the headset jack
>  - microphone plugged in to the microphone jack (if you don't have a
> microphone, use the headset instead, and note that in a comment)
> 
> Here's the script:
> 
> pactl list cards
> while read -r line; do
>   amixer -c1 cget "$line"
> done <<< $(amixer -c1 controls | grep Jack)
> 
> That will first run "pactl list cards", which will show what pulseaudio
> thinks the port state is in each case. Then there's a loop that will print
> the status of each alsa mixer jack control.
> 
> If you want, you can also report where you hear sound in each case, but if
> you do that, please note in each case what this command prints:
> 
> pactl list | grep 'Active Port'
> 
> I'm sorry I'm asking you to do so many tests, but there are multiple
> problems and many different states that the system can be in, so it takes
> some effort to get a clear picture about what happens when you do this or
> that.

Test - without Pin set -  without anything plugged in 


immu@immu-Alienware-14:~$ pactl list cards
Card #0
	Name: alsa_card.pci-0000_00_03.0
	Driver: module-alsa-card.c
	Owner Module: 6
	Properties:
		alsa.card = "0"
		alsa.card_name = "HDA Intel HDMI"
		alsa.long_card_name = "HDA Intel HDMI at 0xd2710000 irq 31"
		alsa.driver_name = "snd_hda_intel"
		device.bus_path = "pci-0000:00:03.0"
		sysfs.path = "/devices/pci0000:00/0000:00:03.0/sound/card0"
		device.bus = "pci"
		device.vendor.id = "8086"
		device.vendor.name = "Intel Corporation"
		device.product.id = "0c0c"
		device.product.name = "Xeon E3-1200 v3/4th Gen Core Processor HD Audio Controller"
		device.form_factor = "internal"
		device.string = "0"
		device.description = "Built-in Audio"
		module-udev-detect.discovered = "1"
		device.icon_name = "audio-card-pci"
	Profiles:
		output:hdmi-stereo: Digital Stereo (HDMI) Output (sinks: 1, sources: 0, priority: 5400, available: no)
		output:hdmi-surround: Digital Surround 5.1 (HDMI) Output (sinks: 1, sources: 0, priority: 300, available: no)
		output:hdmi-surround71: Digital Surround 7.1 (HDMI) Output (sinks: 1, sources: 0, priority: 300, available: no)
		output:hdmi-stereo-extra1: Digital Stereo (HDMI 2) Output (sinks: 1, sources: 0, priority: 5200, available: no)
		output:hdmi-surround-extra1: Digital Surround 5.1 (HDMI 2) Output (sinks: 1, sources: 0, priority: 100, available: no)
		output:hdmi-surround71-extra1: Digital Surround 7.1 (HDMI 2) Output (sinks: 1, sources: 0, priority: 100, available: no)
		output:hdmi-stereo-extra2: Digital Stereo (HDMI 3) Output (sinks: 1, sources: 0, priority: 5200, available: no)
		output:hdmi-surround-extra2: Digital Surround 5.1 (HDMI 3) Output (sinks: 1, sources: 0, priority: 100, available: no)
		output:hdmi-surround71-extra2: Digital Surround 7.1 (HDMI 3) Output (sinks: 1, sources: 0, priority: 100, available: no)
		off: Off (sinks: 0, sources: 0, priority: 0, available: yes)
	Active Profile: off
	Ports:
		hdmi-output-0: HDMI / DisplayPort (priority: 5900, latency offset: 0 usec, not available)
			Properties:
				device.icon_name = "video-display"
			Part of profile(s): output:hdmi-stereo, output:hdmi-surround, output:hdmi-surround71
		hdmi-output-1: HDMI / DisplayPort 2 (priority: 5800, latency offset: 0 usec, not available)
			Properties:
				device.icon_name = "video-display"
			Part of profile(s): output:hdmi-stereo-extra1, output:hdmi-surround-extra1, output:hdmi-surround71-extra1
		hdmi-output-2: HDMI / DisplayPort 3 (priority: 5700, latency offset: 0 usec, not available)
			Properties:
				device.icon_name = "video-display"
			Part of profile(s): output:hdmi-stereo-extra2, output:hdmi-surround-extra2, output:hdmi-surround71-extra2

Card #1
	Name: alsa_card.pci-0000_00_1b.0
	Driver: module-alsa-card.c
	Owner Module: 7
	Properties:
		alsa.card = "1"
		alsa.card_name = "HDA Intel PCH"
		alsa.long_card_name = "HDA Intel PCH at 0xd2714000 irq 29"
		alsa.driver_name = "snd_hda_intel"
		device.bus_path = "pci-0000:00:1b.0"
		sysfs.path = "/devices/pci0000:00/0000:00:1b.0/sound/card1"
		device.bus = "pci"
		device.vendor.id = "8086"
		device.vendor.name = "Intel Corporation"
		device.product.id = "8c20"
		device.product.name = "8 Series/C220 Series Chipset High Definition Audio Controller"
		device.form_factor = "internal"
		device.string = "1"
		device.description = "Built-in Audio"
		module-udev-detect.discovered = "1"
		device.icon_name = "audio-card-pci"
	Profiles:
		input:analog-stereo: Analog Stereo Input (sinks: 0, sources: 1, priority: 60, available: yes)
		output:analog-stereo: Analog Stereo Output (sinks: 1, sources: 0, priority: 6000, available: yes)
		output:analog-stereo+input:analog-stereo: Analog Stereo Duplex (sinks: 1, sources: 1, priority: 6060, available: yes)
		output:analog-surround-40: Analog Surround 4.0 Output (sinks: 1, sources: 0, priority: 700, available: yes)
		output:analog-surround-40+input:analog-stereo: Analog Surround 4.0 Output + Analog Stereo Input (sinks: 1, sources: 1, priority: 760, available: yes)
		off: Off (sinks: 0, sources: 0, priority: 0, available: yes)
	Active Profile: output:analog-stereo+input:analog-stereo
	Ports:
		analog-input-internal-mic: Internal Microphone (priority: 8900, latency offset: 0 usec)
			Properties:
				device.icon_name = "audio-input-microphone"
			Part of profile(s): input:analog-stereo, output:analog-stereo+input:analog-stereo, output:analog-surround-40+input:analog-stereo
		analog-input-mic: Microphone (priority: 8700, latency offset: 0 usec, not available)
			Properties:
				device.icon_name = "audio-input-microphone"
			Part of profile(s): input:analog-stereo, output:analog-stereo+input:analog-stereo, output:analog-surround-40+input:analog-stereo
		analog-output-speaker: Speakers (priority: 10000, latency offset: 0 usec)
			Properties:
				device.icon_name = "audio-speakers"
			Part of profile(s): output:analog-stereo, output:analog-stereo+input:analog-stereo, output:analog-surround-40, output:analog-surround-40+input:analog-stereo
		analog-output-headphones: Headphones (priority: 9000, latency offset: 0 usec)
			Properties:
				device.icon_name = "audio-headphones"
			Part of profile(s): output:analog-stereo, output:analog-stereo+input:analog-stereo
immu@immu-Alienware-14:~$ while read -r line; do
>   amixer -c1 cget "$line"
> done <<< $(amixer -c1 controls | grep Jack)
numid=43,iface=CARD,name='Headphone Front Jack'
  ; type=BOOLEAN,access=r-------,values=1
  : values=off
numid=44,iface=CARD,name='Headphone Surround Jack'
  ; type=BOOLEAN,access=r-------,values=1
  : values=off
numid=42,iface=CARD,name='Internal Mic Phantom Jack'
  ; type=BOOLEAN,access=r-------,values=1
  : values=on
numid=41,iface=CARD,name='Mic Jack'
  ; type=BOOLEAN,access=r-------,values=1
  : values=off
numid=45,iface=CARD,name='Speaker Phantom Jack'
  ; type=BOOLEAN,access=r-------,values=1
  : values=on
immu@immu-Alienware-14:~$
Comment 21 mohammed imran 2017-08-07 16:30:34 UTC
(In reply to mohammed imran from comment #20)
> (In reply to Tanu Kaskinen from comment #18)
> > I'm very confused by comment #14. You seem to be contradicting yourself, but
> > that's probably just me misinterpreting what you say.
> > 
> > Please be careful with the terms. A "headphone" means a device with no mic,
> > a "headset" means a device with headphones and a microphone. If you mix
> > these up, it's impossible for me to understand what is really happening.
> > 
> > From the discussion so far, I understand that you have at least a headset,
> > do you also have plain headphones available for testing? What about a
> > separate microphone, do you have that?
> > 
> > I'd like you to run a little script four times before and after setting the
> > pin in hdajackretask:
> >  - without anything plugged in
> >  - headphones plugged in to the headphone jack (if you don't have
> > headphones, use the headset instead, and note that in a comment)
> >  - headset plugged in to the headset jack
> >  - microphone plugged in to the microphone jack (if you don't have a
> > microphone, use the headset instead, and note that in a comment)
> > 
> > Here's the script:
> > 
> > pactl list cards
> > while read -r line; do
> >   amixer -c1 cget "$line"
> > done <<< $(amixer -c1 controls | grep Jack)
> > 
> > That will first run "pactl list cards", which will show what pulseaudio
> > thinks the port state is in each case. Then there's a loop that will print
> > the status of each alsa mixer jack control.
> > 
> > If you want, you can also report where you hear sound in each case, but if
> > you do that, please note in each case what this command prints:
> > 
> > pactl list | grep 'Active Port'
> > 
> > I'm sorry I'm asking you to do so many tests, but there are multiple
> > problems and many different states that the system can be in, so it takes
> > some effort to get a clear picture about what happens when you do this or
> > that.
> 
> Test - without Pin set -  without anything plugged in 
> 
> 
> immu@immu-Alienware-14:~$ pactl list cards
> Card #0
> 	Name: alsa_card.pci-0000_00_03.0
> 	Driver: module-alsa-card.c
> 	Owner Module: 6
> 	Properties:
> 		alsa.card = "0"
> 		alsa.card_name = "HDA Intel HDMI"
> 		alsa.long_card_name = "HDA Intel HDMI at 0xd2710000 irq 31"
> 		alsa.driver_name = "snd_hda_intel"
> 		device.bus_path = "pci-0000:00:03.0"
> 		sysfs.path = "/devices/pci0000:00/0000:00:03.0/sound/card0"
> 		device.bus = "pci"
> 		device.vendor.id = "8086"
> 		device.vendor.name = "Intel Corporation"
> 		device.product.id = "0c0c"
> 		device.product.name = "Xeon E3-1200 v3/4th Gen Core Processor HD Audio
> Controller"
> 		device.form_factor = "internal"
> 		device.string = "0"
> 		device.description = "Built-in Audio"
> 		module-udev-detect.discovered = "1"
> 		device.icon_name = "audio-card-pci"
> 	Profiles:
> 		output:hdmi-stereo: Digital Stereo (HDMI) Output (sinks: 1, sources: 0,
> priority: 5400, available: no)
> 		output:hdmi-surround: Digital Surround 5.1 (HDMI) Output (sinks: 1,
> sources: 0, priority: 300, available: no)
> 		output:hdmi-surround71: Digital Surround 7.1 (HDMI) Output (sinks: 1,
> sources: 0, priority: 300, available: no)
> 		output:hdmi-stereo-extra1: Digital Stereo (HDMI 2) Output (sinks: 1,
> sources: 0, priority: 5200, available: no)
> 		output:hdmi-surround-extra1: Digital Surround 5.1 (HDMI 2) Output (sinks:
> 1, sources: 0, priority: 100, available: no)
> 		output:hdmi-surround71-extra1: Digital Surround 7.1 (HDMI 2) Output
> (sinks: 1, sources: 0, priority: 100, available: no)
> 		output:hdmi-stereo-extra2: Digital Stereo (HDMI 3) Output (sinks: 1,
> sources: 0, priority: 5200, available: no)
> 		output:hdmi-surround-extra2: Digital Surround 5.1 (HDMI 3) Output (sinks:
> 1, sources: 0, priority: 100, available: no)
> 		output:hdmi-surround71-extra2: Digital Surround 7.1 (HDMI 3) Output
> (sinks: 1, sources: 0, priority: 100, available: no)
> 		off: Off (sinks: 0, sources: 0, priority: 0, available: yes)
> 	Active Profile: off
> 	Ports:
> 		hdmi-output-0: HDMI / DisplayPort (priority: 5900, latency offset: 0 usec,
> not available)
> 			Properties:
> 				device.icon_name = "video-display"
> 			Part of profile(s): output:hdmi-stereo, output:hdmi-surround,
> output:hdmi-surround71
> 		hdmi-output-1: HDMI / DisplayPort 2 (priority: 5800, latency offset: 0
> usec, not available)
> 			Properties:
> 				device.icon_name = "video-display"
> 			Part of profile(s): output:hdmi-stereo-extra1,
> output:hdmi-surround-extra1, output:hdmi-surround71-extra1
> 		hdmi-output-2: HDMI / DisplayPort 3 (priority: 5700, latency offset: 0
> usec, not available)
> 			Properties:
> 				device.icon_name = "video-display"
> 			Part of profile(s): output:hdmi-stereo-extra2,
> output:hdmi-surround-extra2, output:hdmi-surround71-extra2
> 
> Card #1
> 	Name: alsa_card.pci-0000_00_1b.0
> 	Driver: module-alsa-card.c
> 	Owner Module: 7
> 	Properties:
> 		alsa.card = "1"
> 		alsa.card_name = "HDA Intel PCH"
> 		alsa.long_card_name = "HDA Intel PCH at 0xd2714000 irq 29"
> 		alsa.driver_name = "snd_hda_intel"
> 		device.bus_path = "pci-0000:00:1b.0"
> 		sysfs.path = "/devices/pci0000:00/0000:00:1b.0/sound/card1"
> 		device.bus = "pci"
> 		device.vendor.id = "8086"
> 		device.vendor.name = "Intel Corporation"
> 		device.product.id = "8c20"
> 		device.product.name = "8 Series/C220 Series Chipset High Definition Audio
> Controller"
> 		device.form_factor = "internal"
> 		device.string = "1"
> 		device.description = "Built-in Audio"
> 		module-udev-detect.discovered = "1"
> 		device.icon_name = "audio-card-pci"
> 	Profiles:
> 		input:analog-stereo: Analog Stereo Input (sinks: 0, sources: 1, priority:
> 60, available: yes)
> 		output:analog-stereo: Analog Stereo Output (sinks: 1, sources: 0,
> priority: 6000, available: yes)
> 		output:analog-stereo+input:analog-stereo: Analog Stereo Duplex (sinks: 1,
> sources: 1, priority: 6060, available: yes)
> 		output:analog-surround-40: Analog Surround 4.0 Output (sinks: 1, sources:
> 0, priority: 700, available: yes)
> 		output:analog-surround-40+input:analog-stereo: Analog Surround 4.0 Output
> + Analog Stereo Input (sinks: 1, sources: 1, priority: 760, available: yes)
> 		off: Off (sinks: 0, sources: 0, priority: 0, available: yes)
> 	Active Profile: output:analog-stereo+input:analog-stereo
> 	Ports:
> 		analog-input-internal-mic: Internal Microphone (priority: 8900, latency
> offset: 0 usec)
> 			Properties:
> 				device.icon_name = "audio-input-microphone"
> 			Part of profile(s): input:analog-stereo,
> output:analog-stereo+input:analog-stereo,
> output:analog-surround-40+input:analog-stereo
> 		analog-input-mic: Microphone (priority: 8700, latency offset: 0 usec, not
> available)
> 			Properties:
> 				device.icon_name = "audio-input-microphone"
> 			Part of profile(s): input:analog-stereo,
> output:analog-stereo+input:analog-stereo,
> output:analog-surround-40+input:analog-stereo
> 		analog-output-speaker: Speakers (priority: 10000, latency offset: 0 usec)
> 			Properties:
> 				device.icon_name = "audio-speakers"
> 			Part of profile(s): output:analog-stereo,
> output:analog-stereo+input:analog-stereo, output:analog-surround-40,
> output:analog-surround-40+input:analog-stereo
> 		analog-output-headphones: Headphones (priority: 9000, latency offset: 0
> usec)
> 			Properties:
> 				device.icon_name = "audio-headphones"
> 			Part of profile(s): output:analog-stereo,
> output:analog-stereo+input:analog-stereo
> immu@immu-Alienware-14:~$ while read -r line; do
> >   amixer -c1 cget "$line"
> > done <<< $(amixer -c1 controls | grep Jack)
> numid=43,iface=CARD,name='Headphone Front Jack'
>   ; type=BOOLEAN,access=r-------,values=1
>   : values=off
> numid=44,iface=CARD,name='Headphone Surround Jack'
>   ; type=BOOLEAN,access=r-------,values=1
>   : values=off
> numid=42,iface=CARD,name='Internal Mic Phantom Jack'
>   ; type=BOOLEAN,access=r-------,values=1
>   : values=on
> numid=41,iface=CARD,name='Mic Jack'
>   ; type=BOOLEAN,access=r-------,values=1
>   : values=off
> numid=45,iface=CARD,name='Speaker Phantom Jack'
>   ; type=BOOLEAN,access=r-------,values=1
>   : values=on
> immu@immu-Alienware-14:~$

Test - with Pin set -  without anything plugged in 
immu@immu-Alienware-14:~$ while read -r line; do
>   amixer -c1 cget "$line"
> done <<< $(amixer -c1 controls | grep Jack)
numid=20,iface=CARD,name='Headphone Jack'
  ; type=BOOLEAN,access=r-------,values=1
  : values=off
numid=21,iface=CARD,name='Headphone Jack',index=1
  ; type=BOOLEAN,access=r-------,values=1
  : values=off
numid=18,iface=CARD,name='Internal Mic Phantom Jack'
  ; type=BOOLEAN,access=r-------,values=1
  : values=on
numid=19,iface=CARD,name='Line Out Jack'
  ; type=BOOLEAN,access=r-------,values=1
  : values=off
numid=17,iface=CARD,name='Mic Jack'
  ; type=BOOLEAN,access=r-------,values=1
  : values=off
numid=22,iface=CARD,name='Speaker Phantom Jack'
  ; type=BOOLEAN,access=r-------,values=1
  : values=on
Comment 22 mohammed imran 2017-08-07 16:35:02 UTC
(In reply to mohammed imran from comment #21)
> (In reply to mohammed imran from comment #20)
> > (In reply to Tanu Kaskinen from comment #18)
> > > I'm very confused by comment #14. You seem to be contradicting yourself, but
> > > that's probably just me misinterpreting what you say.
> > > 
> > > Please be careful with the terms. A "headphone" means a device with no mic,
> > > a "headset" means a device with headphones and a microphone. If you mix
> > > these up, it's impossible for me to understand what is really happening.
> > > 
> > > From the discussion so far, I understand that you have at least a headset,
> > > do you also have plain headphones available for testing? What about a
> > > separate microphone, do you have that?
> > > 
> > > I'd like you to run a little script four times before and after setting the
> > > pin in hdajackretask:
> > >  - without anything plugged in
> > >  - headphones plugged in to the headphone jack (if you don't have
> > > headphones, use the headset instead, and note that in a comment)
> > >  - headset plugged in to the headset jack
> > >  - microphone plugged in to the microphone jack (if you don't have a
> > > microphone, use the headset instead, and note that in a comment)
> > > 
> > > Here's the script:
> > > 
> > > pactl list cards
> > > while read -r line; do
> > >   amixer -c1 cget "$line"
> > > done <<< $(amixer -c1 controls | grep Jack)
> > > 
> > > That will first run "pactl list cards", which will show what pulseaudio
> > > thinks the port state is in each case. Then there's a loop that will print
> > > the status of each alsa mixer jack control.
> > > 
> > > If you want, you can also report where you hear sound in each case, but if
> > > you do that, please note in each case what this command prints:
> > > 
> > > pactl list | grep 'Active Port'
> > > 
> > > I'm sorry I'm asking you to do so many tests, but there are multiple
> > > problems and many different states that the system can be in, so it takes
> > > some effort to get a clear picture about what happens when you do this or
> > > that.
> > 
> > Test - without Pin set -  without anything plugged in 
> > 
> > 
> > immu@immu-Alienware-14:~$ pactl list cards
> > Card #0
> > 	Name: alsa_card.pci-0000_00_03.0
> > 	Driver: module-alsa-card.c
> > 	Owner Module: 6
> > 	Properties:
> > 		alsa.card = "0"
> > 		alsa.card_name = "HDA Intel HDMI"
> > 		alsa.long_card_name = "HDA Intel HDMI at 0xd2710000 irq 31"
> > 		alsa.driver_name = "snd_hda_intel"
> > 		device.bus_path = "pci-0000:00:03.0"
> > 		sysfs.path = "/devices/pci0000:00/0000:00:03.0/sound/card0"
> > 		device.bus = "pci"
> > 		device.vendor.id = "8086"
> > 		device.vendor.name = "Intel Corporation"
> > 		device.product.id = "0c0c"
> > 		device.product.name = "Xeon E3-1200 v3/4th Gen Core Processor HD Audio
> > Controller"
> > 		device.form_factor = "internal"
> > 		device.string = "0"
> > 		device.description = "Built-in Audio"
> > 		module-udev-detect.discovered = "1"
> > 		device.icon_name = "audio-card-pci"
> > 	Profiles:
> > 		output:hdmi-stereo: Digital Stereo (HDMI) Output (sinks: 1, sources: 0,
> > priority: 5400, available: no)
> > 		output:hdmi-surround: Digital Surround 5.1 (HDMI) Output (sinks: 1,
> > sources: 0, priority: 300, available: no)
> > 		output:hdmi-surround71: Digital Surround 7.1 (HDMI) Output (sinks: 1,
> > sources: 0, priority: 300, available: no)
> > 		output:hdmi-stereo-extra1: Digital Stereo (HDMI 2) Output (sinks: 1,
> > sources: 0, priority: 5200, available: no)
> > 		output:hdmi-surround-extra1: Digital Surround 5.1 (HDMI 2) Output (sinks:
> > 1, sources: 0, priority: 100, available: no)
> > 		output:hdmi-surround71-extra1: Digital Surround 7.1 (HDMI 2) Output
> > (sinks: 1, sources: 0, priority: 100, available: no)
> > 		output:hdmi-stereo-extra2: Digital Stereo (HDMI 3) Output (sinks: 1,
> > sources: 0, priority: 5200, available: no)
> > 		output:hdmi-surround-extra2: Digital Surround 5.1 (HDMI 3) Output (sinks:
> > 1, sources: 0, priority: 100, available: no)
> > 		output:hdmi-surround71-extra2: Digital Surround 7.1 (HDMI 3) Output
> > (sinks: 1, sources: 0, priority: 100, available: no)
> > 		off: Off (sinks: 0, sources: 0, priority: 0, available: yes)
> > 	Active Profile: off
> > 	Ports:
> > 		hdmi-output-0: HDMI / DisplayPort (priority: 5900, latency offset: 0 usec,
> > not available)
> > 			Properties:
> > 				device.icon_name = "video-display"
> > 			Part of profile(s): output:hdmi-stereo, output:hdmi-surround,
> > output:hdmi-surround71
> > 		hdmi-output-1: HDMI / DisplayPort 2 (priority: 5800, latency offset: 0
> > usec, not available)
> > 			Properties:
> > 				device.icon_name = "video-display"
> > 			Part of profile(s): output:hdmi-stereo-extra1,
> > output:hdmi-surround-extra1, output:hdmi-surround71-extra1
> > 		hdmi-output-2: HDMI / DisplayPort 3 (priority: 5700, latency offset: 0
> > usec, not available)
> > 			Properties:
> > 				device.icon_name = "video-display"
> > 			Part of profile(s): output:hdmi-stereo-extra2,
> > output:hdmi-surround-extra2, output:hdmi-surround71-extra2
> > 
> > Card #1
> > 	Name: alsa_card.pci-0000_00_1b.0
> > 	Driver: module-alsa-card.c
> > 	Owner Module: 7
> > 	Properties:
> > 		alsa.card = "1"
> > 		alsa.card_name = "HDA Intel PCH"
> > 		alsa.long_card_name = "HDA Intel PCH at 0xd2714000 irq 29"
> > 		alsa.driver_name = "snd_hda_intel"
> > 		device.bus_path = "pci-0000:00:1b.0"
> > 		sysfs.path = "/devices/pci0000:00/0000:00:1b.0/sound/card1"
> > 		device.bus = "pci"
> > 		device.vendor.id = "8086"
> > 		device.vendor.name = "Intel Corporation"
> > 		device.product.id = "8c20"
> > 		device.product.name = "8 Series/C220 Series Chipset High Definition Audio
> > Controller"
> > 		device.form_factor = "internal"
> > 		device.string = "1"
> > 		device.description = "Built-in Audio"
> > 		module-udev-detect.discovered = "1"
> > 		device.icon_name = "audio-card-pci"
> > 	Profiles:
> > 		input:analog-stereo: Analog Stereo Input (sinks: 0, sources: 1, priority:
> > 60, available: yes)
> > 		output:analog-stereo: Analog Stereo Output (sinks: 1, sources: 0,
> > priority: 6000, available: yes)
> > 		output:analog-stereo+input:analog-stereo: Analog Stereo Duplex (sinks: 1,
> > sources: 1, priority: 6060, available: yes)
> > 		output:analog-surround-40: Analog Surround 4.0 Output (sinks: 1, sources:
> > 0, priority: 700, available: yes)
> > 		output:analog-surround-40+input:analog-stereo: Analog Surround 4.0 Output
> > + Analog Stereo Input (sinks: 1, sources: 1, priority: 760, available: yes)
> > 		off: Off (sinks: 0, sources: 0, priority: 0, available: yes)
> > 	Active Profile: output:analog-stereo+input:analog-stereo
> > 	Ports:
> > 		analog-input-internal-mic: Internal Microphone (priority: 8900, latency
> > offset: 0 usec)
> > 			Properties:
> > 				device.icon_name = "audio-input-microphone"
> > 			Part of profile(s): input:analog-stereo,
> > output:analog-stereo+input:analog-stereo,
> > output:analog-surround-40+input:analog-stereo
> > 		analog-input-mic: Microphone (priority: 8700, latency offset: 0 usec, not
> > available)
> > 			Properties:
> > 				device.icon_name = "audio-input-microphone"
> > 			Part of profile(s): input:analog-stereo,
> > output:analog-stereo+input:analog-stereo,
> > output:analog-surround-40+input:analog-stereo
> > 		analog-output-speaker: Speakers (priority: 10000, latency offset: 0 usec)
> > 			Properties:
> > 				device.icon_name = "audio-speakers"
> > 			Part of profile(s): output:analog-stereo,
> > output:analog-stereo+input:analog-stereo, output:analog-surround-40,
> > output:analog-surround-40+input:analog-stereo
> > 		analog-output-headphones: Headphones (priority: 9000, latency offset: 0
> > usec)
> > 			Properties:
> > 				device.icon_name = "audio-headphones"
> > 			Part of profile(s): output:analog-stereo,
> > output:analog-stereo+input:analog-stereo
> > immu@immu-Alienware-14:~$ while read -r line; do
> > >   amixer -c1 cget "$line"
> > > done <<< $(amixer -c1 controls | grep Jack)
> > numid=43,iface=CARD,name='Headphone Front Jack'
> >   ; type=BOOLEAN,access=r-------,values=1
> >   : values=off
> > numid=44,iface=CARD,name='Headphone Surround Jack'
> >   ; type=BOOLEAN,access=r-------,values=1
> >   : values=off
> > numid=42,iface=CARD,name='Internal Mic Phantom Jack'
> >   ; type=BOOLEAN,access=r-------,values=1
> >   : values=on
> > numid=41,iface=CARD,name='Mic Jack'
> >   ; type=BOOLEAN,access=r-------,values=1
> >   : values=off
> > numid=45,iface=CARD,name='Speaker Phantom Jack'
> >   ; type=BOOLEAN,access=r-------,values=1
> >   : values=on
> > immu@immu-Alienware-14:~$
> 

Test - with Pin set -  without anything plugged in 

immu@immu-Alienware-14:~$ pactl list cards
Card #0
	Name: alsa_card.pci-0000_00_03.0
	Driver: module-alsa-card.c
	Owner Module: 6
	Properties:
		alsa.card = "0"
		alsa.card_name = "HDA Intel HDMI"
		alsa.long_card_name = "HDA Intel HDMI at 0xd2710000 irq 31"
		alsa.driver_name = "snd_hda_intel"
		device.bus_path = "pci-0000:00:03.0"
		sysfs.path = "/devices/pci0000:00/0000:00:03.0/sound/card0"
		device.bus = "pci"
		device.vendor.id = "8086"
		device.vendor.name = "Intel Corporation"
		device.product.id = "0c0c"
		device.product.name = "Xeon E3-1200 v3/4th Gen Core Processor HD Audio Controller"
		device.form_factor = "internal"
		device.string = "0"
		device.description = "Built-in Audio"
		module-udev-detect.discovered = "1"
		device.icon_name = "audio-card-pci"
	Profiles:
		output:hdmi-stereo: Digital Stereo (HDMI) Output (sinks: 1, sources: 0, priority: 5400, available: no)
		output:hdmi-surround: Digital Surround 5.1 (HDMI) Output (sinks: 1, sources: 0, priority: 300, available: no)
		output:hdmi-surround71: Digital Surround 7.1 (HDMI) Output (sinks: 1, sources: 0, priority: 300, available: no)
		output:hdmi-stereo-extra1: Digital Stereo (HDMI 2) Output (sinks: 1, sources: 0, priority: 5200, available: no)
		output:hdmi-surround-extra1: Digital Surround 5.1 (HDMI 2) Output (sinks: 1, sources: 0, priority: 100, available: no)
		output:hdmi-surround71-extra1: Digital Surround 7.1 (HDMI 2) Output (sinks: 1, sources: 0, priority: 100, available: no)
		output:hdmi-stereo-extra2: Digital Stereo (HDMI 3) Output (sinks: 1, sources: 0, priority: 5200, available: no)
		output:hdmi-surround-extra2: Digital Surround 5.1 (HDMI 3) Output (sinks: 1, sources: 0, priority: 100, available: no)
		output:hdmi-surround71-extra2: Digital Surround 7.1 (HDMI 3) Output (sinks: 1, sources: 0, priority: 100, available: no)
		off: Off (sinks: 0, sources: 0, priority: 0, available: yes)
	Active Profile: off
	Ports:
		hdmi-output-0: HDMI / DisplayPort (priority: 5900, latency offset: 0 usec, not available)
			Properties:
				device.icon_name = "video-display"
			Part of profile(s): output:hdmi-stereo, output:hdmi-surround, output:hdmi-surround71
		hdmi-output-1: HDMI / DisplayPort 2 (priority: 5800, latency offset: 0 usec, not available)
			Properties:
				device.icon_name = "video-display"
			Part of profile(s): output:hdmi-stereo-extra1, output:hdmi-surround-extra1, output:hdmi-surround71-extra1
		hdmi-output-2: HDMI / DisplayPort 3 (priority: 5700, latency offset: 0 usec, not available)
			Properties:
				device.icon_name = "video-display"
			Part of profile(s): output:hdmi-stereo-extra2, output:hdmi-surround-extra2, output:hdmi-surround71-extra2

Card #1
	Name: alsa_card.pci-0000_00_1b.0
	Driver: module-alsa-card.c
	Owner Module: 7
	Properties:
		alsa.card = "1"
		alsa.card_name = "HDA Intel PCH"
		alsa.long_card_name = "HDA Intel PCH at 0xd2714000 irq 30"
		alsa.driver_name = "snd_hda_intel"
		device.bus_path = "pci-0000:00:1b.0"
		sysfs.path = "/devices/pci0000:00/0000:00:1b.0/sound/card1"
		device.bus = "pci"
		device.vendor.id = "8086"
		device.vendor.name = "Intel Corporation"
		device.product.id = "8c20"
		device.product.name = "8 Series/C220 Series Chipset High Definition Audio Controller"
		device.form_factor = "internal"
		device.string = "1"
		device.description = "Built-in Audio"
		module-udev-detect.discovered = "1"
		device.icon_name = "audio-card-pci"
	Profiles:
		input:analog-stereo: Analog Stereo Input (sinks: 0, sources: 1, priority: 60, available: yes)
		output:analog-stereo: Analog Stereo Output (sinks: 1, sources: 0, priority: 6000, available: yes)
		output:analog-stereo+input:analog-stereo: Analog Stereo Duplex (sinks: 1, sources: 1, priority: 6060, available: yes)
		output:analog-surround-40: Analog Surround 4.0 Output (sinks: 1, sources: 0, priority: 700, available: yes)
		output:analog-surround-40+input:analog-stereo: Analog Surround 4.0 Output + Analog Stereo Input (sinks: 1, sources: 1, priority: 760, available: yes)
		off: Off (sinks: 0, sources: 0, priority: 0, available: yes)
	Active Profile: output:analog-stereo+input:analog-stereo
	Ports:
		analog-input-internal-mic: Internal Microphone (priority: 8900, latency offset: 0 usec)
			Properties:
				device.icon_name = "audio-input-microphone"
			Part of profile(s): input:analog-stereo, output:analog-stereo+input:analog-stereo, output:analog-surround-40+input:analog-stereo
		analog-input-mic: Microphone (priority: 8700, latency offset: 0 usec, not available)
			Properties:
				device.icon_name = "audio-input-microphone"
			Part of profile(s): input:analog-stereo, output:analog-stereo+input:analog-stereo, output:analog-surround-40+input:analog-stereo
		analog-output-lineout: Line Out (priority: 9900, latency offset: 0 usec, not available)
			Part of profile(s): output:analog-stereo, output:analog-stereo+input:analog-stereo, output:analog-surround-40, output:analog-surround-40+input:analog-stereo
		analog-output-speaker: Speakers (priority: 10000, latency offset: 0 usec)
			Properties:
				device.icon_name = "audio-speakers"
			Part of profile(s): output:analog-stereo, output:analog-stereo+input:analog-stereo, output:analog-surround-40, output:analog-surround-40+input:analog-stereo
		analog-output-headphones: Headphones (priority: 9000, latency offset: 0 usec, not available)
			Properties:
				device.icon_name = "audio-headphones"
			Part of profile(s): output:analog-stereo, output:analog-stereo+input:analog-stereo
immu@immu-Alienware-14:~$ while read -r line; do
>   amixer -c1 cget "$line"
> done <<< $(amixer -c1 controls | grep Jack)
numid=20,iface=CARD,name='Headphone Jack'
  ; type=BOOLEAN,access=r-------,values=1
  : values=off
numid=21,iface=CARD,name='Headphone Jack',index=1
  ; type=BOOLEAN,access=r-------,values=1
  : values=off
numid=18,iface=CARD,name='Internal Mic Phantom Jack'
  ; type=BOOLEAN,access=r-------,values=1
  : values=on
numid=19,iface=CARD,name='Line Out Jack'
  ; type=BOOLEAN,access=r-------,values=1
  : values=off
numid=17,iface=CARD,name='Mic Jack'
  ; type=BOOLEAN,access=r-------,values=1
  : values=off
numid=22,iface=CARD,name='Speaker Phantom Jack'
  ; type=BOOLEAN,access=r-------,values=1
  : values=on
Comment 23 mohammed imran 2017-08-07 16:51:04 UTC
headphones plugged in to the headphone jack 
Note - headset/mic was used with Pinset

immu@immu-Alienware-14:~$ pactl list cards
Card #0
	Name: alsa_card.pci-0000_00_03.0
	Driver: module-alsa-card.c
	Owner Module: 6
	Properties:
		alsa.card = "0"
		alsa.card_name = "HDA Intel HDMI"
		alsa.long_card_name = "HDA Intel HDMI at 0xd2710000 irq 31"
		alsa.driver_name = "snd_hda_intel"
		device.bus_path = "pci-0000:00:03.0"
		sysfs.path = "/devices/pci0000:00/0000:00:03.0/sound/card0"
		device.bus = "pci"
		device.vendor.id = "8086"
		device.vendor.name = "Intel Corporation"
		device.product.id = "0c0c"
		device.product.name = "Xeon E3-1200 v3/4th Gen Core Processor HD Audio Controller"
		device.form_factor = "internal"
		device.string = "0"
		device.description = "Built-in Audio"
		module-udev-detect.discovered = "1"
		device.icon_name = "audio-card-pci"
	Profiles:
		output:hdmi-stereo: Digital Stereo (HDMI) Output (sinks: 1, sources: 0, priority: 5400, available: no)
		output:hdmi-surround: Digital Surround 5.1 (HDMI) Output (sinks: 1, sources: 0, priority: 300, available: no)
		output:hdmi-surround71: Digital Surround 7.1 (HDMI) Output (sinks: 1, sources: 0, priority: 300, available: no)
		output:hdmi-stereo-extra1: Digital Stereo (HDMI 2) Output (sinks: 1, sources: 0, priority: 5200, available: no)
		output:hdmi-surround-extra1: Digital Surround 5.1 (HDMI 2) Output (sinks: 1, sources: 0, priority: 100, available: no)
		output:hdmi-surround71-extra1: Digital Surround 7.1 (HDMI 2) Output (sinks: 1, sources: 0, priority: 100, available: no)
		output:hdmi-stereo-extra2: Digital Stereo (HDMI 3) Output (sinks: 1, sources: 0, priority: 5200, available: no)
		output:hdmi-surround-extra2: Digital Surround 5.1 (HDMI 3) Output (sinks: 1, sources: 0, priority: 100, available: no)
		output:hdmi-surround71-extra2: Digital Surround 7.1 (HDMI 3) Output (sinks: 1, sources: 0, priority: 100, available: no)
		off: Off (sinks: 0, sources: 0, priority: 0, available: yes)
	Active Profile: off
	Ports:
		hdmi-output-0: HDMI / DisplayPort (priority: 5900, latency offset: 0 usec, not available)
			Properties:
				device.icon_name = "video-display"
			Part of profile(s): output:hdmi-stereo, output:hdmi-surround, output:hdmi-surround71
		hdmi-output-1: HDMI / DisplayPort 2 (priority: 5800, latency offset: 0 usec, not available)
			Properties:
				device.icon_name = "video-display"
			Part of profile(s): output:hdmi-stereo-extra1, output:hdmi-surround-extra1, output:hdmi-surround71-extra1
		hdmi-output-2: HDMI / DisplayPort 3 (priority: 5700, latency offset: 0 usec, not available)
			Properties:
				device.icon_name = "video-display"
			Part of profile(s): output:hdmi-stereo-extra2, output:hdmi-surround-extra2, output:hdmi-surround71-extra2

Card #1
	Name: alsa_card.pci-0000_00_1b.0
	Driver: module-alsa-card.c
	Owner Module: 7
	Properties:
		alsa.card = "1"
		alsa.card_name = "HDA Intel PCH"
		alsa.long_card_name = "HDA Intel PCH at 0xd2714000 irq 30"
		alsa.driver_name = "snd_hda_intel"
		device.bus_path = "pci-0000:00:1b.0"
		sysfs.path = "/devices/pci0000:00/0000:00:1b.0/sound/card1"
		device.bus = "pci"
		device.vendor.id = "8086"
		device.vendor.name = "Intel Corporation"
		device.product.id = "8c20"
		device.product.name = "8 Series/C220 Series Chipset High Definition Audio Controller"
		device.form_factor = "internal"
		device.string = "1"
		device.description = "Built-in Audio"
		module-udev-detect.discovered = "1"
		device.icon_name = "audio-card-pci"
	Profiles:
		input:analog-stereo: Analog Stereo Input (sinks: 0, sources: 1, priority: 60, available: yes)
		output:analog-stereo: Analog Stereo Output (sinks: 1, sources: 0, priority: 6000, available: yes)
		output:analog-stereo+input:analog-stereo: Analog Stereo Duplex (sinks: 1, sources: 1, priority: 6060, available: yes)
		output:analog-surround-40: Analog Surround 4.0 Output (sinks: 1, sources: 0, priority: 700, available: yes)
		output:analog-surround-40+input:analog-stereo: Analog Surround 4.0 Output + Analog Stereo Input (sinks: 1, sources: 1, priority: 760, available: yes)
		off: Off (sinks: 0, sources: 0, priority: 0, available: yes)
	Active Profile: output:analog-stereo+input:analog-stereo
	Ports:
		analog-input-internal-mic: Internal Microphone (priority: 8900, latency offset: 0 usec)
			Properties:
				device.icon_name = "audio-input-microphone"
			Part of profile(s): input:analog-stereo, output:analog-stereo+input:analog-stereo, output:analog-surround-40+input:analog-stereo
		analog-input-mic: Microphone (priority: 8700, latency offset: 0 usec, not available)
			Properties:
				device.icon_name = "audio-input-microphone"
			Part of profile(s): input:analog-stereo, output:analog-stereo+input:analog-stereo, output:analog-surround-40+input:analog-stereo
		analog-output-lineout: Line Out (priority: 9900, latency offset: 0 usec, not available)
			Part of profile(s): output:analog-stereo, output:analog-stereo+input:analog-stereo, output:analog-surround-40, output:analog-surround-40+input:analog-stereo
		analog-output-speaker: Speakers (priority: 10000, latency offset: 0 usec)
			Properties:
				device.icon_name = "audio-speakers"
			Part of profile(s): output:analog-stereo, output:analog-stereo+input:analog-stereo, output:analog-surround-40, output:analog-surround-40+input:analog-stereo
		analog-output-headphones: Headphones (priority: 9000, latency offset: 0 usec, not available)
			Properties:
				device.icon_name = "audio-headphones"
			Part of profile(s): output:analog-stereo, output:analog-stereo+input:analog-stereo
immu@immu-Alienware-14:~$ while read -r line; do
>   amixer -c1 cget "$line"
> done <<< $(amixer -c1 controls | grep Jack)
numid=20,iface=CARD,name='Headphone Jack'
  ; type=BOOLEAN,access=r-------,values=1
  : values=off
numid=21,iface=CARD,name='Headphone Jack',index=1
  ; type=BOOLEAN,access=r-------,values=1
  : values=on
numid=18,iface=CARD,name='Internal Mic Phantom Jack'
  ; type=BOOLEAN,access=r-------,values=1
  : values=on
numid=19,iface=CARD,name='Line Out Jack'
  ; type=BOOLEAN,access=r-------,values=1
  : values=off
numid=17,iface=CARD,name='Mic Jack'
  ; type=BOOLEAN,access=r-------,values=1
  : values=off
numid=22,iface=CARD,name='Speaker Phantom Jack'
  ; type=BOOLEAN,access=r-------,values=1
  : values=on
immu@immu-Alienware-14:~$
Comment 24 mohammed imran 2017-08-07 16:53:23 UTC
 headset plugged in to the headset jack
headset was used with Pin set in hdaretask


immu@immu-Alienware-14:~$ pactl list cards
Card #0
	Name: alsa_card.pci-0000_00_03.0
	Driver: module-alsa-card.c
	Owner Module: 6
	Properties:
		alsa.card = "0"
		alsa.card_name = "HDA Intel HDMI"
		alsa.long_card_name = "HDA Intel HDMI at 0xd2710000 irq 31"
		alsa.driver_name = "snd_hda_intel"
		device.bus_path = "pci-0000:00:03.0"
		sysfs.path = "/devices/pci0000:00/0000:00:03.0/sound/card0"
		device.bus = "pci"
		device.vendor.id = "8086"
		device.vendor.name = "Intel Corporation"
		device.product.id = "0c0c"
		device.product.name = "Xeon E3-1200 v3/4th Gen Core Processor HD Audio Controller"
		device.form_factor = "internal"
		device.string = "0"
		device.description = "Built-in Audio"
		module-udev-detect.discovered = "1"
		device.icon_name = "audio-card-pci"
	Profiles:
		output:hdmi-stereo: Digital Stereo (HDMI) Output (sinks: 1, sources: 0, priority: 5400, available: no)
		output:hdmi-surround: Digital Surround 5.1 (HDMI) Output (sinks: 1, sources: 0, priority: 300, available: no)
		output:hdmi-surround71: Digital Surround 7.1 (HDMI) Output (sinks: 1, sources: 0, priority: 300, available: no)
		output:hdmi-stereo-extra1: Digital Stereo (HDMI 2) Output (sinks: 1, sources: 0, priority: 5200, available: no)
		output:hdmi-surround-extra1: Digital Surround 5.1 (HDMI 2) Output (sinks: 1, sources: 0, priority: 100, available: no)
		output:hdmi-surround71-extra1: Digital Surround 7.1 (HDMI 2) Output (sinks: 1, sources: 0, priority: 100, available: no)
		output:hdmi-stereo-extra2: Digital Stereo (HDMI 3) Output (sinks: 1, sources: 0, priority: 5200, available: no)
		output:hdmi-surround-extra2: Digital Surround 5.1 (HDMI 3) Output (sinks: 1, sources: 0, priority: 100, available: no)
		output:hdmi-surround71-extra2: Digital Surround 7.1 (HDMI 3) Output (sinks: 1, sources: 0, priority: 100, available: no)
		off: Off (sinks: 0, sources: 0, priority: 0, available: yes)
	Active Profile: off
	Ports:
		hdmi-output-0: HDMI / DisplayPort (priority: 5900, latency offset: 0 usec, not available)
			Properties:
				device.icon_name = "video-display"
			Part of profile(s): output:hdmi-stereo, output:hdmi-surround, output:hdmi-surround71
		hdmi-output-1: HDMI / DisplayPort 2 (priority: 5800, latency offset: 0 usec, not available)
			Properties:
				device.icon_name = "video-display"
			Part of profile(s): output:hdmi-stereo-extra1, output:hdmi-surround-extra1, output:hdmi-surround71-extra1
		hdmi-output-2: HDMI / DisplayPort 3 (priority: 5700, latency offset: 0 usec, not available)
			Properties:
				device.icon_name = "video-display"
			Part of profile(s): output:hdmi-stereo-extra2, output:hdmi-surround-extra2, output:hdmi-surround71-extra2

Card #1
	Name: alsa_card.pci-0000_00_1b.0
	Driver: module-alsa-card.c
	Owner Module: 7
	Properties:
		alsa.card = "1"
		alsa.card_name = "HDA Intel PCH"
		alsa.long_card_name = "HDA Intel PCH at 0xd2714000 irq 30"
		alsa.driver_name = "snd_hda_intel"
		device.bus_path = "pci-0000:00:1b.0"
		sysfs.path = "/devices/pci0000:00/0000:00:1b.0/sound/card1"
		device.bus = "pci"
		device.vendor.id = "8086"
		device.vendor.name = "Intel Corporation"
		device.product.id = "8c20"
		device.product.name = "8 Series/C220 Series Chipset High Definition Audio Controller"
		device.form_factor = "internal"
		device.string = "1"
		device.description = "Built-in Audio"
		module-udev-detect.discovered = "1"
		device.icon_name = "audio-card-pci"
	Profiles:
		input:analog-stereo: Analog Stereo Input (sinks: 0, sources: 1, priority: 60, available: yes)
		output:analog-stereo: Analog Stereo Output (sinks: 1, sources: 0, priority: 6000, available: yes)
		output:analog-stereo+input:analog-stereo: Analog Stereo Duplex (sinks: 1, sources: 1, priority: 6060, available: yes)
		output:analog-surround-40: Analog Surround 4.0 Output (sinks: 1, sources: 0, priority: 700, available: no)
		output:analog-surround-40+input:analog-stereo: Analog Surround 4.0 Output + Analog Stereo Input (sinks: 1, sources: 1, priority: 760, available: yes)
		off: Off (sinks: 0, sources: 0, priority: 0, available: yes)
	Active Profile: output:analog-stereo+input:analog-stereo
	Ports:
		analog-input-internal-mic: Internal Microphone (priority: 8900, latency offset: 0 usec)
			Properties:
				device.icon_name = "audio-input-microphone"
			Part of profile(s): input:analog-stereo, output:analog-stereo+input:analog-stereo, output:analog-surround-40+input:analog-stereo
		analog-input-mic: Microphone (priority: 8700, latency offset: 0 usec, not available)
			Properties:
				device.icon_name = "audio-input-microphone"
			Part of profile(s): input:analog-stereo, output:analog-stereo+input:analog-stereo, output:analog-surround-40+input:analog-stereo
		analog-output-lineout: Line Out (priority: 9900, latency offset: 0 usec, not available)
			Part of profile(s): output:analog-stereo, output:analog-stereo+input:analog-stereo, output:analog-surround-40, output:analog-surround-40+input:analog-stereo
		analog-output-speaker: Speakers (priority: 10000, latency offset: 0 usec, not available)
			Properties:
				device.icon_name = "audio-speakers"
			Part of profile(s): output:analog-stereo, output:analog-stereo+input:analog-stereo, output:analog-surround-40, output:analog-surround-40+input:analog-stereo
		analog-output-headphones: Headphones (priority: 9000, latency offset: 0 usec, available)
			Properties:
				device.icon_name = "audio-headphones"
			Part of profile(s): output:analog-stereo, output:analog-stereo+input:analog-stereo
immu@immu-Alienware-14:~$ while read -r line; do
>   amixer -c1 cget "$line"
> done <<< $(amixer -c1 controls | grep Jack)
numid=20,iface=CARD,name='Headphone Jack'
  ; type=BOOLEAN,access=r-------,values=1
  : values=on
numid=21,iface=CARD,name='Headphone Jack',index=1
  ; type=BOOLEAN,access=r-------,values=1
  : values=off
numid=18,iface=CARD,name='Internal Mic Phantom Jack'
  ; type=BOOLEAN,access=r-------,values=1
  : values=on
numid=19,iface=CARD,name='Line Out Jack'
  ; type=BOOLEAN,access=r-------,values=1
  : values=off
numid=17,iface=CARD,name='Mic Jack'
  ; type=BOOLEAN,access=r-------,values=1
  : values=off
numid=22,iface=CARD,name='Speaker Phantom Jack'
  ; type=BOOLEAN,access=r-------,values=1
  : values=on
immu@immu-Alienware-14:~$
Comment 25 mohammed imran 2017-08-07 16:57:50 UTC
- microphone plugged in to the microphone jack /with pinset
& headset is used for it.



immu@immu-Alienware-14:~$ pactl list cards
Card #0
	Name: alsa_card.pci-0000_00_03.0
	Driver: module-alsa-card.c
	Owner Module: 6
	Properties:
		alsa.card = "0"
		alsa.card_name = "HDA Intel HDMI"
		alsa.long_card_name = "HDA Intel HDMI at 0xd2710000 irq 31"
		alsa.driver_name = "snd_hda_intel"
		device.bus_path = "pci-0000:00:03.0"
		sysfs.path = "/devices/pci0000:00/0000:00:03.0/sound/card0"
		device.bus = "pci"
		device.vendor.id = "8086"
		device.vendor.name = "Intel Corporation"
		device.product.id = "0c0c"
		device.product.name = "Xeon E3-1200 v3/4th Gen Core Processor HD Audio Controller"
		device.form_factor = "internal"
		device.string = "0"
		device.description = "Built-in Audio"
		module-udev-detect.discovered = "1"
		device.icon_name = "audio-card-pci"
	Profiles:
		output:hdmi-stereo: Digital Stereo (HDMI) Output (sinks: 1, sources: 0, priority: 5400, available: no)
		output:hdmi-surround: Digital Surround 5.1 (HDMI) Output (sinks: 1, sources: 0, priority: 300, available: no)
		output:hdmi-surround71: Digital Surround 7.1 (HDMI) Output (sinks: 1, sources: 0, priority: 300, available: no)
		output:hdmi-stereo-extra1: Digital Stereo (HDMI 2) Output (sinks: 1, sources: 0, priority: 5200, available: no)
		output:hdmi-surround-extra1: Digital Surround 5.1 (HDMI 2) Output (sinks: 1, sources: 0, priority: 100, available: no)
		output:hdmi-surround71-extra1: Digital Surround 7.1 (HDMI 2) Output (sinks: 1, sources: 0, priority: 100, available: no)
		output:hdmi-stereo-extra2: Digital Stereo (HDMI 3) Output (sinks: 1, sources: 0, priority: 5200, available: no)
		output:hdmi-surround-extra2: Digital Surround 5.1 (HDMI 3) Output (sinks: 1, sources: 0, priority: 100, available: no)
		output:hdmi-surround71-extra2: Digital Surround 7.1 (HDMI 3) Output (sinks: 1, sources: 0, priority: 100, available: no)
		off: Off (sinks: 0, sources: 0, priority: 0, available: yes)
	Active Profile: off
	Ports:
		hdmi-output-0: HDMI / DisplayPort (priority: 5900, latency offset: 0 usec, not available)
			Properties:
				device.icon_name = "video-display"
			Part of profile(s): output:hdmi-stereo, output:hdmi-surround, output:hdmi-surround71
		hdmi-output-1: HDMI / DisplayPort 2 (priority: 5800, latency offset: 0 usec, not available)
			Properties:
				device.icon_name = "video-display"
			Part of profile(s): output:hdmi-stereo-extra1, output:hdmi-surround-extra1, output:hdmi-surround71-extra1
		hdmi-output-2: HDMI / DisplayPort 3 (priority: 5700, latency offset: 0 usec, not available)
			Properties:
				device.icon_name = "video-display"
			Part of profile(s): output:hdmi-stereo-extra2, output:hdmi-surround-extra2, output:hdmi-surround71-extra2

Card #1
	Name: alsa_card.pci-0000_00_1b.0
	Driver: module-alsa-card.c
	Owner Module: 7
	Properties:
		alsa.card = "1"
		alsa.card_name = "HDA Intel PCH"
		alsa.long_card_name = "HDA Intel PCH at 0xd2714000 irq 30"
		alsa.driver_name = "snd_hda_intel"
		device.bus_path = "pci-0000:00:1b.0"
		sysfs.path = "/devices/pci0000:00/0000:00:1b.0/sound/card1"
		device.bus = "pci"
		device.vendor.id = "8086"
		device.vendor.name = "Intel Corporation"
		device.product.id = "8c20"
		device.product.name = "8 Series/C220 Series Chipset High Definition Audio Controller"
		device.form_factor = "internal"
		device.string = "1"
		device.description = "Built-in Audio"
		module-udev-detect.discovered = "1"
		device.icon_name = "audio-card-pci"
	Profiles:
		input:analog-stereo: Analog Stereo Input (sinks: 0, sources: 1, priority: 60, available: yes)
		output:analog-stereo: Analog Stereo Output (sinks: 1, sources: 0, priority: 6000, available: yes)
		output:analog-stereo+input:analog-stereo: Analog Stereo Duplex (sinks: 1, sources: 1, priority: 6060, available: yes)
		output:analog-surround-40: Analog Surround 4.0 Output (sinks: 1, sources: 0, priority: 700, available: yes)
		output:analog-surround-40+input:analog-stereo: Analog Surround 4.0 Output + Analog Stereo Input (sinks: 1, sources: 1, priority: 760, available: yes)
		off: Off (sinks: 0, sources: 0, priority: 0, available: yes)
	Active Profile: output:analog-stereo+input:analog-stereo
	Ports:
		analog-input-internal-mic: Internal Microphone (priority: 8900, latency offset: 0 usec, not available)
			Properties:
				device.icon_name = "audio-input-microphone"
			Part of profile(s): input:analog-stereo, output:analog-stereo+input:analog-stereo, output:analog-surround-40+input:analog-stereo
		analog-input-mic: Microphone (priority: 8700, latency offset: 0 usec, available)
			Properties:
				device.icon_name = "audio-input-microphone"
			Part of profile(s): input:analog-stereo, output:analog-stereo+input:analog-stereo, output:analog-surround-40+input:analog-stereo
		analog-output-lineout: Line Out (priority: 9900, latency offset: 0 usec, not available)
			Part of profile(s): output:analog-stereo, output:analog-stereo+input:analog-stereo, output:analog-surround-40, output:analog-surround-40+input:analog-stereo
		analog-output-speaker: Speakers (priority: 10000, latency offset: 0 usec)
			Properties:
				device.icon_name = "audio-speakers"
			Part of profile(s): output:analog-stereo, output:analog-stereo+input:analog-stereo, output:analog-surround-40, output:analog-surround-40+input:analog-stereo
		analog-output-headphones: Headphones (priority: 9000, latency offset: 0 usec, not available)
			Properties:
				device.icon_name = "audio-headphones"
			Part of profile(s): output:analog-stereo, output:analog-stereo+input:analog-stereo
immu@immu-Alienware-14:~$ while read -r line; do
>   amixer -c1 cget "$line"
> done <<< $(amixer -c1 controls | grep Jack)
numid=20,iface=CARD,name='Headphone Jack'
  ; type=BOOLEAN,access=r-------,values=1
  : values=off
numid=21,iface=CARD,name='Headphone Jack',index=1
  ; type=BOOLEAN,access=r-------,values=1
  : values=off
numid=18,iface=CARD,name='Internal Mic Phantom Jack'
  ; type=BOOLEAN,access=r-------,values=1
  : values=on
numid=19,iface=CARD,name='Line Out Jack'
  ; type=BOOLEAN,access=r-------,values=1
  : values=off
numid=17,iface=CARD,name='Mic Jack'
  ; type=BOOLEAN,access=r-------,values=1
  : values=on
numid=22,iface=CARD,name='Speaker Phantom Jack'
  ; type=BOOLEAN,access=r-------,values=1
  : values=on
immu@immu-Alienware-14:~$
Comment 26 mohammed imran 2017-08-07 17:10:23 UTC
headphones plugged in to the headphone jack 
Note - Headset used without pin set


immu@immu-Alienware-14:~$ pactl list cards
Card #0
	Name: alsa_card.pci-0000_00_03.0
	Driver: module-alsa-card.c
	Owner Module: 6
	Properties:
		alsa.card = "0"
		alsa.card_name = "HDA Intel HDMI"
		alsa.long_card_name = "HDA Intel HDMI at 0xd2710000 irq 32"
		alsa.driver_name = "snd_hda_intel"
		device.bus_path = "pci-0000:00:03.0"
		sysfs.path = "/devices/pci0000:00/0000:00:03.0/sound/card0"
		device.bus = "pci"
		device.vendor.id = "8086"
		device.vendor.name = "Intel Corporation"
		device.product.id = "0c0c"
		device.product.name = "Xeon E3-1200 v3/4th Gen Core Processor HD Audio Controller"
		device.form_factor = "internal"
		device.string = "0"
		device.description = "Built-in Audio"
		module-udev-detect.discovered = "1"
		device.icon_name = "audio-card-pci"
	Profiles:
		output:hdmi-stereo: Digital Stereo (HDMI) Output (sinks: 1, sources: 0, priority: 5400, available: no)
		output:hdmi-surround: Digital Surround 5.1 (HDMI) Output (sinks: 1, sources: 0, priority: 300, available: no)
		output:hdmi-surround71: Digital Surround 7.1 (HDMI) Output (sinks: 1, sources: 0, priority: 300, available: no)
		output:hdmi-stereo-extra1: Digital Stereo (HDMI 2) Output (sinks: 1, sources: 0, priority: 5200, available: no)
		output:hdmi-surround-extra1: Digital Surround 5.1 (HDMI 2) Output (sinks: 1, sources: 0, priority: 100, available: no)
		output:hdmi-surround71-extra1: Digital Surround 7.1 (HDMI 2) Output (sinks: 1, sources: 0, priority: 100, available: no)
		output:hdmi-stereo-extra2: Digital Stereo (HDMI 3) Output (sinks: 1, sources: 0, priority: 5200, available: no)
		output:hdmi-surround-extra2: Digital Surround 5.1 (HDMI 3) Output (sinks: 1, sources: 0, priority: 100, available: no)
		output:hdmi-surround71-extra2: Digital Surround 7.1 (HDMI 3) Output (sinks: 1, sources: 0, priority: 100, available: no)
		off: Off (sinks: 0, sources: 0, priority: 0, available: yes)
	Active Profile: off
	Ports:
		hdmi-output-0: HDMI / DisplayPort (priority: 5900, latency offset: 0 usec, not available)
			Properties:
				device.icon_name = "video-display"
			Part of profile(s): output:hdmi-stereo, output:hdmi-surround, output:hdmi-surround71
		hdmi-output-1: HDMI / DisplayPort 2 (priority: 5800, latency offset: 0 usec, not available)
			Properties:
				device.icon_name = "video-display"
			Part of profile(s): output:hdmi-stereo-extra1, output:hdmi-surround-extra1, output:hdmi-surround71-extra1
		hdmi-output-2: HDMI / DisplayPort 3 (priority: 5700, latency offset: 0 usec, not available)
			Properties:
				device.icon_name = "video-display"
			Part of profile(s): output:hdmi-stereo-extra2, output:hdmi-surround-extra2, output:hdmi-surround71-extra2

Card #1
	Name: alsa_card.pci-0000_00_1b.0
	Driver: module-alsa-card.c
	Owner Module: 7
	Properties:
		alsa.card = "1"
		alsa.card_name = "HDA Intel PCH"
		alsa.long_card_name = "HDA Intel PCH at 0xd2714000 irq 31"
		alsa.driver_name = "snd_hda_intel"
		device.bus_path = "pci-0000:00:1b.0"
		sysfs.path = "/devices/pci0000:00/0000:00:1b.0/sound/card1"
		device.bus = "pci"
		device.vendor.id = "8086"
		device.vendor.name = "Intel Corporation"
		device.product.id = "8c20"
		device.product.name = "8 Series/C220 Series Chipset High Definition Audio Controller"
		device.form_factor = "internal"
		device.string = "1"
		device.description = "Built-in Audio"
		module-udev-detect.discovered = "1"
		device.icon_name = "audio-card-pci"
	Profiles:
		input:analog-stereo: Analog Stereo Input (sinks: 0, sources: 1, priority: 60, available: yes)
		output:analog-stereo: Analog Stereo Output (sinks: 1, sources: 0, priority: 6000, available: yes)
		output:analog-stereo+input:analog-stereo: Analog Stereo Duplex (sinks: 1, sources: 1, priority: 6060, available: yes)
		output:analog-surround-40: Analog Surround 4.0 Output (sinks: 1, sources: 0, priority: 700, available: yes)
		output:analog-surround-40+input:analog-stereo: Analog Surround 4.0 Output + Analog Stereo Input (sinks: 1, sources: 1, priority: 760, available: yes)
		off: Off (sinks: 0, sources: 0, priority: 0, available: yes)
	Active Profile: output:analog-stereo+input:analog-stereo
	Ports:
		analog-input-internal-mic: Internal Microphone (priority: 8900, latency offset: 0 usec)
			Properties:
				device.icon_name = "audio-input-microphone"
			Part of profile(s): input:analog-stereo, output:analog-stereo+input:analog-stereo, output:analog-surround-40+input:analog-stereo
		analog-input-mic: Microphone (priority: 8700, latency offset: 0 usec, not available)
			Properties:
				device.icon_name = "audio-input-microphone"
			Part of profile(s): input:analog-stereo, output:analog-stereo+input:analog-stereo, output:analog-surround-40+input:analog-stereo
		analog-output-speaker: Speakers (priority: 10000, latency offset: 0 usec)
			Properties:
				device.icon_name = "audio-speakers"
			Part of profile(s): output:analog-stereo, output:analog-stereo+input:analog-stereo, output:analog-surround-40, output:analog-surround-40+input:analog-stereo
		analog-output-headphones: Headphones (priority: 9000, latency offset: 0 usec)
			Properties:
				device.icon_name = "audio-headphones"
			Part of profile(s): output:analog-stereo, output:analog-stereo+input:analog-stereo
immu@immu-Alienware-14:~$ while read -r line; do
>   amixer -c1 cget "$line"
> done <<< $(amixer -c1 controls | grep Jack)
numid=18,iface=CARD,name='Headphone Front Jack'
  ; type=BOOLEAN,access=r-------,values=1
  : values=off
numid=19,iface=CARD,name='Headphone Surround Jack'
  ; type=BOOLEAN,access=r-------,values=1
  : values=on
numid=17,iface=CARD,name='Internal Mic Phantom Jack'
  ; type=BOOLEAN,access=r-------,values=1
  : values=on
numid=16,iface=CARD,name='Mic Jack'
  ; type=BOOLEAN,access=r-------,values=1
  : values=off
numid=20,iface=CARD,name='Speaker Phantom Jack'
  ; type=BOOLEAN,access=r-------,values=1
  : values=on
immu@immu-Alienware-14:~$
Comment 27 mohammed imran 2017-08-07 17:18:37 UTC
- headset plugged in to the headset jack 
headset was used without pinset




immu@immu-Alienware-14:~$ pactl list cards
Card #0
	Name: alsa_card.pci-0000_00_03.0
	Driver: module-alsa-card.c
	Owner Module: 6
	Properties:
		alsa.card = "0"
		alsa.card_name = "HDA Intel HDMI"
		alsa.long_card_name = "HDA Intel HDMI at 0xd2710000 irq 32"
		alsa.driver_name = "snd_hda_intel"
		device.bus_path = "pci-0000:00:03.0"
		sysfs.path = "/devices/pci0000:00/0000:00:03.0/sound/card0"
		device.bus = "pci"
		device.vendor.id = "8086"
		device.vendor.name = "Intel Corporation"
		device.product.id = "0c0c"
		device.product.name = "Xeon E3-1200 v3/4th Gen Core Processor HD Audio Controller"
		device.form_factor = "internal"
		device.string = "0"
		device.description = "Built-in Audio"
		module-udev-detect.discovered = "1"
		device.icon_name = "audio-card-pci"
	Profiles:
		output:hdmi-stereo: Digital Stereo (HDMI) Output (sinks: 1, sources: 0, priority: 5400, available: no)
		output:hdmi-surround: Digital Surround 5.1 (HDMI) Output (sinks: 1, sources: 0, priority: 300, available: no)
		output:hdmi-surround71: Digital Surround 7.1 (HDMI) Output (sinks: 1, sources: 0, priority: 300, available: no)
		output:hdmi-stereo-extra1: Digital Stereo (HDMI 2) Output (sinks: 1, sources: 0, priority: 5200, available: no)
		output:hdmi-surround-extra1: Digital Surround 5.1 (HDMI 2) Output (sinks: 1, sources: 0, priority: 100, available: no)
		output:hdmi-surround71-extra1: Digital Surround 7.1 (HDMI 2) Output (sinks: 1, sources: 0, priority: 100, available: no)
		output:hdmi-stereo-extra2: Digital Stereo (HDMI 3) Output (sinks: 1, sources: 0, priority: 5200, available: no)
		output:hdmi-surround-extra2: Digital Surround 5.1 (HDMI 3) Output (sinks: 1, sources: 0, priority: 100, available: no)
		output:hdmi-surround71-extra2: Digital Surround 7.1 (HDMI 3) Output (sinks: 1, sources: 0, priority: 100, available: no)
		off: Off (sinks: 0, sources: 0, priority: 0, available: yes)
	Active Profile: off
	Ports:
		hdmi-output-0: HDMI / DisplayPort (priority: 5900, latency offset: 0 usec, not available)
			Properties:
				device.icon_name = "video-display"
			Part of profile(s): output:hdmi-stereo, output:hdmi-surround, output:hdmi-surround71
		hdmi-output-1: HDMI / DisplayPort 2 (priority: 5800, latency offset: 0 usec, not available)
			Properties:
				device.icon_name = "video-display"
			Part of profile(s): output:hdmi-stereo-extra1, output:hdmi-surround-extra1, output:hdmi-surround71-extra1
		hdmi-output-2: HDMI / DisplayPort 3 (priority: 5700, latency offset: 0 usec, not available)
			Properties:
				device.icon_name = "video-display"
			Part of profile(s): output:hdmi-stereo-extra2, output:hdmi-surround-extra2, output:hdmi-surround71-extra2

Card #1
	Name: alsa_card.pci-0000_00_1b.0
	Driver: module-alsa-card.c
	Owner Module: 7
	Properties:
		alsa.card = "1"
		alsa.card_name = "HDA Intel PCH"
		alsa.long_card_name = "HDA Intel PCH at 0xd2714000 irq 31"
		alsa.driver_name = "snd_hda_intel"
		device.bus_path = "pci-0000:00:1b.0"
		sysfs.path = "/devices/pci0000:00/0000:00:1b.0/sound/card1"
		device.bus = "pci"
		device.vendor.id = "8086"
		device.vendor.name = "Intel Corporation"
		device.product.id = "8c20"
		device.product.name = "8 Series/C220 Series Chipset High Definition Audio Controller"
		device.form_factor = "internal"
		device.string = "1"
		device.description = "Built-in Audio"
		module-udev-detect.discovered = "1"
		device.icon_name = "audio-card-pci"
	Profiles:
		input:analog-stereo: Analog Stereo Input (sinks: 0, sources: 1, priority: 60, available: yes)
		output:analog-stereo: Analog Stereo Output (sinks: 1, sources: 0, priority: 6000, available: yes)
		output:analog-stereo+input:analog-stereo: Analog Stereo Duplex (sinks: 1, sources: 1, priority: 6060, available: yes)
		output:analog-surround-40: Analog Surround 4.0 Output (sinks: 1, sources: 0, priority: 700, available: yes)
		output:analog-surround-40+input:analog-stereo: Analog Surround 4.0 Output + Analog Stereo Input (sinks: 1, sources: 1, priority: 760, available: yes)
		off: Off (sinks: 0, sources: 0, priority: 0, available: yes)
	Active Profile: output:analog-stereo+input:analog-stereo
	Ports:
		analog-input-internal-mic: Internal Microphone (priority: 8900, latency offset: 0 usec)
			Properties:
				device.icon_name = "audio-input-microphone"
			Part of profile(s): input:analog-stereo, output:analog-stereo+input:analog-stereo, output:analog-surround-40+input:analog-stereo
		analog-input-mic: Microphone (priority: 8700, latency offset: 0 usec, not available)
			Properties:
				device.icon_name = "audio-input-microphone"
			Part of profile(s): input:analog-stereo, output:analog-stereo+input:analog-stereo, output:analog-surround-40+input:analog-stereo
		analog-output-speaker: Speakers (priority: 10000, latency offset: 0 usec)
			Properties:
				device.icon_name = "audio-speakers"
			Part of profile(s): output:analog-stereo, output:analog-stereo+input:analog-stereo, output:analog-surround-40, output:analog-surround-40+input:analog-stereo
		analog-output-headphones: Headphones (priority: 9000, latency offset: 0 usec)
			Properties:
				device.icon_name = "audio-headphones"
			Part of profile(s): output:analog-stereo, output:analog-stereo+input:analog-stereo
immu@immu-Alienware-14:~$ while read -r line; do
>   amixer -c1 cget "$line"
> done <<< $(amixer -c1 controls | grep Jack)
numid=18,iface=CARD,name='Headphone Front Jack'
  ; type=BOOLEAN,access=r-------,values=1
  : values=on
numid=19,iface=CARD,name='Headphone Surround Jack'
  ; type=BOOLEAN,access=r-------,values=1
  : values=off
numid=17,iface=CARD,name='Internal Mic Phantom Jack'
  ; type=BOOLEAN,access=r-------,values=1
  : values=on
numid=16,iface=CARD,name='Mic Jack'
  ; type=BOOLEAN,access=r-------,values=1
  : values=off
numid=20,iface=CARD,name='Speaker Phantom Jack'
  ; type=BOOLEAN,access=r-------,values=1
  : values=on
Comment 28 mohammed imran 2017-08-07 17:25:40 UTC
- microphone plugged in to the microphone jack
headset used without pinset

immu@immu-Alienware-14:~$ pactl list cards
Card #0
	Name: alsa_card.pci-0000_00_03.0
	Driver: module-alsa-card.c
	Owner Module: 6
	Properties:
		alsa.card = "0"
		alsa.card_name = "HDA Intel HDMI"
		alsa.long_card_name = "HDA Intel HDMI at 0xd2710000 irq 32"
		alsa.driver_name = "snd_hda_intel"
		device.bus_path = "pci-0000:00:03.0"
		sysfs.path = "/devices/pci0000:00/0000:00:03.0/sound/card0"
		device.bus = "pci"
		device.vendor.id = "8086"
		device.vendor.name = "Intel Corporation"
		device.product.id = "0c0c"
		device.product.name = "Xeon E3-1200 v3/4th Gen Core Processor HD Audio Controller"
		device.form_factor = "internal"
		device.string = "0"
		device.description = "Built-in Audio"
		module-udev-detect.discovered = "1"
		device.icon_name = "audio-card-pci"
	Profiles:
		output:hdmi-stereo: Digital Stereo (HDMI) Output (sinks: 1, sources: 0, priority: 5400, available: no)
		output:hdmi-surround: Digital Surround 5.1 (HDMI) Output (sinks: 1, sources: 0, priority: 300, available: no)
		output:hdmi-surround71: Digital Surround 7.1 (HDMI) Output (sinks: 1, sources: 0, priority: 300, available: no)
		output:hdmi-stereo-extra1: Digital Stereo (HDMI 2) Output (sinks: 1, sources: 0, priority: 5200, available: no)
		output:hdmi-surround-extra1: Digital Surround 5.1 (HDMI 2) Output (sinks: 1, sources: 0, priority: 100, available: no)
		output:hdmi-surround71-extra1: Digital Surround 7.1 (HDMI 2) Output (sinks: 1, sources: 0, priority: 100, available: no)
		output:hdmi-stereo-extra2: Digital Stereo (HDMI 3) Output (sinks: 1, sources: 0, priority: 5200, available: no)
		output:hdmi-surround-extra2: Digital Surround 5.1 (HDMI 3) Output (sinks: 1, sources: 0, priority: 100, available: no)
		output:hdmi-surround71-extra2: Digital Surround 7.1 (HDMI 3) Output (sinks: 1, sources: 0, priority: 100, available: no)
		off: Off (sinks: 0, sources: 0, priority: 0, available: yes)
	Active Profile: off
	Ports:
		hdmi-output-0: HDMI / DisplayPort (priority: 5900, latency offset: 0 usec, not available)
			Properties:
				device.icon_name = "video-display"
			Part of profile(s): output:hdmi-stereo, output:hdmi-surround, output:hdmi-surround71
		hdmi-output-1: HDMI / DisplayPort 2 (priority: 5800, latency offset: 0 usec, not available)
			Properties:
				device.icon_name = "video-display"
			Part of profile(s): output:hdmi-stereo-extra1, output:hdmi-surround-extra1, output:hdmi-surround71-extra1
		hdmi-output-2: HDMI / DisplayPort 3 (priority: 5700, latency offset: 0 usec, not available)
			Properties:
				device.icon_name = "video-display"
			Part of profile(s): output:hdmi-stereo-extra2, output:hdmi-surround-extra2, output:hdmi-surround71-extra2

Card #1
	Name: alsa_card.pci-0000_00_1b.0
	Driver: module-alsa-card.c
	Owner Module: 7
	Properties:
		alsa.card = "1"
		alsa.card_name = "HDA Intel PCH"
		alsa.long_card_name = "HDA Intel PCH at 0xd2714000 irq 31"
		alsa.driver_name = "snd_hda_intel"
		device.bus_path = "pci-0000:00:1b.0"
		sysfs.path = "/devices/pci0000:00/0000:00:1b.0/sound/card1"
		device.bus = "pci"
		device.vendor.id = "8086"
		device.vendor.name = "Intel Corporation"
		device.product.id = "8c20"
		device.product.name = "8 Series/C220 Series Chipset High Definition Audio Controller"
		device.form_factor = "internal"
		device.string = "1"
		device.description = "Built-in Audio"
		module-udev-detect.discovered = "1"
		device.icon_name = "audio-card-pci"
	Profiles:
		input:analog-stereo: Analog Stereo Input (sinks: 0, sources: 1, priority: 60, available: yes)
		output:analog-stereo: Analog Stereo Output (sinks: 1, sources: 0, priority: 6000, available: yes)
		output:analog-stereo+input:analog-stereo: Analog Stereo Duplex (sinks: 1, sources: 1, priority: 6060, available: yes)
		output:analog-surround-40: Analog Surround 4.0 Output (sinks: 1, sources: 0, priority: 700, available: yes)
		output:analog-surround-40+input:analog-stereo: Analog Surround 4.0 Output + Analog Stereo Input (sinks: 1, sources: 1, priority: 760, available: yes)
		off: Off (sinks: 0, sources: 0, priority: 0, available: yes)
	Active Profile: output:analog-stereo+input:analog-stereo
	Ports:
		analog-input-internal-mic: Internal Microphone (priority: 8900, latency offset: 0 usec, not available)
			Properties:
				device.icon_name = "audio-input-microphone"
			Part of profile(s): input:analog-stereo, output:analog-stereo+input:analog-stereo, output:analog-surround-40+input:analog-stereo
		analog-input-mic: Microphone (priority: 8700, latency offset: 0 usec, available)
			Properties:
				device.icon_name = "audio-input-microphone"
			Part of profile(s): input:analog-stereo, output:analog-stereo+input:analog-stereo, output:analog-surround-40+input:analog-stereo
		analog-output-speaker: Speakers (priority: 10000, latency offset: 0 usec)
			Properties:
				device.icon_name = "audio-speakers"
			Part of profile(s): output:analog-stereo, output:analog-stereo+input:analog-stereo, output:analog-surround-40, output:analog-surround-40+input:analog-stereo
		analog-output-headphones: Headphones (priority: 9000, latency offset: 0 usec)
			Properties:
				device.icon_name = "audio-headphones"
			Part of profile(s): output:analog-stereo, output:analog-stereo+input:analog-stereo
immu@immu-Alienware-14:~$ while read -r line; do
>   amixer -c1 cget "$line"
> done <<< $(amixer -c1 controls | grep Jack)
numid=18,iface=CARD,name='Headphone Front Jack'
  ; type=BOOLEAN,access=r-------,values=1
  : values=off
numid=19,iface=CARD,name='Headphone Surround Jack'
  ; type=BOOLEAN,access=r-------,values=1
  : values=off
numid=17,iface=CARD,name='Internal Mic Phantom Jack'
  ; type=BOOLEAN,access=r-------,values=1
  : values=on
numid=16,iface=CARD,name='Mic Jack'
  ; type=BOOLEAN,access=r-------,values=1
  : values=on
numid=20,iface=CARD,name='Speaker Phantom Jack'
  ; type=BOOLEAN,access=r-------,values=1
  : values=on
immu@immu-Alienware-14:~$
Comment 29 mohammed imran 2017-08-07 19:06:08 UTC
Output when connected to Headphone Jack;
Active Port: analog-output-speaker
Active Port: analog-input-internal-mic
.
Output when connected to Headset Jack;
Active Port: analog-output-speaker
Active Port: analog-input-internal-mic
.
Output when connected to Mic Jack;
Active Port: analog-output-speaker
Active Port: analog-input-mic


Note :
I only have headset, no headphone or Mic only.

Hope all the data is now available :) regards, awaiting your reply.

REgards.
Comment 30 Tanu Kaskinen 2017-08-15 07:28:14 UTC
Thanks!

I plan to report a bug in the kernel bugzilla about incorrect jack names in alsa, but before that, I'd like to discuss with the alsa developers about what the correct names would be, because that's not entirely clear to me. I started a thread on the alsa-devel mailing list:
http://mailman.alsa-project.org/pipermail/alsa-devel/2017-August/123990.html
Comment 31 GitLab Migration User 2018-07-30 09:34:09 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/pulseaudio/pulseaudio/issues/16.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.