All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: Audio Jack Out does not work
       [not found] <CAD67Mo_N1_uEtjWKcV4+Rkjrvc6kcZuvUgrMPvBURJX0hFaaMA@mail.gmail.com>
@ 2015-04-07 22:56   ` Dan Carpenter
  0 siblings, 0 replies; 19+ messages in thread
From: Dan Carpenter @ 2015-04-07 22:56 UTC (permalink / raw)
  To: Taylor Smock
  Cc: perex, tiwai, david.henningsson, joe, alsa-devel, linux-kernel

So it's 03ad6a8c93b6df2 ('ALSA: hda - Fix "PCM" name being used on one
DAC when there are two DACs') which causes the problem?  Have you tried
to just revert that patch?

git show 03ad6a8c93b6df2d65c305b5b5f9474068b45bfb | patch -p1 -R

regards,
dan carpenter


^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: Audio Jack Out does not work
@ 2015-04-07 22:56   ` Dan Carpenter
  0 siblings, 0 replies; 19+ messages in thread
From: Dan Carpenter @ 2015-04-07 22:56 UTC (permalink / raw)
  To: Taylor Smock; +Cc: alsa-devel, tiwai, linux-kernel, joe, david.henningsson

So it's 03ad6a8c93b6df2 ('ALSA: hda - Fix "PCM" name being used on one
DAC when there are two DACs') which causes the problem?  Have you tried
to just revert that patch?

git show 03ad6a8c93b6df2d65c305b5b5f9474068b45bfb | patch -p1 -R

regards,
dan carpenter

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: Audio Jack Out does not work
  2015-04-07 22:56   ` Dan Carpenter
  (?)
@ 2015-04-08  1:07   ` Taylor Smock
  2015-04-08  8:22     ` Takashi Iwai
  -1 siblings, 1 reply; 19+ messages in thread
From: Taylor Smock @ 2015-04-08  1:07 UTC (permalink / raw)
  To: Dan Carpenter
  Cc: perex, tiwai, david.henningsson, joe, alsa-devel, linux-kernel

Yes; reverting the patch does fix the problem.

On Wed, 2015-04-08 at 01:56 +0300, Dan Carpenter wrote:
> So it's 03ad6a8c93b6df2 ('ALSA: hda - Fix "PCM" name being used on > one
> DAC when there are two DACs') which causes the problem?  Have you 
> tried
> to just revert that patch?
> 
> git show 03ad6a8c93b6df2d65c305b5b5f9474068b45bfb | patch -p1 -R
> 
> regards,
> dan carpenter
> 

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: Audio Jack Out does not work
  2015-04-07 22:56   ` Dan Carpenter
  (?)
  (?)
@ 2015-04-08  1:57   ` Raymond Yau
  2015-04-08  8:07       ` Dan Carpenter
  -1 siblings, 1 reply; 19+ messages in thread
From: Raymond Yau @ 2015-04-08  1:57 UTC (permalink / raw)
  To: Dan Carpenter
  Cc: alsa-devel, tiwai, linux-kernel, Taylor Smock, joe, david.henningsson

>
> So it's 03ad6a8c93b6df2 ('ALSA: hda - Fix "PCM" name being used on one
> DAC when there are two DACs') which causes the problem?  Have you tried
> to just revert that patch?
>
> git show 03ad6a8c93b6df2d65c305b5b5f9474068b45bfb | patch -p1 -R
>

Please provide output of alsa-info.sh

This patch only change the name of control, you will also need pulseaudio
patch if you are using pulseaudio

http://cgit.freedesktop.org/pulseaudio/pulseaudio/commit/src/modules/alsa/mixer?id=aec811798cd883a454b9b5cd82c77831906bbd2d

Are you using a laptop with two DACs , 2.1 speakers and headphone ?

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [alsa-devel] Audio Jack Out does not work
  2015-04-08  1:57   ` Raymond Yau
@ 2015-04-08  8:07       ` Dan Carpenter
  0 siblings, 0 replies; 19+ messages in thread
From: Dan Carpenter @ 2015-04-08  8:07 UTC (permalink / raw)
  To: Raymond Yau
  Cc: joe, david.henningsson, tiwai, alsa-devel, Taylor Smock, linux-kernel

On Wed, Apr 08, 2015 at 09:57:13AM +0800, Raymond Yau wrote:
> This patch only change the name of control, you will also need pulseaudio
> patch if you are using pulseaudio
> 
> http://cgit.freedesktop.org/pulseaudio/pulseaudio/commit/src/modules/alsa/mixer?id=aec811798cd883a454b9b5cd82c77831906bbd2d

Ugh...  You are going to make Linus start cursing.

https://lkml.org/lkml/2012/12/23/75

regards,
dan carpenter


^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: Audio Jack Out does not work
@ 2015-04-08  8:07       ` Dan Carpenter
  0 siblings, 0 replies; 19+ messages in thread
From: Dan Carpenter @ 2015-04-08  8:07 UTC (permalink / raw)
  To: Raymond Yau
  Cc: alsa-devel, tiwai, linux-kernel, Taylor Smock, joe, david.henningsson

On Wed, Apr 08, 2015 at 09:57:13AM +0800, Raymond Yau wrote:
> This patch only change the name of control, you will also need pulseaudio
> patch if you are using pulseaudio
> 
> http://cgit.freedesktop.org/pulseaudio/pulseaudio/commit/src/modules/alsa/mixer?id=aec811798cd883a454b9b5cd82c77831906bbd2d

Ugh...  You are going to make Linus start cursing.

https://lkml.org/lkml/2012/12/23/75

regards,
dan carpenter

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: Audio Jack Out does not work
  2015-04-08  1:07   ` Taylor Smock
@ 2015-04-08  8:22     ` Takashi Iwai
  2015-04-08 13:34       ` Taylor Smock
  0 siblings, 1 reply; 19+ messages in thread
From: Takashi Iwai @ 2015-04-08  8:22 UTC (permalink / raw)
  To: Taylor Smock
  Cc: Dan Carpenter, perex, david.henningsson, joe, alsa-devel, linux-kernel

At Tue, 07 Apr 2015 21:07:06 -0400,
Taylor Smock wrote:
> 
> Yes; reverting the patch does fix the problem.

What if you just adjust the new volume manually without reverting the
patch?  Run "alsamixer -c0" (or -c1, depending on the setup).  Once
after the setup, run "alsactl store" as root to save as the system
default volume.

The renamed volume should have been set in full volume as default by
the driver, and this shouldn't matter whether PA is new or old.  If
the mixer adjustment isn't kept after relogin or reboot, it means that
some user-space stuff overrides it.

In anyway, please give alsa-info.sh output before and after the
commit.


Takashi

> On Wed, 2015-04-08 at 01:56 +0300, Dan Carpenter wrote:
> > So it's 03ad6a8c93b6df2 ('ALSA: hda - Fix "PCM" name being used on > one
> > DAC when there are two DACs') which causes the problem?  Have you 
> > tried
> > to just revert that patch?
> > 
> > git show 03ad6a8c93b6df2d65c305b5b5f9474068b45bfb | patch -p1 -R
> > 
> > regards,
> > dan carpenter
> > 
> 

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: Audio Jack Out does not work
  2015-04-08  8:07       ` Dan Carpenter
  (?)
@ 2015-04-08 13:20       ` Raymond Yau
  2015-04-08 15:20           ` Dan Carpenter
  -1 siblings, 1 reply; 19+ messages in thread
From: Raymond Yau @ 2015-04-08 13:20 UTC (permalink / raw)
  To: Dan Carpenter
  Cc: alsa-devel, tiwai, linux-kernel, Taylor Smock, joe, david.henningsson

> > This patch only change the name of control, you will also need
pulseaudio
> > patch if you are using pulseaudio
> >
> >
http://cgit.freedesktop.org/pulseaudio/pulseaudio/commit/src/modules/alsa/mixer?id=aec811798cd883a454b9b5cd82c77831906bbd2d
>
> Ugh...  You are going to make Linus start cursing.
>
> https://lkml.org/lkml/2012/12/23/75
>

The patch does not only affect codecs with two DAC , using hda-emu

it also affect several codecs

cmi9880-lg-lw60
idt92hd73c1x5-alienware-m17x
stac9200-dell-precision-490
stac9228-dell-xps-m1330

Rename "PCM playback volume" control also force the system to create
softvol  "PCM playback volume" when application use front or sysdefault
device

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: Audio Jack Out does not work
  2015-04-08  8:22     ` Takashi Iwai
@ 2015-04-08 13:34       ` Taylor Smock
  2015-04-08 14:06           ` Takashi Iwai
  0 siblings, 1 reply; 19+ messages in thread
From: Taylor Smock @ 2015-04-08 13:34 UTC (permalink / raw)
  To: Takashi Iwai
  Cc: Dan Carpenter, perex, david.henningsson, joe, alsa-devel, linux-kernel

