alsa-devel.alsa-project.org archive mirror
 help / color / mirror / Atom feed
* No sound from internal speaker on 2013 Macbook Air 6, 1
@ 2013-08-24 13:25 Ian Munsie
  2013-08-26  1:55 ` Raymond Yau
  0 siblings, 1 reply; 17+ messages in thread
From: Ian Munsie @ 2013-08-24 13:25 UTC (permalink / raw)
  To: alsa-devel

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

Hey all,

I'm trying to get sound working on my new mid 2013 Macbook Air 6,1.
Sound works via the headphone jack, but I haven't managed to get the
internal speaker to work.

I've checked all the controls in the mixer, tried a few different mac
related model= options to snd-hda-intel and even tried tweaking things
with hda_analyzer to no avail. I've uninstalled pulseaudio (for now)
to get rid of it's ALSA hook, but had the same result both with and
without it.

I'm running on a 3.11-rc6+ built today (had a few other fixes to make
for this machine) - I didn't bother including the hda i915 driver as I
don't need sound via the display port, but the hda driver does print a
warning about that missing module. The speaker wasn't working on the
3.10 kernel from Debian either which included that module.

Any help would be appreciated - I've attached my alsa-info output
taken after a reboot.

Cheers,
-Ian

-- 
http://sites.google.com/site/DarkStarJunkSpace
--
http://darkstarshout.blogspot.com/
--
Please avoid sending me Word or PowerPoint attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html

[-- Attachment #2: alsa-info.txt.MTy10O6HhS --]
[-- Type: application/octet-stream, Size: 27954 bytes --]

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

!!Script ran on: Sat Aug 24 11:52:50 UTC 2013


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

Debian GNU/Linux jessie/sid \n \l PRETTY_NAME="Debian GNU/Linux jessie/sid" NAME="Debian GNU/Linux" ID=debian HOME_URL="http://www.debian.org/" SUPPORT_URL="http://www.debian.org/support/" BUG_REPORT_URL="http://bugs.debian.org/"


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

Manufacturer:      Apple Inc.
Product Name:      MacBookAir6,1
Product Version:   1.0
Firmware Version:  MBA61.88Z.0099.B00.1305241529


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

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


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

Driver version:     k3.11.0-rc6+
Library version:    1.0.27.2
Utilities version:  1.0.27.1


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

snd_hda_intel


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

No sound servers found.


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

 0 [PCH            ]: HDA-Intel - HDA Intel PCH
                      HDA Intel PCH at 0xb0a14000 irq 66


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

00:03.0 Audio device: Intel Corporation Device 0a0c (rev 09)
00:1b.0 Audio device: Intel Corporation Lynx Point-LP HD Audio Controller (rev 04)
02:00.0 Multimedia controller: Broadcom Corporation Device 1570


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

00:03.0 0403: 8086:0a0c (rev 09)
	Subsystem: 106b:011a
--
00:1b.0 0403: 8086:9c20 (rev 04)
	Subsystem: 8086:7270


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

snd_pcsp: index=-2
snd_usb_audio: index=-2
snd_atiixp_modem: index=-2
snd_intel8x0m: index=-2
snd_via82xx_modem: index=-2


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

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


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

Codec: Cirrus Logic ID 4208
Address: 0
AFG Function Id: 0x1 (unsol 1)
Vendor Id: 0x10134208
Subsystem Id: 0x106b7100
Revision Id: 0x100300
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 D3cold S3D3cold CLKSTOP EPSS
  Power: setting=D0, actual=D0
GPIO: io=6, o=2, i=0, unsolicited=1, wake=1
  IO[0]: enable=1, dir=1, wake=0, sticky=0, data=0, unsol=0
  IO[1]: enable=0, dir=0, wake=0, sticky=0, data=0, unsol=0
  IO[2]: enable=0, dir=0, wake=0, sticky=0, data=0, unsol=0
  IO[3]: enable=0, dir=0, wake=0, sticky=0, data=0, unsol=0
  IO[4]: enable=0, dir=0, wake=0, sticky=0, data=0, unsol=0
  IO[5]: enable=0, dir=0, wake=0, sticky=0, data=0, unsol=0
Node 0x02 [Audio Output] wcaps 0xd043d: Stereo Amp-Out Stripe
  Device: name="ID 4208 Analog", type="Audio", device=0
  Amp-Out caps: ofs=0x7f, nsteps=0x7f, stepsize=0x01, mute=1
  Amp-Out vals:  [0x7f 0x7f]
  Converter: stream=0, channel=0
  PCM:
    rates [0x7f0]: 32000 44100 48000 88200 96000 176400 192000
    bits [0x1e]: 16 20 24 32
    formats [0x3]: PCM FLOAT
  Power states:  D0 D3 EPSS
  Power: setting=D0, actual=D0
  Delay: 13 samples
Node 0x03 [Audio Output] wcaps 0xd043d: Stereo Amp-Out Stripe
  Control: name="Speaker Playback Volume", index=0, device=0
    ControlAmp: chs=3, dir=Out, idx=0, ofs=0
  Control: name="Speaker Playback Switch", index=0, device=0
    ControlAmp: chs=3, dir=Out, idx=0, ofs=0
  Amp-Out caps: ofs=0x7f, nsteps=0x7f, stepsize=0x01, mute=1
  Amp-Out vals:  [0x6b 0x6b]
  Converter: stream=0, channel=0
  PCM:
    rates [0x7f0]: 32000 44100 48000 88200 96000 176400 192000
    bits [0x1e]: 16 20 24 32
    formats [0x3]: PCM FLOAT
  Power states:  D0 D3 EPSS
  Power: setting=D0, actual=D0
  Delay: 13 samples
Node 0x04 [Audio Output] wcaps 0xd043d: Stereo Amp-Out Stripe
  Amp-Out caps: ofs=0x7f, nsteps=0x7f, stepsize=0x01, mute=1
  Amp-Out vals:  [0xff 0xff]
  Converter: stream=0, channel=0
  PCM:
    rates [0x7f0]: 32000 44100 48000 88200 96000 176400 192000
    bits [0x1e]: 16 20 24 32
    formats [0x3]: PCM FLOAT
  Power states:  D0 D3 EPSS
  Power: setting=D0, actual=D0
  Delay: 13 samples
Node 0x05 [Audio Output] wcaps 0xd043d: Stereo Amp-Out Stripe
  Amp-Out caps: ofs=0x7f, nsteps=0x7f, stepsize=0x01, mute=1
  Amp-Out vals:  [0xff 0xff]
  Converter: stream=0, channel=0
  PCM:
    rates [0x7f0]: 32000 44100 48000 88200 96000 176400 192000
    bits [0x1e]: 16 20 24 32
    formats [0x3]: PCM FLOAT
  Power states:  D0 D3 EPSS
  Power: setting=D0, actual=D0
  Delay: 13 samples
Node 0x06 [Audio Input] wcaps 0x18051b: Stereo Amp-In
  Device: name="ID 4208 Analog", type="Audio", device=0
  Amp-In caps: ofs=0x33, nsteps=0x3f, stepsize=0x03, mute=1
  Amp-In vals:  [0xb3 0xb3] [0xb3 0xb3] [0xb3 0xb3]
  Converter: stream=0, channel=0
  SDI-Select: 0
  PCM:
    rates [0x1f5]: 8000 16000 32000 44100 48000 88200 96000
    bits [0x1e]: 16 20 24 32
    formats [0x3]: PCM FLOAT
  Power states:  D0 D3 EPSS
  Power: setting=D0, actual=D0
  Delay: 8 samples
  Connection: 3
     0x15* 0x17 0x19
Node 0x07 [Audio Input] wcaps 0x18051b: Stereo Amp-In
  Amp-In caps: ofs=0x33, nsteps=0x3f, stepsize=0x03, mute=1
  Amp-In vals:  [0x3f 0x3f] [0x3f 0x3f] [0x3f 0x3f]
  Converter: stream=0, channel=0
  SDI-Select: 0
  PCM:
    rates [0x1f5]: 8000 16000 32000 44100 48000 88200 96000
    bits [0x1e]: 16 20 24 32
    formats [0x3]: PCM FLOAT
  Power states:  D0 D3 EPSS
  Power: setting=D0, actual=D0
  Delay: 8 samples
  Connection: 3
     0x16* 0x18 0x1a
Node 0x08 [Audio Input] wcaps 0x18051b: Stereo Amp-In
  Amp-In caps: ofs=0x33, nsteps=0x3f, stepsize=0x03, mute=1
  Amp-In vals:  [0xb3 0xb3]
  Converter: stream=0, channel=0
  SDI-Select: 0
  PCM:
    rates [0x1f5]: 8000 16000 32000 44100 48000 88200 96000
    bits [0x1e]: 16 20 24 32
    formats [0x3]: PCM FLOAT
  Power states:  D0 D3 EPSS
  Power: setting=D0, actual=D0
  Delay: 8 samples
  Connection: 1
     0x1b
Node 0x09 [Audio Input] wcaps 0x18051b: Stereo Amp-In
  Control: name="Capture Volume", index=0, device=0
    ControlAmp: chs=3, dir=In, idx=1, ofs=0
  Control: name="Capture Switch", index=0, device=0
    ControlAmp: chs=3, dir=In, idx=1, ofs=0
  Amp-In caps: ofs=0x33, nsteps=0x3f, stepsize=0x03, mute=1
  Amp-In vals:  [0x3f 0x3f]
  Converter: stream=0, channel=0
  SDI-Select: 0
  PCM:
    rates [0x1f5]: 8000 16000 32000 44100 48000 88200 96000
    bits [0x1e]: 16 20 24 32
    formats [0x3]: PCM FLOAT
  Power states:  D0 D3 EPSS
  Power: setting=D0, actual=D0
  Delay: 8 samples
  Connection: 1
     0x1c
Node 0x0a [Audio Output] wcaps 0x46631: 8-Channels Digital Stripe
  Converter: stream=0, channel=0
  Digital:
  Digital category: 0x0
  IEC Coding Type: 0x0
  PCM:
    rates [0x60]: 44100 48000
    bits [0xe]: 16 20 24
    formats [0x1]: PCM
  Power states:  D0 D3 EPSS
  Power: setting=D0, actual=D0
  Delay: 4 samples
Node 0x0b [Audio Output] wcaps 0x46631: 8-Channels Digital Stripe
  Converter: stream=0, channel=0
  Digital:
  Digital category: 0x0
  IEC Coding Type: 0x0
  PCM:
    rates [0x60]: 44100 48000
    bits [0xe]: 16 20 24
    formats [0x1]: PCM
  Power states:  D0 D3 EPSS
  Power: setting=D0, actual=D0
  Delay: 4 samples
Node 0x0c [Audio Input] wcaps 0x136711: 8-Channels Digital
  Converter: stream=0, channel=0
  SDI-Select: 0
  Digital:
  Digital category: 0x0
  IEC Coding Type: 0x0
  PCM:
    rates [0x60]: 44100 48000
    bits [0x1e]: 16 20 24 32
    formats [0x1]: PCM
  Power states:  D0 D3 EPSS
  Power: setting=D0, actual=D0
  Delay: 3 samples
  Connection: 1
     0x1f
Node 0x0d [Audio Input] wcaps 0x136711: 8-Channels Digital
  Converter: stream=0, channel=0
  SDI-Select: 0
  Digital:
  Digital category: 0x0
  IEC Coding Type: 0x0
  PCM:
    rates [0x60]: 44100 48000
    bits [0x1e]: 16 20 24 32
    formats [0x1]: PCM
  Power states:  D0 D3 EPSS
  Power: setting=D0, actual=D0
  Delay: 3 samples
  Connection: 1
     0x20
Node 0x0e [Audio Output] wcaps 0x40631: Stereo Digital Stripe
  Converter: stream=0, channel=0
  Digital:
  Digital category: 0x0
  IEC Coding Type: 0x0
  PCM:
    rates [0x7f0]: 32000 44100 48000 88200 96000 176400 192000
    bits [0xe]: 16 20 24
    formats [0x5]: PCM AC3
  Power states:  D0 D3 EPSS
  Power: setting=D0, actual=D0
  Delay: 4 samples
Node 0x0f [Audio Input] wcaps 0x1b0791: Stereo Digital
  Converter: stream=0, channel=0
  SDI-Select: 0
  Digital:
  Digital category: 0x0
  IEC Coding Type: 0x0
  PCM:
    rates [0x5f0]: 32000 44100 48000 88200 96000 192000
    bits [0xe]: 16 20 24
    formats [0x5]: PCM AC3
  Unsolicited: tag=00, enabled=0
  Power states:  D0 D3 EPSS
  Power: setting=D0, actual=D0
  Delay: 11 samples
  Connection: 1
     0x22
Node 0x10 [Pin Complex] wcaps 0x40058d: Stereo Amp-Out
  Control: name="Headphone Playback Volume", index=0, device=0
    ControlAmp: chs=3, dir=Out, idx=0, ofs=0
  Control: name="Headphone Playback Switch", index=0, device=0
    ControlAmp: chs=3, dir=Out, idx=0, ofs=0
  Control: name="Headphone Jack", index=0, device=0
  Amp-Out caps: ofs=0x42, nsteps=0x42, stepsize=0x03, mute=1
  Amp-Out vals:  [0x2e 0x2e]
  Pincap 0x0000001c: OUT HP Detect
  Pin Default 0x002b4020: [Jack] HP Out at Ext N/A
    Conn = Comb, Color = Green
    DefAssociation = 0x2, Sequence = 0x0
  Pin-ctls: 0xc0: OUT HP
  Unsolicited: tag=01, enabled=1
  Power states:  D0 D3 EPSS
  Power: setting=D0, actual=D0
  Connection: 1
     0x02
Node 0x11 [Pin Complex] wcaps 0x400581: Stereo
  Pincap 0x00000054: OUT Detect Balanced
  Pin Default 0x400000f0: [N/A] Line Out at Ext N/A
    Conn = Unknown, Color = Unknown
    DefAssociation = 0xf, Sequence = 0x0
  Pin-ctls: 0x00:
  Unsolicited: tag=00, enabled=0
  Power states:  D0 D3 EPSS
  Power: setting=D0, actual=D0
  Connection: 1
     0x02
Node 0x12 [Pin Complex] wcaps 0x400501: Stereo
  Control: name="Speaker Phantom Jack", index=0, device=0
  Pincap 0x00000050: OUT Balanced
  Pin Default 0x90100110: [Fixed] Speaker at Int N/A
    Conn = Unknown, Color = Unknown
    DefAssociation = 0x1, Sequence = 0x0
    Misc = NO_PRESENCE
  Pin-ctls: 0x40: OUT
  Power states:  D0 D3 EPSS
  Power: setting=D0, actual=D0
  Connection: 1
     0x03
Node 0x13 [Pin Complex] wcaps 0x400501: Stereo
  Pincap 0x00000050: OUT Balanced
  Pin Default 0x400000f0: [N/A] Line Out at Ext N/A
    Conn = Unknown, Color = Unknown
    DefAssociation = 0xf, Sequence = 0x0
  Pin-ctls: 0x00:
  Power states:  D0 D3 EPSS
  Power: setting=D0, actual=D0
  Connection: 1
     0x04
Node 0x14 [Pin Complex] wcaps 0x400501: Stereo
  Pincap 0x00000050: OUT Balanced
  Pin Default 0x400000f0: [N/A] Line Out at Ext N/A
    Conn = Unknown, Color = Unknown
    DefAssociation = 0xf, Sequence = 0x0
  Pin-ctls: 0x00:
  Power states:  D0 D3 EPSS
  Power: setting=D0, actual=D0
  Connection: 1
     0x05
Node 0x15 [Pin Complex] wcaps 0x40040b: Stereo Amp-In
  Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x27, mute=0
  Amp-In vals:  [0x00 0x00]
  Pincap 0x00001720: IN
    Vref caps: HIZ 50 GRD 80
  Pin Default 0x400000f0: [N/A] Line Out at Ext N/A
    Conn = Unknown, Color = Unknown
    DefAssociation = 0xf, Sequence = 0x0
  Pin-ctls: 0x00: VREF_HIZ
  Power states:  D0 D3 EPSS
  Power: setting=D0, actual=D0
Node 0x16 [Pin Complex] wcaps 0x40040b: Stereo Amp-In
  Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x27, mute=0
  Amp-In vals:  [0x00 0x00]
  Pincap 0x00001720: IN
    Vref caps: HIZ 50 GRD 80
  Pin Default 0x400000f0: [N/A] Line Out at Ext N/A
    Conn = Unknown, Color = Unknown
    DefAssociation = 0xf, Sequence = 0x0
  Pin-ctls: 0x00: VREF_HIZ
  Power states:  D0 D3 EPSS
  Power: setting=D0, actual=D0
Node 0x17 [Pin Complex] wcaps 0x40048b: Stereo Amp-In
  Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x27, mute=0
  Amp-In vals:  [0x00 0x00]
  Pincap 0x00000024: IN Detect
  Pin Default 0x400000f0: [N/A] Line Out at Ext N/A
    Conn = Unknown, Color = Unknown
    DefAssociation = 0xf, Sequence = 0x0
  Pin-ctls: 0x00:
  Unsolicited: tag=00, enabled=0
  Power states:  D0 D3 EPSS
  Power: setting=D0, actual=D0
Node 0x18 [Pin Complex] wcaps 0x40048a: Mono Amp-In
  Control: name="Mic Boost Volume", index=0, device=0
    ControlAmp: chs=3, dir=In, idx=0, ofs=0
  Control: name="Mic Jack", index=0, device=0
  Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x27, mute=0
  Amp-In vals:  [0x00]
  Pincap 0x00001724: IN Detect
    Vref caps: HIZ 50 GRD 80
  Pin Default 0x00ab9030: [Jack] Mic at Ext N/A
    Conn = Comb, Color = Pink
    DefAssociation = 0x3, Sequence = 0x0
  Pin-ctls: 0x24: IN VREF_80
  Unsolicited: tag=02, enabled=1
  Power states:  D0 D3 EPSS
  Power: setting=D0, actual=D0
Node 0x19 [Pin Complex] wcaps 0x40000b: Stereo Amp-In
  Amp-In caps: ofs=0x00, nsteps=0x02, stepsize=0x27, mute=0
  Amp-In vals:  [0x00 0x00]
  Pincap 0x00000020: IN
  Pin Default 0x400000f0: [N/A] Line Out at Ext N/A
    Conn = Unknown, Color = Unknown
    DefAssociation = 0xf, Sequence = 0x0
  Pin-ctls: 0x00:
Node 0x1a [Pin Complex] wcaps 0x40000b: Stereo Amp-In
  Amp-In caps: ofs=0x00, nsteps=0x02, stepsize=0x27, mute=0
  Amp-In vals:  [0x00 0x00]
  Pincap 0x00000020: IN
  Pin Default 0x400000f0: [N/A] Line Out at Ext N/A
    Conn = Unknown, Color = Unknown
    DefAssociation = 0xf, Sequence = 0x0
  Pin-ctls: 0x00:
Node 0x1b [Pin Complex] wcaps 0x40000b: Stereo Amp-In
  Amp-In caps: ofs=0x00, nsteps=0x02, stepsize=0x27, mute=0
  Amp-In vals:  [0x00 0x00]
  Pincap 0x00000020: IN
  Pin Default 0x400000f0: [N/A] Line Out at Ext N/A
    Conn = Unknown, Color = Unknown
    DefAssociation = 0xf, Sequence = 0x0
  Pin-ctls: 0x00:
Node 0x1c [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=0x02, stepsize=0x27, mute=0
  Amp-In vals:  [0x00 0x00]
  Pincap 0x00000020: IN
  Pin Default 0x90a60100: [Fixed] Mic at Int N/A
    Conn = Digital, Color = Unknown
    DefAssociation = 0x0, Sequence = 0x0
    Misc = NO_PRESENCE
  Pin-ctls: 0x20: IN
Node 0x1d [Pin Complex] wcaps 0x406301: 8-Channels Digital
  Pincap 0x00000010: OUT
  Pin Default 0x400000f0: [N/A] Line Out at Ext N/A
    Conn = Unknown, Color = Unknown
    DefAssociation = 0xf, Sequence = 0x0
  Pin-ctls: 0x00:
  Connection: 1
     0x0a
Node 0x1e [Pin Complex] wcaps 0x406301: 8-Channels Digital
  Pincap 0x00000010: OUT
  Pin Default 0x400000f0: [N/A] Line Out at Ext N/A
    Conn = Unknown, Color = Unknown
    DefAssociation = 0xf, Sequence = 0x0
  Pin-ctls: 0x00:
  Connection: 1
     0x0b
Node 0x1f [Pin Complex] wcaps 0x406201: 8-Channels Digital
  Pincap 0x00000020: IN
  Pin Default 0x400000f0: [N/A] Line Out at Ext N/A
    Conn = Unknown, Color = Unknown
    DefAssociation = 0xf, Sequence = 0x0
  Pin-ctls: 0x00:
Node 0x20 [Pin Complex] wcaps 0x406201: 8-Channels Digital
  Pincap 0x00000020: IN
  Pin Default 0x400000f0: [N/A] Line Out at Ext N/A
    Conn = Unknown, Color = Unknown
    DefAssociation = 0xf, Sequence = 0x0
  Pin-ctls: 0x00:
Node 0x21 [Pin Complex] wcaps 0x400381: Stereo Digital
  Pincap 0x00000014: OUT Detect
  Pin Default 0x400000f0: [N/A] Line Out at Ext N/A
    Conn = Unknown, Color = Unknown
    DefAssociation = 0xf, Sequence = 0x0
  Pin-ctls: 0x00:
  Unsolicited: tag=00, enabled=0
  Connection: 1
     0x0e
Node 0x22 [Pin Complex] wcaps 0x400281: Stereo Digital
  Pincap 0x00000024: IN Detect
  Pin Default 0x400000f0: [N/A] Line Out at Ext N/A
    Conn = Unknown, Color = Unknown
    DefAssociation = 0xf, Sequence = 0x0
  Pin-ctls: 0x00:
  Unsolicited: tag=00, enabled=0
Node 0x23 [Beep Generator Widget] wcaps 0x700200: Mono Digital
Node 0x24 [Vendor Defined Widget] wcaps 0xf0e2c1: 16-Channels Digital
  Unsolicited: tag=00, enabled=0
  Processing caps: benign=0, ncoeff=128
--endcollapse--


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

crw-rw---T+ 1 root audio 116,  5 Aug 24 21:52 /dev/snd/controlC0
crw-rw---T+ 1 root audio 116,  4 Aug 24 21:52 /dev/snd/hwC0D0
crw-rw---T+ 1 root audio 116,  3 Aug 24 21:52 /dev/snd/pcmC0D0c
crw-rw---T+ 1 root audio 116,  2 Aug 24 21:52 /dev/snd/pcmC0D0p
crw-rw---T+ 1 root audio 116,  1 Aug 24 21:49 /dev/snd/seq
crw-rw---T+ 1 root audio 116, 33 Aug 24 21:49 /dev/snd/timer

/dev/snd/by-path:
total 0
drwxr-xr-x 2 root root  60 Aug 24 21:52 .
drwxr-xr-x 3 root root 180 Aug 24 21:52 ..
lrwxrwxrwx 1 root root  12 Aug 24 21:52 pci-0000:00:1b.0 -> ../controlC0


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

APLAY

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

ARECORD

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

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

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

Card hw:0 'PCH'/'HDA Intel PCH at 0xb0a14000 irq 66'
  Mixer name	: 'Cirrus Logic ID 4208'
  Components	: 'HDA:10134208,106b7100,00100300'
  Controls      : 18
  Simple ctrls  : 8
Simple mixer control 'Master',0
  Capabilities: pvolume pvolume-joined pswitch pswitch-joined
  Playback channels: Mono
  Limits: Playback 0 - 66
  Mono: Playback 46 [70%] [-20.00dB] [on]
Simple mixer control 'Headphone',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 66
  Mono:
  Front Left: Playback 66 [100%] [0.00dB] [on]
  Front Right: Playback 66 [100%] [0.00dB] [on]
Simple mixer control 'Speaker',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 127
  Mono:
  Front Left: Playback 127 [100%] [0.00dB] [on]
  Front Right: Playback 127 [100%] [0.00dB] [on]
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 '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 'Capture',0
  Capabilities: cvolume cswitch
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 63
  Front Left: Capture 63 [100%] [12.00dB] [on]
  Front Right: Capture 63 [100%] [12.00dB] [on]
Simple mixer control 'Auto-Mute Mode',0
  Capabilities: enum
  Items: 'Disabled' 'Enabled'
  Item0: 'Enabled'
Simple mixer control 'Internal Mic Boost',0
  Capabilities: volume
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 2
  Front Left: 0 [0%] [0.00dB]
  Front Right: 0 [0%] [0.00dB]


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

--startcollapse--
state.PCH {
	control.1 {
		iface MIXER
		name 'Headphone Playback Volume'
		value.0 66
		value.1 66
		comment {
			access 'read write'
			type INTEGER
			count 2
			range '0 - 66'
			dbmin -6600
			dbmax 0
			dbvalue.0 0
			dbvalue.1 0
		}
	}
	control.2 {
		iface MIXER
		name 'Headphone Playback Switch'
		value.0 true
		value.1 true
		comment {
			access 'read write'
			type BOOLEAN
			count 2
		}
	}
	control.3 {
		iface MIXER
		name 'Speaker Playback Volume'
		value.0 127
		value.1 127
		comment {
			access 'read write'
			type INTEGER
			count 2
			range '0 - 127'
			dbmin -6350
			dbmax 0
			dbvalue.0 0
			dbvalue.1 0
		}
	}
	control.4 {
		iface MIXER
		name 'Speaker Playback Switch'
		value.0 true
		value.1 true
		comment {
			access 'read write'
			type BOOLEAN
			count 2
		}
	}
	control.5 {
		iface MIXER
		name 'Auto-Mute Mode'
		value Enabled
		comment {
			access 'read write'
			type ENUMERATED
			count 1
			item.0 Disabled
			item.1 Enabled
		}
	}
	control.6 {
		iface MIXER
		name 'Capture Volume'
		value.0 63
		value.1 63
		comment {
			access 'read write'
			type INTEGER
			count 2
			range '0 - 63'
			dbmin -5100
			dbmax 1200
			dbvalue.0 1200
			dbvalue.1 1200
		}
	}
	control.7 {
		iface MIXER
		name 'Capture Switch'
		value.0 true
		value.1 true
		comment {
			access 'read write'
			type BOOLEAN
			count 2
		}
	}
	control.8 {
		iface MIXER
		name 'Internal Mic Boost Volume'
		value.0 0
		value.1 0
		comment {
			access 'read write'
			type INTEGER
			count 2
			range '0 - 2'
			dbmin 0
			dbmax 2000
			dbvalue.0 0
			dbvalue.1 0
		}
	}
	control.9 {
		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 3000
			dbvalue.0 0
			dbvalue.1 0
		}
	}
	control.10 {
		iface MIXER
		name 'Master Playback Volume'
		value 46
		comment {
			access 'read write'
			type INTEGER
			count 1
			range '0 - 66'
			dbmin -6600
			dbmax 0
			dbvalue.0 -2000
		}
	}
	control.11 {
		iface MIXER
		name 'Master Playback Switch'
		value true
		comment {
			access 'read write'
			type BOOLEAN
			count 1
		}
	}
	control.12 {
		iface CARD
		name 'Internal Mic Phantom Jack'
		value true
		comment {
			access read
			type BOOLEAN
			count 1
		}
	}
	control.13 {
		iface CARD
		name 'Mic Jack'
		value false
		comment {
			access read
			type BOOLEAN
			count 1
		}
	}
	control.14 {
		iface CARD
		name 'Headphone Jack'
		value false
		comment {
			access read
			type BOOLEAN
			count 1
		}
	}
	control.15 {
		iface CARD
		name 'Speaker Phantom Jack'
		value true
		comment {
			access read
			type BOOLEAN
			count 1
		}
	}
	control.16 {
		iface PCM
		name 'Playback Channel Map'
		value.0 0
		value.1 0
		comment {
			access read
			type INTEGER
			count 2
			range '0 - 36'
		}
	}
	control.17 {
		iface PCM
		name 'Capture Channel Map'
		value.0 0
		value.1 0
		comment {
			access read
			type INTEGER
			count 2
			range '0 - 36'
		}
	}
	control.18 {
		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
snd_hda_intel
snd_hda_codec
snd_hwdep
snd_pcm
snd_page_alloc
rfcomm
bnep
binfmt_misc
hfsplus
nls_utf8
nls_cp437
vfat
fat
loop
fuse
dm_crypt
dm_mod
coretemp
kvm_intel
kvm
hid_generic
btusb
hid_apple
bluetooth
bcm5974
i915
iTCO_wdt
iTCO_vendor_support
lib80211_crypt_tkip
usbhid
evdev
applesmc
hid
input_polldev
i2c_algo_bit
drm_kms_helper
wl
drm
video
snd_seq
cfg80211
microcode
snd_seq_device
snd_timer
battery
ac
lpc_ich
apple_bl
pcspkr
i2c_i801
mfd_core
button
snd
acpi_cpufreq
mperf
mei_me
processor
rfkill
i2c_core
mei
thermal_sys
lib80211
soundcore
ext4
crc16
jbd2
mbcache
sg
sd_mod
crc_t10dif
crc32c_intel
ghash_clmulni_intel
ahci
aesni_intel
xhci_hcd
libahci
libata
aes_x86_64
glue_helper
scsi_mod
lrw
gf128mul
ablk_helper
cryptd
usbcore
usb_common


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

/sys/class/sound/hwC0D0/init_pin_configs:
0x10 0x002b4020
0x11 0x400000f0
0x12 0x90100110
0x13 0x400000f0
0x14 0x400000f0
0x15 0x400000f0
0x16 0x400000f0
0x17 0x400000f0
0x18 0x00ab9030
0x19 0x400000f0
0x1a 0x400000f0
0x1b 0x400000f0
0x1c 0x90a60100
0x1d 0x400000f0
0x1e 0x400000f0
0x1f 0x400000f0
0x20 0x400000f0
0x21 0x400000f0
0x22 0x400000f0

/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:


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

[    6.139309] wl 0000:03:00.0: enabling device (0000 -> 0002)
[    6.163834] hda-intel Haswell must build in CONFIG_SND_HDA_I915
[    6.163916] hda-intel Error request power-well from i915
[    6.164386] snd_hda_intel 0000:00:1b.0: irq 66 for MSI/MSI-X
[    6.166294]  femctrl from nvram not enabled. returning from here 
--
[   22.921265] WARNING: CPU: 3 PID: 2980 at net/wireless/sme.c:922 cfg80211_connect+0x3b/0x385 [cfg80211]()
[   22.921268] Modules linked in: rfcomm bnep binfmt_misc hfsplus nls_utf8 nls_cp437 vfat fat loop fuse dm_crypt dm_mod coretemp kvm_intel kvm hid_generic btusb hid_apple bluetooth bcm5974 i915 iTCO_wdt iTCO_vendor_support lib80211_crypt_tkip usbhid evdev applesmc hid snd_hda_intel input_polldev snd_hda_codec i2c_algo_bit drm_kms_helper wl(PO) snd_hwdep snd_pcm drm snd_page_alloc video snd_seq cfg80211 microcode snd_seq_device snd_timer battery ac lpc_ich apple_bl pcspkr i2c_i801 mfd_core button snd acpi_cpufreq mperf mei_me processor rfkill i2c_core mei thermal_sys lib80211 soundcore ext4 crc16 jbd2 mbcache sg sd_mod crc_t10dif crc32c_intel ghash_clmulni_intel ahci aesni_intel xhci_hcd libahci libata aes_x86_64 glue_helper scsi_mod lrw gf128mul ablk_helper cryptd usbcore usb_common
[   22.921334] CPU: 3 PID: 2980 Comm: iwconfig Tainted: P           O 3.11.0-rc6+ #10
--
[   22.927859] WARNING: CPU: 3 PID: 2981 at net/wireless/sme.c:922 cfg80211_connect+0x3b/0x385 [cfg80211]()
[   22.927863] Modules linked in: rfcomm bnep binfmt_misc hfsplus nls_utf8 nls_cp437 vfat fat loop fuse dm_crypt dm_mod coretemp kvm_intel kvm hid_generic btusb hid_apple bluetooth bcm5974 i915 iTCO_wdt iTCO_vendor_support lib80211_crypt_tkip usbhid evdev applesmc hid snd_hda_intel input_polldev snd_hda_codec i2c_algo_bit drm_kms_helper wl(PO) snd_hwdep snd_pcm drm snd_page_alloc video snd_seq cfg80211 microcode snd_seq_device snd_timer battery ac lpc_ich apple_bl pcspkr i2c_i801 mfd_core button snd acpi_cpufreq mperf mei_me processor rfkill i2c_core mei thermal_sys lib80211 soundcore ext4 crc16 jbd2 mbcache sg sd_mod crc_t10dif crc32c_intel ghash_clmulni_intel ahci aesni_intel xhci_hcd libahci libata aes_x86_64 glue_helper scsi_mod lrw gf128mul ablk_helper cryptd usbcore usb_common
[   22.927970] CPU: 3 PID: 2981 Comm: iwconfig Tainted: P        W  O 3.11.0-rc6+ #10
--
[   22.928208] ---[ end trace abd49c44ab378c07 ]---
[  191.891288] hda-intel Haswell must build in CONFIG_SND_HDA_I915
[  191.891294] hda-intel Error request power-well from i915
[  191.891557] snd_hda_intel 0000:00:1b.0: irq 66 for MSI/MSI-X
[  191.907287] input: HDA Intel PCH Headphone as /devices/pci0000:00/0000:00:1b.0/sound/card0/input10
[  191.907574] input: HDA Intel PCH Mic as /devices/pci0000:00/0000:00:1b.0/sound/card0/input11



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



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

* Re: No sound from internal speaker on 2013 Macbook Air 6, 1
  2013-08-24 13:25 No sound from internal speaker on 2013 Macbook Air 6, 1 Ian Munsie
@ 2013-08-26  1:55 ` Raymond Yau
  2013-09-09  8:01   ` Ian Munsie
  0 siblings, 1 reply; 17+ messages in thread
From: Raymond Yau @ 2013-08-26  1:55 UTC (permalink / raw)
  To: Ian Munsie, tiwai; +Cc: ALSA Development Mailing List

I'm trying to get sound working on my new mid 2013 Macbook Air 6,1.
> Sound works via the headphone jack, but I haven't managed to get the
> internal speaker to work.
>
> I've checked all the controls in the mixer, tried a few different mac
> related model= options to snd-hda-intel and even tried tweaking things
> with hda_analyzer to no avail.
>


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

 have you try those gpio ?

or specify hints

primary_hp = false

it is strange that driver select amp at pin complex of headphone as
headphone volume control instead of amp at audio output ( the number of
step and dB range of headphone and speaker is different )

you may need to change the logic of look_for_out_vol_nid()  in hda_generic.c

you may need cs4208 datasheet if the codec need vendor coefff

why virtual master did not warn when the dB range and number of step in
slaves controls are different ?

state.PCH {
    control.1 {
        iface MIXER
        name 'Headphone Playback Volume'
        value.0 66
        value.1 66
        comment {
            access 'read write'
            type INTEGER
            count 2
            range '0 - 66'
            dbmin -6600
            dbmax 0
            dbvalue.0 0
            dbvalue.1 0
        }
    }

    control.3 {
        iface MIXER
        name 'Speaker Playback Volume'
        value.0 127
        value.1 127
        comment {
            access 'read write'
            type INTEGER
            count 2
            range '0 - 127'
            dbmin -6350
            dbmax 0
            dbvalue.0 0
            dbvalue.1 0
        }
    }

    control.10 {
        iface MIXER
        name 'Master Playback Volume'
        value 46
        comment {
            access 'read write'
            type INTEGER
            count 1
            range '0 - 66'
            dbmin -6600
            dbmax 0
            dbvalue.0 -2000
        }
    }

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

* Re: No sound from internal speaker on 2013 Macbook Air 6, 1
  2013-08-26  1:55 ` Raymond Yau
