Bug 66081 - No sound on Asus W7J laptop
No sound on Asus W7J laptop
Status: RESOLVED CODE_FIX
Product: Drivers
Classification: Unclassified
Component: Sound(ALSA)
i386 Linux
: P1 normal
Assigned To: Jaroslav Kysela
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-11-28 16:45 UTC by Andrey Lipaev
Modified: 2013-11-29 15:24 UTC (History)
1 user (show)

See Also:
Kernel Version: 3.2.45
Tree: Mainline
Regression: No


Attachments
output of alsa_utils_alsa-info.sh for 3.2.45 kernel (20.73 KB, application/octet-stream)
2013-11-28 16:45 UTC, Andrey Lipaev
Details
the output from alsa_utils_alsa-info.sh for 3.12 (23.08 KB, application/octet-stream)
2013-11-28 17:11 UTC, Andrey Lipaev
Details
Test fix patch (1.10 KB, patch)
2013-11-28 17:36 UTC, Takashi Iwai
Details | Diff
The output of alsa_utils_alsa-info.sh (23.08 KB, application/octet-stream)
2013-11-29 08:56 UTC, Andrey Lipaev
Details
Old nice 3.0.85 sings greate both speakers and phones. (21.60 KB, text/plain)
2013-11-29 09:30 UTC, Andrey Lipaev
Details
The output from alsa_utils_alsa-info.sh after all hda... commands executed (21.60 KB, application/octet-stream)
2013-11-29 10:37 UTC, Andrey Lipaev
Details
Fix patch for outputs (1.71 KB, patch)
2013-11-29 11:51 UTC, Takashi Iwai
Details | Diff
Fixed fix patch (1.93 KB, patch)
2013-11-29 12:42 UTC, Takashi Iwai
Details | Diff
something still wrong after the second patch (23.08 KB, text/plain)
2013-11-29 14:35 UTC, Andrey Lipaev
Details
Corrected patch (1.95 KB, patch)
2013-11-29 14:39 UTC, Takashi Iwai
Details | Diff

Description Andrey Lipaev 2013-11-28 16:45:24 UTC
Created attachment 116581 [details]
output of alsa_utils_alsa-info.sh for 3.2.45 kernel

No sound on Asus W7J laptop on kernel 3.2 and high.
On 3.0 and early one need:
"modprobe snd-hda-intel model=asus-laptop"
for normal sound.

output of alsa_utils_alsa-info.sh for 3.0.101 kernel:
----------------------------------------------------
upload=true&script=true&cardinfo=
!!################################
!!ALSA Information Script v 0.4.62
!!################################

!!Script ran on: Thu Nov 28 16:29:05 UTC 2013


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

NAME=Slackware ID=slackware PRETTY_NAME="Slackware 14.0" CPE_NAME="cpe:/o:slackware:slackware_linux:14.0" HOME_URL="http://slackware.com/" SUPPORT_URL="http://www.linuxquestions.org/questions/slackware-14/" BUG_REPORT_URL="http://www.linuxquestions.org/questions/slackware-14/" Slackware 14.0


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

Manufacturer:      ASUSTeK Computer Inc.
Product Name:      W7J                 
Product Version:   1.0       
Firmware Version:  305    


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

Kernel release:    3.0.85-smp
Operating System:  GNU/Linux
Architecture:      i686
Processor:         Intel(R) Core(TM)2 CPU         T7200  @ 2.00GHz
SMP Enabled:       Yes


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

Driver version:     1.0.24
Library version:    1.0.26
Utilities version:  1.0.26


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

snd_hda_intel


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

ESound Daemon:
      Installed - Yes (/usr/bin/esd)
      Running - No


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

 0 [Intel          ]: HDA-Intel - HDA Intel
                      HDA Intel at 0xfebf8000 irq 45


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

00:1b.0 Audio device: Intel Corporation N10/ICH 7 Family High Definition Audio Controller (rev 02)


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

00:1b.0 0403: 8086:27d8 (rev 02)
	Subsystem: 1043:1253
--
	Prefetchable memory behind bridge: 0000000040200000-00000000403fffff
	Secondary status: 66MHz- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- <SERR- <PERR-
--
	Prefetchable memory behind bridge: 0000000040000000-00000000401fffff
	Secondary status: 66MHz- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- <SERR- <PERR-


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

snd_hda_intel: model=asus-laptop


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