[-- Attachment #1: Type: text/plain, Size: 1291 bytes --]

On Wed, 2015-04-08 at 10:22 +0200, Takashi Iwai wrote:
> At Tue, 07 Apr 2015 21:07:06 -0400,
> Taylor Smock wrote:
> > 
> > Yes; reverting the patch does fix the problem.
> 
> What if you just adjust the new volume manually without reverting the
> patch?  Run "alsamixer -c0" (or -c1, depending on the setup).  Once
> after the setup, run "alsactl store" as root to save as the system
> default volume.
> 
> The renamed volume should have been set in full volume as default by
> the driver, and this shouldn't matter whether PA is new or old.  If
> the mixer adjustment isn't kept after relogin or reboot, it means 
> that
> some user-space stuff overrides it.
> 
> In anyway, please give alsa-info.sh output before and after the
> commit.
> 
> 
> Takashi
> 
> > On Wed, 2015-04-08 at 01:56 +0300, Dan Carpenter wrote:
> > > So it's 03ad6a8c93b6df2 ('ALSA: hda - Fix "PCM" name being used 
> > > on > one
> > > DAC when there are two DACs') which causes the problem?  Have 
> > > you 
> > > tried
> > > to just revert that patch?
> > > 
> > > git show 03ad6a8c93b6df2d65c305b5b5f9474068b45bfb | patch -p1 -R
> > > 
> > > regards,
> > > dan carpenter
> > > 
> > 

I ran alsamixer -c0.
Headphones did nothing.
Speaker+L0 did change headphone volume.
PCM also seemed to affect headphone volume.

[-- Attachment #2: alsa-info-noPatch.txt --]
[-- Type: text/plain, Size: 28333 bytes --]

upload=true&script=true&cardinfo=
!!################################
!!ALSA Information Script v 0.4.64
!!################################

!!Script ran on: Wed Apr  8 13:23:33 UTC 2015


!!Linux Distribution
!!------------------

Arch Linux \r (\l) DISTRIB_ID=Arch DISTRIB_DESCRIPTION="Arch Linux" NAME="Arch Linux" ID=arch PRETTY_NAME="Arch Linux" HOME_URL="https://www.archlinux.org/" SUPPORT_URL="https://bbs.archlinux.org/" BUG_REPORT_URL="https://bugs.archlinux.org/"


!!DMI Information
!!---------------

Manufacturer:      FUJITSU
Product Name:      0000000000
Product Version:    
Firmware Version:  Version 1.09


!!Kernel Information
!!------------------

Kernel release:    4.0.0-rc6-gf8b3d8a
Operating System:  GNU/Linux
Architecture:      x86_64
Processor:         unknown
SMP Enabled:       Yes


!!ALSA Version
!!------------

Driver version:     k4.0.0-rc6-gf8b3d8a
Library version:    1.0.29
Utilities version:  1.0.29


!!Loaded ALSA modules
!!-------------------



!!Sound Servers on this system
!!----------------------------

Pulseaudio:
      Installed - Yes (/usr/bin/pulseaudio)
      Running - Yes

Jack:
      Installed - Yes (/usr/bin/jackd)
      Running - No


!!Soundcards recognised by ALSA
!!-----------------------------

 0 [PCH            ]: HDA-Intel - HDA Intel PCH
                      HDA Intel PCH at 0xe2720000 irq 32


!!PCI Soundcards installed in the system
!!--------------------------------------

00:1b.0 Audio device: Intel Corporation 6 Series/C200 Series Chipset Family High Definition Audio Controller (rev 04)


!!Advanced information - PCI Vendor/Device/Subsystem ID's
!!-------------------------------------------------------

00:1b.0 0403: 8086:1c20 (rev 04)
	Subsystem: 10cf:15dc
--
	Region 0: Memory at e0402000 (32-bit, non-prefetchable) [size=512]
	Capabilities: <access denied>
--
	Region 0: Memory at e0401000 (32-bit, non-prefetchable) [size=1K]
	Region 2: Memory at e0400000 (32-bit, non-prefetchable) [size=1K]


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


!!HDA-Intel Codec information
!!---------------------------
--startcollapse--

Codec: Realtek ALC269VB
Address: 0
AFG Function Id: 0x1 (unsol 1)
Vendor Id: 0x10ec0269
Subsystem Id: 0x10cf1100
Revision Id: 0x100100
No Modem Function Group found
Default PCM:
    rates [0x560]: 44100 48000 96000 192000
    bits [0xe]: 16 20 24
    formats [0x1]: PCM
Default Amp-In caps: N/A
Default Amp-Out caps: N/A
State of AFG node 0x01:
  Power states:  D0 D1 D2 D3 CLKSTOP EPSS
  Power: setting=D0, actual=D0
GPIO: io=2, o=0, i=0, unsolicited=1, wake=0
  IO[0]: enable=0, dir=0, wake=0, sticky=0, data=0, unsol=0
  IO[1]: enable=0, dir=0, wake=0, sticky=0, data=0, unsol=0
Node 0x02 [Audio Output] wcaps 0x1d: Stereo Amp-Out
  Control: name="Line Out Playback Volume", index=0, device=0
    ControlAmp: chs=3, dir=Out, idx=0, ofs=0
  Device: name="ALC269VB Analog", type="Audio", device=0
  Amp-Out caps: ofs=0x57, nsteps=0x57, stepsize=0x02, mute=0
  Amp-Out vals:  [0x42 0x42]
  Converter: stream=8, channel=0
  PCM:
    rates [0x560]: 44100 48000 96000 192000
    bits [0xe]: 16 20 24
    formats [0x1]: PCM
Node 0x03 [Audio Output] wcaps 0x1d: 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:  [0x42 0x42]
  Converter: stream=8, channel=0
  PCM:
    rates [0x560]: 44100 48000 96000 192000
    bits [0xe]: 16 20 24
    formats [0x1]: PCM
Node 0x04 [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x05 [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x06 [Audio Output] wcaps 0x211: Stereo Digital
  Converter: stream=0, channel=0
  Digital:
  Digital category: 0x0
  IEC Coding Type: 0x0
  PCM:
    rates [0x5e0]: 44100 48000 88200 96000 192000
    bits [0xe]: 16 20 24
    formats [0x1]: PCM
Node 0x07 [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x08 [Audio Input] wcaps 0x10011b: Stereo Amp-In
  Amp-In caps: ofs=0x0b, nsteps=0x1f, stepsize=0x05, mute=1
  Amp-In vals:  [0x8b 0x8b]
  Converter: stream=0, channel=0
  SDI-Select: 0
  PCM:
    rates [0x560]: 44100 48000 96000 192000
    bits [0xe]: 16 20 24
    formats [0x1]: PCM
  Connection: 1
     0x23
Node 0x09 [Audio Input] wcaps 0x10011b: Stereo Amp-In
  Control: name="Capture Volume", index=0, device=0
    ControlAmp: chs=3, dir=In, idx=0, ofs=0
  Control: name="Capture Switch", index=0, device=0
    ControlAmp: chs=3, dir=In, idx=0, ofs=0
  Device: name="ALC269VB Analog", type="Audio", device=0
  Amp-In caps: ofs=0x0b, nsteps=0x1f, stepsize=0x05, mute=1
  Amp-In vals:  [0x1a 0x1a]
  Converter: stream=4, channel=0
  SDI-Select: 0
  PCM:
    rates [0x560]: 44100 48000 96000 192000
    bits [0xe]: 16 20 24
    formats [0x1]: PCM
  Connection: 1
     0x22
Node 0x0a [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x0b [Audio Mixer] wcaps 0x20010b: Stereo Amp-In
  Control: name="Mic Playback Volume", index=0, device=0
    ControlAmp: chs=3, dir=In, idx=0, ofs=0
  Control: name="Mic Playback Switch", index=0, device=0
    ControlAmp: chs=3, dir=In, idx=0, ofs=0
  Control: name="Beep Playback Volume", index=0, device=0
    ControlAmp: chs=3, dir=In, idx=4, ofs=0
  Control: name="Beep Playback Switch", index=0, device=0
    ControlAmp: chs=3, dir=In, idx=4, ofs=0
  Amp-In caps: ofs=0x17, nsteps=0x1f, stepsize=0x05, mute=1
  Amp-In vals:  [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80]
  Connection: 5
     0x18 0x19 0x1a 0x1b 0x1d
Node 0x0c [Audio Mixer] wcaps 0x20010b: Stereo Amp-In
  Amp-In caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
  Amp-In vals:  [0x00 0x00] [0x00 0x00]
  Connection: 2
     0x02 0x0b
Node 0x0d [Audio Mixer] wcaps 0x20010b: Stereo Amp-In
  Amp-In caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
  Amp-In vals:  [0x00 0x00] [0x00 0x00]
  Connection: 2
     0x03 0x0b
Node 0x0e [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x0f [Audio Mixer] wcaps 0x20010a: Mono Amp-In
  Amp-In caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
  Amp-In vals:  [0x00] [0x80]
  Connection: 2
     0x02 0x0b
Node 0x10 [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x11 [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x12 [Pin Complex] wcaps 0x40000b: Stereo Amp-In
  Control: name="Internal Mic Boost Volume", index=0, device=0
    ControlAmp: chs=3, dir=In, idx=0, ofs=0
  Control: name="Internal Mic Phantom Jack", index=0, device=0
  Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x2f, mute=0
  Amp-In vals:  [0x00 0x00]
  Pincap 0x00000020: IN
  Pin Default 0x90a60150: [Fixed] Mic at Int N/A
    Conn = Digital, Color = Unknown
    DefAssociation = 0x5, Sequence = 0x0
    Misc = NO_PRESENCE
  Pin-ctls: 0x20: IN
Node 0x13 [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x14 [Pin Complex] wcaps 0x40018d: Stereo 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-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
  Amp-Out vals:  [0x80 0x80]
  Pincap 0x00010014: OUT 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: 0x00:
  Unsolicited: tag=00, enabled=0
  Connection: 2
     0x0c* 0x0d
Node 0x15 [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x16 [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x17 [Pin Complex] wcaps 0x40010c: Mono Amp-Out
  Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
  Amp-Out vals:  [0x80]
  Pincap 0x00000010: OUT
  Pin Default 0x411111f0: [N/A] Speaker at Ext Rear
    Conn = 1/8, Color = Black
    DefAssociation = 0xf, Sequence = 0x0
    Misc = NO_PRESENCE
  Pin-ctls: 0x00:
  Connection: 1
     0x0f
Node 0x18 [Pin Complex] wcaps 0x40018f: 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=0x2f, mute=0
  Amp-In vals:  [0x00 0x00]
  Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
  Amp-Out vals:  [0x80 0x80]
  Pincap 0x00001734: IN OUT Detect
    Vref caps: HIZ 50 GRD 80
  Pin Default 0x02a11040: [Jack] Mic at Ext Front
    Conn = 1/8, Color = Black
    DefAssociation = 0x4, Sequence = 0x0
  Pin-ctls: 0x24: IN VREF_80
  Unsolicited: tag=03, enabled=1
  Connection: 1
     0x0d
Node 0x19 [Pin Complex] wcaps 0x40008b: Stereo Amp-In
  Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x2f, mute=0
  Amp-In vals:  [0x00 0x00]
  Pincap 0x00001724: IN Detect
    Vref caps: HIZ 50 GRD 80
  Pin Default 0x411111f0: [N/A] Speaker at Ext Rear
    Conn = 1/8, Color = Black
    DefAssociation = 0xf, Sequence = 0x0
    Misc = NO_PRESENCE
  Pin-ctls: 0x20: IN VREF_HIZ
  Unsolicited: tag=00, enabled=0
Node 0x1a [Pin Complex] wcaps 0x40018f: Stereo Amp-In Amp-Out
  Control: name="Headphone Playback Switch", index=0, device=0
    ControlAmp: chs=3, dir=Out, idx=0, ofs=0
  Control: name="Dock Headphone Jack", index=0, device=0
  Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x2f, mute=0
  Amp-In vals:  [0x00 0x00]
  Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
  Amp-Out vals:  [0x00 0x00]
  Pincap 0x0000003c: IN OUT HP Detect
  Pin Default 0x2121101f: [Jack] HP Out at Sep Rear
    Conn = 1/8, Color = Black
    DefAssociation = 0x1, Sequence = 0xf
  Pin-ctls: 0xc0: OUT HP
  Unsolicited: tag=01, enabled=1
  Connection: 2
     0x0c 0x0d*
Node 0x1b [Pin Complex] wcaps 0x40018f: Stereo Amp-In Amp-Out
  Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x2f, mute=0
  Amp-In vals:  [0x00 0x00]
  Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
  Amp-Out vals:  [0x80 0x80]
  Pincap 0x00000034: IN OUT Detect
  Pin Default 0x411111f0: [N/A] Speaker at Ext Rear
    Conn = 1/8, Color = Black
    DefAssociation = 0xf, Sequence = 0x0
    Misc = NO_PRESENCE
  Pin-ctls: 0x20: IN
  Unsolicited: tag=00, enabled=0
  Connection: 2
     0x0c* 0x0d
Node 0x1c [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x1d [Pin Complex] wcaps 0x400000: Mono
  Pincap 0x00000020: IN
  Pin Default 0x90970130: [Fixed] Aux at Int N/A
    Conn = Analog, Color = Unknown
    DefAssociation = 0x3, Sequence = 0x0
    Misc = NO_PRESENCE
  Pin-ctls: 0x20: IN
Node 0x1e [Pin Complex] wcaps 0x400381: Stereo Digital
  Pincap 0x00000014: OUT Detect
  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
  Unsolicited: tag=00, enabled=0
  Connection: 1
     0x06
Node 0x1f [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x20 [Vendor Defined Widget] wcaps 0xf00040: Mono
  Processing caps: benign=0, ncoeff=25
Node 0x21 [Pin Complex] wcaps 0x40018d: Stereo Amp-Out
  Control: name="Line Out Playback Switch", index=0, device=0
    ControlAmp: chs=3, dir=Out, idx=0, ofs=0
  Control: name="Front Headphone Jack", index=0, 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 0x02211020: [Jack] HP Out at Ext Front
    Conn = 1/8, Color = Black
    DefAssociation = 0x2, Sequence = 0x0
  Pin-ctls: 0x40: OUT
  Unsolicited: tag=02, enabled=1
  Connection: 2
     0x0c* 0x0d
Node 0x22 [Audio Selector] wcaps 0x30010b: Stereo Amp-In
  Amp-In caps: N/A
  Amp-In vals:  [0x00 0x00] [0x00 0x00] [0x00 0x00] [0x00 0x00] [0x00 0x00] [0x00 0x00] [0x00 0x00]
  Connection: 7
     0x18 0x19 0x1a 0x1b 0x1d 0x0b 0x12*
Node 0x23 [Audio Mixer] wcaps 0x20010b: Stereo Amp-In
  Amp-In caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
  Amp-In vals:  [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80]
  Connection: 6
     0x18 0x19 0x1a 0x1b 0x1d 0x0b
Codec: Intel CougarPoint HDMI
Address: 3
AFG Function Id: 0x1 (unsol 0)
Vendor Id: 0x80862805
Subsystem Id: 0x80860101
Revision Id: 0x100000
No Modem Function Group found
Default PCM:
    rates [0x0]:
    bits [0x0]:
    formats [0x0]:
Default Amp-In caps: N/A
Default Amp-Out caps: N/A
State of AFG node 0x01:
  Power states:  D0 D3 CLKSTOP EPSS
  Power: setting=D0, actual=D0, Clock-stop-OK
GPIO: io=0, o=0, i=0, unsolicited=0, wake=0
Node 0x02 [Audio Output] wcaps 0x6611: 8-Channels Digital
  Converter: stream=0, channel=0
  Digital: Enabled
  Digital category: 0x0
  IEC Coding Type: 0x0
  PCM:
    rates [0x7f0]: 32000 44100 48000 88200 96000 176400 192000
    bits [0x1e]: 16 20 24 32
    formats [0x5]: PCM AC3
  Power states:  D0 D3 EPSS
  Power: setting=D0, actual=D0
Node 0x03 [Audio Output] wcaps 0x6611: 8-Channels Digital
  Converter: stream=0, channel=0
  Digital: Enabled
  Digital category: 0x0
  IEC Coding Type: 0x0
  PCM:
    rates [0x7f0]: 32000 44100 48000 88200 96000 176400 192000
    bits [0x1e]: 16 20 24 32
    formats [0x5]: PCM AC3
  Power states:  D0 D3 EPSS
  Power: setting=D0, actual=D0
Node 0x04 [Audio Output] wcaps 0x6611: 8-Channels Digital
  Converter: stream=0, channel=0
  Digital: Enabled
  Digital category: 0x0
  IEC Coding Type: 0x0
  PCM:
    rates [0x7f0]: 32000 44100 48000 88200 96000 176400 192000
    bits [0x1e]: 16 20 24 32
    formats [0x5]: PCM AC3
  Power states:  D0 D3 EPSS
  Power: setting=D0, actual=D0
Node 0x05 [Pin Complex] wcaps 0x40778d: 8-Channels Digital Amp-Out CP
  Control: name="HDMI/DP,pcm=3 Jack", index=0, device=0
  Control: name="IEC958 Playback Con Mask", index=0, device=0
  Control: name="IEC958 Playback Pro Mask", index=0, device=0
  Control: name="IEC958 Playback Default", index=0, device=0
  Control: name="IEC958 Playback Switch", index=0, device=0
  Control: name="ELD", index=0, device=3
  Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
  Amp-Out vals:  [0x00 0x00]
  Pincap 0x09000094: OUT Detect HBR HDMI DP
  Pin Default 0x18560010: [Jack] Digital Out at Int HDMI
    Conn = Digital, Color = Unknown
    DefAssociation = 0x1, Sequence = 0x0
  Pin-ctls: 0x40: OUT
  Unsolicited: tag=01, enabled=1
  Power states:  D0 D3 EPSS
  Power: setting=D0, actual=D0
  Connection: 1
     0x02
Node 0x06 [Pin Complex] wcaps 0x40778d: 8-Channels Digital Amp-Out CP
  Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
  Amp-Out vals:  [0x00 0x80]
  Pincap 0x09000094: OUT Detect HBR HDMI DP
  Pin Default 0x58560010: [N/A] Digital Out at Int HDMI
    Conn = Digital, Color = Unknown
    DefAssociation = 0x1, Sequence = 0x0
  Pin-ctls: 0x40: OUT
  Unsolicited: tag=00, enabled=0
  Power states:  D0 D3 EPSS
  Power: setting=D0, actual=D0
  Connection: 1
     0x03
Node 0x07 [Pin Complex] wcaps 0x40778d: 8-Channels Digital Amp-Out CP
  Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
  Amp-Out vals:  [0x00 0x80]
  Pincap 0x09000094: OUT Detect HBR HDMI DP
  Pin Default 0x58560010: [N/A] Digital Out at Int HDMI
    Conn = Digital, Color = Unknown
    DefAssociation = 0x1, Sequence = 0x0
  Pin-ctls: 0x40: OUT
  Unsolicited: tag=00, enabled=0
  Power states:  D0 D3 EPSS
  Power: setting=D0, actual=D0
  Connection: 1
     0x04
Node 0x08 [Vendor Defined Widget] wcaps 0xf00000: Mono
--endcollapse--


!!ALSA Device nodes
!!-----------------

crw-rw----+ 1 root audio 116,  0 Apr  8 09:21 /dev/snd/controlC0
crw-rw----+ 1 root audio 116,  4 Apr  8 09:21 /dev/snd/hwC0D0
crw-rw----+ 1 root audio 116,  7 Apr  8 09:21 /dev/snd/hwC0D3
crw-rw----+ 1 root audio 116, 24 Apr  8 09:22 /dev/snd/pcmC0D0c
crw-rw----+ 1 root audio 116, 16 Apr  8 09:23 /dev/snd/pcmC0D0p
crw-rw----+ 1 root audio 116, 19 Apr  8 09:22 /dev/snd/pcmC0D3p
crw-rw----+ 1 root audio 116,  1 Apr  8 09:21 /dev/snd/seq
crw-rw----+ 1 root audio 116, 33 Apr  8 09:21 /dev/snd/timer

/dev/snd/by-path:
total 0
drwxr-xr-x 2 root root  60 Apr  8 09:21 .
drwxr-xr-x 3 root root 220 Apr  8 09:21 ..
lrwxrwxrwx 1 root root  12 Apr  8 09:21 pci-0000:00:1b.0 -> ../controlC0


!!ALSA configuration files
!!------------------------

!!System wide config file (/etc/asound.conf)

# Use PulseAudio by default
pcm.!default {
  type pulse
  fallback "sysdefault"
  hint {
    show on
    description "Default ALSA Output (currently PulseAudio Sound Server)"
  }
}

ctl.!default {
  type pulse
  fallback "sysdefault"
}

# vim:set ft=alsaconf:


!!Aplay/Arecord output
!!--------------------

APLAY

**** List of PLAYBACK Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: ALC269VB Analog [ALC269VB Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

ARECORD

**** List of CAPTURE Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: ALC269VB Analog [ALC269VB Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

!!Amixer output
!!-------------

!!-------Mixer controls for card 0 [PCH]

Card hw:0 'PCH'/'HDA Intel PCH at 0xe2720000 irq 32'
  Mixer name	: 'Intel CougarPoint HDMI'
  Components	: 'HDA:10ec0269,10cf1100,00100100 HDA:80862805,80860101,00100000'
  Controls      : 31
  Simple ctrls  : 12
Simple mixer control 'Master',0
  Capabilities: pvolume pvolume-joined pswitch pswitch-joined
  Playback channels: Mono
  Limits: Playback 0 - 87
  Mono: Playback 66 [76%] [-15.75dB] [on]
Simple mixer control 'Headphone',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 87
  Mono:
  Front Left: Playback 87 [100%] [0.00dB] [on]
  Front Right: Playback 87 [100%] [0.00dB] [on]
Simple mixer control 'Speaker',0
  Capabilities: pswitch
  Playback channels: Front Left - Front Right
  Mono:
  Front Left: Playback [off]
  Front Right: Playback [off]
Simple mixer control 'PCM',0
  Capabilities: pvolume
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 255
  Mono:
  Front Left: Playback 255 [100%] [0.00dB]
  Front Right: Playback 254 [100%] [-0.20dB]
Simple mixer control 'Line Out',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 87
  Mono:
  Front Left: Playback 87 [100%] [0.00dB] [on]
  Front Right: Playback 87 [100%] [0.00dB] [on]
Simple mixer control 'Mic',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 31
  Mono:
  Front Left: Playback 0 [0%] [-34.50dB] [off]
  Front Right: Playback 0 [0%] [-34.50dB] [off]
Simple mixer control 'Mic Boost',0
  Capabilities: volume
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 3
  Front Left: 0 [0%] [0.00dB]
  Front Right: 0 [0%] [0.00dB]
Simple mixer control 'IEC958',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [off]
Simple mixer control 'Beep',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 31
  Mono:
  Front Left: Playback 0 [0%] [-34.50dB] [off]
  Front Right: Playback 0 [0%] [-34.50dB] [off]
Simple mixer control 'Capture',0
  Capabilities: cvolume cswitch
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 31
  Front Left: Capture 26 [84%] [22.50dB] [on]
  Front Right: Capture 26 [84%] [22.50dB] [on]
Simple mixer control 'Auto-Mute Mode',0
  Capabilities: enum
  Items: 'Disabled' 'Speaker Only' 'Line Out+Speaker'
  Item0: 'Line Out+Speaker'
Simple mixer control 'Internal Mic Boost',0
  Capabilities: volume
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 3
  Front Left: 0 [0%] [0.00dB]
  Front Right: 0 [0%] [0.00dB]


!!Alsactl output
!!--------------

--startcollapse--
state.PCH {
	control.1 {
		iface MIXER
		name 'Line Out 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.2 {
		iface MIXER
		name 'Line Out Playback Switch'
		value.0 true
		value.1 true
		comment {
			access 'read write'
			type BOOLEAN
			count 2
		}
	}
	control.3 {
		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.4 {
		iface MIXER
		name 'Headphone Playback Switch'
		value.0 true
		value.1 true
		comment {
			access 'read write'
			type BOOLEAN
			count 2
		}
	}
	control.5 {
		iface MIXER
		name 'Speaker Playback Switch'
		value.0 false
		value.1 false
		comment {
			access 'read write'
			type BOOLEAN
			count 2
		}
	}
	control.6 {
		iface MIXER
		name 'Mic Playback Volume'
		value.0 0
		value.1 0
		comment {
			access 'read write'
			type INTEGER
			count 2
			range '0 - 31'
			dbmin -3450
			dbmax 1200
			dbvalue.0 -3450
			dbvalue.1 -3450
		}
	}
	control.7 {
		iface MIXER
		name 'Mic Playback Switch'
		value.0 false
		value.1 false
		comment {
			access 'read write'
			type BOOLEAN
			count 2
		}
	}
	control.8 {
		iface MIXER
		name 'Auto-Mute Mode'
		value 'Line Out+Speaker'
		comment {
			access 'read write'
			type ENUMERATED
			count 1
			item.0 Disabled
			item.1 'Speaker Only'
			item.2 'Line Out+Speaker'
		}
	}
	control.9 {
		iface MIXER
		name 'Capture Volume'
		value.0 26
		value.1 26
		comment {
			access 'read write'
			type INTEGER
			count 2
			range '0 - 31'
			dbmin -1650
			dbmax 3000
			dbvalue.0 2250
			dbvalue.1 2250
		}
	}
	control.10 {
		iface MIXER
		name 'Capture Switch'
		value.0 true
		value.1 true
		comment {
			access 'read write'
			type BOOLEAN
			count 2
		}
	}
	control.11 {
		iface MIXER
		name 'Mic Boost Volume'
		value.0 0
		value.1 0
		comment {
			access 'read write'
			type INTEGER
			count 2
			range '0 - 3'
			dbmin 0
			dbmax 3600
			dbvalue.0 0
			dbvalue.1 0
		}
	}
	control.12 {
		iface MIXER
		name 'Internal Mic Boost Volume'
		value.0 0
		value.1 0
		comment {
			access 'read write'
			type INTEGER
			count 2
			range '0 - 3'
			dbmin 0
			dbmax 3600
			dbvalue.0 0
			dbvalue.1 0
		}
	}
	control.13 {
		iface MIXER
		name 'Master Playback Volume'
		value 66
		comment {
			access 'read write'
			type INTEGER
			count 1
			range '0 - 87'
			dbmin -6525
			dbmax 0
			dbvalue.0 -1575
		}
	}
	control.14 {
		iface MIXER
		name 'Master Playback Switch'
		value true
		comment {
			access 'read write'
			type BOOLEAN
			count 1
		}
	}
	control.15 {
		iface CARD
		name 'Mic Jack'
		value false
		comment {
			access read
			type BOOLEAN
			count 1
		}
	}
	control.16 {
		iface CARD
		name 'Internal Mic Phantom Jack'
		value true
		comment {
			access read
			type BOOLEAN
			count 1
		}
	}
	control.17 {
		iface CARD
		name 'Front Headphone Jack'
		value true
		comment {
			access read
			type BOOLEAN
			count 1
		}
	}
	control.18 {
		iface CARD
		name 'Dock Headphone Jack'
		value false
		comment {
			access read
			type BOOLEAN
			count 1
		}
	}
	control.19 {
		iface CARD
		name 'Speaker Phantom Jack'
		value true
		comment {
			access read
			type BOOLEAN
			count 1
		}
	}
	control.20 {
		iface MIXER
		name 'Beep Playback Volume'
		value.0 0
		value.1 0
		comment {
			access 'read write'
			type INTEGER
			count 2
			range '0 - 31'
			dbmin -3450
			dbmax 1200
			dbvalue.0 -3450
			dbvalue.1 -3450
		}
	}
	control.21 {
		iface MIXER
		name 'Beep Playback Switch'
		value.0 false
		value.1 false
		comment {
			access 'read write'
			type BOOLEAN
			count 2
		}
	}
	control.22 {
		iface PCM
		name 'Playback Channel Map'
		value.0 0
		value.1 0
		comment {
			access read
			type INTEGER
			count 2
			range '0 - 36'
		}
	}
	control.23 {
		iface PCM
		name 'Capture Channel Map'
		value.0 0
		value.1 0
		comment {
			access read
			type INTEGER
			count 2
			range '0 - 36'
		}
	}
	control.24 {
		iface CARD
		name 'HDMI/DP,pcm=3 Jack'
		value false
		comment {
			access read
			type BOOLEAN
			count 1
		}
	}
	control.25 {
		iface MIXER
		name 'IEC958 Playback Con Mask'
		value '0fff000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'
		comment {
			access read
			type IEC958
			count 1
		}
	}
	control.26 {
		iface MIXER
		name 'IEC958 Playback Pro Mask'
		value '0f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'
		comment {
			access read
			type IEC958
			count 1
		}
	}
	control.27 {
		iface MIXER
		name 'IEC958 Playback Default'
		value '0400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'
		comment {
			access 'read write'
			type IEC958
			count 1
		}
	}
	control.28 {
		iface MIXER
		name 'IEC958 Playback Switch'
		value false
		comment {
			access 'read write'
			type BOOLEAN
			count 1
		}
	}
	control.29 {
		iface PCM
		device 3
		name ELD
		value ''
		comment {
			access 'read volatile'
			type BYTES
			count 0
		}
	}
	control.30 {
		iface PCM
		device 3
		name 'Playback Channel Map'
		value.0 0
		value.1 0
		value.2 0
		value.3 0
		value.4 0
		value.5 0
		value.6 0
		value.7 0
		comment {
			access 'read write'
			type INTEGER
			count 8
			range '0 - 36'
		}
	}
	control.31 {
		iface MIXER
		name 'PCM Playback Volume'
		value.0 255
		value.1 254
		comment {
			access 'read write user'
			type INTEGER
			count 2
			range '0 - 255'
			tlv '0000000100000008ffffec1400000014'
			dbmin -5100
			dbmax 0
			dbvalue.0 0
			dbvalue.1 -20
		}
	}
}
--endcollapse--


!!All Loaded Modules
!!------------------

Module
x86_pkg_temp_thermal
iwldvm
iwlwifi
mei_me
mei


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

/sys/class/sound/hwC0D0/init_pin_configs:
0x12 0x90a60150
0x14 0x90170110
0x17 0x411111f0
0x18 0x02a11040
0x19 0x411111f0
0x1a 0x2121101f
0x1b 0x411111f0
0x1d 0x90970130
0x1e 0x411111f0
0x21 0x02211020

/sys/class/sound/hwC0D0/driver_pin_configs:

/sys/class/sound/hwC0D0/user_pin_configs:

/sys/class/sound/hwC0D0/init_verbs:

/sys/class/sound/hwC0D0/hints:

/sys/class/sound/hwC0D3/init_pin_configs:
0x05 0x18560010
0x06 0x58560010
0x07 0x58560010

/sys/class/sound/hwC0D3/driver_pin_configs:

/sys/class/sound/hwC0D3/user_pin_configs:

/sys/class/sound/hwC0D3/init_verbs:

/sys/class/sound/hwC0D3/hints:


!!ALSA/HDA dmesg
!!--------------

[    0.753059]   Magic number: 11:787:381
[    0.759540] sound hdaudioC0D0: ALC269VB: SKU not ready 0x90970130
[    0.760144] sound hdaudioC0D0: autoconfig for ALC269VB: line_outs=1 (0x21/0x0/0x0/0x0/0x0) type:line
[    0.760145] sound hdaudioC0D0:    speaker_outs=1 (0x14/0x0/0x0/0x0/0x0)
[    0.760146] sound hdaudioC0D0:    hp_outs=1 (0x1a/0x0/0x0/0x0/0x0)
[    0.760147] sound hdaudioC0D0:    mono: mono_out=0x0
[    0.760147] sound hdaudioC0D0:    inputs:
[    0.760148] sound hdaudioC0D0:      Mic=0x18
[    0.760150] sound hdaudioC0D0:      Internal Mic=0x12
[    0.766304] input: HDA Digital PCBeep as /devices/pci0000:00/0000:00:1b.0/sound/card0/hdaudioC0D0/input5
[    0.766560] input: HDA Intel PCH Mic as /devices/pci0000:00/0000:00:1b.0/sound/card0/input6
[    0.766605] input: HDA Intel PCH Front Headphone as /devices/pci0000:00/0000:00:1b.0/sound/card0/input7
[    0.766649] input: HDA Intel PCH Dock Headphone as /devices/pci0000:00/0000:00:1b.0/sound/card0/input8
[    0.766693] input: HDA Intel PCH HDMI/DP,pcm=3 as /devices/pci0000:00/0000:00:1b.0/sound/card0/input9
[    0.777732] input: AT Translated Set 2 keyboard as /devices/platform/i8042/serio0/input/input4
--
[    1.513667] PM: Hibernation image not present or could not be loaded.
[    1.513670] ALSA device list:
[    1.513671]   #0: HDA Intel PCH at 0xe2720000 irq 32
[    1.518355] scsi 0:0:0:0: Direct-Access     ATA      TOSHIBA MK3261GS 0K   PQ: 0 ANSI: 5



[-- Attachment #3: Type: text/plain, Size: 28497 bytes --]

upload=true&script=true&cardinfo=
!!################################
!!ALSA Information Script v 0.4.64
!!################################

!!Script ran on: Wed Apr  8 13:15:49 UTC 2015


!!Linux Distribution
!!------------------

Arch Linux \r (\l) DISTRIB_ID=Arch DISTRIB_DESCRIPTION="Arch Linux" NAME="Arch Linux" ID=arch PRETTY_NAME="Arch Linux" HOME_URL="https://www.archlinux.org/" SUPPORT_URL="https://bbs.archlinux.org/" BUG_REPORT_URL="https://bugs.archlinux.org/"


!!DMI Information
!!---------------

Manufacturer:      FUJITSU
Product Name:      0000000000
Product Version:    
Firmware Version:  Version 1.09


!!Kernel Information
!!------------------

Kernel release:    4.0.0-rc6-gf8b3d8a
Operating System:  GNU/Linux
Architecture:      x86_64
Processor:         unknown
SMP Enabled:       Yes


!!ALSA Version
!!------------

Driver version:     k4.0.0-rc6-gf8b3d8a
Library version:    1.0.29
Utilities version:  1.0.29


!!Loaded ALSA modules
!!-------------------



!!Sound Servers on this system
!!----------------------------

Pulseaudio:
      Installed - Yes (/usr/bin/pulseaudio)
      Running - Yes

Jack:
      Installed - Yes (/usr/bin/jackd)
      Running - No


!!Soundcards recognised by ALSA
!!-----------------------------

 0 [PCH            ]: HDA-Intel - HDA Intel PCH
                      HDA Intel PCH at 0xe2720000 irq 32


!!PCI Soundcards installed in the system
!!--------------------------------------

00:1b.0 Audio device: Intel Corporation 6 Series/C200 Series Chipset Family High Definition Audio Controller (rev 04)


!!Advanced information - PCI Vendor/Device/Subsystem ID's
!!-------------------------------------------------------

00:1b.0 0403: 8086:1c20 (rev 04)
	Subsystem: 10cf:15dc
--
	Region 0: Memory at e0402000 (32-bit, non-prefetchable) [size=512]
	Capabilities: <access denied>
--
	Region 0: Memory at e0401000 (32-bit, non-prefetchable) [size=1K]
	Region 2: Memory at e0400000 (32-bit, non-prefetchable) [size=1K]


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


!!HDA-Intel Codec information
!!---------------------------
--startcollapse--

Codec: Realtek ALC269VB
Address: 0
AFG Function Id: 0x1 (unsol 1)
Vendor Id: 0x10ec0269
Subsystem Id: 0x10cf1100
Revision Id: 0x100100
No Modem Function Group found
Default PCM:
    rates [0x560]: 44100 48000 96000 192000
    bits [0xe]: 16 20 24
    formats [0x1]: PCM
Default Amp-In caps: N/A
Default Amp-Out caps: N/A
State of AFG node 0x01:
  Power states:  D0 D1 D2 D3 CLKSTOP EPSS
  Power: setting=D0, actual=D0
GPIO: io=2, o=0, i=0, unsolicited=1, wake=0
  IO[0]: enable=0, dir=0, wake=0, sticky=0, data=0, unsol=0
  IO[1]: enable=0, dir=0, wake=0, sticky=0, data=0, unsol=0
Node 0x02 [Audio Output] wcaps 0x1d: Stereo Amp-Out
  Control: name="Speaker+LO Playback Volume", index=0, device=0
    ControlAmp: chs=3, dir=Out, idx=0, ofs=0
  Device: name="ALC269VB Analog", type="Audio", device=0
  Amp-Out caps: ofs=0x57, nsteps=0x57, stepsize=0x02, mute=0
  Amp-Out vals:  [0x00 0x00]
  Converter: stream=8, channel=0
  PCM:
    rates [0x560]: 44100 48000 96000 192000
    bits [0xe]: 16 20 24
    formats [0x1]: PCM
Node 0x03 [Audio Output] wcaps 0x1d: 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:  [0x43 0x43]
  Converter: stream=8, channel=0
  PCM:
    rates [0x560]: 44100 48000 96000 192000
    bits [0xe]: 16 20 24
    formats [0x1]: PCM
Node 0x04 [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x05 [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x06 [Audio Output] wcaps 0x211: Stereo Digital
  Converter: stream=0, channel=0
  Digital:
  Digital category: 0x0
  IEC Coding Type: 0x0
  PCM:
    rates [0x5e0]: 44100 48000 88200 96000 192000
    bits [0xe]: 16 20 24
    formats [0x1]: PCM
Node 0x07 [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x08 [Audio Input] wcaps 0x10011b: Stereo Amp-In
  Amp-In caps: ofs=0x0b, nsteps=0x1f, stepsize=0x05, mute=1
  Amp-In vals:  [0x8b 0x8b]
  Converter: stream=0, channel=0
  SDI-Select: 0
  PCM:
    rates [0x560]: 44100 48000 96000 192000
    bits [0xe]: 16 20 24
    formats [0x1]: PCM
  Connection: 1
     0x23
Node 0x09 [Audio Input] wcaps 0x10011b: Stereo Amp-In
  Control: name="Capture Volume", index=0, device=0
    ControlAmp: chs=3, dir=In, idx=0, ofs=0
  Control: name="Capture Switch", index=0, device=0
    ControlAmp: chs=3, dir=In, idx=0, ofs=0
  Device: name="ALC269VB Analog", type="Audio", device=0
  Amp-In caps: ofs=0x0b, nsteps=0x1f, stepsize=0x05, mute=1
  Amp-In vals:  [0x1a 0x1a]
  Converter: stream=4, channel=0
  SDI-Select: 0
  PCM:
    rates [0x560]: 44100 48000 96000 192000
    bits [0xe]: 16 20 24
    formats [0x1]: PCM
  Connection: 1
     0x22
Node 0x0a [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x0b [Audio Mixer] wcaps 0x20010b: Stereo Amp-In
  Control: name="Mic Playback Volume", index=0, device=0
    ControlAmp: chs=3, dir=In, idx=0, ofs=0
  Control: name="Mic Playback Switch", index=0, device=0
    ControlAmp: chs=3, dir=In, idx=0, ofs=0
  Control: name="Beep Playback Volume", index=0, device=0
    ControlAmp: chs=3, dir=In, idx=4, ofs=0
  Control: name="Beep Playback Switch", index=0, device=0
    ControlAmp: chs=3, dir=In, idx=4, ofs=0
  Amp-In caps: ofs=0x17, nsteps=0x1f, stepsize=0x05, mute=1
  Amp-In vals:  [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80]
  Connection: 5
     0x18 0x19 0x1a 0x1b 0x1d
Node 0x0c [Audio Mixer] wcaps 0x20010b: Stereo Amp-In
  Amp-In caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
  Amp-In vals:  [0x00 0x00] [0x00 0x00]
  Connection: 2
     0x02 0x0b
Node 0x0d [Audio Mixer] wcaps 0x20010b: Stereo Amp-In
  Amp-In caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
  Amp-In vals:  [0x00 0x00] [0x00 0x00]
  Connection: 2
     0x03 0x0b
Node 0x0e [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x0f [Audio Mixer] wcaps 0x20010a: Mono Amp-In
  Amp-In caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
  Amp-In vals:  [0x00] [0x80]
  Connection: 2
     0x02 0x0b
Node 0x10 [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x11 [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x12 [Pin Complex] wcaps 0x40000b: Stereo Amp-In
  Control: name="Internal Mic Boost Volume", index=0, device=0
    ControlAmp: chs=3, dir=In, idx=0, ofs=0
  Control: name="Internal Mic Phantom Jack", index=0, device=0
  Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x2f, mute=0
  Amp-In vals:  [0x00 0x00]
  Pincap 0x00000020: IN
  Pin Default 0x90a60150: [Fixed] Mic at Int N/A
    Conn = Digital, Color = Unknown
    DefAssociation = 0x5, Sequence = 0x0
    Misc = NO_PRESENCE
  Pin-ctls: 0x20: IN
Node 0x13 [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x14 [Pin Complex] wcaps 0x40018d: Stereo 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-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
  Amp-Out vals:  [0x80 0x80]
  Pincap 0x00010014: OUT 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: 0x00:
  Unsolicited: tag=00, enabled=0
  Connection: 2
     0x0c* 0x0d
Node 0x15 [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x16 [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x17 [Pin Complex] wcaps 0x40010c: Mono Amp-Out
  Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
  Amp-Out vals:  [0x80]
  Pincap 0x00000010: OUT
  Pin Default 0x411111f0: [N/A] Speaker at Ext Rear
    Conn = 1/8, Color = Black
    DefAssociation = 0xf, Sequence = 0x0
    Misc = NO_PRESENCE
  Pin-ctls: 0x00:
  Connection: 1
     0x0f
Node 0x18 [Pin Complex] wcaps 0x40018f: 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=0x2f, mute=0
  Amp-In vals:  [0x00 0x00]
  Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
  Amp-Out vals:  [0x80 0x80]
  Pincap 0x00001734: IN OUT Detect
    Vref caps: HIZ 50 GRD 80
  Pin Default 0x02a11040: [Jack] Mic at Ext Front
    Conn = 1/8, Color = Black
    DefAssociation = 0x4, Sequence = 0x0
  Pin-ctls: 0x24: IN VREF_80
  Unsolicited: tag=03, enabled=1
  Connection: 1
     0x0d
Node 0x19 [Pin Complex] wcaps 0x40008b: Stereo Amp-In
  Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x2f, mute=0
  Amp-In vals:  [0x00 0x00]
  Pincap 0x00001724: IN Detect
    Vref caps: HIZ 50 GRD 80
  Pin Default 0x411111f0: [N/A] Speaker at Ext Rear
    Conn = 1/8, Color = Black
    DefAssociation = 0xf, Sequence = 0x0
    Misc = NO_PRESENCE
  Pin-ctls: 0x20: IN VREF_HIZ
  Unsolicited: tag=00, enabled=0
Node 0x1a [Pin Complex] wcaps 0x40018f: Stereo Amp-In Amp-Out
  Control: name="Headphone Playback Switch", index=0, device=0
    ControlAmp: chs=3, dir=Out, idx=0, ofs=0
  Control: name="Dock Headphone Jack", index=0, device=0
  Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x2f, mute=0
  Amp-In vals:  [0x00 0x00]
  Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
  Amp-Out vals:  [0x00 0x00]
  Pincap 0x0000003c: IN OUT HP Detect
  Pin Default 0x2121101f: [Jack] HP Out at Sep Rear
    Conn = 1/8, Color = Black
    DefAssociation = 0x1, Sequence = 0xf
  Pin-ctls: 0xc0: OUT HP
  Unsolicited: tag=01, enabled=1
  Connection: 2
     0x0c 0x0d*
Node 0x1b [Pin Complex] wcaps 0x40018f: Stereo Amp-In Amp-Out
  Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x2f, mute=0
  Amp-In vals:  [0x00 0x00]
  Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
  Amp-Out vals:  [0x80 0x80]
  Pincap 0x00000034: IN OUT Detect
  Pin Default 0x411111f0: [N/A] Speaker at Ext Rear
    Conn = 1/8, Color = Black
    DefAssociation = 0xf, Sequence = 0x0
    Misc = NO_PRESENCE
  Pin-ctls: 0x20: IN
  Unsolicited: tag=00, enabled=0
  Connection: 2
     0x0c* 0x0d
Node 0x1c [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x1d [Pin Complex] wcaps 0x400000: Mono
  Pincap 0x00000020: IN
  Pin Default 0x90970130: [Fixed] Aux at Int N/A
    Conn = Analog, Color = Unknown
    DefAssociation = 0x3, Sequence = 0x0
    Misc = NO_PRESENCE
  Pin-ctls: 0x20: IN
Node 0x1e [Pin Complex] wcaps 0x400381: Stereo Digital
  Pincap 0x00000014: OUT Detect
  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
  Unsolicited: tag=00, enabled=0
  Connection: 1
     0x06
Node 0x1f [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x20 [Vendor Defined Widget] wcaps 0xf00040: Mono
  Processing caps: benign=0, ncoeff=25
Node 0x21 [Pin Complex] wcaps 0x40018d: Stereo Amp-Out
  Control: name="Line Out Playback Switch", index=0, device=0
    ControlAmp: chs=3, dir=Out, idx=0, ofs=0
  Control: name="Front Headphone Jack", index=0, 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 0x02211020: [Jack] HP Out at Ext Front
    Conn = 1/8, Color = Black
    DefAssociation = 0x2, Sequence = 0x0
  Pin-ctls: 0x40: OUT
  Unsolicited: tag=02, enabled=1
  Connection: 2
     0x0c* 0x0d
Node 0x22 [Audio Selector] wcaps 0x30010b: Stereo Amp-In
  Amp-In caps: N/A
  Amp-In vals:  [0x00 0x00] [0x00 0x00] [0x00 0x00] [0x00 0x00] [0x00 0x00] [0x00 0x00] [0x00 0x00]
  Connection: 7
     0x18 0x19 0x1a 0x1b 0x1d 0x0b 0x12*
Node 0x23 [Audio Mixer] wcaps 0x20010b: Stereo Amp-In
  Amp-In caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
  Amp-In vals:  [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80]
  Connection: 6
     0x18 0x19 0x1a 0x1b 0x1d 0x0b
Codec: Intel CougarPoint HDMI
Address: 3
AFG Function Id: 0x1 (unsol 0)
Vendor Id: 0x80862805
Subsystem Id: 0x80860101
Revision Id: 0x100000
No Modem Function Group found
Default PCM:
    rates [0x0]:
    bits [0x0]:
    formats [0x0]:
Default Amp-In caps: N/A
Default Amp-Out caps: N/A
State of AFG node 0x01:
  Power states:  D0 D3 CLKSTOP EPSS
  Power: setting=D0, actual=D0, Clock-stop-OK
GPIO: io=0, o=0, i=0, unsolicited=0, wake=0
Node 0x02 [Audio Output] wcaps 0x6611: 8-Channels Digital
  Converter: stream=0, channel=0
  Digital: Enabled
  Digital category: 0x0
  IEC Coding Type: 0x0
  PCM:
    rates [0x7f0]: 32000 44100 48000 88200 96000 176400 192000
    bits [0x1e]: 16 20 24 32
    formats [0x5]: PCM AC3
  Power states:  D0 D3 EPSS
  Power: setting=D0, actual=D0
Node 0x03 [Audio Output] wcaps 0x6611: 8-Channels Digital
  Converter: stream=0, channel=0
  Digital: Enabled
  Digital category: 0x0
  IEC Coding Type: 0x0
  PCM:
    rates [0x7f0]: 32000 44100 48000 88200 96000 176400 192000
    bits [0x1e]: 16 20 24 32
    formats [0x5]: PCM AC3
  Power states:  D0 D3 EPSS
  Power: setting=D0, actual=D0
Node 0x04 [Audio Output] wcaps 0x6611: 8-Channels Digital
  Converter: stream=0, channel=0
  Digital: Enabled
  Digital category: 0x0
  IEC Coding Type: 0x0
  PCM:
    rates [0x7f0]: 32000 44100 48000 88200 96000 176400 192000
    bits [0x1e]: 16 20 24 32
    formats [0x5]: PCM AC3
  Power states:  D0 D3 EPSS
  Power: setting=D0, actual=D0
Node 0x05 [Pin Complex] wcaps 0x40778d: 8-Channels Digital Amp-Out CP
  Control: name="HDMI/DP,pcm=3 Jack", index=0, device=0
  Control: name="IEC958 Playback Con Mask", index=0, device=0
  Control: name="IEC958 Playback Pro Mask", index=0, device=0
  Control: name="IEC958 Playback Default", index=0, device=0
  Control: name="IEC958 Playback Switch", index=0, device=0
  Control: name="ELD", index=0, device=3
  Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
  Amp-Out vals:  [0x00 0x00]
  Pincap 0x09000094: OUT Detect HBR HDMI DP
  Pin Default 0x18560010: [Jack] Digital Out at Int HDMI
    Conn = Digital, Color = Unknown
    DefAssociation = 0x1, Sequence = 0x0
  Pin-ctls: 0x40: OUT
  Unsolicited: tag=01, enabled=1
  Power states:  D0 D3 EPSS
  Power: setting=D0, actual=D0
  Connection: 1
     0x02
Node 0x06 [Pin Complex] wcaps 0x40778d: 8-Channels Digital Amp-Out CP
  Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
  Amp-Out vals:  [0x00 0x80]
  Pincap 0x09000094: OUT Detect HBR HDMI DP
  Pin Default 0x58560010: [N/A] Digital Out at Int HDMI
    Conn = Digital, Color = Unknown
    DefAssociation = 0x1, Sequence = 0x0
  Pin-ctls: 0x40: OUT
  Unsolicited: tag=00, enabled=0
  Power states:  D0 D3 EPSS
  Power: setting=D0, actual=D0
  Connection: 1
     0x03
Node 0x07 [Pin Complex] wcaps 0x40778d: 8-Channels Digital Amp-Out CP
  Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
  Amp-Out vals:  [0x00 0x80]
  Pincap 0x09000094: OUT Detect HBR HDMI DP
  Pin Default 0x58560010: [N/A] Digital Out at Int HDMI
    Conn = Digital, Color = Unknown
    DefAssociation = 0x1, Sequence = 0x0
  Pin-ctls: 0x40: OUT
  Unsolicited: tag=00, enabled=0
  Power states:  D0 D3 EPSS
  Power: setting=D0, actual=D0
  Connection: 1
     0x04
Node 0x08 [Vendor Defined Widget] wcaps 0xf00000: Mono
--endcollapse--


!!ALSA Device nodes
!!-----------------

crw-rw----+ 1 root audio 116,  0 Apr  8 09:13 /dev/snd/controlC0
crw-rw----+ 1 root audio 116,  4 Apr  8 09:13 /dev/snd/hwC0D0
crw-rw----+ 1 root audio 116,  7 Apr  8 09:13 /dev/snd/hwC0D3
crw-rw----+ 1 root audio 116, 24 Apr  8 09:14 /dev/snd/pcmC0D0c
crw-rw----+ 1 root audio 116, 16 Apr  8 09:14 /dev/snd/pcmC0D0p
crw-rw----+ 1 root audio 116, 19 Apr  8 09:14 /dev/snd/pcmC0D3p
crw-rw----+ 1 root audio 116,  1 Apr  8 09:13 /dev/snd/seq
crw-rw----+ 1 root audio 116, 33 Apr  8 09:13 /dev/snd/timer

/dev/snd/by-path:
total 0
drwxr-xr-x 2 root root  60 Apr  8 09:13 .
drwxr-xr-x 3 root root 220 Apr  8 09:13 ..
lrwxrwxrwx 1 root root  12 Apr  8 09:13 pci-0000:00:1b.0 -> ../controlC0


!!ALSA configuration files
!!------------------------

!!System wide config file (/etc/asound.conf)

# Use PulseAudio by default
pcm.!default {
  type pulse
  fallback "sysdefault"
  hint {
    show on
    description "Default ALSA Output (currently PulseAudio Sound Server)"
  }
}

ctl.!default {
  type pulse
  fallback "sysdefault"
}

# vim:set ft=alsaconf:


!!Aplay/Arecord output
!!--------------------

APLAY

**** List of PLAYBACK Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: ALC269VB Analog [ALC269VB Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

ARECORD

**** List of CAPTURE Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: ALC269VB Analog [ALC269VB Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

!!Amixer output
!!-------------

!!-------Mixer controls for card 0 [PCH]

Card hw:0 'PCH'/'HDA Intel PCH at 0xe2720000 irq 32'
  Mixer name	: 'Intel CougarPoint HDMI'
  Components	: 'HDA:10ec0269,10cf1100,00100100 HDA:80862805,80860101,00100000'
  Controls      : 31
  Simple ctrls  : 13
Simple mixer control 'Master',0
  Capabilities: pvolume pvolume-joined pswitch pswitch-joined
  Playback channels: Mono
  Limits: Playback 0 - 87
  Mono: Playback 67 [77%] [-15.00dB] [on]
Simple mixer control 'Headphone',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 87
  Mono:
  Front Left: Playback 87 [100%] [0.00dB] [on]
  Front Right: Playback 87 [100%] [0.00dB] [on]
Simple mixer control 'Speaker',0
  Capabilities: pswitch
  Playback channels: Front Left - Front Right
  Mono:
  Front Left: Playback [off]
  Front Right: Playback [off]
Simple mixer control 'Speaker+LO',0
  Capabilities: pvolume
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 87
  Mono:
  Front Left: Playback 0 [0%] [-65.25dB]
  Front Right: Playback 0 [0%] [-65.25dB]
Simple mixer control 'PCM',0
  Capabilities: pvolume
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 255
  Mono:
  Front Left: Playback 255 [100%] [0.00dB]
  Front Right: Playback 255 [100%] [0.00dB]
Simple mixer control 'Line Out',0
  Capabilities: pswitch
  Playback channels: Front Left - Front Right
  Mono:
  Front Left: Playback [on]
  Front Right: Playback [on]
Simple mixer control 'Mic',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 31
  Mono:
  Front Left: Playback 0 [0%] [-34.50dB] [off]
  Front Right: Playback 0 [0%] [-34.50dB] [off]
Simple mixer control 'Mic Boost',0
  Capabilities: volume
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 3
  Front Left: 0 [0%] [0.00dB]
  Front Right: 0 [0%] [0.00dB]
Simple mixer control 'IEC958',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [off]
Simple mixer control 'Beep',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 31
  Mono:
  Front Left: Playback 0 [0%] [-34.50dB] [off]
  Front Right: Playback 0 [0%] [-34.50dB] [off]
Simple mixer control 'Capture',0
  Capabilities: cvolume cswitch
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 31
  Front Left: Capture 26 [84%] [22.50dB] [on]
  Front Right: Capture 26 [84%] [22.50dB] [on]
Simple mixer control 'Auto-Mute Mode',0
  Capabilities: enum
  Items: 'Disabled' 'Speaker Only' 'Line Out+Speaker'
  Item0: 'Line Out+Speaker'
Simple mixer control 'Internal Mic Boost',0
  Capabilities: volume
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 3
  Front Left: 0 [0%] [0.00dB]
  Front Right: 0 [0%] [0.00dB]


!!Alsactl output
!!--------------

--startcollapse--
state.PCH {
	control.1 {
		iface MIXER
		name 'Speaker+LO Playback Volume'
		value.0 0
		value.1 0
		comment {
			access 'read write'
			type INTEGER
			count 2
			range '0 - 87'
			dbmin -6525
			dbmax 0
			dbvalue.0 -6525
			dbvalue.1 -6525
		}
	}
	control.2 {
		iface MIXER
		name 'Line Out Playback Switch'
		value.0 true
		value.1 true
		comment {
			access 'read write'
			type BOOLEAN
			count 2
		}
	}
	control.3 {
		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.4 {
		iface MIXER
		name 'Headphone Playback Switch'
		value.0 true
		value.1 true
		comment {
			access 'read write'
			type BOOLEAN
			count 2
		}
	}
	control.5 {
		iface MIXER
		name 'Speaker Playback Switch'
		value.0 false
		value.1 false
		comment {
			access 'read write'
			type BOOLEAN
			count 2
		}
	}
	control.6 {
		iface MIXER
		name 'Mic Playback Volume'
		value.0 0
		value.1 0
		comment {
			access 'read write'
			type INTEGER
			count 2
			range '0 - 31'
			dbmin -3450
			dbmax 1200
			dbvalue.0 -3450
			dbvalue.1 -3450
		}
	}
	control.7 {
		iface MIXER
		name 'Mic Playback Switch'
		value.0 false
		value.1 false
		comment {
			access 'read write'
			type BOOLEAN
			count 2
		}
	}
	control.8 {
		iface MIXER
		name 'Auto-Mute Mode'
		value 'Line Out+Speaker'
		comment {
			access 'read write'
			type ENUMERATED
			count 1
			item.0 Disabled
			item.1 'Speaker Only'
			item.2 'Line Out+Speaker'
		}
	}
	control.9 {
		iface MIXER
		name 'Capture Volume'
		value.0 26
		value.1 26
		comment {
			access 'read write'
			type INTEGER
			count 2
			range '0 - 31'
			dbmin -1650
			dbmax 3000
			dbvalue.0 2250
			dbvalue.1 2250
		}
	}
	control.10 {
		iface MIXER
		name 'Capture Switch'
		value.0 true
		value.1 true
		comment {
			access 'read write'
			type BOOLEAN
			count 2
		}
	}
	control.11 {
		iface MIXER
		name 'Mic Boost Volume'
		value.0 0
		value.1 0
		comment {
			access 'read write'
			type INTEGER
			count 2
			range '0 - 3'
			dbmin 0
			dbmax 3600
			dbvalue.0 0
			dbvalue.1 0
		}
	}
	control.12 {
		iface MIXER
		name 'Internal Mic Boost Volume'
		value.0 0
		value.1 0
		comment {
			access 'read write'
			type INTEGER
			count 2
			range '0 - 3'
			dbmin 0
			dbmax 3600
			dbvalue.0 0
			dbvalue.1 0
		}
	}
	control.13 {
		iface MIXER
		name 'Master Playback Volume'
		value 67
		comment {
			access 'read write'
			type INTEGER
			count 1
			range '0 - 87'
			dbmin -6525
			dbmax 0
			dbvalue.0 -1500
		}
	}
	control.14 {
		iface MIXER
		name 'Master Playback Switch'
		value true
		comment {
			access 'read write'
			type BOOLEAN
			count 1
		}
	}
	control.15 {
		iface CARD
		name 'Mic Jack'
		value false
		comment {
			access read
			type BOOLEAN
			count 1
		}
	}
	control.16 {
		iface CARD
		name 'Internal Mic Phantom Jack'
		value true
		comment {
			access read
			type BOOLEAN
			count 1
		}
	}
	control.17 {
		iface CARD
		name 'Front Headphone Jack'
		value true
		comment {
			access read
			type BOOLEAN
			count 1
		}
	}
	control.18 {
		iface CARD
		name 'Dock Headphone Jack'
		value false
		comment {
			access read
			type BOOLEAN
			count 1
		}
	}
	control.19 {
		iface CARD
		name 'Speaker Phantom Jack'
		value true
		comment {
			access read
			type BOOLEAN
			count 1
		}
	}
	control.20 {
		iface MIXER
		name 'Beep Playback Volume'
		value.0 0
		value.1 0
		comment {
			access 'read write'
			type INTEGER
			count 2
			range '0 - 31'
			dbmin -3450
			dbmax 1200
			dbvalue.0 -3450
			dbvalue.1 -3450
		}
	}
	control.21 {
		iface MIXER
		name 'Beep Playback Switch'
		value.0 false
		value.1 false
		comment {
			access 'read write'
			type BOOLEAN
			count 2
		}
	}
	control.22 {
		iface PCM
		name 'Playback Channel Map'
		value.0 0
		value.1 0
		comment {
			access read
			type INTEGER
			count 2
			range '0 - 36'
		}
	}
	control.23 {
		iface PCM
		name 'Capture Channel Map'
		value.0 0
		value.1 0
		comment {
			access read
			type INTEGER
			count 2
			range '0 - 36'
		}
	}
	control.24 {
		iface CARD
		name 'HDMI/DP,pcm=3 Jack'
		value false
		comment {
			access read
			type BOOLEAN
			count 1
		}
	}
	control.25 {
		iface MIXER
		name 'IEC958 Playback Con Mask'
		value '0fff000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'
		comment {
			access read
			type IEC958
			count 1
		}
	}
	control.26 {
		iface MIXER
		name 'IEC958 Playback Pro Mask'
		value '0f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'
		comment {
			access read
			type IEC958
			count 1
		}
	}
	control.27 {
		iface MIXER
		name 'IEC958 Playback Default'
		value '0400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'
		comment {
			access 'read write'
			type IEC958
			count 1
		}
	}
	control.28 {
		iface MIXER
		name 'IEC958 Playback Switch'
		value false
		comment {
			access 'read write'
			type BOOLEAN
			count 1
		}
	}
	control.29 {
		iface PCM
		device 3
		name ELD
		value ''
		comment {
			access 'read volatile'
			type BYTES
			count 0
		}
	}
	control.30 {
		iface PCM
		device 3
		name 'Playback Channel Map'
		value.0 0
		value.1 0
		value.2 0
		value.3 0
		value.4 0
		value.5 0
		value.6 0
		value.7 0
		comment {
			access 'read write'
			type INTEGER
			count 8
			range '0 - 36'
		}
	}
	control.31 {
		iface MIXER
		name 'PCM Playback Volume'
		value.0 255
		value.1 255
		comment {
			access 'read write user'
			type INTEGER
			count 2
			range '0 - 255'
			tlv '0000000100000008ffffec1400000014'
			dbmin -5100
			dbmax 0
			dbvalue.0 0
			dbvalue.1 0
		}
	}
}
--endcollapse--


!!All Loaded Modules
!!------------------

Module
iwldvm
x86_pkg_temp_thermal
mei_me
iwlwifi
mei


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

/sys/class/sound/hwC0D0/init_pin_configs:
0x12 0x90a60150
0x14 0x90170110
0x17 0x411111f0
0x18 0x02a11040
0x19 0x411111f0
0x1a 0x2121101f
0x1b 0x411111f0
0x1d 0x90970130
0x1e 0x411111f0
0x21 0x02211020

/sys/class/sound/hwC0D0/driver_pin_configs:

/sys/class/sound/hwC0D0/user_pin_configs:

/sys/class/sound/hwC0D0/init_verbs:

/sys/class/sound/hwC0D0/hints:

/sys/class/sound/hwC0D3/init_pin_configs:
0x05 0x18560010
0x06 0x58560010
0x07 0x58560010

/sys/class/sound/hwC0D3/driver_pin_configs:

/sys/class/sound/hwC0D3/user_pin_configs:

/sys/class/sound/hwC0D3/init_verbs:

/sys/class/sound/hwC0D3/hints:


!!ALSA/HDA dmesg
!!--------------

[    0.748772] ata1.00: configured for UDMA/100
[    0.754827] sound hdaudioC0D0: ALC269VB: SKU not ready 0x90970130
[    0.755470] sound hdaudioC0D0: autoconfig for ALC269VB: line_outs=1 (0x21/0x0/0x0/0x0/0x0) type:line
[    0.755471] sound hdaudioC0D0:    speaker_outs=1 (0x14/0x0/0x0/0x0/0x0)
[    0.755472] sound hdaudioC0D0:    hp_outs=1 (0x1a/0x0/0x0/0x0/0x0)
[    0.755473] sound hdaudioC0D0:    mono: mono_out=0x0
[    0.755474] sound hdaudioC0D0:    inputs:
[    0.755475] sound hdaudioC0D0:      Mic=0x18
[    0.755476] sound hdaudioC0D0:      Internal Mic=0x12
[    0.761610] input: HDA Digital PCBeep as /devices/pci0000:00/0000:00:1b.0/sound/card0/hdaudioC0D0/input5
[    0.761854] input: HDA Intel PCH Mic as /devices/pci0000:00/0000:00:1b.0/sound/card0/input6
[    0.761899] input: HDA Intel PCH Front Headphone as /devices/pci0000:00/0000:00:1b.0/sound/card0/input7
[    0.761943] input: HDA Intel PCH Dock Headphone as /devices/pci0000:00/0000:00:1b.0/sound/card0/input8
[    0.761987] input: HDA Intel PCH HDMI/DP,pcm=3 as /devices/pci0000:00/0000:00:1b.0/sound/card0/input9
[    0.772464] input: AT Translated Set 2 keyboard as /devices/platform/i8042/serio0/input/input4
--
[    1.586639] PM: Hibernation image not present or could not be loaded.
[    1.586643] ALSA device list:
[    1.586644]   #0: HDA Intel PCH at 0xe2720000 irq 32
[    1.590401] scsi 0:0:0:0: Direct-Access     ATA      TOSHIBA MK3261GS 0K   PQ: 0 ANSI: 5



^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: Audio Jack Out does not work
  2015-04-08 13:34       ` Taylor Smock
@ 2015-04-08 14:06           ` Takashi Iwai
  0 siblings, 0 replies; 19+ messages in thread
From: Takashi Iwai @ 2015-04-08 14:06 UTC (permalink / raw)
  To: Taylor Smock
  Cc: Dan Carpenter, perex, david.henningsson, joe, alsa-devel, linux-kernel

At Wed, 08 Apr 2015 09:34:58 -0400,
Taylor Smock wrote:
> 
> On Wed, 2015-04-08 at 10:22 +0200, Takashi Iwai wrote:
> > At Tue, 07 Apr 2015 21:07:06 -0400,
> > Taylor Smock wrote:
> > > 
> > > Yes; reverting the patch does fix the problem.
> > 
> > What if you just adjust the new volume manually without reverting the
> > patch?  Run "alsamixer -c0" (or -c1, depending on the setup).  Once
> > after the setup, run "alsactl store" as root to save as the system
> > default volume.
> > 
> > The renamed volume should have been set in full volume as default by
> > the driver, and this shouldn't matter whether PA is new or old.  If
> > the mixer adjustment isn't kept after relogin or reboot, it means 
> > that
> > some user-space stuff overrides it.
> > 
> > In anyway, please give alsa-info.sh output before and after the
> > commit.
> > 
> > 
> > Takashi
> > 
> > > On Wed, 2015-04-08 at 01:56 +0300, Dan Carpenter wrote:
> > > > So it's 03ad6a8c93b6df2 ('ALSA: hda - Fix "PCM" name being used 
> > > > on > one
> > > > DAC when there are two DACs') which causes the problem?  Have 
> > > > you 
> > > > tried
> > > > to just revert that patch?
> > > > 
> > > > git show 03ad6a8c93b6df2d65c305b5b5f9474068b45bfb | patch -p1 -R
> > > > 
> > > > regards,
> > > > dan carpenter
> > > > 
> > > 
> 
> I ran alsamixer -c0.
> Headphones did nothing.
> Speaker+L0 did change headphone volume.

Please elaborate a bit what you're testing and what you expected.
When you change "Headphone" volume and mute, it did nothing for which
output?  "Speaker+LO" changes which output and which not?

You seem to have three outputs, one headphone jack on a laptop and one
on a docking station, and there is a built-in speaker.  Since your
codec has only two DACs, two of three must be tied.

The bad thing is that BIOS pin configuration doesn't set the headphone
pin with the associate number 0x0f but only set it to the dock
headphone.  Thus the driver assumes that the dock jack is the right
headphone and handles the laptop headphone as a sub output.
The commit you spotted took this difference more severely, and now you
see the unexpected mixer assignment.

So, the right "fix" would be rather to correct the pin config.
For example, try the patch below.

(BTW, what is the product of your laptop model?  A more exact name can
 be filled in the quirk string.)

> PCM also seemed to affect headphone volume.

This is a mixer element added by alsa-lib softvol plugin, and it's not
what the kernel manages.

Judging from the description that this PCM volume affects, you are
playing without PulseAudio but dmix, I suppose?


Takashi

diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c
index 7b5c93e0e78c..9d935e5c008a 100644
--- a/sound/pci/hda/patch_realtek.c
+++ b/sound/pci/hda/patch_realtek.c
@@ -4429,6 +4429,7 @@ enum {
 	ALC269_FIXUP_QUANTA_MUTE,
 	ALC269_FIXUP_LIFEBOOK,
 	ALC269_FIXUP_LIFEBOOK_EXTMIC,
+	ALC269_FIXUP_FUJITSU_HP_PIN,
 	ALC269_FIXUP_AMIC,
 	ALC269_FIXUP_DMIC,
 	ALC269VB_FIXUP_AMIC,
@@ -4585,6 +4586,13 @@ static const struct hda_fixup alc269_fixups[] = {
 			{ }
 		},
 	},
+	[ALC269_FIXUP_FUJITSU_HP_PIN] = {
+		.type = HDA_FIXUP_PINS,
+		.v.pins = (const struct hda_pintbl[]) {
+			{ 0x21, 0x0221102f }, /* HP out */
+			{ }
+		},
+	},
 	[ALC269_FIXUP_AMIC] = {
 		.type = HDA_FIXUP_PINS,
 		.v.pins = (const struct hda_pintbl[]) {
@@ -5105,6 +5113,7 @@ static const struct snd_pci_quirk alc269_fixup_tbl[] = {
 	SND_PCI_QUIRK(0x104d, 0x9084, "Sony VAIO", ALC275_FIXUP_SONY_HWEQ),
 	SND_PCI_QUIRK(0x104d, 0x9099, "Sony VAIO S13", ALC275_FIXUP_SONY_DISABLE_AAMIX),
 	SND_PCI_QUIRK(0x10cf, 0x1475, "Lifebook", ALC269_FIXUP_LIFEBOOK),
+	SND_PCI_QUIRK(0x10cf, 0x15dc, "Fujitsu", ALC269_FIXUP_FUJITSU_HP_PIN),
 	SND_PCI_QUIRK(0x10cf, 0x1845, "Lifebook U904", ALC269_FIXUP_LIFEBOOK_EXTMIC),
 	SND_PCI_QUIRK(0x144d, 0xc109, "Samsung Ativ book 9 (NP900X3G)", ALC269_FIXUP_INV_DMIC),
 	SND_PCI_QUIRK(0x1458, 0xfa53, "Gigabyte BXBT-2807", ALC283_FIXUP_BXBT2807_MIC),

^ permalink raw reply related	[flat|nested] 19+ messages in thread

* Re: Audio Jack Out does not work
@ 2015-04-08 14:06           ` Takashi Iwai
  0 siblings, 0 replies; 19+ messages in thread
From: Takashi Iwai @ 2015-04-08 14:06 UTC (permalink / raw)
  To: Taylor Smock
  Cc: alsa-devel, linux-kernel, Dan Carpenter, joe, david.henningsson

At Wed, 08 Apr 2015 09:34:58 -0400,
Taylor Smock wrote:
> 
> On Wed, 2015-04-08 at 10:22 +0200, Takashi Iwai wrote:
> > At Tue, 07 Apr 2015 21:07:06 -0400,
> > Taylor Smock wrote:
> > > 
> > > Yes; reverting the patch does fix the problem.
> > 
> > What if you just adjust the new volume manually without reverting the
> > patch?  Run "alsamixer -c0" (or -c1, depending on the setup).  Once
> > after the setup, run "alsactl store" as root to save as the system
> > default volume.
> > 
> > The renamed volume should have been set in full volume as default by
> > the driver, and this shouldn't matter whether PA is new or old.  If
> > the mixer adjustment isn't kept after relogin or reboot, it means 
> > that
> > some user-space stuff overrides it.
> > 
> > In anyway, please give alsa-info.sh output before and after the
> > commit.
> > 
> > 
> > Takashi
> > 
> > > On Wed, 2015-04-08 at 01:56 +0300, Dan Carpenter wrote:
> > > > So it's 03ad6a8c93b6df2 ('ALSA: hda - Fix "PCM" name being used 
> > > > on > one
> > > > DAC when there are two DACs') which causes the problem?  Have 
> > > > you 
> > > > tried
> > > > to just revert that patch?
> > > > 
> > > > git show 03ad6a8c93b6df2d65c305b5b5f9474068b45bfb | patch -p1 -R
> > > > 
> > > > regards,
> > > > dan carpenter
> > > > 
> > > 
> 
> I ran alsamixer -c0.
> Headphones did nothing.
> Speaker+L0 did change headphone volume.

Please elaborate a bit what you're testing and what you expected.
When you change "Headphone" volume and mute, it did nothing for which
output?  "Speaker+LO" changes which output and which not?

You seem to have three outputs, one headphone jack on a laptop and one
on a docking station, and there is a built-in speaker.  Since your
codec has only two DACs, two of three must be tied.

The bad thing is that BIOS pin configuration doesn't set the headphone
pin with the associate number 0x0f but only set it to the dock
headphone.  Thus the driver assumes that the dock jack is the right
headphone and handles the laptop headphone as a sub output.
The commit you spotted took this difference more severely, and now you
see the unexpected mixer assignment.

So, the right "fix" would be rather to correct the pin config.
For example, try the patch below.

(BTW, what is the product of your laptop model?  A more exact name can
 be filled in the quirk string.)

> PCM also seemed to affect headphone volume.

This is a mixer element added by alsa-lib softvol plugin, and it's not
what the kernel manages.

Judging from the description that this PCM volume affects, you are
playing without PulseAudio but dmix, I suppose?


Takashi

diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c
index 7b5c93e0e78c..9d935e5c008a 100644
--- a/sound/pci/hda/patch_realtek.c
+++ b/sound/pci/hda/patch_realtek.c
@@ -4429,6 +4429,7 @@ enum {
 	ALC269_FIXUP_QUANTA_MUTE,
 	ALC269_FIXUP_LIFEBOOK,
 	ALC269_FIXUP_LIFEBOOK_EXTMIC,
+	ALC269_FIXUP_FUJITSU_HP_PIN,
 	ALC269_FIXUP_AMIC,
 	ALC269_FIXUP_DMIC,
 	ALC269VB_FIXUP_AMIC,
@@ -4585,6 +4586,13 @@ static const struct hda_fixup alc269_fixups[] = {
 			{ }
 		},
 	},
+	[ALC269_FIXUP_FUJITSU_HP_PIN] = {
+		.type = HDA_FIXUP_PINS,
+		.v.pins = (const struct hda_pintbl[]) {
+			{ 0x21, 0x0221102f }, /* HP out */
+			{ }
+		},
+	},
 	[ALC269_FIXUP_AMIC] = {
 		.type = HDA_FIXUP_PINS,
 		.v.pins = (const struct hda_pintbl[]) {
@@ -5105,6 +5113,7 @@ static const struct snd_pci_quirk alc269_fixup_tbl[] = {
 	SND_PCI_QUIRK(0x104d, 0x9084, "Sony VAIO", ALC275_FIXUP_SONY_HWEQ),
 	SND_PCI_QUIRK(0x104d, 0x9099, "Sony VAIO S13", ALC275_FIXUP_SONY_DISABLE_AAMIX),
 	SND_PCI_QUIRK(0x10cf, 0x1475, "Lifebook", ALC269_FIXUP_LIFEBOOK),
+	SND_PCI_QUIRK(0x10cf, 0x15dc, "Fujitsu", ALC269_FIXUP_FUJITSU_HP_PIN),
 	SND_PCI_QUIRK(0x10cf, 0x1845, "Lifebook U904", ALC269_FIXUP_LIFEBOOK_EXTMIC),
 	SND_PCI_QUIRK(0x144d, 0xc109, "Samsung Ativ book 9 (NP900X3G)", ALC269_FIXUP_INV_DMIC),
 	SND_PCI_QUIRK(0x1458, 0xfa53, "Gigabyte BXBT-2807", ALC283_FIXUP_BXBT2807_MIC),

^ permalink raw reply related	[flat|nested] 19+ messages in thread

* Re: [alsa-devel] Audio Jack Out does not work
  2015-04-08 13:20       ` Raymond Yau
@ 2015-04-08 15:20           ` Dan Carpenter
  0 siblings, 0 replies; 19+ messages in thread
From: Dan Carpenter @ 2015-04-08 15:20 UTC (permalink / raw)
  To: Raymond Yau
  Cc: joe, Taylor Smock, alsa-devel, tiwai, david.henningsson, linux-kernel

I don't understand what you are saying.  Are you trying to justify
breaking userspace somehow?

WE DON:T BREAK USERSPACE!!11! etc etc.

regards,
dan carpenter

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: Audio Jack Out does not work
@ 2015-04-08 15:20           ` Dan Carpenter
  0 siblings, 0 replies; 19+ messages in thread
From: Dan Carpenter @ 2015-04-08 15:20 UTC (permalink / raw)
  To: Raymond Yau
  Cc: alsa-devel, tiwai, linux-kernel, Taylor Smock, joe, david.henningsson

I don't understand what you are saying.  Are you trying to justify
breaking userspace somehow?

WE DON:T BREAK USERSPACE!!11! etc etc.

regards,
dan carpenter

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: Audio Jack Out does not work
  2015-04-08 14:06           ` Takashi Iwai
  (?)
@ 2015-04-08 16:34           ` Taylor Smock
  2015-04-08 18:57             ` Takashi Iwai
  -1 siblings, 1 reply; 19+ messages in thread
From: Taylor Smock @ 2015-04-08 16:34 UTC (permalink / raw)
  To: Takashi Iwai
  Cc: Dan Carpenter, perex, david.henningsson, joe, alsa-devel, linux-kernel

On Wed, 2015-04-08 at 16:06 +0200, Takashi Iwai wrote:
> At Wed, 08 Apr 2015 09:34:58 -0400,
> Taylor Smock wrote:
> > 
> > On Wed, 2015-04-08 at 10:22 +0200, Takashi Iwai wrote:
> > > At Tue, 07 Apr 2015 21:07:06 -0400,
> > > Taylor Smock wrote:
> > > > 
> > > > Yes; reverting the patch does fix the problem.
> > > 
> > > What if you just adjust the new volume manually without 
> > > reverting the
> > > patch?  Run "alsamixer -c0" (or -c1, depending on the setup).  
> > > Once
> > > after the setup, run "alsactl store" as root to save as the 
> > > system
> > > default volume.
> > > 
> > > The renamed volume should have been set in full volume as 
> > > default by
> > > the driver, and this shouldn't matter whether PA is new or old.  
> > > If
> > > the mixer adjustment isn't kept after relogin or reboot, it 
> > > means 
> > > that
> > > some user-space stuff overrides it.
> > > 
> > > In anyway, please give alsa-info.sh output before and after the
> > > commit.
> > > 
> > > 
> > > Takashi
> > > 
> > > > On Wed, 2015-04-08 at 01:56 +0300, Dan Carpenter wrote:
> > > > > So it's 03ad6a8c93b6df2 ('ALSA: hda - Fix "PCM" name being 
> > > > > used 
> > > > > on > one
> > > > > DAC when there are two DACs') which causes the problem?  
> > > > > Have 
> > > > > you 
> > > > > tried
> > > > > to just revert that patch?
> > > > > 
> > > > > git show 03ad6a8c93b6df2d65c305b5b5f9474068b45bfb | patch -
> > > > > p1 -R
> > > > > 
> > > > > regards,
> > > > > dan carpenter
> > > > > 
> > > > 
> > 
> > I ran alsamixer -c0.
> > Headphones did nothing.
> > Speaker+L0 did change headphone volume.
> 
> Please elaborate a bit what you're testing and what you expected.
> When you change "Headphone" volume and mute, it did nothing for which
> output?  "Speaker+LO" changes which output and which not?
> 
> You seem to have three outputs, one headphone jack on a laptop and 
> one
> on a docking station, and there is a built-in speaker.  Since your
> codec has only two DACs, two of three must be tied.
> 
> The bad thing is that BIOS pin configuration doesn't set the 
> headphone
> pin with the associate number 0x0f but only set it to the dock
> headphone.  Thus the driver assumes that the dock jack is the right
> headphone and handles the laptop headphone as a sub output.
> The commit you spotted took this difference more severely, and now 
> you
> see the unexpected mixer assignment.
> 
> So, the right "fix" would be rather to correct the pin config.
> For example, try the patch below.
> 
> (BTW, what is the product of your laptop model?  A more exact name 
> can
>  be filled in the quirk string.)
> 
> > PCM also seemed to affect headphone volume.
> 
> This is a mixer element added by alsa-lib softvol plugin, and it's 
> not
> what the kernel manages.
> 
> Judging from the description that this PCM volume affects, you are
> playing without PulseAudio but dmix, I suppose?
> 
> 
> Takashi
> 
> diff --git a/sound/pci/hda/patch_realtek.c 
> b/sound/pci/hda/patch_realtek.c
> index 7b5c93e0e78c..9d935e5c008a 100644
> --- a/sound/pci/hda/patch_realtek.c
> +++ b/sound/pci/hda/patch_realtek.c
> @@ -4429,6 +4429,7 @@ enum {
>       ALC269_FIXUP_QUANTA_MUTE,
>       ALC269_FIXUP_LIFEBOOK,
>       ALC269_FIXUP_LIFEBOOK_EXTMIC,
> +     ALC269_FIXUP_FUJITSU_HP_PIN,
>       ALC269_FIXUP_AMIC,
>       ALC269_FIXUP_DMIC,
>       ALC269VB_FIXUP_AMIC,
> @@ -4585,6 +4586,13 @@ static const struct hda_fixup alc269_fixups[] 
> = {
>                       { }
>               },
>       },
> +     [ALC269_FIXUP_FUJITSU_HP_PIN] = {
> +             .type = HDA_FIXUP_PINS,
> +             .v.pins = (const struct hda_pintbl[]) {
> +                     { 0x21, 0x0221102f }, /* HP out */
> +                     { }
> +             },
> +     },
>       [ALC269_FIXUP_AMIC] = {
>               .type = HDA_FIXUP_PINS,
>               .v.pins = (const struct hda_pintbl[]) {
> @@ -5105,6 +5113,7 @@ static const struct snd_pci_quirk 
> alc269_fixup_tbl[] = {
>       SND_PCI_QUIRK(0x104d, 0x9084, "Sony VAIO", ALC275_FIXUP_SONY_HWEQ),
>       SND_PCI_QUIRK(0x104d, 0x9099, "Sony VAIO S13", 
> ALC275_FIXUP_SONY_DISABLE_AAMIX),
>       SND_PCI_QUIRK(0x10cf, 0x1475, "Lifebook", ALC269_FIXUP_LIFEBOOK),
> +     SND_PCI_QUIRK(0x10cf, 0x15dc, "Fujitsu", 
> ALC269_FIXUP_FUJITSU_HP_PIN),
>       SND_PCI_QUIRK(0x10cf, 0x1845, "Lifebook U904", 
> ALC269_FIXUP_LIFEBOOK_EXTMIC),
>       SND_PCI_QUIRK(0x144d, 0xc109, "Samsung Ativ book 9 (NP900X3G)", 
> ALC269_FIXUP_INV_DMIC),
>       SND_PCI_QUIRK(0x1458, 0xfa53, "Gigabyte BXBT-2807", 
> ALC283_FIXUP_BXBT2807_MIC),

I was testing a music player (Banshee) playing music, and I expected 
"Headphones" to control the audio output to my headphones.

If it is a BIOS pin configuration, then it is *probably* my fault, 
since I messed up my BIOS a few years ago.

The patch seems to work, assuming I reverted the change made to 
sound/pci/hda/hda_generic.c properly (git checkout 
sound/pci/hda/hda_generic.c) and applied the patch properly (git am 
SAVED_MBOX_FILE).

My laptop is a Fujitsu Lifebook T731. Unfortunately, the BIOS doesn't 
know that anymore.

I don't think I'm using dmix (I should be using pulseaudio, since a 
process is shown in ps aux | grep pulseaudio).

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: Audio Jack Out does not work
  2015-04-08 15:20           ` Dan Carpenter
  (?)
@ 2015-04-08 16:44           ` Raymond Yau
  -1 siblings, 0 replies; 19+ messages in thread
From: Raymond Yau @ 2015-04-08 16:44 UTC (permalink / raw)
  To: Dan Carpenter
  Cc: alsa-devel, tiwai, linux-kernel, Taylor Smock, joe, david.henningsson

>
> I don't understand what you are saying.  Are you trying to justify
> breaking userspace somehow?
>
> WE DON:T BREAK USERSPACE!!11! etc etc.
>
> regards,
> dan carpenter

+ case AUTO_PIN_LINE_OUT:
+ /* This deals with the case where we have two DACs and
+ * one LO, one HP and one Speaker */
+ if (!ch && cfg->speaker_outs && cfg->hp_outs) {

The patch did not check one LO and two DACs

cfg->line_outs == 1

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: Audio Jack Out does not work
  2015-04-08 16:34           ` Taylor Smock
@ 2015-04-08 18:57             ` Takashi Iwai
  2015-04-09  1:34               ` Raymond Yau
  0 siblings, 1 reply; 19+ messages in thread
From: Takashi Iwai @ 2015-04-08 18:57 UTC (permalink / raw)
  To: Taylor Smock
  Cc: Dan Carpenter, perex, david.henningsson, joe, alsa-devel, linux-kernel

At Wed, 08 Apr 2015 12:34:04 -0400,
Taylor Smock wrote:
> 
> On Wed, 2015-04-08 at 16:06 +0200, Takashi Iwai wrote:
> > At Wed, 08 Apr 2015 09:34:58 -0400,
> > Taylor Smock wrote:
> > > 
> > > On Wed, 2015-04-08 at 10:22 +0200, Takashi Iwai wrote:
> > > > At Tue, 07 Apr 2015 21:07:06 -0400,
> > > > Taylor Smock wrote:
> > > > > 
> > > > > Yes; reverting the patch does fix the problem.
> > > > 
> > > > What if you just adjust the new volume manually without 
> > > > reverting the
> > > > patch?  Run "alsamixer -c0" (or -c1, depending on the setup).  
> > > > Once
> > > > after the setup, run "alsactl store" as root to save as the 
> > > > system
> > > > default volume.
> > > > 
> > > > The renamed volume should have been set in full volume as 
> > > > default by
> > > > the driver, and this shouldn't matter whether PA is new or old.  
> > > > If
> > > > the mixer adjustment isn't kept after relogin or reboot, it 
> > > > means 
> > > > that
> > > > some user-space stuff overrides it.
> > > > 
> > > > In anyway, please give alsa-info.sh output before and after the
> > > > commit.
> > > > 
> > > > 
> > > > Takashi
> > > > 
> > > > > On Wed, 2015-04-08 at 01:56 +0300, Dan Carpenter wrote:
> > > > > > So it's 03ad6a8c93b6df2 ('ALSA: hda - Fix "PCM" name being 
> > > > > > used 
> > > > > > on > one
> > > > > > DAC when there are two DACs') which causes the problem?  
> > > > > > Have 
> > > > > > you 
> > > > > > tried
> > > > > > to just revert that patch?
> > > > > > 
> > > > > > git show 03ad6a8c93b6df2d65c305b5b5f9474068b45bfb | patch -
> > > > > > p1 -R
> > > > > > 
> > > > > > regards,
> > > > > > dan carpenter
> > > > > > 
> > > > > 
> > > 
> > > I ran alsamixer -c0.
> > > Headphones did nothing.
> > > Speaker+L0 did change headphone volume.
> > 
> > Please elaborate a bit what you're testing and what you expected.
> > When you change "Headphone" volume and mute, it did nothing for which
> > output?  "Speaker+LO" changes which output and which not?
> > 
> > You seem to have three outputs, one headphone jack on a laptop and 
> > one
> > on a docking station, and there is a built-in speaker.  Since your
> > codec has only two DACs, two of three must be tied.
> > 
> > The bad thing is that BIOS pin configuration doesn't set the 
> > headphone
> > pin with the associate number 0x0f but only set it to the dock
> > headphone.  Thus the driver assumes that the dock jack is the right
> > headphone and handles the laptop headphone as a sub output.
> > The commit you spotted took this difference more severely, and now 
> > you
> > see the unexpected mixer assignment.
> > 
> > So, the right "fix" would be rather to correct the pin config.
> > For example, try the patch below.
> > 
> > (BTW, what is the product of your laptop model?  A more exact name 
> > can
> >  be filled in the quirk string.)
> > 
> > > PCM also seemed to affect headphone volume.
> > 
> > This is a mixer element added by alsa-lib softvol plugin, and it's 
> > not
> > what the kernel manages.
> > 
> > Judging from the description that this PCM volume affects, you are
> > playing without PulseAudio but dmix, I suppose?
> > 
> > 
> > Takashi
> > 
> > diff --git a/sound/pci/hda/patch_realtek.c 
> > b/sound/pci/hda/patch_realtek.c
> > index 7b5c93e0e78c..9d935e5c008a 100644
> > --- a/sound/pci/hda/patch_realtek.c
> > +++ b/sound/pci/hda/patch_realtek.c
> > @@ -4429,6 +4429,7 @@ enum {
> >       ALC269_FIXUP_QUANTA_MUTE,
> >       ALC269_FIXUP_LIFEBOOK,
> >       ALC269_FIXUP_LIFEBOOK_EXTMIC,
> > +     ALC269_FIXUP_FUJITSU_HP_PIN,
> >       ALC269_FIXUP_AMIC,
> >       ALC269_FIXUP_DMIC,
> >       ALC269VB_FIXUP_AMIC,
> > @@ -4585,6 +4586,13 @@ static const struct hda_fixup alc269_fixups[] 
> > = {
> >                       { }
> >               },
> >       },
> > +     [ALC269_FIXUP_FUJITSU_HP_PIN] = {
> > +             .type = HDA_FIXUP_PINS,
> > +             .v.pins = (const struct hda_pintbl[]) {
> > +                     { 0x21, 0x0221102f }, /* HP out */
> > +                     { }
> > +             },
> > +     },
> >       [ALC269_FIXUP_AMIC] = {
> >               .type = HDA_FIXUP_PINS,
> >               .v.pins = (const struct hda_pintbl[]) {
> > @@ -5105,6 +5113,7 @@ static const struct snd_pci_quirk 
> > alc269_fixup_tbl[] = {
> >       SND_PCI_QUIRK(0x104d, 0x9084, "Sony VAIO", ALC275_FIXUP_SONY_HWEQ),
> >       SND_PCI_QUIRK(0x104d, 0x9099, "Sony VAIO S13", 
> > ALC275_FIXUP_SONY_DISABLE_AAMIX),
> >       SND_PCI_QUIRK(0x10cf, 0x1475, "Lifebook", ALC269_FIXUP_LIFEBOOK),
> > +     SND_PCI_QUIRK(0x10cf, 0x15dc, "Fujitsu", 
> > ALC269_FIXUP_FUJITSU_HP_PIN),
> >       SND_PCI_QUIRK(0x10cf, 0x1845, "Lifebook U904", 
> > ALC269_FIXUP_LIFEBOOK_EXTMIC),
> >       SND_PCI_QUIRK(0x144d, 0xc109, "Samsung Ativ book 9 (NP900X3G)", 
> > ALC269_FIXUP_INV_DMIC),
> >       SND_PCI_QUIRK(0x1458, 0xfa53, "Gigabyte BXBT-2807", 
> > ALC283_FIXUP_BXBT2807_MIC),
> 
> I was testing a music player (Banshee) playing music, and I expected 
> "Headphones" to control the audio output to my headphones.
> 
> If it is a BIOS pin configuration, then it is *probably* my fault, 
> since I messed up my BIOS a few years ago.
> 
> The patch seems to work, assuming I reverted the change made to 
> sound/pci/hda/hda_generic.c properly (git checkout 
> sound/pci/hda/hda_generic.c) and applied the patch properly (git am 
> SAVED_MBOX_FILE).
> 
> My laptop is a Fujitsu Lifebook T731. Unfortunately, the BIOS doesn't 
> know that anymore.
> 
> I don't think I'm using dmix (I should be using pulseaudio, since a 
> process is shown in ps aux | grep pulseaudio).

OK, then now I applied the patch as a fix, marked with Cc to stable as
below.  The correction of pin config shouldn't do much harm even if
new BIOS already fixed the value.


Takashi

-- 8< --
From: Takashi Iwai <tiwai@suse.de>
Subject: [PATCH] ALSA: hda - Fix headphone pin config for Lifebook T731

Some BIOS version of Fujitsu Lifebook T731 seems to set up the
headphone pin (0x21) without the assoc number 0x0f while it's set only
to the output on the docking port (0x1a).  With the recent commit
[03ad6a8c93b6: ALSA: hda - Fix "PCM" name being used on one DAC when
 there are two DACs], this resulted in the weird mixer element
mapping where the headphone on the laptop is assigned as a shared
volume with the speaker and the docking port is assigned as an
individual headphone.

This patch improves the situation by correcting the headphone pin
config to the more appropriate value.

Reported-and-tested-by: Taylor Smock <smocktaylor@gmail.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
---
 sound/pci/hda/patch_realtek.c | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c
index a07da0bbb2b4..f9d12c0a7e5a 100644
--- a/sound/pci/hda/patch_realtek.c
+++ b/sound/pci/hda/patch_realtek.c
@@ -4372,6 +4372,7 @@ enum {
 	ALC269_FIXUP_QUANTA_MUTE,
 	ALC269_FIXUP_LIFEBOOK,
 	ALC269_FIXUP_LIFEBOOK_EXTMIC,
+	ALC269_FIXUP_LIFEBOOK_HP_PIN,
 	ALC269_FIXUP_AMIC,
 	ALC269_FIXUP_DMIC,
 	ALC269VB_FIXUP_AMIC,
@@ -4525,6 +4526,13 @@ static const struct hda_fixup alc269_fixups[] = {
 			{ }
 		},
 	},
+	[ALC269_FIXUP_LIFEBOOK_HP_PIN] = {
+		.type = HDA_FIXUP_PINS,
+		.v.pins = (const struct hda_pintbl[]) {
+			{ 0x21, 0x0221102f }, /* HP out */
+			{ }
+		},
+	},
 	[ALC269_FIXUP_AMIC] = {
 		.type = HDA_FIXUP_PINS,
 		.v.pins = (const struct hda_pintbl[]) {
@@ -5018,6 +5026,7 @@ static const struct snd_pci_quirk alc269_fixup_tbl[] = {
 	SND_PCI_QUIRK(0x104d, 0x9084, "Sony VAIO", ALC275_FIXUP_SONY_HWEQ),
 	SND_PCI_QUIRK(0x104d, 0x9099, "Sony VAIO S13", ALC275_FIXUP_SONY_DISABLE_AAMIX),
 	SND_PCI_QUIRK(0x10cf, 0x1475, "Lifebook", ALC269_FIXUP_LIFEBOOK),
+	SND_PCI_QUIRK(0x10cf, 0x15dc, "Lifebook T731", ALC269_FIXUP_LIFEBOOK_HP_PIN),
 	SND_PCI_QUIRK(0x10cf, 0x1845, "Lifebook U904", ALC269_FIXUP_LIFEBOOK_EXTMIC),
 	SND_PCI_QUIRK(0x144d, 0xc109, "Samsung Ativ book 9 (NP900X3G)", ALC269_FIXUP_INV_DMIC),
 	SND_PCI_QUIRK(0x1458, 0xfa53, "Gigabyte BXBT-2807", ALC283_FIXUP_BXBT2807_MIC),
-- 
2.3.5


^ permalink raw reply related	[flat|nested] 19+ messages in thread

* Re: Audio Jack Out does not work
  2015-04-08 18:57             ` Takashi Iwai
@ 2015-04-09  1:34               ` Raymond Yau
  2015-04-09  5:27                   ` Takashi Iwai
  0 siblings, 1 reply; 19+ messages in thread
From: Raymond Yau @ 2015-04-09  1:34 UTC (permalink / raw)
  To: Takashi Iwai
  Cc: ALSA Development Mailing List, linux-kernel, Taylor Smock,
	david.henningsson, joe, Dan Carpenter

> > > > > Taylor Smock wrote:
> > > > > >
> > > > > > Yes; reverting the patch does fix the problem.
> > > > >
> > > > > What if you just adjust the new volume manually without
> > > > > reverting the
> > > > > patch?  Run "alsamixer -c0" (or -c1, depending on the setup).
> > > > > Once
> > > > > after the setup, run "alsactl store" as root to save as the
> > > > > system
> > > > > default volume.
> > > > >
> > > > > The renamed volume should have been set in full volume as
> > > > > default by
> > > > > the driver, and this shouldn't matter whether PA is new or old.
> > > > > If
> > > > > the mixer adjustment isn't kept after relogin or reboot, it
> > > > > means
> > > > > that
> > > > > some user-space stuff overrides it.
> > > > >
> > > > > In anyway, please give alsa-info.sh output before and after the
> > > > > commit.
> > > > >
> > > > >
> > > > > Takashi
> > > > >
> > > > > > On Wed, 2015-04-08 at 01:56 +0300, Dan Carpenter wrote:
> > > > > > > So it's 03ad6a8c93b6df2 ('ALSA: hda - Fix "PCM" name being
> > > > > > > used
> > > > > > > on > one
> > > > > > > DAC when there are two DACs') which causes the problem?
> > > > > > > Have
> > > > > > > you
> > > > > > > tried
> > > > > > > to just revert that patch?
> > > > > > >
> > > > > > > git show 03ad6a8c93b6df2d65c305b5b5f9474068b45bfb | patch -
> > > > > > > p1 -R
> > > > > > >
> > > > > > > regards,
> > > > > > > dan carpenter
> > > > > > >
> > > > > >
> > > >
> > > > I ran alsamixer -c0.
> > > > Headphones did nothing.
> > > > Speaker+L0 did change headphone volume.
> > >
> > > Please elaborate a bit what you're testing and what you expected.
> > > When you change "Headphone" volume and mute, it did nothing for which
> > > output?  "Speaker+LO" changes which output and which not?
> > >
> > > You seem to have three outputs, one headphone jack on a laptop and
> > > one
> > > on a docking station, and there is a built-in speaker.  Since your
> > > codec has only two DACs, two of three must be tied.
> > >
> > > The bad thing is that BIOS pin configuration doesn't set the
> > > headphone
> > > pin with the associate number 0x0f but only set it to the dock
> > > headphone.  Thus the driver assumes that the dock jack is the right
> > > headphone and handles the laptop headphone as a sub output.
> > > The commit you spotted took this difference more severely, and now
> > > you
> > > see the unexpected mixer assignment.
> > >
> > > So, the right "fix" would be rather to correct the pin config.
> > > For example, try the patch below.
> > >
> > > (BTW, what is the product of your laptop model?  A more exact name
> > > can
> > >  be filled in the quirk string.)
> > >
> > > > PCM also seemed to affect headphone volume.
> > >
> > > This is a mixer element added by alsa-lib softvol plugin, and it's
> > > not
> > > what the kernel manages.
> > >
> > > Judging from the description that this PCM volume affects, you are
> > > playing without PulseAudio but dmix, I suppose?
> > >
> > >
> > > Takashi
> > >
> > > diff --git a/sound/pci/hda/patch_realtek.c
> > > b/sound/pci/hda/patch_realtek.c
> > > index 7b5c93e0e78c..9d935e5c008a 100644
> > > --- a/sound/pci/hda/patch_realtek.c
> > > +++ b/sound/pci/hda/patch_realtek.c
> > > @@ -4429,6 +4429,7 @@ enum {
> > >       ALC269_FIXUP_QUANTA_MUTE,
> > >       ALC269_FIXUP_LIFEBOOK,
> > >       ALC269_FIXUP_LIFEBOOK_EXTMIC,
> > > +     ALC269_FIXUP_FUJITSU_HP_PIN,
> > >       ALC269_FIXUP_AMIC,
> > >       ALC269_FIXUP_DMIC,
> > >       ALC269VB_FIXUP_AMIC,
> > > @@ -4585,6 +4586,13 @@ static const struct hda_fixup alc269_fixups[]
> > > = {
> > >                       { }
> > >               },
> > >       },
> > > +     [ALC269_FIXUP_FUJITSU_HP_PIN] = {
> > > +             .type = HDA_FIXUP_PINS,
> > > +             .v.pins = (const struct hda_pintbl[]) {
> > > +                     { 0x21, 0x0221102f }, /* HP out */
> > > +                     { }
> > > +             },
> > > +     },
>

Do you mind explaining the logic of this pin fixup as driver also change
max channels from 2 to 4 ?

The parser put one headphone in the line_outs before your patch but type is
still line

autoconfig for ALC269VB: line_outs=1 (0x21/0x0/0x0/0x0/0x0) type:line
   speaker_outs=1 (0x14/0x0/0x0/0x0/0x0)
   hp_outs=1 (0x1a/0x0/0x0/0x0/0x0)
   mono: mono_out=0x0
   inputs:
     Internal Mic=0x12
     Mic=0x18

the headphone and dock headphone was put in the hp_outsafter your patch

autoconfig for ALC269VB: line_outs=1 (0x14/0x0/0x0/0x0/0x0) type:speaker
   speaker_outs=0 (0x0/0x0/0x0/0x0/0x0)
   hp_outs=2 (0x1a/0x21/0x0/0x0/0x0)
   mono: mono_out=0x0
   inputs:
     Internal Mic=0x12
     Mic=0x18


Do the driver need to distinguish between

notebook with headphone and Dock headphone
notebook with dual headphone jacks

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [alsa-devel] Audio Jack Out does not work
  2015-04-09  1:34               ` Raymond Yau
@ 2015-04-09  5:27                   ` Takashi Iwai
  0 siblings, 0 replies; 19+ messages in thread
From: Takashi Iwai @ 2015-04-09  5:27 UTC (permalink / raw)
  To: Raymond Yau
  Cc: ALSA Development Mailing List, linux-kernel, Taylor Smock,
	david.henningsson, joe, Dan Carpenter

At Thu, 9 Apr 2015 09:34:05 +0800,
Raymond Yau wrote:
> 
> > > > > > Taylor Smock wrote:
> > > > > > >
> > > > > > > Yes; reverting the patch does fix the problem.
> > > > > >
> > > > > > What if you just adjust the new volume manually without
> > > > > > reverting the
> > > > > > patch?  Run "alsamixer -c0" (or -c1, depending on the setup).
> > > > > > Once
> > > > > > after the setup, run "alsactl store" as root to save as the
> > > > > > system
> > > > > > default volume.
> > > > > >
> > > > > > The renamed volume should have been set in full volume as
> > > > > > default by
> > > > > > the driver, and this shouldn't matter whether PA is new or old.
> > > > > > If
> > > > > > the mixer adjustment isn't kept after relogin or reboot, it
> > > > > > means
> > > > > > that
> > > > > > some user-space stuff overrides it.
> > > > > >
> > > > > > In anyway, please give alsa-info.sh output before and after the
> > > > > > commit.
> > > > > >
> > > > > >
> > > > > > Takashi
> > > > > >
> > > > > > > On Wed, 2015-04-08 at 01:56 +0300, Dan Carpenter wrote:
> > > > > > > > So it's 03ad6a8c93b6df2 ('ALSA: hda - Fix "PCM" name being
> > > > > > > > used
> > > > > > > > on > one
> > > > > > > > DAC when there are two DACs') which causes the problem?
> > > > > > > > Have
> > > > > > > > you
> > > > > > > > tried
> > > > > > > > to just revert that patch?
> > > > > > > >
> > > > > > > > git show 03ad6a8c93b6df2d65c305b5b5f9474068b45bfb | patch -
> > > > > > > > p1 -R
> > > > > > > >
> > > > > > > > regards,
> > > > > > > > dan carpenter
> > > > > > > >
> > > > > > >
> > > > >
> > > > > I ran alsamixer -c0.
> > > > > Headphones did nothing.
> > > > > Speaker+L0 did change headphone volume.
> > > >
> > > > Please elaborate a bit what you're testing and what you expected.
> > > > When you change "Headphone" volume and mute, it did nothing for which
> > > > output?  "Speaker+LO" changes which output and which not?
> > > >
> > > > You seem to have three outputs, one headphone jack on a laptop and
> > > > one
> > > > on a docking station, and there is a built-in speaker.  Since your
> > > > codec has only two DACs, two of three must be tied.
> > > >
> > > > The bad thing is that BIOS pin configuration doesn't set the
> > > > headphone
> > > > pin with the associate number 0x0f but only set it to the dock
> > > > headphone.  Thus the driver assumes that the dock jack is the right
> > > > headphone and handles the laptop headphone as a sub output.
> > > > The commit you spotted took this difference more severely, and now
> > > > you
> > > > see the unexpected mixer assignment.
> > > >
> > > > So, the right "fix" would be rather to correct the pin config.
> > > > For example, try the patch below.
> > > >
> > > > (BTW, what is the product of your laptop model?  A more exact name
> > > > can
> > > >  be filled in the quirk string.)
> > > >
> > > > > PCM also seemed to affect headphone volume.
> > > >
> > > > This is a mixer element added by alsa-lib softvol plugin, and it's
> > > > not
> > > > what the kernel manages.
> > > >
> > > > Judging from the description that this PCM volume affects, you are
> > > > playing without PulseAudio but dmix, I suppose?
> > > >
> > > >
> > > > Takashi
> > > >
> > > > diff --git a/sound/pci/hda/patch_realtek.c
> > > > b/sound/pci/hda/patch_realtek.c
> > > > index 7b5c93e0e78c..9d935e5c008a 100644
> > > > --- a/sound/pci/hda/patch_realtek.c
> > > > +++ b/sound/pci/hda/patch_realtek.c
> > > > @@ -4429,6 +4429,7 @@ enum {
> > > >       ALC269_FIXUP_QUANTA_MUTE,
> > > >       ALC269_FIXUP_LIFEBOOK,
> > > >       ALC269_FIXUP_LIFEBOOK_EXTMIC,
> > > > +     ALC269_FIXUP_FUJITSU_HP_PIN,
> > > >       ALC269_FIXUP_AMIC,
> > > >       ALC269_FIXUP_DMIC,
> > > >       ALC269VB_FIXUP_AMIC,
> > > > @@ -4585,6 +4586,13 @@ static const struct hda_fixup alc269_fixups[]
> > > > = {
> > > >                       { }
> > > >               },
> > > >       },
> > > > +     [ALC269_FIXUP_FUJITSU_HP_PIN] = {
> > > > +             .type = HDA_FIXUP_PINS,
> > > > +             .v.pins = (const struct hda_pintbl[]) {
> > > > +                     { 0x21, 0x0221102f }, /* HP out */
> > > > +                     { }
> > > > +             },
> > > > +     },
> >
> 
> Do you mind explaining the logic of this pin fixup as driver also change
> max channels from 2 to 4 ?
> 
> The parser put one headphone in the line_outs before your patch but type is
> still line
> 
> autoconfig for ALC269VB: line_outs=1 (0x21/0x0/0x0/0x0/0x0) type:line
>    speaker_outs=1 (0x14/0x0/0x0/0x0/0x0)
>    hp_outs=1 (0x1a/0x0/0x0/0x0/0x0)
>    mono: mono_out=0x0
>    inputs:
>      Internal Mic=0x12
>      Mic=0x18
> 
> the headphone and dock headphone was put in the hp_outsafter your patch
> 
> autoconfig for ALC269VB: line_outs=1 (0x14/0x0/0x0/0x0/0x0) type:speaker
>    speaker_outs=0 (0x0/0x0/0x0/0x0/0x0)
>    hp_outs=2 (0x1a/0x21/0x0/0x0/0x0)
>    mono: mono_out=0x0
>    inputs:
>      Internal Mic=0x12
>      Mic=0x18
> 
> 
> Do the driver need to distinguish between
> 
> notebook with headphone and Dock headphone
> notebook with dual headphone jacks

The former is handled when the dock headphone is a kind of line-out.
Now we handle this laptop as the latter, which fits better in the case
of two DACs.


Takashi

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: Audio Jack Out does not work
@ 2015-04-09  5:27                   ` Takashi Iwai
  0 siblings, 0 replies; 19+ messages in thread
From: Takashi Iwai @ 2015-04-09  5:27 UTC (permalink / raw)
  To: Raymond Yau
  Cc: ALSA Development Mailing List, linux-kernel, Taylor Smock,
	david.henningsson, joe, Dan Carpenter

At Thu, 9 Apr 2015 09:34:05 +0800,
Raymond Yau wrote:
> 
> > > > > > Taylor Smock wrote:
> > > > > > >
> > > > > > > Yes; reverting the patch does fix the problem.
> > > > > >
> > > > > > What if you just adjust the new volume manually without
> > > > > > reverting the
> > > > > > patch?  Run "alsamixer -c0" (or -c1, depending on the setup).
> > > > > > Once
> > > > > > after the setup, run "alsactl store" as root to save as the
> > > > > > system
> > > > > > default volume.
> > > > > >
> > > > > > The renamed volume should have been set in full volume as
> > > > > > default by
> > > > > > the driver, and this shouldn't matter whether PA is new or old.
> > > > > > If
> > > > > > the mixer adjustment isn't kept after relogin or reboot, it
> > > > > > means
> > > > > > that
> > > > > > some user-space stuff overrides it.
> > > > > >
> > > > > > In anyway, please give alsa-info.sh output before and after the
> > > > > > commit.
> > > > > >
> > > > > >
> > > > > > Takashi
> > > > > >
> > > > > > > On Wed, 2015-04-08 at 01:56 +0300, Dan Carpenter wrote:
> > > > > > > > So it's 03ad6a8c93b6df2 ('ALSA: hda - Fix "PCM" name being
> > > > > > > > used
> > > > > > > > on > one
> > > > > > > > DAC when there are two DACs') which causes the problem?
> > > > > > > > Have
> > > > > > > > you
> > > > > > > > tried
> > > > > > > > to just revert that patch?
> > > > > > > >
> > > > > > > > git show 03ad6a8c93b6df2d65c305b5b5f9474068b45bfb | patch -
> > > > > > > > p1 -R
> > > > > > > >
> > > > > > > > regards,
> > > > > > > > dan carpenter
> > > > > > > >
> > > > > > >
> > > > >
> > > > > I ran alsamixer -c0.
> > > > > Headphones did nothing.
> > > > > Speaker+L0 did change headphone volume.
> > > >
> > > > Please elaborate a bit what you're testing and what you expected.
> > > > When you change "Headphone" volume and mute, it did nothing for which
> > > > output?  "Speaker+LO" changes which output and which not?
> > > >
> > > > You seem to have three outputs, one headphone jack on a laptop and
> > > > one
> > > > on a docking station, and there is a built-in speaker.  Since your
> > > > codec has only two DACs, two of three must be tied.
> > > >
> > > > The bad thing is that BIOS pin configuration doesn't set the
> > > > headphone
> > > > pin with the associate number 0x0f but only set it to the dock
> > > > headphone.  Thus the driver assumes that the dock jack is the right
> > > > headphone and handles the laptop headphone as a sub output.
> > > > The commit you spotted took this difference more severely, and now
> > > > you
> > > > see the unexpected mixer assignment.
> > > >
> > > > So, the right "fix" would be rather to correct the pin config.
> > > > For example, try the patch below.
> > > >
> > > > (BTW, what is the product of your laptop model?  A more exact name
> > > > can
> > > >  be filled in the quirk string.)
> > > >
> > > > > PCM also seemed to affect headphone volume.
> > > >
> > > > This is a mixer element added by alsa-lib softvol plugin, and it's
> > > > not
> > > > what the kernel manages.
> > > >
> > > > Judging from the description that this PCM volume affects, you are
> > > > playing without PulseAudio but dmix, I suppose?
> > > >
> > > >
> > > > Takashi
> > > >
> > > > diff --git a/sound/pci/hda/patch_realtek.c
> > > > b/sound/pci/hda/patch_realtek.c
> > > > index 7b5c93e0e78c..9d935e5c008a 100644
> > > > --- a/sound/pci/hda/patch_realtek.c
> > > > +++ b/sound/pci/hda/patch_realtek.c
> > > > @@ -4429,6 +4429,7 @@ enum {
> > > >       ALC269_FIXUP_QUANTA_MUTE,
> > > >       ALC269_FIXUP_LIFEBOOK,
> > > >       ALC269_FIXUP_LIFEBOOK_EXTMIC,
> > > > +     ALC269_FIXUP_FUJITSU_HP_PIN,
> > > >       ALC269_FIXUP_AMIC,
> > > >       ALC269_FIXUP_DMIC,
> > > >       ALC269VB_FIXUP_AMIC,
> > > > @@ -4585,6 +4586,13 @@ static const struct hda_fixup alc269_fixups[]
> > > > = {
> > > >                       { }
> > > >               },
> > > >       },
> > > > +     [ALC269_FIXUP_FUJITSU_HP_PIN] = {
> > > > +             .type = HDA_FIXUP_PINS,
> > > > +             .v.pins = (const struct hda_pintbl[]) {
> > > > +                     { 0x21, 0x0221102f }, /* HP out */
> > > > +                     { }
> > > > +             },
> > > > +     },
> >
> 
> Do you mind explaining the logic of this pin fixup as driver also change
> max channels from 2 to 4 ?
> 
> The parser put one headphone in the line_outs before your patch but type is
> still line
> 
> autoconfig for ALC269VB: line_outs=1 (0x21/0x0/0x0/0x0/0x0) type:line
>    speaker_outs=1 (0x14/0x0/0x0/0x0/0x0)
>    hp_outs=1 (0x1a/0x0/0x0/0x0/0x0)
>    mono: mono_out=0x0
>    inputs:
>      Internal Mic=0x12
>      Mic=0x18
> 
> the headphone and dock headphone was put in the hp_outsafter your patch
> 
> autoconfig for ALC269VB: line_outs=1 (0x14/0x0/0x0/0x0/0x0) type:speaker
>    speaker_outs=0 (0x0/0x0/0x0/0x0/0x0)
>    hp_outs=2 (0x1a/0x21/0x0/0x0/0x0)
>    mono: mono_out=0x0
>    inputs:
>      Internal Mic=0x12
>      Mic=0x18
> 
> 
> Do the driver need to distinguish between
> 
> notebook with headphone and Dock headphone
> notebook with dual headphone jacks

The former is handled when the dock headphone is a kind of line-out.
Now we handle this laptop as the latter, which fits better in the case
of two DACs.


Takashi

^ permalink raw reply	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2015-04-09  5:28 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <CAD67Mo_N1_uEtjWKcV4+Rkjrvc6kcZuvUgrMPvBURJX0hFaaMA@mail.gmail.com>
2015-04-07 22:56 ` Audio Jack Out does not work Dan Carpenter
2015-04-07 22:56   ` Dan Carpenter
2015-04-08  1:07   ` Taylor Smock
2015-04-08  8:22     ` Takashi Iwai
2015-04-08 13:34       ` Taylor Smock
2015-04-08 14:06         ` Takashi Iwai
2015-04-08 14:06           ` Takashi Iwai
2015-04-08 16:34           ` Taylor Smock
2015-04-08 18:57             ` Takashi Iwai
2015-04-09  1:34               ` Raymond Yau
2015-04-09  5:27                 ` [alsa-devel] " Takashi Iwai
2015-04-09  5:27                   ` Takashi Iwai
2015-04-08  1:57   ` Raymond Yau
2015-04-08  8:07     ` [alsa-devel] " Dan Carpenter
2015-04-08  8:07       ` Dan Carpenter
2015-04-08 13:20       ` Raymond Yau
2015-04-08 15:20         ` [alsa-devel] " Dan Carpenter
2015-04-08 15:20           ` Dan Carpenter
2015-04-08 16:44           ` Raymond Yau

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.