@ 2013-09-09  8:01   ` Ian Munsie
  2013-09-09  9:03     ` Takashi Iwai
  0 siblings, 1 reply; 17+ messages in thread
From: Ian Munsie @ 2013-09-09  8:01 UTC (permalink / raw)
  To: Raymond Yau; +Cc: tiwai, ALSA Development Mailing List

Hi Raymond,

On 26 August 2013 11:55, Raymond Yau <superquad.vortex2@gmail.com> wrote:
> https://git.kernel.org/cgit/linux/kernel/git/tiwai/sound.git/plain/Documentation/sound/alsa/HD-Audio.txt
>
>  have you try those gpio ?

Thanks for the pointer - I finally got around to trying this (it's not
my primary box) and was able to get the speaker to work by enabling
GPIO 0 as an output with data=1 (i.e. I selected out-dir, enable and
data in hda-analyzer).

I noticed that the GPIO settings would clear when I stopped playing
sound though, so I currently have to run the python script generated
by hda-analyzer every time I want to play a sound through the speaker.
I also noticed that I had to manually set data=0 to turn the speaker
off if I plugged in the headphones.

What is the next step in fixing this properly? I've been meaning to
look through the hda code to figure out how these kind of quirks are
supposed to be handled, but haven't got around to that yet.


> or specify hints primary_hp = false