!!Module: snd_hda_intel
	bdl_pos_adj : 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
	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
	model : asus-laptop,(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 : 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
	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


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

Codec: Realtek ALC660
Address: 0
AFG Function Id: 0x1 (unsol 0)
Vendor Id: 0x10ec0861
Subsystem Id: 0x10431205
Revision Id: 0x100340
No Modem Function Group found
Default PCM:
    rates [0x140]: 48000 96000
    bits [0xe]: 16 20 24
    formats [0x1]: PCM
Default Amp-In caps: N/A
Default Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
GPIO: io=0, o=0, i=0, unsolicited=0, wake=0
Node 0x03 [Audio Output] wcaps 0x405: Stereo Amp-Out
  Control: name="Master Playback Switch", index=0, device=0
    ControlAmp: chs=3, dir=Out, idx=0, ofs=0
  Device: name="ALC660 Analog", type="Audio", device=0
  Amp-Out caps: N/A
  Amp-Out vals:  [0x00 0x00]
  Converter: stream=0, channel=0
  Power states:  D0 D1 D2 D3
  Power: setting=D0, actual=D0
Node 0x04 [Audio Output] wcaps 0x405: Stereo Amp-Out
  Amp-Out caps: N/A
  Amp-Out vals:  [0x00 0x00]
  Converter: stream=0, channel=0
  Power states:  D0 D1 D2 D3
  Power: setting=D0, actual=D0
Node 0x05 [Audio Output] wcaps 0x405: Stereo Amp-Out
  Amp-Out caps: N/A
  Amp-Out vals:  [0x00 0x00]
  Converter: stream=0, channel=0
  Power states:  D0 D1 D2 D3
  Power: setting=D0, actual=D0
Node 0x06 [Audio Output] wcaps 0x405: Stereo Amp-Out
  Amp-Out caps: N/A
  Amp-Out vals:  [0x00 0x00]
  Converter: stream=0, channel=0
  Power states:  D0 D1 D2 D3
  Power: setting=D0, actual=D0
Node 0x07 [Audio Output] wcaps 0x605: Stereo Digital Amp-Out
  Control: name="IEC958 Playback Con Mask", index=0, device=0
  Control: name="IEC958 Playback Pro Mask", index=0, device=0
  Control: name="IEC958 Playback Default", index=0, device=0
  Control: name="IEC958 Playback Switch", index=0, device=0
  Control: name="IEC958 Default PCM Playback Switch", index=0, device=0
  Device: name="ALC660 Digital", type="SPDIF", device=1
  Amp-Out caps: N/A
  Amp-Out vals:  [0x00 0x00]
  Converter: stream=0, channel=0
  Digital:
  Digital category: 0x0
  Power states:  D0 D1 D2 D3
  Power: setting=D0, actual=D0
Node 0x08 [Audio Input] wcaps 0x10051b: Stereo Amp-In
  Control: name="Input Source", index=0, device=0
  Control: name="Capture Switch", index=0, device=0
  Control: name="Capture Volume", index=0, device=0
  Device: name="ALC660 Analog", type="Audio", device=0
  Amp-In caps: ofs=0x02, nsteps=0x0d, stepsize=0x0b, mute=1
  Amp-In vals:  [0x06 0x06] [0x06 0x06] [0x06 0x06] [0x06 0x06] [0x06 0x06] [0x06 0x06]
  Converter: stream=0, channel=0
  SDI-Select: 0
  PCM:
    rates [0x140]: 48000 96000
    bits [0x2]: 16
    formats [0x1]: PCM
  Power states:  D0 D1 D2 D3
  Power: setting=D0, actual=D0
  Connection: 6
     0x0d* 0x0c 0x0f 0x10 0x11 0x15
Node 0x09 [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x0a [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x0b [Pin Complex] wcaps 0x400581: Stereo
  Pincap 0x0000001f: OUT HP Detect Trigger ImpSense
  Pin Default 0x01214110: [Jack] HP Out at Ext Rear
    Conn = 1/8, Color = Green
    DefAssociation = 0x1, Sequence = 0x0
    Misc = NO_PRESENCE
  Pin-ctls: 0x40: OUT
  Unsolicited: tag=00, enabled=0
  Power states:  D0 D1 D2 D3
  Power: setting=D0, actual=D0
  Connection: 1
     0x16
Node 0x0c [Pin Complex] wcaps 0x400581: Stereo
  Pincap 0x00000037: IN OUT Detect Trigger ImpSense
  Pin Default 0x411111f0: [N/A] Speaker at Ext Rear
    Conn = 1/8, Color = Black
    DefAssociation = 0xf, Sequence = 0x0
    Misc = NO_PRESENCE
  Pin-ctls: 0x20: IN
  Unsolicited: tag=00, enabled=0
  Power states:  D0 D1 D2 D3
  Power: setting=D0, actual=D0
  Connection: 1
     0x19
Node 0x0d [Pin Complex] wcaps 0x400581: Stereo
  Pincap 0x00000337: IN OUT Detect Trigger ImpSense
    Vref caps: HIZ 50
  Pin Default 0x01a1993e: [Jack] Mic at Ext Rear
    Conn = 1/8, Color = Pink
    DefAssociation = 0x3, Sequence = 0xe
    Misc = NO_PRESENCE
  Pin-ctls: 0x24: IN VREF_80
  Unsolicited: tag=00, enabled=0
  Power states:  D0 D1 D2 D3
  Power: setting=D0, actual=D0
  Connection: 1
     0x18
Node 0x0e [Pin Complex] wcaps 0x400581: Stereo
  Pincap 0x00000017: OUT Detect Trigger ImpSense
  Pin Default 0x411111f0: [N/A] Speaker at Ext Rear
    Conn = 1/8, Color = Black
    DefAssociation = 0xf, Sequence = 0x0
    Misc = NO_PRESENCE
  Pin-ctls: 0x40: OUT
  Unsolicited: tag=00, enabled=0
  Power states:  D0 D1 D2 D3
  Power: setting=D0, actual=D0
  Connection: 1
     0x19
Node 0x0f [Pin Complex] wcaps 0x400581: Stereo
  Pincap 0x0000033f: IN OUT HP Detect Trigger ImpSense
    Vref caps: HIZ 50
  Pin Default 0x411111f0: [N/A] Speaker at Ext Rear
    Conn = 1/8, Color = Black
    DefAssociation = 0xf, Sequence = 0x0
    Misc = NO_PRESENCE
  Pin-ctls: 0x45: OUT VREF_100
  Unsolicited: tag=00, enabled=0
  Power states:  D0 D1 D2 D3
  Power: setting=D0, actual=D0
  Connection: 1
     0x1a
Node 0x10 [Pin Complex] wcaps 0x400581: Stereo
  Pincap 0x0000033f: IN OUT HP Detect Trigger ImpSense
    Vref caps: HIZ 50
  Pin Default 0x411111f0: [N/A] Speaker at Ext Rear
    Conn = 1/8, Color = Black
    DefAssociation = 0xf, Sequence = 0x0
    Misc = NO_PRESENCE
  Pin-ctls: 0x24: IN VREF_80
  Unsolicited: tag=00, enabled=0
  Power states:  D0 D1 D2 D3
  Power: setting=D0, actual=D0
  Connection: 1
     0x1b
Node 0x11 [Pin Complex] wcaps 0x400001: Stereo
  Pincap 0x00000063: IN Balanced Trigger ImpSense
  Pin Default 0x99330130: [Fixed] CD at Int ATAPI
    Conn = ATAPI, Color = Unknown
    DefAssociation = 0x3, Sequence = 0x0
    Misc = NO_PRESENCE
  Pin-ctls: 0x00:
Node 0x12 [Pin Complex] wcaps 0x400301: Stereo Digital
  Pincap 0x00000010: OUT
  Pin Default 0x99430120: [Fixed] SPDIF Out at Int ATAPI
    Conn = ATAPI, Color = Unknown
    DefAssociation = 0x2, Sequence = 0x0
    Misc = NO_PRESENCE
  Pin-ctls: 0x40: OUT
  Connection: 1
     0x07
Node 0x13 [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x14 [Audio Mixer] wcaps 0x20010b: Stereo Amp-In
  Amp-In caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
  Amp-In vals:  [0x00 0x00] [0x00 0x00]
  Connection: 2
     0x0d 0x10
Node 0x15 [Audio Mixer] wcaps 0x20050f: Stereo Amp-In Amp-Out
  Control: name="Mic Playback Volume", index=0, device=0
    ControlAmp: chs=3, dir=In, idx=1, ofs=0
  Control: name="Mic Playback Switch", index=0, device=0
    ControlAmp: chs=3, dir=In, idx=1, ofs=0
  Control: name="CD Playback Volume", index=0, device=0
    ControlAmp: chs=3, dir=In, idx=0, ofs=0
  Control: name="CD Playback Switch", index=0, device=0
    ControlAmp: chs=3, dir=In, idx=0, ofs=0
  Amp-In caps: ofs=0x0c, nsteps=0x17, stepsize=0x0b, mute=1
  Amp-In vals:  [0x80 0x80] [0x00 0x00] [0x80 0x80]
  Amp-Out caps: ofs=0x0c, nsteps=0x0c, stepsize=0x0b, mute=1
  Amp-Out vals:  [0x0c 0x0c]
  Power states:  D0 D1 D2 D3
  Power: setting=D0, actual=D0
  Connection: 3
     0x11 0x14 0x1c
Node 0x16 [Audio Mixer] wcaps 0x20010b: Stereo Amp-In
  Amp-In caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
  Amp-In vals:  [0x00 0x00] [0x00 0x00]
  Connection: 2
     0x03 0x15
Node 0x17 [Audio Mixer] wcaps 0x20010b: Stereo Amp-In
  Amp-In caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
  Amp-In vals:  [0x00 0x00] [0x00 0x00]
  Connection: 2
     0x04 0x15
Node 0x18 [Audio Mixer] wcaps 0x20010b: Stereo Amp-In
  Amp-In caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
  Amp-In vals:  [0x00 0x00] [0x00 0x00]
  Connection: 2
     0x05 0x15
Node 0x19 [Audio Mixer] wcaps 0x20010b: Stereo Amp-In
  Amp-In caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
  Amp-In vals:  [0x00 0x00] [0x00 0x00]
  Connection: 2
     0x06 0x15
Node 0x1a [Audio Mixer] wcaps 0x20010b: Stereo Amp-In
  Amp-In caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
  Amp-In vals:  [0x80 0x80] [0x80 0x80] [0x00 0x00] [0x00 0x00]
  Connection: 4
     0x04 0x06 0x15 0x03
Node 0x1b [Audio Mixer] wcaps 0x20010b: Stereo Amp-In
  Amp-In caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
  Amp-In vals:  [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80]
  Connection: 4
     0x04 0x06 0x15 0x03
Node 0x1c [Audio Mixer] wcaps 0x20010b: Stereo Amp-In
  Amp-In caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
  Amp-In vals:  [0x00 0x00] [0x00 0x00]
  Connection: 2
     0x0c 0x0f
Node 0x1d [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x1e [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x1f [Pin Complex] wcaps 0x400581: Stereo
  Pincap 0x00000017: OUT Detect Trigger ImpSense
  Pin Default 0x411111f0: [N/A] Speaker at Ext Rear
    Conn = 1/8, Color = Black
    DefAssociation = 0xf, Sequence = 0x0
    Misc = NO_PRESENCE
  Pin-ctls: 0x40: OUT
  Unsolicited: tag=00, enabled=0
  Power states:  D0 D1 D2 D3
  Power: setting=D0, actual=D0
  Connection: 1
     0x18
Node 0x20 [Pin Complex] wcaps 0x400581: Stereo
  Pincap 0x00000017: OUT Detect Trigger ImpSense
  Pin Default 0x411111f0: [N/A] Speaker at Ext Rear
    Conn = 1/8, Color = Black
    DefAssociation = 0xf, Sequence = 0x0
    Misc = NO_PRESENCE
  Pin-ctls: 0x40: OUT
  Unsolicited: tag=00, enabled=0
  Power states:  D0 D1 D2 D3
  Power: setting=D0, actual=D0
  Connection: 1
     0x17
Node 0x21 [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x22 [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x23 [Beep Generator Widget] wcaps 0x70000c: Mono Amp-Out
  Amp-Out caps: ofs=0x0f, nsteps=0x0f, stepsize=0x0b, mute=1
  Amp-Out vals:  [0x8f]
Codec: Motorola Si3054
Address: 1
MFG Function Id: 0x2 (unsol 1)
Vendor Id: 0x10573055
Subsystem Id: 0x104310c6
Revision Id: 0x100700
Modem Function Group: 0x1
--endcollapse--


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

crw-rw---- 1 root audio 116,  9 Nov 28 20:27 /dev/snd/controlC0
crw-rw---- 1 root audio 116,  8 Nov 28 20:27 /dev/snd/hwC0D0
crw-rw---- 1 root audio 116,  7 Nov 28 20:27 /dev/snd/hwC0D1
crw-rw---- 1 root audio 116,  6 Nov 28 20:27 /dev/snd/pcmC0D0c
crw-rw---- 1 root audio 116,  5 Nov 28 20:27 /dev/snd/pcmC0D0p
crw-rw---- 1 root audio 116,  4 Nov 28 20:27 /dev/snd/pcmC0D1p
crw-rw---- 1 root audio 116,  3 Nov 28 20:27 /dev/snd/pcmC0D6c
crw-rw---- 1 root audio 116,  2 Nov 28 20:27 /dev/snd/pcmC0D6p
crw-rw---- 1 root audio 116,  1 Nov 28 20:27 /dev/snd/seq
crw-rw---- 1 root audio 116, 33 Nov 28 20:27 /dev/snd/timer

/dev/snd/by-path:
total 0
drwxr-xr-x 2 root root  60 Nov 29  2013 .
drwxr-xr-x 3 root root 260 Nov 29  2013 ..
lrwxrwxrwx 1 root root  12 Nov 28 20:27 pci-0000:00:1b.0 -> ../controlC0


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

APLAY

**** List of PLAYBACK Hardware Devices ****
card 0: Intel [HDA Intel], device 0: ALC660 Analog [ALC660 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: Intel [HDA Intel], device 1: ALC660 Digital [ALC660 Digital]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: Intel [HDA Intel], device 6: Si3054 Modem [Si3054 Modem]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

ARECORD

**** List of CAPTURE Hardware Devices ****
card 0: Intel [HDA Intel], device 0: ALC660 Analog [ALC660 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: Intel [HDA Intel], device 6: Si3054 Modem [Si3054 Modem]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

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

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

Card hw:0 'Intel'/'HDA Intel at 0xfebf8000 irq 45'
  Mixer name	: 'Realtek ALC660'
  Components	: 'HDA:10ec0861,10431205,00100340 HDA:10573055,104310c6,00100700'
  Controls      : 16
  Simple ctrls  : 10
Simple mixer control 'Master',0
  Capabilities: pswitch
  Playback channels: Front Left - Front Right
  Mono:
  Front Left: Playback [on]
  Front Right: Playback [on]
Simple mixer control 'PCM',0
  Capabilities: pvolume
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 255
  Mono:
  Front Left: Playback 237 [93%] [-3.60dB]
  Front Right: Playback 237 [93%] [-3.60dB]
Simple mixer control 'CD',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 23
  Mono:
  Front Left: Playback 0 [0%] [-36.00dB] [off]
  Front Right: Playback 0 [0%] [-36.00dB] [off]
Simple mixer control 'Mic',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 23
  Mono:
  Front Left: Playback 0 [0%] [-36.00dB] [on]
  Front Right: Playback 0 [0%] [-36.00dB] [on]
Simple mixer control 'IEC958',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [off]
Simple mixer control 'IEC958 Default PCM',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [on]
Simple mixer control 'Capture',0
  Capabilities: cvolume cswitch
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 13
  Front Left: Capture 6 [46%] [12.00dB] [on]
  Front Right: Capture 6 [46%] [12.00dB] [on]
Simple mixer control 'Caller ID',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [off]
Simple mixer control 'Input Source',0
  Capabilities: cenum
  Items: 'Mic' 'Front Mic' 'Line' 'CD' 'Mixer'
  Item0: 'Mic'
Simple mixer control 'Off-hook',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [off]


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

--startcollapse--
state.Intel {
	control.1 {
		iface MIXER
		name 'Master Playback Switch'
		value.0 true
		value.1 true
		comment {
			access 'read write'
			type BOOLEAN
			count 2
		}
	}
	control.2 {
		iface MIXER
		name 'Mic Playback Volume'
		value.0 0
		value.1 0
		comment {
			access 'read write'
			type INTEGER
			count 2
			range '0 - 23'
			dbmin -3600
			dbmax 3300
			dbvalue.0 -3600
			dbvalue.1 -3600
		}
	}
	control.3 {
		iface MIXER
		name 'Mic Playback Switch'
		value.0 true
		value.1 true
		comment {
			access 'read write'
			type BOOLEAN
			count 2
		}
	}
	control.4 {
		iface MIXER
		name 'CD Playback Volume'
		value.0 0
		value.1 0
		comment {
			access 'read write'
			type INTEGER
			count 2
			range '0 - 23'
			dbmin -3600
			dbmax 3300
			dbvalue.0 -3600
			dbvalue.1 -3600
		}
	}
	control.5 {
		iface MIXER
		name 'CD Playback Switch'
		value.0 false
		value.1 false
		comment {
			access 'read write'
			type BOOLEAN
			count 2
		}
	}
	control.6 {
		iface MIXER
		name 'Capture Switch'
		value.0 true
		value.1 true
		comment {
			access 'read write'
			type BOOLEAN
			count 2
		}
	}
	control.7 {
		iface MIXER
		name 'Capture Volume'
		value.0 6
		value.1 6
		comment {
			access 'read write'
			type INTEGER
			count 2
			range '0 - 13'
			dbmin -600
			dbmax 3300
			dbvalue.0 1200
			dbvalue.1 1200
		}
	}
	control.8 {
		iface MIXER
		name 'Input Source'
		value Mic
		comment {
			access 'read write'
			type ENUMERATED
			count 1
			item.0 Mic
			item.1 'Front Mic'
			item.2 Line
			item.3 CD
			item.4 Mixer
		}
	}
	control.9 {
		iface MIXER
		name 'IEC958 Playback Con Mask'
		value '0fff000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'
		comment {
			access read
			type IEC958
			count 1
		}
	}
	control.10 {
		iface MIXER
		name 'IEC958 Playback Pro Mask'
		value '0f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'
		comment {
			access read
			type IEC958
			count 1
		}
	}
	control.11 {
		iface MIXER
		name 'IEC958 Playback Default'
		value '0400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'
		comment {
			access 'read write'
			type IEC958
			count 1
		}
	}
	control.12 {
		iface MIXER
		name 'IEC958 Playback Switch'
		value false
		comment {
			access 'read write'
			type BOOLEAN
			count 1
		}
	}
	control.13 {
		iface MIXER
		name 'IEC958 Default PCM Playback Switch'
		value true
		comment {
			access 'read write'
			type BOOLEAN
			count 1
		}
	}
	control.14 {
		iface MIXER
		name 'Off-hook Switch'
		value false
		comment {
			access 'read write'
			type BOOLEAN
			count 1
		}
	}
	control.15 {
		iface MIXER
		name 'Caller ID Switch'
		value false
		comment {
			access 'read write'
			type BOOLEAN
			count 1
		}
	}
	control.16 {
		iface MIXER
		name 'PCM Playback Volume'
		value.0 237
		value.1 237
		comment {
			access 'read write user'
			type INTEGER
			count 2
			range '0 - 255'
			tlv '0000000100000008ffffec1400000014'
			dbmin -5100
			dbmax 0
			dbvalue.0 -360
			dbvalue.1 -360
		}
	}
}
--endcollapse--


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

Module
snd_seq_dummy
snd_seq_oss
snd_seq_midi_event
snd_seq
snd_seq_device
snd_pcm_oss
snd_mixer_oss
rfcomm
bnep
xt_limit
xt_pkttype
ipv6
xt_tcpudp
ipt_LOG
xt_conntrack
iptable_mangle
iptable_nat
iptable_filter
nf_conntrack_irc
nf_nat_ftp
nf_conntrack_ftp
nf_nat
nf_conntrack_ipv4
nf_defrag_ipv4
nf_conntrack
ip_tables
x_tables
nls_utf8
isofs
cpufreq_ondemand
acpi_cpufreq
mperf
freq_table
fuse
dm_mod
btusb
gspca_sn9c20x
gspca_main
videodev
bluetooth
nouveau
r852
sm_common
nand
mxm_wmi
iwl3945
wmi
iwl_legacy
ttm
drm_kms_helper
nand_ecc
nand_bch
drm
bch
snd_hda_codec_si3054
snd_hda_codec_realtek
joydev
firewire_ohci
mac80211
firewire_core
snd_hda_intel
snd_hda_codec
snd_hwdep
snd_pcm
snd_page_alloc
sdhci_pci
asus_laptop
nand_ids
i2c_algo_bit
i2c_core
sdhci
r592
mmc_core
memstick
processor
video
thermal
snd_timer
cfg80211
sparse_keymap
snd
rfkill
r8169
intel_agp
intel_gtt
agpgart
mtd
soundcore
psmouse
serio_raw
battery
ac
fan
button
uhci_hcd
thermal_sys
hwmon
ehci_hcd
evdev
mii
loop


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

/sys/class/sound/hwC0D0/init_pin_configs:
0x0b 0x01214110
0x0c 0x411111f0
0x0d 0x01a1993e
0x0e 0x411111f0
0x0f 0x411111f0
0x10 0x411111f0
0x11 0x99330130
0x12 0x99430120
0x1f 0x411111f0
0x20 0x411111f0

/sys/class/sound/hwC0D0/driver_pin_configs:

/sys/class/sound/hwC0D0/user_pin_configs:

/sys/class/sound/hwC0D0/init_verbs:

/sys/class/sound/hwC0D0/hints:

/sys/class/sound/hwC0D1/init_pin_configs:

/sys/class/sound/hwC0D1/driver_pin_configs:

/sys/class/sound/hwC0D1/user_pin_configs:

/sys/class/sound/hwC0D1/init_verbs:

/sys/class/sound/hwC0D1/hints:


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

I'll be glad to experiment with. 
PS: Kernel 3.10.17 doesn't work as well.
Comment 1 Takashi Iwai 2013-11-28 16:52:46 UTC
Too old kernel.  Please try 3.12.
Comment 2 Andrey Lipaev 2013-11-28 17:11:07 UTC
Created attachment 116591 [details]
the output from alsa_utils_alsa-info.sh for 3.12
Comment 3 Andrey Lipaev 2013-11-28 17:12:10 UTC
kernel 3.12.0 - no sound still
Comment 4 Andrey Lipaev 2013-11-28 17:14:18 UTC
I can try 3.12.1 if you think it will help
Comment 5 Takashi Iwai 2013-11-28 17:23:16 UTC
Thanks.  Could you try to run the following and retest?

   hda-verb /dev/snd/hwC0D0 0x0f SET_PIN_WID 0x45

hda-verb should be included in the recent alsa-utils.  Or it can be taken from the URL found in Documentation/sound/alsa/HD-Audio.txt.

Also, which output did you test?  From the headphone or from the built-in speaker?
Comment 6 Takashi Iwai 2013-11-28 17:36:07 UTC
If the hda-verb command above works, the patch below should fix the issue permanently.
Comment 7 Takashi Iwai 2013-11-28 17:36:30 UTC
Created attachment 116601 [details]
Test fix patch
Comment 8 Andrey Lipaev 2013-11-29 08:54:43 UTC
Thanks, but it doesn't help.
I found myself easy to rebuild the kernel with the patch proposed.
The headphone and the built-in speaker are both quiet (no sound).
The output of alsa_utils_alsa-info.sh for patched 3.12 attached.
Comment 9 Andrey Lipaev 2013-11-29 08:56:01 UTC
Created attachment 116651 [details]
The output of alsa_utils_alsa-info.sh
Comment 10 Andrey Lipaev 2013-11-29 09:15:14 UTC
I found hda-verb. Actually it sits in alsa-tools.
I can try it as well, but now it seems no sense?
Next try? :) Should I revert to original stock 3.12?
Comment 11 Takashi Iwai 2013-11-29 09:18:57 UTC
Do you still have the old working kernel (3.0 or 3.1)?  If you can run such a kernel and confirm that the sound is working on them, please test it and take alsa-info.sh output again while you're listening.

It'd be helpful for comparing with the latest results.
Comment 12 Andrey Lipaev 2013-11-29 09:30:42 UTC
Created attachment 116661 [details]
Old nice 3.0.85 sings greate both speakers and phones.
Comment 13 Takashi Iwai 2013-11-29 10:09:32 UTC
Thanks for a quick action!

Maybe we should tackle from a different direction, as long as you have a good running kernel.  Try the following on 3.0.x kernel.  Test playback for each command until you hit the silence:

- hda-verb /dev/snd/hwC0D0 0x04 SET_AMP 0xb080
- hda-verb /dev/snd/hwC0D0 0x05 SET_AMP 0xb080
- hda-verb /dev/snd/hwC0D0 0x06 SET_AMP 0xb080
- hda-verb /dev/snd/hwC0D0 0x1a SET_AMP 0x7380
- hda-verb /dev/snd/hwC0D0 0x0b SET_PIN_WID 0x40
- hda-verb /dev/snd/hwC0D0 0x0d SET_PIN_WID 0x24
- hda-verb /dev/snd/hwC0D0 0x10 SET_PIN_WID 0x24
- hda-verb /dev/snd/hwC0D0 0x17 SET_AMP 0x7080
- hda-verb /dev/snd/hwC0D0 0x18 SET_AMP 0x7080
- hda-verb /dev/snd/hwC0D0 0x19 SET_AMP 0x7080
- hda-verb /dev/snd/hwC0D0 0x1c SET_AMP 0x7180
Comment 14 Andrey Lipaev 2013-11-29 10:31:32 UTC
It sings still after all commands given :(
Comment 15 Takashi Iwai 2013-11-29 10:34:31 UTC
Interesting.  Could you take alsa-info.sh output again after all commands applied?
Comment 16 Andrey Lipaev 2013-11-29 10:37:43 UTC
Created attachment 116671 [details]
The output from alsa_utils_alsa-info.sh after all hda... commands executed
Comment 17 Takashi Iwai 2013-11-29 10:48:49 UTC
Sorry, there were typos in SET_PIN_WID values.  Try the following:
   hda-verb /dev/snd/hwC0D0 0x0b SET_PIN_WID 0xc0
   hda-verb /dev/snd/hwC0D0 0x0d SET_PIN_WID 0x21
   hda-verb /dev/snd/hwC0D0 0x10 SET_PIN_WID 0x20
   hda-verb /dev/snd/hwC0D0 0x0f SET_PIN_WID 0x00

In addition, performing below should put the completely same state:
   hda-verb /dev/snd/hwC0D0 0x14 SET_AMP 0x7180
   hda-verb /dev/snd/hwC0D0 0x15 SET_AMP 0x7080
   hda-verb /dev/snd/hwC0D0 0x17 SET_AMP 0x7180
   hda-verb /dev/snd/hwC0D0 0x18 SET_AMP 0x7180
   hda-verb /dev/snd/hwC0D0 0x19 SET_AMP 0x7180
   hda-verb /dev/snd/hwC0D0 0x1a SET_AMP 0x7280
Comment 18 Andrey Lipaev 2013-11-29 10:53:28 UTC
"hda-verb /dev/snd/hwC0D0 0x10 SET_PIN_WID 0x20" - killed sound on 3.0.85

after the second commands set it's still silent.
Comment 19 Takashi Iwai 2013-11-29 11:01:55 UTC
Great, finally nailed down!  (I wonder what did ASUS engineers smoke :)

Putting 0x24 instead of 0x20 should recover the sound.  Please test it.
Also, please check whether the hack for NID 0x0f is still needed.  That is,
   hda-verb /dev/snd/hwC0D0 0x0f SET_PIN_WID 0x00

does it break sound output on 3.0.x?  If this has no influence, throw away my previous patch.

The next step will be to boot 3.12 (no matter whether patched for NID 0x0f), and run:
   hda-verb /dev/snd/hwC0D0 0x10 SET_PIN_WID 0x24

and check whether the sound works now.
Comment 20 Andrey Lipaev 2013-11-29 11:21:44 UTC
Great! :) in 3.12 execution of 

"hda-verb /dev/snd/hwC0D0 0x10 SET_PIN_WID 0x24"

 gives voice. After that i run 

"hda-verb /dev/snd/hwC0D0 0x0f SET_PIN_WID 0x00"

and it still sings. Thanks! Can you prepare patch for kernel?
I hope it should work for my distro kernel as well?
My distro slack 14.1 runs 3.10.17.
Comment 21 Andrey Lipaev 2013-11-29 11:44:15 UTC
Sorry! but seems micro also connected wrong?
Comment 22 Takashi Iwai 2013-11-29 11:51:07 UTC
(In reply to lipaev from comment #21)
> Sorry! but seems micro also connected wrong?

What do you mean?  The microphone input doesn't work?
Comment 23 Takashi Iwai 2013-11-29 11:51:48 UTC
Created attachment 116691 [details]
Fix patch for outputs
Comment 24 Andrey Lipaev 2013-11-29 11:54:55 UTC
(In reply to Takashi Iwai from comment #22)
> (In reply to lipaev from comment #21)
> > Sorry! but seems micro also connected wrong?
> 
> What do you mean?  The microphone input doesn't work?

looks like, trying to check more careful.
what would be the correct testing way from your pov?
Comment 25 Andrey Lipaev 2013-11-29 11:58:51 UTC
(In reply to lipaev from comment #24)
> (In reply to Takashi Iwai from comment #22)
> > (In reply to lipaev from comment #21)
> > > Sorry! but seems micro also connected wrong?
> > 
> > What do you mean?  The microphone input doesn't work?
> 
> looks like, trying to check more careful.
> what would be the correct testing way from your pov?

Sorry micro works. mistyping :(
Comment 26 Takashi Iwai 2013-11-29 12:00:02 UTC
At best, use bare arecord and amixer commands:

- amixer -c0 set Capture cap 12dB
- amixer -c0 set Mic cap
- arecord -Dhw -fdat -vv foo.wav

Are you testing with the built-in mic, or a mic jack?
Comment 27 Takashi Iwai 2013-11-29 12:00:55 UTC
(In reply to lipaev from comment #25)
> (In reply to lipaev from comment #24)
> > (In reply to Takashi Iwai from comment #22)
> > > (In reply to lipaev from comment #21)
> > > > Sorry! but seems micro also connected wrong?
> > > 
> > > What do you mean?  The microphone input doesn't work?
> > 
> > looks like, trying to check more careful.
> > what would be the correct testing way from your pov?
> 
> Sorry micro works. mistyping :(

OK, it's fine as long as it's working :)
If everything is OK, I'm going to merge the patch in comment 23 to the upstream.
Comment 28 Andrey Lipaev 2013-11-29 12:02:47 UTC
(In reply to Takashi Iwai from comment #27)
> (In reply to lipaev from comment #25)
> > (In reply to lipaev from comment #24)
> > > (In reply to Takashi Iwai from comment #22)
> > > > (In reply to lipaev from comment #21)
> > > > > Sorry! but seems micro also connected wrong?
> > > > 
> > > > What do you mean?  The microphone input doesn't work?
> > > 
> > > looks like, trying to check more careful.
> > > what would be the correct testing way from your pov?
> > 
> > Sorry micro works. mistyping :(
> 
> OK, it's fine as long as it's working :)
> If everything is OK, I'm going to merge the patch in comment 23 to the
> upstream.

Shell i test the patch first?
Comment 29 Takashi Iwai 2013-11-29 12:04:49 UTC
It would be great.  Also, you can give you credit as tested-by tag,
  Reported-and-tested-by: Foo Bar <your@mail.com>
in the patch changelog.
Comment 30 Andrey Lipaev 2013-11-29 12:27:07 UTC
  CC [M]  sound/pci/hda/patch_realtek.o
sound/pci/hda/patch_realtek.c:4230:3: error: ‘ALC660_FIXUP_ASUS_W7J’ undeclared here (not in a function)
  [ALC660_FIXUP_ASUS_W7J] = {
   ^
sound/pci/hda/patch_realtek.c:4230:2: error: array index in initializer not of integer type
  [ALC660_FIXUP_ASUS_W7J] = {
  ^
sound/pci/hda/patch_realtek.c:4230:2: error: (near initialization for ‘alc861_fixups’)
make[3]: *** [sound/pci/hda/patch_realtek.o] Error 1
make[2]: *** [sound/pci/hda] Error 2
make[1]: *** [sound/pci] Error 2
make: *** [sound] Error 2
Comment 31 Andrey Lipaev 2013-11-29 12:41:07 UTC
seems ALC660_FIXUP_ASUS_W7J forgotten to put in:
--------------------------------
/* Pin config fixes */
enum {
        ALC861_FIXUP_FSC_AMILO_PI1505,
        ALC861_FIXUP_AMP_VREF_0F,
        ALC861_FIXUP_NO_JACK_DETECT,
        ALC861_FIXUP_ASUS_A6RP,
        ALC660_FIXUP_ASUS_W7J,
};
-----------------------------------
Comment 32 Takashi Iwai 2013-11-29 12:42:13 UTC
Oops, yes, I attached the version before I refreshed.  The fixed one is below.
(It's exactly as same as what you added in comment 31.)
Comment 33 Takashi Iwai 2013-11-29 12:42:39 UTC
Created attachment 116711 [details]
Fixed fix patch
Comment 34 Andrey Lipaev 2013-11-29 14:35:25 UTC
Created attachment 116751 [details]
something still wrong after the second patch

Sorry, but something is going wrong still :(

I applied your patch to vanilla 3.12.0,
recompile it and install modules and kernel itself.
Boot... no sound :(

After 
hda-verb /dev/snd/hwC0D0 0x10 SET_PIN_WID 0x24
sound came back. ???
alsa-info i did run afterward (output included).
Should i reboot and run "alsa-info" before "hda-verb"?
Comment 35 Takashi Iwai 2013-11-29 14:39:04 UTC
My bad, there was one line missing in the fixup code.
The corrected patch is attached below.  Sorry for inconvenience.
Comment 36 Takashi Iwai 2013-11-29 14:39:25 UTC
Created attachment 116761 [details]
Corrected patch
Comment 37 Andrey Lipaev 2013-11-29 15:12:27 UTC
Thank you. It works nice now.
I guess it should work as well for my distro (slack 14.1) original kernel (3.10.17)?
You said it would be good to put a credit. How should i do it? Probably i should do it somewhere in bugzilla? can you please give me a hint where?
Thank you once again :) If you'll find something interesting to test let me know please.
Comment 38 Takashi Iwai 2013-11-29 15:14:17 UTC
Just fill a line below with real information in the bugzilla comment:
   Reported-and-tested-by: Your Name <your@name.com>

Then I'll include the line in the patch to be merged to the upstream.
Comment 39 Andrey Lipaev 2013-11-29 15:17:05 UTC
Reported-and-tested-by: Andrey Lipaev lipaev@mail.ru
Comment 40 Takashi Iwai 2013-11-29 15:24:11 UTC
Thanks.  The patch is merged now to sound git tree.
It'll be included in 3.13-rc3 (rc2 request was already sent), and will be backported to stable kernels appropriately.

Note You need to log in before you can comment on or make changes to this bug.