That did nothing by itself, though come to think of it I didn't try it
in combination with the GPIO settings.


> it is strange that driver select amp at pin complex of headphone as
> headphone volume control instead of amp at audio output ( the number of step
> and dB range of headphone and speaker is different )
>
> you may need to change the logic of look_for_out_vol_nid()  in hda_generic.c

Hmm, the volume control seemed to be working for me with both speakers
& headphones, but I didn't check which control it was actually
changing.


> you may need cs4208 datasheet if the codec need vendor coefff
>
> why virtual master did not warn when the dB range and number of step in
> slaves controls are different ?

Is that something I need to be concerned about? Where should that
warning have appeared?


Cheers,
-Ian

-- 
http://sites.google.com/site/DarkStarJunkSpace
--
http://darkstarshout.blogspot.com/
--
Please avoid sending me Word or PowerPoint attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html

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

* Re: No sound from internal speaker on 2013 Macbook Air 6, 1
  2013-09-09  8:01   ` Ian Munsie
@ 2013-09-09  9:03     ` Takashi Iwai
  2013-09-09  9:44       ` Ian Munsie
  0 siblings, 1 reply; 17+ messages in thread
From: Takashi Iwai @ 2013-09-09  9:03 UTC (permalink / raw)
  To: Ian Munsie; +Cc: Raymond Yau, ALSA Development Mailing List

At Mon, 9 Sep 2013 18:01:41 +1000,
Ian Munsie wrote:
> 
> Hi Raymond,
> 
> On 26 August 2013 11:55, Raymond Yau <superquad.vortex2@gmail.com> wrote:
> > https://git.kernel.org/cgit/linux/kernel/git/tiwai/sound.git/plain/Documentation/sound/alsa/HD-Audio.txt
> >
> >  have you try those gpio ?
> 
> Thanks for the pointer - I finally got around to trying this (it's not
> my primary box) and was able to get the speaker to work by enabling
> GPIO 0 as an output with data=1 (i.e. I selected out-dir, enable and
> data in hda-analyzer).
> 
> I noticed that the GPIO settings would clear when I stopped playing
> sound though, so I currently have to run the python script generated
> by hda-analyzer every time I want to play a sound through the speaker.
> I also noticed that I had to manually set data=0 to turn the speaker
> off if I plugged in the headphones.
> 
> What is the next step in fixing this properly? I've been meaning to
> look through the hda code to figure out how these kind of quirks are
> supposed to be handled, but haven't got around to that yet.

Please give alsa-info.sh output, then we'll provide some trivial test
patches.  At best, run alsa-info.sh with --no-upload option and attach
the output.

> > or specify hints primary_hp = false
> 
> That did nothing by itself, though come to think of it I didn't try it
> in combination with the GPIO settings.
> 
> 
> > it is strange that driver select amp at pin complex of headphone as
> > headphone volume control instead of amp at audio output ( the number of step
> > and dB range of headphone and speaker is different )
> >
> > you may need to change the logic of look_for_out_vol_nid()  in hda_generic.c
> 
> Hmm, the volume control seemed to be working for me with both speakers
> & headphones, but I didn't check which control it was actually
> changing.
> 
> 
> > you may need cs4208 datasheet if the codec need vendor coefff
> >
> > why virtual master did not warn when the dB range and number of step in
> > slaves controls are different ?
> 
> Is that something I need to be concerned about? Where should that
> warning have appeared?

If GPIO does fix the issue, that's all what we need.


Takashi

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

* Re: No sound from internal speaker on 2013 Macbook Air 6, 1
  2013-09-09  9:03     ` Takashi Iwai
@ 2013-09-09  9:44       ` Ian Munsie
  2013-09-09  9:48         ` Takashi Iwai
  0 siblings, 1 reply; 17+ messages in thread
From: Ian Munsie @ 2013-09-09  9:44 UTC (permalink / raw)
  To: Takashi Iwai; +Cc: Raymond Yau, ALSA Development Mailing List

> Please give alsa-info.sh output, then we'll provide some trivial test
> patches.  At best, run alsa-info.sh with --no-upload option and attach
> the output.

I included that in my original mail:

http://mailman.alsa-project.org/pipermail/alsa-devel/2013-August/065742.html
http://mailman.alsa-project.org/pipermail/alsa-devel/attachments/20130824/fe85cfd4/attachment-0001.obj

Cheers,
-Ian
-- 
http://sites.google.com/site/DarkStarJunkSpace
--
http://darkstarshout.blogspot.com/
--
Please avoid sending me Word or PowerPoint attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html

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

* Re: No sound from internal speaker on 2013 Macbook Air 6, 1
  2013-09-09  9:44       ` Ian Munsie
@ 2013-09-09  9:48         ` Takashi Iwai
  2013-09-09 13:26           ` Ian Munsie
  0 siblings, 1 reply; 17+ messages in thread
From: Takashi Iwai @ 2013-09-09  9:48 UTC (permalink / raw)
  To: Ian Munsie; +Cc: Raymond Yau, ALSA Development Mailing List

At Mon, 9 Sep 2013 19:44:13 +1000,
Ian Munsie wrote:
> 
> > Please give alsa-info.sh output, then we'll provide some trivial test
> > patches.  At best, run alsa-info.sh with --no-upload option and attach
> > the output.
> 
> I included that in my original mail:
> 
> http://mailman.alsa-project.org/pipermail/alsa-devel/2013-August/065742.html
> http://mailman.alsa-project.org/pipermail/alsa-devel/attachments/20130824/fe85cfd4/attachment-0001.obj

OK, then try the patch below.


Takashi

---
diff --git a/sound/pci/hda/patch_cirrus.c b/sound/pci/hda/patch_cirrus.c
index cccaf9c..b524f89 100644
--- a/sound/pci/hda/patch_cirrus.c
+++ b/sound/pci/hda/patch_cirrus.c
@@ -169,7 +169,7 @@ static void cs_automute(struct hda_codec *codec)
 
 	snd_hda_gen_update_outputs(codec);
 
-	if (spec->gpio_eapd_hp) {
+	if (spec->gpio_eapd_hp || spec->gpio_eapd_speaker) {
 		spec->gpio_data = spec->gen.hp_jack_present ?
 			spec->gpio_eapd_hp : spec->gpio_eapd_speaker;
 		snd_hda_codec_write(codec, 0x01, 0,
@@ -291,10 +291,11 @@ static int cs_init(struct hda_codec *codec)
 {
 	struct cs_spec *spec = codec->spec;
 
-	/* init_verb sequence for C0/C1/C2 errata*/
-	snd_hda_sequence_write(codec, cs_errata_init_verbs);
-
-	snd_hda_sequence_write(codec, cs_coef_init_verbs);
+	if (spec->vendor_nid == CS420X_VENDOR_NID) {
+		/* init_verb sequence for C0/C1/C2 errata*/
+		snd_hda_sequence_write(codec, cs_errata_init_verbs);
+		snd_hda_sequence_write(codec, cs_coef_init_verbs);
+	}
 
 	snd_hda_gen_init(codec);
 
@@ -307,8 +308,10 @@ static int cs_init(struct hda_codec *codec)
 				    spec->gpio_data);
 	}
 
-	init_input_coef(codec);
-	init_digital_coef(codec);
+	if (spec->vendor_nid == CS420X_VENDOR_NID) {
+		init_input_coef(codec);
+		init_digital_coef(codec);
+	}
 
 	return 0;
 }
@@ -552,6 +555,76 @@ static int patch_cs420x(struct hda_codec *codec)
 }
 
 /*
+ * CS4208 support:
+ * Its layout is no longer compatible with CS4206/CS4207, and the generic
+ * parser seems working fairly well, except for trivial fixups.
+ */
+enum {
+	CS4208_GPIO0,
+};
+
+static const struct hda_model_fixup cs4208_models[] = {
+	{ .id = CS4208_GPIO0, .name = "gpio0" },
+	{}
+};
+
+static const struct snd_pci_quirk cs4208_fixup_tbl[] = {
+	/* codec SSID */
+	SND_PCI_QUIRK(0x106b, 0x7100, "MacBookPro 6,1", CS4208_GPIO0),
+	SND_PCI_QUIRK(0x106b, 0x7200, "MacBookPro 6,2", CS4208_GPIO0),
+	{} /* terminator */
+};
+
+static void cs4208_fixup_gpio0(struct hda_codec *codec,
+			       const struct hda_fixup *fix, int action)
+{
+	if (action == HDA_FIXUP_ACT_PRE_PROBE) {
+		struct cs_spec *spec = codec->spec;
+		spec->gpio_eapd_hp = 0;
+		spec->gpio_eapd_speaker = 1;
+		spec->gpio_mask = spec->gpio_dir =
+			spec->gpio_eapd_hp | spec->gpio_eapd_speaker;
+	}
+}
+
+static const struct hda_fixup cs4208_fixups[] = {
+	[CS4208_GPIO0] = {
+		.type = HDA_FIXUP_FUNC,
+		.v.func = cs4208_fixup_gpio0,
+	},
+};
+
+static int patch_cs4208(struct hda_codec *codec)
+{
+	struct cs_spec *spec;
+	int err;
+
+	spec = cs_alloc_spec(codec, 0); /* no specific w/a */
+	if (!spec)
+		return -ENOMEM;
+
+	spec->gen.automute_hook = cs_automute;
+
+	snd_hda_pick_fixup(codec, cs4208_models, cs4208_fixup_tbl,
+			   cs4208_fixups);
+	snd_hda_apply_fixup(codec, HDA_FIXUP_ACT_PRE_PROBE);
+
+	err = cs_parse_auto_config(codec);
+	if (err < 0)
+		goto error;
+
+	codec->patch_ops = cs_patch_ops;
+
+	snd_hda_apply_fixup(codec, HDA_FIXUP_ACT_PROBE);
+
+	return 0;
+
+ error:
+	cs_free(codec);
+	return err;
+}
+
+/*
  * Cirrus Logic CS4210
  *
  * 1 DAC => HP(sense) / Speakers,
@@ -991,6 +1064,7 @@ static int patch_cs4213(struct hda_codec *codec)
 static const struct hda_codec_preset snd_hda_preset_cirrus[] = {
 	{ .id = 0x10134206, .name = "CS4206", .patch = patch_cs420x },
 	{ .id = 0x10134207, .name = "CS4207", .patch = patch_cs420x },
+	{ .id = 0x10134208, .name = "CS4208", .patch = patch_cs4208 },
 	{ .id = 0x10134210, .name = "CS4210", .patch = patch_cs4210 },
 	{ .id = 0x10134213, .name = "CS4213", .patch = patch_cs4213 },
 	{} /* terminator */
@@ -998,6 +1072,7 @@ static const struct hda_codec_preset snd_hda_preset_cirrus[] = {
 
 MODULE_ALIAS("snd-hda-codec-id:10134206");
 MODULE_ALIAS("snd-hda-codec-id:10134207");
+MODULE_ALIAS("snd-hda-codec-id:10134208");
 MODULE_ALIAS("snd-hda-codec-id:10134210");
 MODULE_ALIAS("snd-hda-codec-id:10134213");
 

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

* Re: No sound from internal speaker on 2013 Macbook Air 6, 1
  2013-09-09  9:48         ` Takashi Iwai
@ 2013-09-09 13:26           ` Ian Munsie
  2013-09-09 14:08             ` Takashi Iwai
  0 siblings, 1 reply; 17+ messages in thread
From: Ian Munsie @ 2013-09-09 13:26 UTC (permalink / raw)
  To: Takashi Iwai; +Cc: Raymond Yau, ALSA Development Mailing List

Hi Takashi,

> OK, then try the patch below.

Great - that patch seems to do the trick, the speakers now are working
perfectly :)

One question - what is supposed to be responsible for muting the
speakers with the headphones plugged in? I can switch between
headphones and speakers with pavucontrol which works fine (alsamixer
shows it simply mutes the speaker control when headphones are
selected), but the speaker is not being automatically muted when
headphones are plugged in - is that something that the driver is
supposed to handle, or is that a userspace problem?

Cheers,
-Ian

-- 
http://sites.google.com/site/DarkStarJunkSpace
--
http://darkstarshout.blogspot.com/
--
Please avoid sending me Word or PowerPoint attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html

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

* Re: No sound from internal speaker on 2013 Macbook Air 6, 1
  2013-09-09 13:26           ` Ian Munsie
@ 2013-09-09 14:08             ` Takashi Iwai
  2013-09-09 14:48               ` Ian Munsie
  0 siblings, 1 reply; 17+ messages in thread
From: Takashi Iwai @ 2013-09-09 14:08 UTC (permalink / raw)
  To: Ian Munsie; +Cc: Raymond Yau, ALSA Development Mailing List

At Mon, 9 Sep 2013 23:26:11 +1000,
Ian Munsie wrote:
> 
> Hi Takashi,
> 
> > OK, then try the patch below.
> 
> Great - that patch seems to do the trick, the speakers now are working
> perfectly :)
> 
> One question - what is supposed to be responsible for muting the
> speakers with the headphones plugged in? I can switch between
> headphones and speakers with pavucontrol which works fine (alsamixer
> shows it simply mutes the speaker control when headphones are
> selected), but the speaker is not being automatically muted when
> headphones are plugged in - is that something that the driver is
> supposed to handle, or is that a userspace problem?

The speaker should be muted.  But better to check without PulseAudio,
as the recent PA itself may do the automute by checking the jack state
controls.

In anyway, give alsa-info.sh outputs before and after plugging the
headphone.


Takashi

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

* Re: No sound from internal speaker on 2013 Macbook Air 6, 1
  2013-09-09 14:08             ` Takashi Iwai
@ 2013-09-09 14:48               ` Ian Munsie
  2013-09-09 14:58                 ` Takashi Iwai
  0 siblings, 1 reply; 17+ messages in thread
From: Ian Munsie @ 2013-09-09 14:48 UTC (permalink / raw)
  To: Takashi Iwai; +Cc: Raymond Yau, ALSA Development Mailing List

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

Hi Takashi,

On 10 September 2013 00:08, Takashi Iwai <tiwai@suse.de> wrote:
> The speaker should be muted.  But better to check without PulseAudio,
> as the recent PA itself may do the automute by checking the jack state
> controls.
>
> In anyway, give alsa-info.sh outputs before and after plugging the
> headphone.

I've attached both runs of alsa-info.sh, though it looks like there
was no change in the output after plugging in the headphones.

Let me know what else I can do.

Cheers,
-Ian

-- 
http://sites.google.com/site/DarkStarJunkSpace
--
http://darkstarshout.blogspot.com/
--
Please avoid sending me Word or PowerPoint attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html

[-- Attachment #2: alsa-info.txt.VcBI1bV5oy --]
[-- Type: application/octet-stream, Size: 28971 bytes --]

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

!!Script ran on: Mon Sep  9 14:43:53 UTC 2013


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

Debian GNU/Linux jessie/sid \n \l PRETTY_NAME="Debian GNU/Linux jessie/sid" NAME="Debian GNU/Linux" ID=debian HOME_URL="http://www.debian.org/" SUPPORT_URL="http://www.debian.org/support/" BUG_REPORT_URL="http://bugs.debian.org/"


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

Manufacturer:      Apple Inc.
Product Name:      MacBookAir6,1
Product Version:   1.0
Firmware Version:  MBA61.88Z.0099.B00.1305241529


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

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


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

Driver version:     k3.11.0-rc6+
Library version:    1.0.27.2
Utilities version:  1.0.27.1


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

snd_hda_intel


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

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


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

 0 [PCH            ]: HDA-Intel - HDA Intel PCH
                      HDA Intel PCH at 0xb0a14000 irq 66


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

00:03.0 Audio device: Intel Corporation Device 0a0c (rev 09)
00:1b.0 Audio device: Intel Corporation Lynx Point-LP HD Audio Controller (rev 04)
02:00.0 Multimedia controller: Broadcom Corporation Device 1570


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

00:03.0 0403: 8086:0a0c (rev 09)
	Subsystem: 106b:011a
--
00:1b.0 0403: 8086:9c20 (rev 04)
	Subsystem: 8086:7270


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

snd_pcsp: index=-2
snd_usb_audio: index=-2
snd_atiixp_modem: index=-2
snd_intel8x0m: index=-2
snd_via82xx_modem: index=-2


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

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


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

Codec: Cirrus Logic CS4208
Address: 0
AFG Function Id: 0x1 (unsol 1)
Vendor Id: 0x10134208
Subsystem Id: 0x106b7100
Revision Id: 0x100300
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 D3cold S3D3cold CLKSTOP EPSS
  Power: setting=D0, actual=D0
GPIO: io=6, o=2, i=0, unsolicited=1, wake=1
  IO[0]: enable=1, dir=1, wake=0, sticky=0, data=1, unsol=0
  IO[1]: enable=0, dir=0, wake=0, sticky=0, data=0, unsol=0
  IO[2]: enable=0, dir=0, wake=0, sticky=0, data=0, unsol=0
  IO[3]: enable=0, dir=0, wake=0, sticky=0, data=0, unsol=0
  IO[4]: enable=0, dir=0, wake=0, sticky=0, data=0, unsol=0
  IO[5]: enable=0, dir=0, wake=0, sticky=0, data=0, unsol=0
Node 0x02 [Audio Output] wcaps 0xd043d: Stereo Amp-Out Stripe
  Device: name="CS4208 Analog", type="Audio", device=0
  Amp-Out caps: ofs=0x7f, nsteps=0x7f, stepsize=0x01, mute=1
  Amp-Out vals:  [0x7f 0x7f]
  Converter: stream=0, channel=0
  PCM:
    rates [0x7f0]: 32000 44100 48000 88200 96000 176400 192000
    bits [0x1e]: 16 20 24 32
    formats [0x3]: PCM FLOAT
  Power states:  D0 D3 EPSS
  Power: setting=D0, actual=D3
  Delay: 13 samples
Node 0x03 [Audio Output] wcaps 0xd043d: Stereo Amp-Out Stripe
  Control: name="Speaker Playback Volume", index=0, device=0
    ControlAmp: chs=3, dir=Out, idx=0, ofs=0
  Control: name="Speaker Playback Switch", index=0, device=0
    ControlAmp: chs=3, dir=Out, idx=0, ofs=0
  Amp-Out caps: ofs=0x7f, nsteps=0x7f, stepsize=0x01, mute=1
  Amp-Out vals:  [0x47 0x47]
  Converter: stream=0, channel=0
  PCM:
    rates [0x7f0]: 32000 44100 48000 88200 96000 176400 192000
    bits [0x1e]: 16 20 24 32
    formats [0x3]: PCM FLOAT
  Power states:  D0 D3 EPSS
  Power: setting=D0, actual=D3
  Delay: 13 samples
Node 0x04 [Audio Output] wcaps 0xd043d: Stereo Amp-Out Stripe
  Amp-Out caps: ofs=0x7f, nsteps=0x7f, stepsize=0x01, mute=1
  Amp-Out vals:  [0xff 0xff]
  Converter: stream=0, channel=0
  PCM:
    rates [0x7f0]: 32000 44100 48000 88200 96000 176400 192000
    bits [0x1e]: 16 20 24 32
    formats [0x3]: PCM FLOAT
  Power states:  D0 D3 EPSS
  Power: setting=D0, actual=D3
  Delay: 13 samples
Node 0x05 [Audio Output] wcaps 0xd043d: Stereo Amp-Out Stripe
  Amp-Out caps: ofs=0x7f, nsteps=0x7f, stepsize=0x01, mute=1
  Amp-Out vals:  [0xff 0xff]
  Converter: stream=0, channel=0
  PCM:
    rates [0x7f0]: 32000 44100 48000 88200 96000 176400 192000
    bits [0x1e]: 16 20 24 32
    formats [0x3]: PCM FLOAT
  Power states:  D0 D3 EPSS
  Power: setting=D0, actual=D3
  Delay: 13 samples
Node 0x06 [Audio Input] wcaps 0x18051b: Stereo Amp-In
  Device: name="CS4208 Analog", type="Audio", device=0
  Amp-In caps: ofs=0x33, nsteps=0x3f, stepsize=0x03, mute=1
  Amp-In vals:  [0xb3 0xb3] [0xb3 0xb3] [0xb3 0xb3]
  Converter: stream=0, channel=0
  SDI-Select: 0
  PCM:
    rates [0x1f5]: 8000 16000 32000 44100 48000 88200 96000
    bits [0x1e]: 16 20 24 32
    formats [0x3]: PCM FLOAT
  Power states:  D0 D3 EPSS
  Power: setting=D0, actual=D3
  Delay: 8 samples
  Connection: 3
     0x15* 0x17 0x19
Node 0x07 [Audio Input] wcaps 0x18051b: Stereo Amp-In
  Amp-In caps: ofs=0x33, nsteps=0x3f, stepsize=0x03, mute=1
  Amp-In vals:  [0x80 0x80] [0x80 0x80] [0x80 0x80]
  Converter: stream=0, channel=0
  SDI-Select: 0
  PCM:
    rates [0x1f5]: 8000 16000 32000 44100 48000 88200 96000
    bits [0x1e]: 16 20 24 32
    formats [0x3]: PCM FLOAT
  Power states:  D0 D3 EPSS
  Power: setting=D0, actual=D3
  Delay: 8 samples
  Connection: 3
     0x16* 0x18 0x1a
Node 0x08 [Audio Input] wcaps 0x18051b: Stereo Amp-In
  Amp-In caps: ofs=0x33, nsteps=0x3f, stepsize=0x03, mute=1
  Amp-In vals:  [0xb3 0xb3]
  Converter: stream=0, channel=0
  SDI-Select: 0
  PCM:
    rates [0x1f5]: 8000 16000 32000 44100 48000 88200 96000
    bits [0x1e]: 16 20 24 32
    formats [0x3]: PCM FLOAT
  Power states:  D0 D3 EPSS
  Power: setting=D0, actual=D0
  Delay: 8 samples
  Connection: 1
     0x1b
Node 0x09 [Audio Input] wcaps 0x18051b: Stereo Amp-In
  Control: name="Capture Volume", index=0, device=0
    ControlAmp: chs=3, dir=In, idx=1, ofs=0
  Control: name="Capture Switch", index=0, device=0
    ControlAmp: chs=3, dir=In, idx=1, ofs=0
  Amp-In caps: ofs=0x33, nsteps=0x3f, stepsize=0x03, mute=1
  Amp-In vals:  [0x3f 0x3f]
  Converter: stream=0, channel=0
  SDI-Select: 0
  PCM:
    rates [0x1f5]: 8000 16000 32000 44100 48000 88200 96000
    bits [0x1e]: 16 20 24 32
    formats [0x3]: PCM FLOAT
  Power states:  D0 D3 EPSS
  Power: setting=D0, actual=D0
  Delay: 8 samples
  Connection: 1
     0x1c
Node 0x0a [Audio Output] wcaps 0x46631: 8-Channels Digital Stripe
  Converter: stream=0, channel=0
  Digital:
  Digital category: 0x0
  IEC Coding Type: 0x0
  PCM:
    rates [0x60]: 44100 48000
    bits [0xe]: 16 20 24
    formats [0x1]: PCM
  Power states:  D0 D3 EPSS
  Power: setting=D0, actual=D0
  Delay: 4 samples
Node 0x0b [Audio Output] wcaps 0x46631: 8-Channels Digital Stripe
  Converter: stream=0, channel=0
  Digital:
  Digital category: 0x0
  IEC Coding Type: 0x0
  PCM:
    rates [0x60]: 44100 48000
    bits [0xe]: 16 20 24
    formats [0x1]: PCM
  Power states:  D0 D3 EPSS
  Power: setting=D0, actual=D0
  Delay: 4 samples
Node 0x0c [Audio Input] wcaps 0x136711: 8-Channels Digital
  Converter: stream=0, channel=0
  SDI-Select: 0
  Digital:
  Digital category: 0x0
  IEC Coding Type: 0x0
  PCM:
    rates [0x60]: 44100 48000
    bits [0x1e]: 16 20 24 32
    formats [0x1]: PCM
  Power states:  D0 D3 EPSS
  Power: setting=D0, actual=D0
  Delay: 3 samples
  Connection: 1
     0x1f
Node 0x0d [Audio Input] wcaps 0x136711: 8-Channels Digital
  Converter: stream=0, channel=0
  SDI-Select: 0
  Digital:
  Digital category: 0x0
  IEC Coding Type: 0x0
  PCM:
    rates [0x60]: 44100 48000
    bits [0x1e]: 16 20 24 32
    formats [0x1]: PCM
  Power states:  D0 D3 EPSS
  Power: setting=D0, actual=D0
  Delay: 3 samples
  Connection: 1
     0x20
Node 0x0e [Audio Output] wcaps 0x40631: Stereo Digital Stripe
  Converter: stream=0, channel=0
  Digital:
  Digital category: 0x0
  IEC Coding Type: 0x0
  PCM:
    rates [0x7f0]: 32000 44100 48000 88200 96000 176400 192000
    bits [0xe]: 16 20 24
    formats [0x5]: PCM AC3
  Power states:  D0 D3 EPSS
  Power: setting=D0, actual=D0
  Delay: 4 samples
Node 0x0f [Audio Input] wcaps 0x1b0791: Stereo Digital
  Converter: stream=0, channel=0
  SDI-Select: 0
  Digital:
  Digital category: 0x0
  IEC Coding Type: 0x0
  PCM:
    rates [0x5f0]: 32000 44100 48000 88200 96000 192000
    bits [0xe]: 16 20 24
    formats [0x5]: PCM AC3
  Unsolicited: tag=00, enabled=0
  Power states:  D0 D3 EPSS
  Power: setting=D0, actual=D0
  Delay: 11 samples
  Connection: 1
     0x22
Node 0x10 [Pin Complex] wcaps 0x40058d: Stereo Amp-Out
  Control: name="Headphone Playback Volume", index=0, device=0
    ControlAmp: chs=3, dir=Out, idx=0, ofs=0
  Control: name="Headphone Playback Switch", index=0, device=0
    ControlAmp: chs=3, dir=Out, idx=0, ofs=0
  Control: name="Headphone Jack", index=0, device=0
  Amp-Out caps: ofs=0x42, nsteps=0x42, stepsize=0x03, mute=1
  Amp-Out vals:  [0x0b 0x0b]
  Pincap 0x0000001c: OUT HP Detect
  Pin Default 0x002b4020: [Jack] HP Out at Ext N/A
    Conn = Comb, Color = Green
    DefAssociation = 0x2, Sequence = 0x0
  Pin-ctls: 0xc0: OUT HP
  Unsolicited: tag=01, enabled=1
  Power states:  D0 D3 EPSS
  Power: setting=D0, actual=D0
  Connection: 1
     0x02
Node 0x11 [Pin Complex] wcaps 0x400581: Stereo
  Pincap 0x00000054: OUT Detect Balanced
  Pin Default 0x400000f0: [N/A] Line Out at Ext N/A
    Conn = Unknown, Color = Unknown
    DefAssociation = 0xf, Sequence = 0x0
  Pin-ctls: 0x00:
  Unsolicited: tag=00, enabled=0
  Power states:  D0 D3 EPSS
  Power: setting=D0, actual=D0
  Connection: 1
     0x02
Node 0x12 [Pin Complex] wcaps 0x400501: Stereo
  Control: name="Speaker Phantom Jack", index=0, device=0
  Pincap 0x00000050: OUT Balanced
  Pin Default 0x90100110: [Fixed] Speaker at Int N/A
    Conn = Unknown, Color = Unknown
    DefAssociation = 0x1, Sequence = 0x0
    Misc = NO_PRESENCE
  Pin-ctls: 0x40: OUT
  Power states:  D0 D3 EPSS
  Power: setting=D0, actual=D0
  Connection: 1
     0x03
Node 0x13 [Pin Complex] wcaps 0x400501: Stereo
  Pincap 0x00000050: OUT Balanced
  Pin Default 0x400000f0: [N/A] Line Out at Ext N/A
    Conn = Unknown, Color = Unknown
    DefAssociation = 0xf, Sequence = 0x0
  Pin-ctls: 0x00:
  Power states:  D0 D3 EPSS
  Power: setting=D0, actual=D0
  Connection: 1
     0x04
Node 0x14 [Pin Complex] wcaps 0x400501: Stereo
  Pincap 0x00000050: OUT Balanced
  Pin Default 0x400000f0: [N/A] Line Out at Ext N/A
    Conn = Unknown, Color = Unknown
    DefAssociation = 0xf, Sequence = 0x0
  Pin-ctls: 0x00:
  Power states:  D0 D3 EPSS
  Power: setting=D0, actual=D0
  Connection: 1
     0x05
Node 0x15 [Pin Complex] wcaps 0x40040b: Stereo Amp-In
  Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x27, mute=0
  Amp-In vals:  [0x00 0x00]
  Pincap 0x00001720: IN
    Vref caps: HIZ 50 GRD 80
  Pin Default 0x400000f0: [N/A] Line Out at Ext N/A
    Conn = Unknown, Color = Unknown
    DefAssociation = 0xf, Sequence = 0x0
  Pin-ctls: 0x00: VREF_HIZ
  Power states:  D0 D3 EPSS
  Power: setting=D0, actual=D0
Node 0x16 [Pin Complex] wcaps 0x40040b: Stereo Amp-In
  Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x27, mute=0
  Amp-In vals:  [0x00 0x00]
  Pincap 0x00001720: IN
    Vref caps: HIZ 50 GRD 80
  Pin Default 0x400000f0: [N/A] Line Out at Ext N/A
    Conn = Unknown, Color = Unknown
    DefAssociation = 0xf, Sequence = 0x0
  Pin-ctls: 0x00: VREF_HIZ
  Power states:  D0 D3 EPSS
  Power: setting=D0, actual=D0
Node 0x17 [Pin Complex] wcaps 0x40048b: Stereo Amp-In
  Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x27, mute=0
  Amp-In vals:  [0x00 0x00]
  Pincap 0x00000024: IN Detect
  Pin Default 0x400000f0: [N/A] Line Out at Ext N/A
    Conn = Unknown, Color = Unknown
    DefAssociation = 0xf, Sequence = 0x0
  Pin-ctls: 0x00:
  Unsolicited: tag=00, enabled=0
  Power states:  D0 D3 EPSS
  Power: setting=D0, actual=D0
Node 0x18 [Pin Complex] wcaps 0x40048a: Mono Amp-In
  Control: name="Mic Boost Volume", index=0, device=0
    ControlAmp: chs=3, dir=In, idx=0, ofs=0
  Control: name="Mic Jack", index=0, device=0
  Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x27, mute=0
  Amp-In vals:  [0x00]
  Pincap 0x00001724: IN Detect
    Vref caps: HIZ 50 GRD 80
  Pin Default 0x00ab9030: [Jack] Mic at Ext N/A
    Conn = Comb, Color = Pink
    DefAssociation = 0x3, Sequence = 0x0
  Pin-ctls: 0x24: IN VREF_80
  Unsolicited: tag=02, enabled=1
  Power states:  D0 D3 EPSS
  Power: setting=D0, actual=D0
Node 0x19 [Pin Complex] wcaps 0x40000b: Stereo Amp-In
  Amp-In caps: ofs=0x00, nsteps=0x02, stepsize=0x27, mute=0
  Amp-In vals:  [0x00 0x00]
  Pincap 0x00000020: IN
  Pin Default 0x400000f0: [N/A] Line Out at Ext N/A
    Conn = Unknown, Color = Unknown
    DefAssociation = 0xf, Sequence = 0x0
  Pin-ctls: 0x00:
Node 0x1a [Pin Complex] wcaps 0x40000b: Stereo Amp-In
  Amp-In caps: ofs=0x00, nsteps=0x02, stepsize=0x27, mute=0
  Amp-In vals:  [0x00 0x00]
  Pincap 0x00000020: IN
  Pin Default 0x400000f0: [N/A] Line Out at Ext N/A
    Conn = Unknown, Color = Unknown
    DefAssociation = 0xf, Sequence = 0x0
  Pin-ctls: 0x00:
Node 0x1b [Pin Complex] wcaps 0x40000b: Stereo Amp-In
  Amp-In caps: ofs=0x00, nsteps=0x02, stepsize=0x27, mute=0
  Amp-In vals:  [0x00 0x00]
  Pincap 0x00000020: IN
  Pin Default 0x400000f0: [N/A] Line Out at Ext N/A
    Conn = Unknown, Color = Unknown
    DefAssociation = 0xf, Sequence = 0x0
  Pin-ctls: 0x00:
Node 0x1c [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=0x02, stepsize=0x27, mute=0
  Amp-In vals:  [0x02 0x02]
  Pincap 0x00000020: IN
  Pin Default 0x90a60100: [Fixed] Mic at Int N/A
    Conn = Digital, Color = Unknown
    DefAssociation = 0x0, Sequence = 0x0
    Misc = NO_PRESENCE
  Pin-ctls: 0x20: IN
Node 0x1d [Pin Complex] wcaps 0x406301: 8-Channels Digital
  Pincap 0x00000010: OUT
  Pin Default 0x400000f0: [N/A] Line Out at Ext N/A
    Conn = Unknown, Color = Unknown
    DefAssociation = 0xf, Sequence = 0x0
  Pin-ctls: 0x00:
  Connection: 1
     0x0a
Node 0x1e [Pin Complex] wcaps 0x406301: 8-Channels Digital
  Pincap 0x00000010: OUT
  Pin Default 0x400000f0: [N/A] Line Out at Ext N/A
    Conn = Unknown, Color = Unknown
    DefAssociation = 0xf, Sequence = 0x0
  Pin-ctls: 0x00:
  Connection: 1
     0x0b
Node 0x1f [Pin Complex] wcaps 0x406201: 8-Channels Digital
  Pincap 0x00000020: IN
  Pin Default 0x400000f0: [N/A] Line Out at Ext N/A
    Conn = Unknown, Color = Unknown
    DefAssociation = 0xf, Sequence = 0x0
  Pin-ctls: 0x00:
Node 0x20 [Pin Complex] wcaps 0x406201: 8-Channels Digital
  Pincap 0x00000020: IN
  Pin Default 0x400000f0: [N/A] Line Out at Ext N/A
    Conn = Unknown, Color = Unknown
    DefAssociation = 0xf, Sequence = 0x0
  Pin-ctls: 0x00:
Node 0x21 [Pin Complex] wcaps 0x400381: Stereo Digital
  Pincap 0x00000014: OUT Detect
  Pin Default 0x400000f0: [N/A] Line Out at Ext N/A
    Conn = Unknown, Color = Unknown
    DefAssociation = 0xf, Sequence = 0x0
  Pin-ctls: 0x00:
  Unsolicited: tag=00, enabled=0
  Connection: 1
     0x0e
Node 0x22 [Pin Complex] wcaps 0x400281: Stereo Digital
  Pincap 0x00000024: IN Detect
  Pin Default 0x400000f0: [N/A] Line Out at Ext N/A
    Conn = Unknown, Color = Unknown
    DefAssociation = 0xf, Sequence = 0x0
  Pin-ctls: 0x00:
  Unsolicited: tag=00, enabled=0
Node 0x23 [Beep Generator Widget] wcaps 0x700200: Mono Digital
Node 0x24 [Vendor Defined Widget] wcaps 0xf0e2c1: 16-Channels Digital
  Unsolicited: tag=00, enabled=0
  Processing caps: benign=0, ncoeff=128
--endcollapse--


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

crw-rw---T+ 1 root audio 116,  5 Sep 10 00:43 /dev/snd/controlC0
crw-rw---T+ 1 root audio 116,  4 Sep 10 00:43 /dev/snd/hwC0D0
crw-rw---T+ 1 root audio 116,  3 Sep 10 00:43 /dev/snd/pcmC0D0c
crw-rw---T+ 1 root audio 116,  2 Sep 10 00:43 /dev/snd/pcmC0D0p
crw-rw---T+ 1 root audio 116,  1 Sep 10 00:43 /dev/snd/seq
crw-rw---T+ 1 root audio 116, 33 Sep 10 00:43 /dev/snd/timer

/dev/snd/by-path:
total 0
drwxr-xr-x 2 root root  60 Sep 10 00:43 .
drwxr-xr-x 3 root root 180 Sep 10 00:43 ..
lrwxrwxrwx 1 root root  12 Sep 10 00:43 pci-0000:00:1b.0 -> ../controlC0


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

APLAY

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

ARECORD

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

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

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

Card hw:0 'PCH'/'HDA Intel PCH at 0xb0a14000 irq 66'
  Mixer name	: 'Cirrus Logic CS4208'
  Components	: 'HDA:10134208,106b7100,00100300'
  Controls      : 18
  Simple ctrls  : 8
Simple mixer control 'Master',0
  Capabilities: pvolume pvolume-joined pswitch pswitch-joined
  Playback channels: Mono
  Limits: Playback 0 - 66
  Mono: Playback 11 [17%] [-55.00dB] [on]
Simple mixer control 'Headphone',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 66
  Mono:
  Front Left: Playback 66 [100%] [0.00dB] [on]
  Front Right: Playback 66 [100%] [0.00dB] [on]
Simple mixer control 'Speaker',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 127
  Mono:
  Front Left: Playback 126 [99%] [0.50dB] [on]
  Front Right: Playback 126 [99%] [0.50dB] [on]
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 '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 'Capture',0
  Capabilities: cvolume cswitch
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 63
  Front Left: Capture 63 [100%] [12.00dB] [on]
  Front Right: Capture 63 [100%] [12.00dB] [on]
Simple mixer control 'Auto-Mute Mode',0
  Capabilities: enum
  Items: 'Disabled' 'Enabled'
  Item0: 'Enabled'
Simple mixer control 'Internal Mic Boost',0
  Capabilities: volume
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 2
  Front Left: 2 [100%] [20.00dB]
  Front Right: 2 [100%] [20.00dB]


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

--startcollapse--
state.PCH {
	control.1 {
		iface MIXER
		name 'Headphone Playback Volume'
		value.0 66
		value.1 66
		comment {
			access 'read write'
			type INTEGER
			count 2
			range '0 - 66'
			dbmin -6600
			dbmax 0
			dbvalue.0 0
			dbvalue.1 0
		}
	}
	control.2 {
		iface MIXER
		name 'Headphone Playback Switch'
		value.0 true
		value.1 true
		comment {
			access 'read write'
			type BOOLEAN
			count 2
		}
	}
	control.3 {
		iface MIXER
		name 'Speaker Playback Volume'
		value.0 126
		value.1 126
		comment {
			access 'read write'
			type INTEGER
			count 2
			range '0 - 127'
			dbmin -6350
			dbmax 0
			dbvalue.0 -50
			dbvalue.1 -50
		}
	}
	control.4 {
		iface MIXER
		name 'Speaker Playback Switch'
		value.0 true
		value.1 true
		comment {
			access 'read write'
			type BOOLEAN
			count 2
		}
	}
	control.5 {
		iface MIXER
		name 'Auto-Mute Mode'
		value Enabled
		comment {
			access 'read write'
			type ENUMERATED
			count 1
			item.0 Disabled
			item.1 Enabled
		}
	}
	control.6 {
		iface MIXER
		name 'Capture Volume'
		value.0 63
		value.1 63
		comment {
			access 'read write'
			type INTEGER
			count 2
			range '0 - 63'
			dbmin -5100
			dbmax 1200
			dbvalue.0 1200
			dbvalue.1 1200
		}
	}
	control.7 {
		iface MIXER
		name 'Capture Switch'
		value.0 true
		value.1 true
		comment {
			access 'read write'
			type BOOLEAN
			count 2
		}
	}
	control.8 {
		iface MIXER
		name 'Internal Mic Boost Volume'
		value.0 2
		value.1 2
		comment {
			access 'read write'
			type INTEGER
			count 2
			range '0 - 2'
			dbmin 0
			dbmax 2000
			dbvalue.0 2000
			dbvalue.1 2000
		}
	}
	control.9 {
		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 3000
			dbvalue.0 0
			dbvalue.1 0
		}
	}
	control.10 {
		iface MIXER
		name 'Master Playback Volume'
		value 11
		comment {
			access 'read write'
			type INTEGER
			count 1
			range '0 - 66'
			dbmin -6600
			dbmax 0
			dbvalue.0 -5500
		}
	}
	control.11 {
		iface MIXER
		name 'Master Playback Switch'
		value true
		comment {
			access 'read write'
			type BOOLEAN
			count 1
		}
	}
	control.12 {
		iface CARD
		name 'Internal Mic Phantom Jack'
		value true
		comment {
			access read
			type BOOLEAN
			count 1
		}
	}
	control.13 {
		iface CARD
		name 'Mic Jack'
		value false
		comment {
			access read
			type BOOLEAN
			count 1
		}
	}
	control.14 {
		iface CARD
		name 'Headphone Jack'
		value false
		comment {
			access read
			type BOOLEAN
			count 1
		}
	}
	control.15 {
		iface CARD
		name 'Speaker Phantom Jack'
		value true
		comment {
			access read
			type BOOLEAN
			count 1
		}
	}
	control.16 {
		iface PCM
		name 'Playback Channel Map'
		value.0 0
		value.1 0
		comment {
			access read
			type INTEGER
			count 2
			range '0 - 36'
		}
	}
	control.17 {
		iface PCM
		name 'Capture Channel Map'
		value.0 0
		value.1 0
		comment {
			access read
			type INTEGER
			count 2
			range '0 - 36'
		}
	}
	control.18 {
		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
rfcomm
bnep
binfmt_misc
hfsplus
nls_utf8
nls_cp437
vfat
fat
loop
fuse
dm_crypt
dm_mod
btusb
bluetooth
hid_generic
coretemp
kvm_intel
hid_apple
bcm5974
kvm
snd_hda_codec_cirrus
usbhid
hid
lib80211_crypt_tkip
i915
snd_hda_intel
snd_hda_codec
iTCO_wdt
iTCO_vendor_support
evdev
snd_hwdep
snd_pcm
applesmc
wl
input_polldev
snd_page_alloc
snd_seq
snd_seq_device
snd_timer
battery
pcspkr
cfg80211
snd
video
i2c_algo_bit
drm_kms_helper
microcode
drm
ac
apple_bl
i2c_i801
lpc_ich
button
mfd_core
acpi_cpufreq
rfkill
mperf
mei_me
lib80211
processor
mei
i2c_core
thermal_sys
soundcore
ext4
crc16
jbd2
mbcache
sg
sd_mod
crc_t10dif
crc32c_intel
ghash_clmulni_intel
aesni_intel
aes_x86_64
glue_helper
lrw
gf128mul
ablk_helper
cryptd
xhci_hcd
ahci
libahci
libata
usbcore
scsi_mod
usb_common


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

/sys/class/sound/hwC0D0/init_pin_configs:
0x10 0x002b4020
0x11 0x400000f0
0x12 0x90100110
0x13 0x400000f0
0x14 0x400000f0
0x15 0x400000f0
0x16 0x400000f0
0x17 0x400000f0
0x18 0x00ab9030
0x19 0x400000f0
0x1a 0x400000f0
0x1b 0x400000f0
0x1c 0x90a60100
0x1d 0x400000f0
0x1e 0x400000f0
0x1f 0x400000f0
0x20 0x400000f0
0x21 0x400000f0
0x22 0x400000f0

/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:


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

[    6.169599] INFO @wl_cfg80211_attach : Registered CFG80211 phy
[    6.174691] hda-intel Haswell must build in CONFIG_SND_HDA_I915
[    6.174778] hda-intel Error request power-well from i915
[    6.175277] snd_hda_intel 0000:00:1b.0: irq 66 for MSI/MSI-X
[    6.176569] lib80211_crypt: registered algorithm 'TKIP'
--
[    6.192871] microcode: CPU2 sig=0x40651, pf=0x40, revision=0x11
[    6.196573] input: HDA Intel PCH Headphone as /devices/pci0000:00/0000:00:1b.0/sound/card0/input5
[    6.196765] input: HDA Intel PCH Mic as /devices/pci0000:00/0000:00:1b.0/sound/card0/input6
[    6.197383] usbcore: registered new interface driver usbhid
--
[   22.865766] WARNING: CPU: 3 PID: 3032 at net/wireless/sme.c:922 cfg80211_connect+0x3b/0x385 [cfg80211]()
[   22.865771] Modules linked in: rfcomm bnep binfmt_misc hfsplus nls_utf8 nls_cp437 vfat fat loop fuse dm_crypt dm_mod btusb bluetooth hid_generic coretemp kvm_intel hid_apple bcm5974 kvm snd_hda_codec_cirrus usbhid hid lib80211_crypt_tkip i915 snd_hda_intel snd_hda_codec iTCO_wdt iTCO_vendor_support evdev snd_hwdep snd_pcm applesmc wl(PO) input_polldev snd_page_alloc snd_seq snd_seq_device snd_timer battery pcspkr cfg80211 snd video i2c_algo_bit drm_kms_helper microcode drm ac apple_bl i2c_i801 lpc_ich button mfd_core acpi_cpufreq rfkill mperf mei_me lib80211 processor mei i2c_core thermal_sys soundcore ext4 crc16 jbd2 mbcache sg sd_mod crc_t10dif crc32c_intel ghash_clmulni_intel aesni_intel aes_x86_64 glue_helper lrw gf128mul ablk_helper cryptd xhci_hcd ahci libahci libata usbcore scsi_mod usb_common
[   22.865879] CPU: 3 PID: 3032 Comm: iwconfig Tainted: P           O 3.11.0-rc6+ #12
--
[   22.873697] WARNING: CPU: 3 PID: 3033 at net/wireless/sme.c:922 cfg80211_connect+0x3b/0x385 [cfg80211]()
[   22.873701] Modules linked in: rfcomm bnep binfmt_misc hfsplus nls_utf8 nls_cp437 vfat fat loop fuse dm_crypt dm_mod btusb bluetooth hid_generic coretemp kvm_intel hid_apple bcm5974 kvm snd_hda_codec_cirrus usbhid hid lib80211_crypt_tkip i915 snd_hda_intel snd_hda_codec iTCO_wdt iTCO_vendor_support evdev snd_hwdep snd_pcm applesmc wl(PO) input_polldev snd_page_alloc snd_seq snd_seq_device snd_timer battery pcspkr cfg80211 snd video i2c_algo_bit drm_kms_helper microcode drm ac apple_bl i2c_i801 lpc_ich button mfd_core acpi_cpufreq rfkill mperf mei_me lib80211 processor mei i2c_core thermal_sys soundcore ext4 crc16 jbd2 mbcache sg sd_mod crc_t10dif crc32c_intel ghash_clmulni_intel aesni_intel aes_x86_64 glue_helper lrw gf128mul ablk_helper cryptd xhci_hcd ahci libahci libata usbcore scsi_mod usb_common
[   22.873811] CPU: 3 PID: 3033 Comm: iwconfig Tainted: P        W  O 3.11.0-rc6+ #12
--
[   26.155850] WARNING: CPU: 1 PID: 3030 at net/wireless/sme.c:922 cfg80211_connect+0x3b/0x385 [cfg80211]()
[   26.155854] Modules linked in: rfcomm bnep binfmt_misc hfsplus nls_utf8 nls_cp437 vfat fat loop fuse dm_crypt dm_mod btusb bluetooth hid_generic coretemp kvm_intel hid_apple bcm5974 kvm snd_hda_codec_cirrus usbhid hid lib80211_crypt_tkip i915 snd_hda_intel snd_hda_codec iTCO_wdt iTCO_vendor_support evdev snd_hwdep snd_pcm applesmc wl(PO) input_polldev snd_page_alloc snd_seq snd_seq_device snd_timer battery pcspkr cfg80211 snd video i2c_algo_bit drm_kms_helper microcode drm ac apple_bl i2c_i801 lpc_ich button mfd_core acpi_cpufreq rfkill mperf mei_me lib80211 processor mei i2c_core thermal_sys soundcore ext4 crc16 jbd2 mbcache sg sd_mod crc_t10dif crc32c_intel ghash_clmulni_intel aesni_intel aes_x86_64 glue_helper lrw gf128mul ablk_helper cryptd xhci_hcd ahci libahci libata usbcore scsi_mod usb_common
[   26.155966] CPU: 1 PID: 3030 Comm: wpa_supplicant Tainted: P        W  O 3.11.0-rc6+ #12



[-- Attachment #3: alsa-info-headphones.txt.KeF9YbarKG --]
[-- Type: application/octet-stream, Size: 28971 bytes --]

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

!!Script ran on: Mon Sep  9 14:44:26 UTC 2013


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

Debian GNU/Linux jessie/sid \n \l PRETTY_NAME="Debian GNU/Linux jessie/sid" NAME="Debian GNU/Linux" ID=debian HOME_URL="http://www.debian.org/" SUPPORT_URL="http://www.debian.org/support/" BUG_REPORT_URL="http://bugs.debian.org/"


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

Manufacturer:      Apple Inc.
Product Name:      MacBookAir6,1
Product Version:   1.0
Firmware Version:  MBA61.88Z.0099.B00.1305241529


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

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


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

Driver version:     k3.11.0-rc6+
Library version:    1.0.27.2
Utilities version:  1.0.27.1


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

snd_hda_intel


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

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


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

 0 [PCH            ]: HDA-Intel - HDA Intel PCH
                      HDA Intel PCH at 0xb0a14000 irq 66


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

00:03.0 Audio device: Intel Corporation Device 0a0c (rev 09)
00:1b.0 Audio device: Intel Corporation Lynx Point-LP HD Audio Controller (rev 04)
02:00.0 Multimedia controller: Broadcom Corporation Device 1570


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

00:03.0 0403: 8086:0a0c (rev 09)
	Subsystem: 106b:011a
--
00:1b.0 0403: 8086:9c20 (rev 04)
	Subsystem: 8086:7270


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

snd_pcsp: index=-2
snd_usb_audio: index=-2
snd_atiixp_modem: index=-2
snd_intel8x0m: index=-2
snd_via82xx_modem: index=-2


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

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


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

Codec: Cirrus Logic CS4208
Address: 0
AFG Function Id: 0x1 (unsol 1)
Vendor Id: 0x10134208
Subsystem Id: 0x106b7100
Revision Id: 0x100300
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 D3cold S3D3cold CLKSTOP EPSS
  Power: setting=D0, actual=D0
GPIO: io=6, o=2, i=0, unsolicited=1, wake=1
  IO[0]: enable=1, dir=1, wake=0, sticky=0, data=1, unsol=0
  IO[1]: enable=0, dir=0, wake=0, sticky=0, data=0, unsol=0
  IO[2]: enable=0, dir=0, wake=0, sticky=0, data=0, unsol=0
  IO[3]: enable=0, dir=0, wake=0, sticky=0, data=0, unsol=0
  IO[4]: enable=0, dir=0, wake=0, sticky=0, data=0, unsol=0
  IO[5]: enable=0, dir=0, wake=0, sticky=0, data=0, unsol=0
Node 0x02 [Audio Output] wcaps 0xd043d: Stereo Amp-Out Stripe
  Device: name="CS4208 Analog", type="Audio", device=0
  Amp-Out caps: ofs=0x7f, nsteps=0x7f, stepsize=0x01, mute=1
  Amp-Out vals:  [0x7f 0x7f]
  Converter: stream=0, channel=0
  PCM:
    rates [0x7f0]: 32000 44100 48000 88200 96000 176400 192000
    bits [0x1e]: 16 20 24 32
    formats [0x3]: PCM FLOAT
  Power states:  D0 D3 EPSS
  Power: setting=D0, actual=D3
  Delay: 13 samples
Node 0x03 [Audio Output] wcaps 0xd043d: Stereo Amp-Out Stripe
  Control: name="Speaker Playback Volume", index=0, device=0
    ControlAmp: chs=3, dir=Out, idx=0, ofs=0
  Control: name="Speaker Playback Switch", index=0, device=0
    ControlAmp: chs=3, dir=Out, idx=0, ofs=0
  Amp-Out caps: ofs=0x7f, nsteps=0x7f, stepsize=0x01, mute=1
  Amp-Out vals:  [0x47 0x47]
  Converter: stream=0, channel=0
  PCM:
    rates [0x7f0]: 32000 44100 48000 88200 96000 176400 192000
    bits [0x1e]: 16 20 24 32
    formats [0x3]: PCM FLOAT
  Power states:  D0 D3 EPSS
  Power: setting=D0, actual=D3
  Delay: 13 samples
Node 0x04 [Audio Output] wcaps 0xd043d: Stereo Amp-Out Stripe
  Amp-Out caps: ofs=0x7f, nsteps=0x7f, stepsize=0x01, mute=1
  Amp-Out vals:  [0xff 0xff]
  Converter: stream=0, channel=0
  PCM:
    rates [0x7f0]: 32000 44100 48000 88200 96000 176400 192000
    bits [0x1e]: 16 20 24 32
    formats [0x3]: PCM FLOAT
  Power states:  D0 D3 EPSS
  Power: setting=D0, actual=D3
  Delay: 13 samples
Node 0x05 [Audio Output] wcaps 0xd043d: Stereo Amp-Out Stripe
  Amp-Out caps: ofs=0x7f, nsteps=0x7f, stepsize=0x01, mute=1
  Amp-Out vals:  [0xff 0xff]
  Converter: stream=0, channel=0
  PCM:
    rates [0x7f0]: 32000 44100 48000 88200 96000 176400 192000
    bits [0x1e]: 16 20 24 32
    formats [0x3]: PCM FLOAT
  Power states:  D0 D3 EPSS
  Power: setting=D0, actual=D3
  Delay: 13 samples
Node 0x06 [Audio Input] wcaps 0x18051b: Stereo Amp-In
  Device: name="CS4208 Analog", type="Audio", device=0
  Amp-In caps: ofs=0x33, nsteps=0x3f, stepsize=0x03, mute=1
  Amp-In vals:  [0xb3 0xb3] [0xb3 0xb3] [0xb3 0xb3]
  Converter: stream=0, channel=0
  SDI-Select: 0
  PCM:
    rates [0x1f5]: 8000 16000 32000 44100 48000 88200 96000
    bits [0x1e]: 16 20 24 32
    formats [0x3]: PCM FLOAT
  Power states:  D0 D3 EPSS
  Power: setting=D0, actual=D3
  Delay: 8 samples
  Connection: 3
     0x15* 0x17 0x19
Node 0x07 [Audio Input] wcaps 0x18051b: Stereo Amp-In
  Amp-In caps: ofs=0x33, nsteps=0x3f, stepsize=0x03, mute=1
  Amp-In vals:  [0x80 0x80] [0x80 0x80] [0x80 0x80]
  Converter: stream=0, channel=0
  SDI-Select: 0
  PCM:
    rates [0x1f5]: 8000 16000 32000 44100 48000 88200 96000
    bits [0x1e]: 16 20 24 32
    formats [0x3]: PCM FLOAT
  Power states:  D0 D3 EPSS
  Power: setting=D0, actual=D3
  Delay: 8 samples
  Connection: 3
     0x16* 0x18 0x1a
Node 0x08 [Audio Input] wcaps 0x18051b: Stereo Amp-In
  Amp-In caps: ofs=0x33, nsteps=0x3f, stepsize=0x03, mute=1
  Amp-In vals:  [0xb3 0xb3]
  Converter: stream=0, channel=0
  SDI-Select: 0
  PCM:
    rates [0x1f5]: 8000 16000 32000 44100 48000 88200 96000
    bits [0x1e]: 16 20 24 32
    formats [0x3]: PCM FLOAT
  Power states:  D0 D3 EPSS
  Power: setting=D0, actual=D0
  Delay: 8 samples
  Connection: 1
     0x1b
Node 0x09 [Audio Input] wcaps 0x18051b: Stereo Amp-In
  Control: name="Capture Volume", index=0, device=0
    ControlAmp: chs=3, dir=In, idx=1, ofs=0
  Control: name="Capture Switch", index=0, device=0
    ControlAmp: chs=3, dir=In, idx=1, ofs=0
  Amp-In caps: ofs=0x33, nsteps=0x3f, stepsize=0x03, mute=1
  Amp-In vals:  [0x3f 0x3f]
  Converter: stream=0, channel=0
  SDI-Select: 0
  PCM:
    rates [0x1f5]: 8000 16000 32000 44100 48000 88200 96000
    bits [0x1e]: 16 20 24 32
    formats [0x3]: PCM FLOAT
  Power states:  D0 D3 EPSS
  Power: setting=D0, actual=D0
  Delay: 8 samples
  Connection: 1
     0x1c
Node 0x0a [Audio Output] wcaps 0x46631: 8-Channels Digital Stripe
  Converter: stream=0, channel=0
  Digital:
  Digital category: 0x0
  IEC Coding Type: 0x0
  PCM:
    rates [0x60]: 44100 48000
    bits [0xe]: 16 20 24
    formats [0x1]: PCM
  Power states:  D0 D3 EPSS
  Power: setting=D0, actual=D0
  Delay: 4 samples
Node 0x0b [Audio Output] wcaps 0x46631: 8-Channels Digital Stripe
  Converter: stream=0, channel=0
  Digital:
  Digital category: 0x0
  IEC Coding Type: 0x0
  PCM:
    rates [0x60]: 44100 48000
    bits [0xe]: 16 20 24
    formats [0x1]: PCM
  Power states:  D0 D3 EPSS
  Power: setting=D0, actual=D0
  Delay: 4 samples
Node 0x0c [Audio Input] wcaps 0x136711: 8-Channels Digital
  Converter: stream=0, channel=0
  SDI-Select: 0
  Digital:
  Digital category: 0x0
  IEC Coding Type: 0x0
  PCM:
    rates [0x60]: 44100 48000
    bits [0x1e]: 16 20 24 32
    formats [0x1]: PCM
  Power states:  D0 D3 EPSS
  Power: setting=D0, actual=D0
  Delay: 3 samples
  Connection: 1
     0x1f
Node 0x0d [Audio Input] wcaps 0x136711: 8-Channels Digital
  Converter: stream=0, channel=0
  SDI-Select: 0
  Digital:
  Digital category: 0x0
  IEC Coding Type: 0x0
  PCM:
    rates [0x60]: 44100 48000
    bits [0x1e]: 16 20 24 32
    formats [0x1]: PCM
  Power states:  D0 D3 EPSS
  Power: setting=D0, actual=D0
  Delay: 3 samples
  Connection: 1
     0x20
Node 0x0e [Audio Output] wcaps 0x40631: Stereo Digital Stripe
  Converter: stream=0, channel=0
  Digital:
  Digital category: 0x0
  IEC Coding Type: 0x0
  PCM:
    rates [0x7f0]: 32000 44100 48000 88200 96000 176400 192000
    bits [0xe]: 16 20 24
    formats [0x5]: PCM AC3
  Power states:  D0 D3 EPSS
  Power: setting=D0, actual=D0
  Delay: 4 samples
Node 0x0f [Audio Input] wcaps 0x1b0791: Stereo Digital
  Converter: stream=0, channel=0
  SDI-Select: 0
  Digital:
  Digital category: 0x0
  IEC Coding Type: 0x0
  PCM:
    rates [0x5f0]: 32000 44100 48000 88200 96000 192000
    bits [0xe]: 16 20 24
    formats [0x5]: PCM AC3
  Unsolicited: tag=00, enabled=0
  Power states:  D0 D3 EPSS
  Power: setting=D0, actual=D0
  Delay: 11 samples
  Connection: 1
     0x22
Node 0x10 [Pin Complex] wcaps 0x40058d: Stereo Amp-Out
  Control: name="Headphone Playback Volume", index=0, device=0
    ControlAmp: chs=3, dir=Out, idx=0, ofs=0
  Control: name="Headphone Playback Switch", index=0, device=0
    ControlAmp: chs=3, dir=Out, idx=0, ofs=0
  Control: name="Headphone Jack", index=0, device=0
  Amp-Out caps: ofs=0x42, nsteps=0x42, stepsize=0x03, mute=1
  Amp-Out vals:  [0x0b 0x0b]
  Pincap 0x0000001c: OUT HP Detect
  Pin Default 0x002b4020: [Jack] HP Out at Ext N/A
    Conn = Comb, Color = Green
    DefAssociation = 0x2, Sequence = 0x0
  Pin-ctls: 0xc0: OUT HP
  Unsolicited: tag=01, enabled=1
  Power states:  D0 D3 EPSS
  Power: setting=D0, actual=D0
  Connection: 1
     0x02
Node 0x11 [Pin Complex] wcaps 0x400581: Stereo
  Pincap 0x00000054: OUT Detect Balanced
  Pin Default 0x400000f0: [N/A] Line Out at Ext N/A
    Conn = Unknown, Color = Unknown
    DefAssociation = 0xf, Sequence = 0x0
  Pin-ctls: 0x00:
  Unsolicited: tag=00, enabled=0
  Power states:  D0 D3 EPSS
  Power: setting=D0, actual=D0
  Connection: 1
     0x02
Node 0x12 [Pin Complex] wcaps 0x400501: Stereo
  Control: name="Speaker Phantom Jack", index=0, device=0
  Pincap 0x00000050: OUT Balanced
  Pin Default 0x90100110: [Fixed] Speaker at Int N/A
    Conn = Unknown, Color = Unknown
    DefAssociation = 0x1, Sequence = 0x0
    Misc = NO_PRESENCE
  Pin-ctls: 0x40: OUT
  Power states:  D0 D3 EPSS
  Power: setting=D0, actual=D0
  Connection: 1
     0x03
Node 0x13 [Pin Complex] wcaps 0x400501: Stereo
  Pincap 0x00000050: OUT Balanced
  Pin Default 0x400000f0: [N/A] Line Out at Ext N/A
    Conn = Unknown, Color = Unknown
    DefAssociation = 0xf, Sequence = 0x0
  Pin-ctls: 0x00:
  Power states:  D0 D3 EPSS
  Power: setting=D0, actual=D0
  Connection: 1
     0x04
Node 0x14 [Pin Complex] wcaps 0x400501: Stereo
  Pincap 0x00000050: OUT Balanced
  Pin Default 0x400000f0: [N/A] Line Out at Ext N/A
    Conn = Unknown, Color = Unknown
    DefAssociation = 0xf, Sequence = 0x0
  Pin-ctls: 0x00:
  Power states:  D0 D3 EPSS
  Power: setting=D0, actual=D0
  Connection: 1
     0x05
Node 0x15 [Pin Complex] wcaps 0x40040b: Stereo Amp-In
  Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x27, mute=0
  Amp-In vals:  [0x00 0x00]
  Pincap 0x00001720: IN
    Vref caps: HIZ 50 GRD 80
  Pin Default 0x400000f0: [N/A] Line Out at Ext N/A
    Conn = Unknown, Color = Unknown
    DefAssociation = 0xf, Sequence = 0x0
  Pin-ctls: 0x00: VREF_HIZ
  Power states:  D0 D3 EPSS
  Power: setting=D0, actual=D0
Node 0x16 [Pin Complex] wcaps 0x40040b: Stereo Amp-In
  Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x27, mute=0
  Amp-In vals:  [0x00 0x00]
  Pincap 0x00001720: IN
    Vref caps: HIZ 50 GRD 80
  Pin Default 0x400000f0: [N/A] Line Out at Ext N/A
    Conn = Unknown, Color = Unknown
    DefAssociation = 0xf, Sequence = 0x0
  Pin-ctls: 0x00: VREF_HIZ
  Power states:  D0 D3 EPSS
  Power: setting=D0, actual=D0
Node 0x17 [Pin Complex] wcaps 0x40048b: Stereo Amp-In
  Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x27, mute=0
  Amp-In vals:  [0x00 0x00]
  Pincap 0x00000024: IN Detect
  Pin Default 0x400000f0: [N/A] Line Out at Ext N/A
    Conn = Unknown, Color = Unknown
    DefAssociation = 0xf, Sequence = 0x0
  Pin-ctls: 0x00:
  Unsolicited: tag=00, enabled=0
  Power states:  D0 D3 EPSS
  Power: setting=D0, actual=D0
Node 0x18 [Pin Complex] wcaps 0x40048a: Mono Amp-In
  Control: name="Mic Boost Volume", index=0, device=0
    ControlAmp: chs=3, dir=In, idx=0, ofs=0
  Control: name="Mic Jack", index=0, device=0
  Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x27, mute=0
  Amp-In vals:  [0x00]
  Pincap 0x00001724: IN Detect
    Vref caps: HIZ 50 GRD 80
  Pin Default 0x00ab9030: [Jack] Mic at Ext N/A
    Conn = Comb, Color = Pink
    DefAssociation = 0x3, Sequence = 0x0
  Pin-ctls: 0x24: IN VREF_80
  Unsolicited: tag=02, enabled=1
  Power states:  D0 D3 EPSS
  Power: setting=D0, actual=D0
Node 0x19 [Pin Complex] wcaps 0x40000b: Stereo Amp-In
  Amp-In caps: ofs=0x00, nsteps=0x02, stepsize=0x27, mute=0
  Amp-In vals:  [0x00 0x00]
  Pincap 0x00000020: IN
  Pin Default 0x400000f0: [N/A] Line Out at Ext N/A
    Conn = Unknown, Color = Unknown
    DefAssociation = 0xf, Sequence = 0x0
  Pin-ctls: 0x00:
Node 0x1a [Pin Complex] wcaps 0x40000b: Stereo Amp-In
  Amp-In caps: ofs=0x00, nsteps=0x02, stepsize=0x27, mute=0
  Amp-In vals:  [0x00 0x00]
  Pincap 0x00000020: IN
  Pin Default 0x400000f0: [N/A] Line Out at Ext N/A
    Conn = Unknown, Color = Unknown
    DefAssociation = 0xf, Sequence = 0x0
  Pin-ctls: 0x00:
Node 0x1b [Pin Complex] wcaps 0x40000b: Stereo Amp-In
  Amp-In caps: ofs=0x00, nsteps=0x02, stepsize=0x27, mute=0
  Amp-In vals:  [0x00 0x00]
  Pincap 0x00000020: IN
  Pin Default 0x400000f0: [N/A] Line Out at Ext N/A
    Conn = Unknown, Color = Unknown
    DefAssociation = 0xf, Sequence = 0x0
  Pin-ctls: 0x00:
Node 0x1c [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=0x02, stepsize=0x27, mute=0
  Amp-In vals:  [0x02 0x02]
  Pincap 0x00000020: IN
  Pin Default 0x90a60100: [Fixed] Mic at Int N/A
    Conn = Digital, Color = Unknown
    DefAssociation = 0x0, Sequence = 0x0
    Misc = NO_PRESENCE
  Pin-ctls: 0x20: IN
Node 0x1d [Pin Complex] wcaps 0x406301: 8-Channels Digital
  Pincap 0x00000010: OUT
  Pin Default 0x400000f0: [N/A] Line Out at Ext N/A
    Conn = Unknown, Color = Unknown
    DefAssociation = 0xf, Sequence = 0x0
  Pin-ctls: 0x00:
  Connection: 1
     0x0a
Node 0x1e [Pin Complex] wcaps 0x406301: 8-Channels Digital
  Pincap 0x00000010: OUT
  Pin Default 0x400000f0: [N/A] Line Out at Ext N/A
    Conn = Unknown, Color = Unknown
    DefAssociation = 0xf, Sequence = 0x0
  Pin-ctls: 0x00:
  Connection: 1
     0x0b
Node 0x1f [Pin Complex] wcaps 0x406201: 8-Channels Digital
  Pincap 0x00000020: IN
  Pin Default 0x400000f0: [N/A] Line Out at Ext N/A
    Conn = Unknown, Color = Unknown
    DefAssociation = 0xf, Sequence = 0x0
  Pin-ctls: 0x00:
Node 0x20 [Pin Complex] wcaps 0x406201: 8-Channels Digital
  Pincap 0x00000020: IN
  Pin Default 0x400000f0: [N/A] Line Out at Ext N/A
    Conn = Unknown, Color = Unknown
    DefAssociation = 0xf, Sequence = 0x0
  Pin-ctls: 0x00:
Node 0x21 [Pin Complex] wcaps 0x400381: Stereo Digital
  Pincap 0x00000014: OUT Detect
  Pin Default 0x400000f0: [N/A] Line Out at Ext N/A
    Conn = Unknown, Color = Unknown
    DefAssociation = 0xf, Sequence = 0x0
  Pin-ctls: 0x00:
  Unsolicited: tag=00, enabled=0
  Connection: 1
     0x0e
Node 0x22 [Pin Complex] wcaps 0x400281: Stereo Digital
  Pincap 0x00000024: IN Detect
  Pin Default 0x400000f0: [N/A] Line Out at Ext N/A
    Conn = Unknown, Color = Unknown
    DefAssociation = 0xf, Sequence = 0x0
  Pin-ctls: 0x00:
  Unsolicited: tag=00, enabled=0
Node 0x23 [Beep Generator Widget] wcaps 0x700200: Mono Digital
Node 0x24 [Vendor Defined Widget] wcaps 0xf0e2c1: 16-Channels Digital
  Unsolicited: tag=00, enabled=0
  Processing caps: benign=0, ncoeff=128
--endcollapse--


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

crw-rw---T+ 1 root audio 116,  5 Sep 10 00:43 /dev/snd/controlC0
crw-rw---T+ 1 root audio 116,  4 Sep 10 00:43 /dev/snd/hwC0D0
crw-rw---T+ 1 root audio 116,  3 Sep 10 00:43 /dev/snd/pcmC0D0c
crw-rw---T+ 1 root audio 116,  2 Sep 10 00:43 /dev/snd/pcmC0D0p
crw-rw---T+ 1 root audio 116,  1 Sep 10 00:43 /dev/snd/seq
crw-rw---T+ 1 root audio 116, 33 Sep 10 00:43 /dev/snd/timer

/dev/snd/by-path:
total 0
drwxr-xr-x 2 root root  60 Sep 10 00:43 .
drwxr-xr-x 3 root root 180 Sep 10 00:43 ..
lrwxrwxrwx 1 root root  12 Sep 10 00:43 pci-0000:00:1b.0 -> ../controlC0


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

APLAY

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

ARECORD

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

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

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

Card hw:0 'PCH'/'HDA Intel PCH at 0xb0a14000 irq 66'
  Mixer name	: 'Cirrus Logic CS4208'
  Components	: 'HDA:10134208,106b7100,00100300'
  Controls      : 18
  Simple ctrls  : 8
Simple mixer control 'Master',0
  Capabilities: pvolume pvolume-joined pswitch pswitch-joined
  Playback channels: Mono
  Limits: Playback 0 - 66
  Mono: Playback 11 [17%] [-55.00dB] [on]
Simple mixer control 'Headphone',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 66
  Mono:
  Front Left: Playback 66 [100%] [0.00dB] [on]
  Front Right: Playback 66 [100%] [0.00dB] [on]
Simple mixer control 'Speaker',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 127
  Mono:
  Front Left: Playback 126 [99%] [0.50dB] [on]
  Front Right: Playback 126 [99%] [0.50dB] [on]
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 '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 'Capture',0
  Capabilities: cvolume cswitch
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 63
  Front Left: Capture 63 [100%] [12.00dB] [on]
  Front Right: Capture 63 [100%] [12.00dB] [on]
Simple mixer control 'Auto-Mute Mode',0
  Capabilities: enum
  Items: 'Disabled' 'Enabled'
  Item0: 'Enabled'
Simple mixer control 'Internal Mic Boost',0
  Capabilities: volume
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 2
  Front Left: 2 [100%] [20.00dB]
  Front Right: 2 [100%] [20.00dB]


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

--startcollapse--
state.PCH {
	control.1 {
		iface MIXER
		name 'Headphone Playback Volume'
		value.0 66
		value.1 66
		comment {
			access 'read write'
			type INTEGER
			count 2
			range '0 - 66'
			dbmin -6600
			dbmax 0
			dbvalue.0 0
			dbvalue.1 0
		}
	}
	control.2 {
		iface MIXER
		name 'Headphone Playback Switch'
		value.0 true
		value.1 true
		comment {
			access 'read write'
			type BOOLEAN
			count 2
		}
	}
	control.3 {
		iface MIXER
		name 'Speaker Playback Volume'
		value.0 126
		value.1 126
		comment {
			access 'read write'
			type INTEGER
			count 2
			range '0 - 127'
			dbmin -6350
			dbmax 0
			dbvalue.0 -50
			dbvalue.1 -50
		}
	}
	control.4 {
		iface MIXER
		name 'Speaker Playback Switch'
		value.0 true
		value.1 true
		comment {
			access 'read write'
			type BOOLEAN
			count 2
		}
	}
	control.5 {
		iface MIXER
		name 'Auto-Mute Mode'
		value Enabled
		comment {
			access 'read write'
			type ENUMERATED
			count 1
			item.0 Disabled
			item.1 Enabled
		}
	}
	control.6 {
		iface MIXER
		name 'Capture Volume'
		value.0 63
		value.1 63
		comment {
			access 'read write'
			type INTEGER
			count 2
			range '0 - 63'
			dbmin -5100
			dbmax 1200
			dbvalue.0 1200
			dbvalue.1 1200
		}
	}
	control.7 {
		iface MIXER
		name 'Capture Switch'
		value.0 true
		value.1 true
		comment {
			access 'read write'
			type BOOLEAN
			count 2
		}
	}
	control.8 {
		iface MIXER
		name 'Internal Mic Boost Volume'
		value.0 2
		value.1 2
		comment {
			access 'read write'
			type INTEGER
			count 2
			range '0 - 2'
			dbmin 0
			dbmax 2000
			dbvalue.0 2000
			dbvalue.1 2000
		}
	}
	control.9 {
		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 3000
			dbvalue.0 0
			dbvalue.1 0
		}
	}
	control.10 {
		iface MIXER
		name 'Master Playback Volume'
		value 11
		comment {
			access 'read write'
			type INTEGER
			count 1
			range '0 - 66'
			dbmin -6600
			dbmax 0
			dbvalue.0 -5500
		}
	}
	control.11 {
		iface MIXER
		name 'Master Playback Switch'
		value true
		comment {
			access 'read write'
			type BOOLEAN
			count 1
		}
	}
	control.12 {
		iface CARD
		name 'Internal Mic Phantom Jack'
		value true
		comment {
			access read
			type BOOLEAN
			count 1
		}
	}
	control.13 {
		iface CARD
		name 'Mic Jack'
		value false
		comment {
			access read
			type BOOLEAN
			count 1
		}
	}
	control.14 {
		iface CARD
		name 'Headphone Jack'
		value false
		comment {
			access read
			type BOOLEAN
			count 1
		}
	}
	control.15 {
		iface CARD
		name 'Speaker Phantom Jack'
		value true
		comment {
			access read
			type BOOLEAN
			count 1
		}
	}
	control.16 {
		iface PCM
		name 'Playback Channel Map'
		value.0 0
		value.1 0
		comment {
			access read
			type INTEGER
			count 2
			range '0 - 36'
		}
	}
	control.17 {
		iface PCM
		name 'Capture Channel Map'
		value.0 0
		value.1 0
		comment {
			access read
			type INTEGER
			count 2
			range '0 - 36'
		}
	}
	control.18 {
		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
rfcomm
bnep
binfmt_misc
hfsplus
nls_utf8
nls_cp437
vfat
fat
loop
fuse
dm_crypt
dm_mod
btusb
bluetooth
hid_generic
coretemp
kvm_intel
hid_apple
bcm5974
kvm
snd_hda_codec_cirrus
usbhid
hid
lib80211_crypt_tkip
i915
snd_hda_intel
snd_hda_codec
iTCO_wdt
iTCO_vendor_support
evdev
snd_hwdep
snd_pcm
applesmc
wl
input_polldev
snd_page_alloc
snd_seq
snd_seq_device
snd_timer
battery
pcspkr
cfg80211
snd
video
i2c_algo_bit
drm_kms_helper
microcode
drm
ac
apple_bl
i2c_i801
lpc_ich
button
mfd_core
acpi_cpufreq
rfkill
mperf
mei_me
lib80211
processor
mei
i2c_core
thermal_sys
soundcore
ext4
crc16
jbd2
mbcache
sg
sd_mod
crc_t10dif
crc32c_intel
ghash_clmulni_intel
aesni_intel
aes_x86_64
glue_helper
lrw
gf128mul
ablk_helper
cryptd
xhci_hcd
ahci
libahci
libata
usbcore
scsi_mod
usb_common


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

/sys/class/sound/hwC0D0/init_pin_configs:
0x10 0x002b4020
0x11 0x400000f0
0x12 0x90100110
0x13 0x400000f0
0x14 0x400000f0
0x15 0x400000f0
0x16 0x400000f0
0x17 0x400000f0
0x18 0x00ab9030
0x19 0x400000f0
0x1a 0x400000f0
0x1b 0x400000f0
0x1c 0x90a60100
0x1d 0x400000f0
0x1e 0x400000f0
0x1f 0x400000f0
0x20 0x400000f0
0x21 0x400000f0
0x22 0x400000f0

/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:


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

[    6.169599] INFO @wl_cfg80211_attach : Registered CFG80211 phy
[    6.174691] hda-intel Haswell must build in CONFIG_SND_HDA_I915
[    6.174778] hda-intel Error request power-well from i915
[    6.175277] snd_hda_intel 0000:00:1b.0: irq 66 for MSI/MSI-X
[    6.176569] lib80211_crypt: registered algorithm 'TKIP'
--
[    6.192871] microcode: CPU2 sig=0x40651, pf=0x40, revision=0x11
[    6.196573] input: HDA Intel PCH Headphone as /devices/pci0000:00/0000:00:1b.0/sound/card0/input5
[    6.196765] input: HDA Intel PCH Mic as /devices/pci0000:00/0000:00:1b.0/sound/card0/input6
[    6.197383] usbcore: registered new interface driver usbhid
--
[   22.865766] WARNING: CPU: 3 PID: 3032 at net/wireless/sme.c:922 cfg80211_connect+0x3b/0x385 [cfg80211]()
[   22.865771] Modules linked in: rfcomm bnep binfmt_misc hfsplus nls_utf8 nls_cp437 vfat fat loop fuse dm_crypt dm_mod btusb bluetooth hid_generic coretemp kvm_intel hid_apple bcm5974 kvm snd_hda_codec_cirrus usbhid hid lib80211_crypt_tkip i915 snd_hda_intel snd_hda_codec iTCO_wdt iTCO_vendor_support evdev snd_hwdep snd_pcm applesmc wl(PO) input_polldev snd_page_alloc snd_seq snd_seq_device snd_timer battery pcspkr cfg80211 snd video i2c_algo_bit drm_kms_helper microcode drm ac apple_bl i2c_i801 lpc_ich button mfd_core acpi_cpufreq rfkill mperf mei_me lib80211 processor mei i2c_core thermal_sys soundcore ext4 crc16 jbd2 mbcache sg sd_mod crc_t10dif crc32c_intel ghash_clmulni_intel aesni_intel aes_x86_64 glue_helper lrw gf128mul ablk_helper cryptd xhci_hcd ahci libahci libata usbcore scsi_mod usb_common
[   22.865879] CPU: 3 PID: 3032 Comm: iwconfig Tainted: P           O 3.11.0-rc6+ #12
--
[   22.873697] WARNING: CPU: 3 PID: 3033 at net/wireless/sme.c:922 cfg80211_connect+0x3b/0x385 [cfg80211]()
[   22.873701] Modules linked in: rfcomm bnep binfmt_misc hfsplus nls_utf8 nls_cp437 vfat fat loop fuse dm_crypt dm_mod btusb bluetooth hid_generic coretemp kvm_intel hid_apple bcm5974 kvm snd_hda_codec_cirrus usbhid hid lib80211_crypt_tkip i915 snd_hda_intel snd_hda_codec iTCO_wdt iTCO_vendor_support evdev snd_hwdep snd_pcm applesmc wl(PO) input_polldev snd_page_alloc snd_seq snd_seq_device snd_timer battery pcspkr cfg80211 snd video i2c_algo_bit drm_kms_helper microcode drm ac apple_bl i2c_i801 lpc_ich button mfd_core acpi_cpufreq rfkill mperf mei_me lib80211 processor mei i2c_core thermal_sys soundcore ext4 crc16 jbd2 mbcache sg sd_mod crc_t10dif crc32c_intel ghash_clmulni_intel aesni_intel aes_x86_64 glue_helper lrw gf128mul ablk_helper cryptd xhci_hcd ahci libahci libata usbcore scsi_mod usb_common
[   22.873811] CPU: 3 PID: 3033 Comm: iwconfig Tainted: P        W  O 3.11.0-rc6+ #12
--
[   26.155850] WARNING: CPU: 1 PID: 3030 at net/wireless/sme.c:922 cfg80211_connect+0x3b/0x385 [cfg80211]()
[   26.155854] Modules linked in: rfcomm bnep binfmt_misc hfsplus nls_utf8 nls_cp437 vfat fat loop fuse dm_crypt dm_mod btusb bluetooth hid_generic coretemp kvm_intel hid_apple bcm5974 kvm snd_hda_codec_cirrus usbhid hid lib80211_crypt_tkip i915 snd_hda_intel snd_hda_codec iTCO_wdt iTCO_vendor_support evdev snd_hwdep snd_pcm applesmc wl(PO) input_polldev snd_page_alloc snd_seq snd_seq_device snd_timer battery pcspkr cfg80211 snd video i2c_algo_bit drm_kms_helper microcode drm ac apple_bl i2c_i801 lpc_ich button mfd_core acpi_cpufreq rfkill mperf mei_me lib80211 processor mei i2c_core thermal_sys soundcore ext4 crc16 jbd2 mbcache sg sd_mod crc_t10dif crc32c_intel ghash_clmulni_intel aesni_intel aes_x86_64 glue_helper lrw gf128mul ablk_helper cryptd xhci_hcd ahci libahci libata usbcore scsi_mod usb_common
[   26.155966] CPU: 1 PID: 3030 Comm: wpa_supplicant Tainted: P        W  O 3.11.0-rc6+ #12



[-- Attachment #4: Type: text/plain, Size: 0 bytes --]



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

* Re: No sound from internal speaker on 2013 Macbook Air 6, 1
  2013-09-09 14:48               ` Ian Munsie
@ 2013-09-09 14:58                 ` Takashi Iwai
  2013-09-09 15:48                   ` Ian Munsie
  0 siblings, 1 reply; 17+ messages in thread
From: Takashi Iwai @ 2013-09-09 14:58 UTC (permalink / raw)
  To: Ian Munsie; +Cc: Raymond Yau, ALSA Development Mailing List

At Tue, 10 Sep 2013 00:48:53 +1000,
Ian Munsie wrote:
> 
> Hi Takashi,
> 
> On 10 September 2013 00:08, Takashi Iwai <tiwai@suse.de> wrote:
> > The speaker should be muted.  But better to check without PulseAudio,
> > as the recent PA itself may do the automute by checking the jack state
> > controls.
> >
> > In anyway, give alsa-info.sh outputs before and after plugging the
> > headphone.
> 
> I've attached both runs of alsa-info.sh, though it looks like there
> was no change in the output after plugging in the headphones.
> 
> Let me know what else I can do.

Check the value output by

   hda-verb /dev/snd/hwC0D0 0x10 SET_PIN_SENSE 0
   hda-verb /dev/snd/hwC0D0 0x10 GET_PIN_SENSE 0

before and after plugging the headphone.
Normally, the second line should show 0x80000000 after plugging the
jack.

If it shows only zero for both plug/unplug, either the headphone pin
assignment is wrong or the jack detection is broken.  In the former
case, you can check by adjusting the headphone volume or mute mixer
control and see whether it really happens on the machine.


Takashi

> 
> Cheers,
> -Ian
> 
> -- 
> http://sites.google.com/site/DarkStarJunkSpace
> --
> http://darkstarshout.blogspot.com/
> --
> Please avoid sending me Word or PowerPoint attachments.
> See http://www.gnu.org/philosophy/no-word-attachments.html
> [2 alsa-info.txt.VcBI1bV5oy <application/octet-stream (base64)>]
> 
> [3 alsa-info-headphones.txt.KeF9YbarKG <application/octet-stream (base64)>]
> 

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

* Re: No sound from internal speaker on 2013 Macbook Air 6, 1
  2013-09-09 14:58                 ` Takashi Iwai
@ 2013-09-09 15:48                   ` Ian Munsie
  2013-09-09 16:05                     ` Takashi Iwai
  2013-09-09 16:24                     ` Raymond Yau
  0 siblings, 2 replies; 17+ messages in thread
From: Ian Munsie @ 2013-09-09 15:48 UTC (permalink / raw)
  To: Takashi Iwai; +Cc: Raymond Yau, ALSA Development Mailing List

Hi Takashi,

> Check the value output by
>
>    hda-verb /dev/snd/hwC0D0 0x10 SET_PIN_SENSE 0
>    hda-verb /dev/snd/hwC0D0 0x10 GET_PIN_SENSE 0
>
> before and after plugging the headphone.
> Normally, the second line should show 0x80000000 after plugging the
> jack.

Doesn't look like it:

ian@button~ [i]> sudo hda-verb /dev/snd/hwC0D0 0x10 SET_PIN_SENSE 0
nid = 0x10, verb = 0x709, param = 0x0
value = 0x0
ian@button~ [i]> sudo hda-verb /dev/snd/hwC0D0 0x10 GET_PIN_SENSE 0
nid = 0x10, verb = 0xf09, param = 0x0
value = 0x0

<plug in headphones>

ian@button~ [i]> sudo hda-verb /dev/snd/hwC0D0 0x10 SET_PIN_SENSE 0
nid = 0x10, verb = 0x709, param = 0x0
value = 0x0
ian@button~ [i]> sudo hda-verb /dev/snd/hwC0D0 0x10 GET_PIN_SENSE 0
nid = 0x10, verb = 0xf09, param = 0x0
value = 0x0

> If it shows only zero for both plug/unplug, either the headphone pin
> assignment is wrong or the jack detection is broken.  In the former
> case, you can check by adjusting the headphone volume or mute mixer
> control and see whether it really happens on the machine.

I can confirm that adjusting the headphone volume & mute with
alsamixer does correctly adjust the headphone volume, so I guess the
jack detection isn't working.

It seems that pulseaudio was doing some funny things with the mute
controls (muting any one of headphones, speakers & master would mute
all three & all would have to be individually unmuted before getting
sound again - I guess pulseaudio doesn't expect anyone to adjust the
sound card mixer directly while it is running), so I temporarily
uninstalled it again for this test.


One other weird thing I noticed while testing this is that setting the
volume to 0% and/or muting does the controls does not seem to
completely mute the sound - it is just really quiet (quiet enough not
to be an issue for me). Some observations:

__Speakers__
Master: Mute AND/OR Speakers: Mute
--> Speakers are muted.

Master: 0% AND Speakers: 0%
--> Sound still comes from speakers, but is very quiet.

Master: 0%
--> speaker control affects volume.

__Headphones__
Master: 0% AND/OR Headphones: 0%
--> Sound still comes from headphones at low volume
(if either control is 0%, the volume of the other control has no
effect - both have to be non-zero to raise the volume).

Master: Mute AND/OR Headphones: Mute
--> Sound still comes from headphones, though is fairly quiet (much
lower than 0%).

Cheers,
-Ian

-- 
http://sites.google.com/site/DarkStarJunkSpace
--
http://darkstarshout.blogspot.com/
--
Please avoid sending me Word or PowerPoint attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html

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

* Re: No sound from internal speaker on 2013 Macbook Air 6, 1
  2013-09-09 15:48                   ` Ian Munsie
@ 2013-09-09 16:05                     ` Takashi Iwai
  2013-09-09 16:30                       ` Ian Munsie
  2013-09-09 16:24                     ` Raymond Yau
  1 sibling, 1 reply; 17+ messages in thread
From: Takashi Iwai @ 2013-09-09 16:05 UTC (permalink / raw)
  To: Ian Munsie; +Cc: Raymond Yau, ALSA Development Mailing List

At Tue, 10 Sep 2013 01:48:05 +1000,
Ian Munsie wrote:
> 
> Hi Takashi,
> 
> > Check the value output by
> >
> >    hda-verb /dev/snd/hwC0D0 0x10 SET_PIN_SENSE 0
> >    hda-verb /dev/snd/hwC0D0 0x10 GET_PIN_SENSE 0
> >
> > before and after plugging the headphone.
> > Normally, the second line should show 0x80000000 after plugging the
> > jack.
> 
> Doesn't look like it:
> 
> ian@button~ [i]> sudo hda-verb /dev/snd/hwC0D0 0x10 SET_PIN_SENSE 0
> nid = 0x10, verb = 0x709, param = 0x0
> value = 0x0
> ian@button~ [i]> sudo hda-verb /dev/snd/hwC0D0 0x10 GET_PIN_SENSE 0
> nid = 0x10, verb = 0xf09, param = 0x0
> value = 0x0
> 
> <plug in headphones>
> 
> ian@button~ [i]> sudo hda-verb /dev/snd/hwC0D0 0x10 SET_PIN_SENSE 0
> nid = 0x10, verb = 0x709, param = 0x0
> value = 0x0
> ian@button~ [i]> sudo hda-verb /dev/snd/hwC0D0 0x10 GET_PIN_SENSE 0
> nid = 0x10, verb = 0xf09, param = 0x0
> value = 0x0

OK, then the normal jack detection doesn't work with this machine, as
it seems.  You can try the above to all pins for checking if any of
other pins reacts to the headphone jack.


> > If it shows only zero for both plug/unplug, either the headphone pin
> > assignment is wrong or the jack detection is broken.  In the former
> > case, you can check by adjusting the headphone volume or mute mixer
> > control and see whether it really happens on the machine.
> 
> I can confirm that adjusting the headphone volume & mute with
> alsamixer does correctly adjust the headphone volume, so I guess the
> jack detection isn't working.
> 
> It seems that pulseaudio was doing some funny things with the mute
> controls (muting any one of headphones, speakers & master would mute
> all three & all would have to be individually unmuted before getting
> sound again - I guess pulseaudio doesn't expect anyone to adjust the
> sound card mixer directly while it is running), so I temporarily
> uninstalled it again for this test.
> 
> 
> One other weird thing I noticed while testing this is that setting the
> volume to 0% and/or muting does the controls does not seem to
> completely mute the sound - it is just really quiet (quiet enough not
> to be an issue for me). Some observations:
> 
> __Speakers__
> Master: Mute AND/OR Speakers: Mute
> --> Speakers are muted.
> 
> Master: 0% AND Speakers: 0%
> --> Sound still comes from speakers, but is very quiet.
> 
> Master: 0%
> --> speaker control affects volume.
> 
> __Headphones__
> Master: 0% AND/OR Headphones: 0%
> --> Sound still comes from headphones at low volume
> (if either control is 0%, the volume of the other control has no
> effect - both have to be non-zero to raise the volume).
> 
> Master: Mute AND/OR Headphones: Mute
> --> Sound still comes from headphones, though is fairly quiet (much
> lower than 0%).

The volume 0% doesn't mean that the volume is muted.
But if the mute switch is set, it must mute the corresponding output.
If not, it means that the codec lies, or the actual output doesn't
come from the pin BIOS advertised.


Takashi

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

* Re: No sound from internal speaker on 2013 Macbook Air 6, 1
  2013-09-09 15:48                   ` Ian Munsie
  2013-09-09 16:05                     ` Takashi Iwai
@ 2013-09-09 16:24                     ` Raymond Yau
  2013-09-09 16:32                       ` Ian Munsie
  1 sibling, 1 reply; 17+ messages in thread
From: Raymond Yau @ 2013-09-09 16:24 UTC (permalink / raw)
  To: Ian Munsie; +Cc: Takashi Iwai, ALSA Development Mailing List

>
>
> One other weird thing I noticed while testing this is that setting the
> volume to 0% and/or muting does the controls does not seem to
> completely mute the sound - it is just really quiet (quiet enough not
> to be an issue for me). Some observations:
>
> __Speakers__
> Master: Mute AND/OR Speakers: Mute
> --> Speakers are muted.
>
> Master: 0% AND Speakers: 0%
> --> Sound still comes from speakers, but is very quiet.
>
> Master: 0%
> --> speaker control affects volume.
>
> __Headphones__
> Master: 0% AND/OR Headphones: 0%
> --> Sound still comes from headphones at low volume
> (if either control is 0%, the volume of the other control has no
> effect - both have to be non-zero to raise the volume).
>
> Master: Mute AND/OR Headphones: Mute
> --> Sound still comes from headphones, though is fairly quiet (much
> lower than 0%).
>

Because the driver select the amp at the pin complex of the headphone
instead of the amp at the audio output

These amps have different dB min

Node 0x02 [Audio Output] wcaps 0xd043d: Stereo Amp-Out Stripe
  Device: name="ID 4208 Analog", type="Audio", device=0
  Amp-Out caps: ofs=0x7f, nsteps=0x7f, stepsize=0x01, mute=1
  Amp-Out vals:  [0x7f 0x7f]
  Converter: stream=8, channel=0
  PCM:
    rates [0x7f0]: 32000 44100 48000 88200 96000 176400 192000
    bits [0x1e]: 16 20 24 32
    formats [0x3]: PCM FLOAT
  Power states:  D0 D3 EPSS
  Power: setting=D0, actual=D0
  Delay: 13 samples
Node 0x03 [Audio Output] wcaps 0xd043d: Stereo Amp-Out Stripe
  Control: name="Speaker Playback Volume", index=0, device=0
    ControlAmp: chs=3, dir=Out, idx=0, ofs=0
  Control: name="Speaker Playback Switch", index=0, device=0
    ControlAmp: chs=3, dir=Out, idx=0, ofs=0
  Amp-Out caps: ofs=0x7f, nsteps=0x7f, stepsize=0x01, mute=1
  Amp-Out vals:  [0x7f 0x7f]
  Converter: stream=8, channel=0
  PCM:
    rates [0x7f0]: 32000 44100 48000 88200 96000 176400 192000
    bits [0x1e]: 16 20 24 32
    formats [0x3]: PCM FLOAT
  Power states:  D0 D3 EPSS
  Power: setting=D0, actual=D0
  Delay: 13 samples

Node 0x10 [Pin Complex] wcaps 0x40058d: Stereo Amp-Out
  Control: name="Headphone Playback Volume", index=0, device=0
    ControlAmp: chs=3, dir=Out, idx=0, ofs=0
  Control: name="Headphone Playback Switch", index=0, device=0
    ControlAmp: chs=3, dir=Out, idx=0, ofs=0
  Control: name="Headphone Jack", index=0, device=0
  Amp-Out caps: ofs=0x42, nsteps=0x42, stepsize=0x03, mute=1
  Amp-Out vals:  [0x42 0x42]
  Pincap 0x0000001c: OUT HP Detect
  Pin Default 0x032b401f: [Jack] HP Out at Ext Left
    Conn = Comb, Color = Green
    DefAssociation = 0x1, Sequence = 0xf
  Pin-ctls: 0xc0: OUT HP
  Unsolicited: tag=01, enabled=1
  Power states:  D0 D3 EPSS
  Power: setting=D0, actual=D0
  Connection: 1
     0x02

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

* Re: No sound from internal speaker on 2013 Macbook Air 6, 1
  2013-09-09 16:05                     ` Takashi Iwai
@ 2013-09-09 16:30                       ` Ian Munsie
  2013-09-13 13:00                         ` Takashi Iwai
  0 siblings, 1 reply; 17+ messages in thread
From: Ian Munsie @ 2013-09-09 16:30 UTC (permalink / raw)
  To: Takashi Iwai; +Cc: Raymond Yau, ALSA Development Mailing List

> OK, then the normal jack detection doesn't work with this machine, as
> it seems.  You can try the above to all pins for checking if any of
> other pins reacts to the headphone jack.

No luck I'm afraid - none of the other pins seem to react to the
headphones. Is there anything else you can think of that I can try
tomorrow?

Cheers,
-Ian

-- 
http://sites.google.com/site/DarkStarJunkSpace
--
http://darkstarshout.blogspot.com/
--
Please avoid sending me Word or PowerPoint attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html

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

* Re: No sound from internal speaker on 2013 Macbook Air 6, 1
  2013-09-09 16:24                     ` Raymond Yau
@ 2013-09-09 16:32                       ` Ian Munsie
  0 siblings, 0 replies; 17+ messages in thread
From: Ian Munsie @ 2013-09-09 16:32 UTC (permalink / raw)
  To: Raymond Yau; +Cc: Takashi Iwai, ALSA Development Mailing List

Hi Raymond,

> Because the driver select the amp at the pin complex of the headphone
> instead of the amp at the audio output
>
> These amps have different dB min

Ahh - this is starting to make sense to me now. I'll have to look at
look_for_out_vol_nid like you suggested tomorrow.

Cheers,
-Ian

-- 
http://sites.google.com/site/DarkStarJunkSpace
--
http://darkstarshout.blogspot.com/
--
Please avoid sending me Word or PowerPoint attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html

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

* Re: No sound from internal speaker on 2013 Macbook Air 6, 1
  2013-09-09 16:30                       ` Ian Munsie
@ 2013-09-13 13:00                         ` Takashi Iwai
  0 siblings, 0 replies; 17+ messages in thread
From: Takashi Iwai @ 2013-09-13 13:00 UTC (permalink / raw)
  To: Ian Munsie; +Cc: Raymond Yau, ALSA Development Mailing List

At Tue, 10 Sep 2013 02:30:27 +1000,
Ian Munsie wrote:
> 
> > OK, then the normal jack detection doesn't work with this machine, as
> > it seems.  You can try the above to all pins for checking if any of
> > other pins reacts to the headphone jack.
> 
> No luck I'm afraid - none of the other pins seem to react to the
> headphones. Is there anything else you can think of that I can try
> tomorrow?

Well, it might be notified via GPIO.  Try to read GPIO pins except for
GPIO0.  That is, set the all unmasked, the direction to READ.

   hda-verb /dev/snd/hwC0D0 GPIO_SET_MASK 0x3f
   hda-verb /dev/snd/hwC0D0 GPIO_SET_DIR 0x01

Then read the values before and after the jack plug / unplug:

   hda-verb /dev/snd/hwC0D0 GPIO_GET_DATA 0


BTW, I'll be in a short leave in the next week, so the reply will be
delayed.


Takashi

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

* Re: No sound from internal speaker on 2013 Macbook Air 6, 1
@ 2013-09-16  9:44 Ben Whitten
  0 siblings, 0 replies; 17+ messages in thread
From: Ben Whitten @ 2013-09-16  9:44 UTC (permalink / raw)
  To: alsa-devel

> > > OK, then the normal jack detection doesn't work with this machine, as
> > > it seems.  You can try the above to all pins for checking if any of
> > > other pins reacts to the headphone jack.
> >
> > No luck I'm afraid - none of the other pins seem to react to the
> > headphones. Is there anything else you can think of that I can try
> > tomorrow?
>
> Well, it might be notified via GPIO.  Try to read GPIO pins except for
> GPIO0.  That is, set the all unmasked, the direction to READ.

We have found that jack sense comes in on the headphone pin in a windows
bootcamp install. However this bit isn't set in linux using either the
default chip, bootloader, or windows pin configs. No other GPIO's are
enabled in windows.

Ben

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

end of thread, other threads:[~2013-09-16  9:44 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-08-24 13:25 No sound from internal speaker on 2013 Macbook Air 6, 1 Ian Munsie
2013-08-26  1:55 ` Raymond Yau
2013-09-09  8:01   ` Ian Munsie
2013-09-09  9:03     ` Takashi Iwai
2013-09-09  9:44       ` Ian Munsie
2013-09-09  9:48         ` Takashi Iwai
2013-09-09 13:26           ` Ian Munsie
2013-09-09 14:08             ` Takashi Iwai
2013-09-09 14:48               ` Ian Munsie
2013-09-09 14:58                 ` Takashi Iwai
2013-09-09 15:48                   ` Ian Munsie
2013-09-09 16:05                     ` Takashi Iwai
2013-09-09 16:30                       ` Ian Munsie
2013-09-13 13:00                         ` Takashi Iwai
2013-09-09 16:24                     ` Raymond Yau
2013-09-09 16:32                       ` Ian Munsie
  -- strict thread matches above, loose matches on Subject: below --
2013-09-16  9:44 Ben Whitten

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).