Bug 115481 - No stereo sound from standard side headphone-jack - but only weak MONO sound from port 0x15 at the back - ALC260 snd-hda-intel on Vaio VGN-A497XP (32bit) on MATE 16.4 Final Beta
Summary: No stereo sound from standard side headphone-jack - but only weak MONO sound ...
Status: RESOLVED DOCUMENTED
Alias: None
Product: Drivers
Classification: Unclassified
Component: Sound(ALSA) (show other bugs)
Hardware: i386 Linux
: P1 normal
Assignee: Jaroslav Kysela
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-03-29 14:21 UTC by a.granowski
Modified: 2016-03-31 21:31 UTC (History)
2 users (show)

See Also:
Kernel Version: 4.4.0-15-generic #31-Ubuntu SMP Fri Mar 18 19:06:37 UTC 2016 i686 i686 i686 GNU/Linux
Subsystem:
Regression: No
Bisected commit-id:


Attachments

Description a.granowski 2016-03-29 14:21:22 UTC
Fresh install of Ubuntu 16.4 MATE (Final Beta). No stereo sound from standard side headphone-jack, but there is a weak, noisy MONO sound available from a line-out at the back.
Tried to resolve this together with Raymond (superquad-vortex2) at
https://bugs.launchpad.net/ubuntu/+source/alsa-driver/+bug/1562396

Summary of current position:
No stereo sound from standard side headphone-jack.
Weak (reduced volume), noisy (crackling) MONO sound from port 0x15 at the back:
/* LINE-2 is used for line-out in rear */
- {0x15, AC_VERB_SET_PIN_WIDGET_CONTROL, PIN_OUT}

==============================================================================
https://git.kernel.org/cgit/linux/kernel/git/tiwai/sound.git/tree/sound/pci/hda/alc260_quirks.c?id=c29b3f6dd7798964d77199af4925be72a3a48349


This is a regression of removing static model of alc260, hence
filing upstream bug report at bugzilla.kernel.org
==============================================================================

Fuller details of what has been tried and results from running a diagnostic script from:
wget -O alsa-info.sh http://www.alsa-project.org/alsa-info.sh && chmod +x ./alsa-info.sh && ./alsa-info.sh
are pasted below.

$aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: Intel [HDA Intel], device 0: ALC260 Analog [ALC260 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: Intel [HDA Intel], device 1: ALC260 Digital [ALC260 Digital]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

$ lspci -v
00:00.0 Host bridge: Intel Corporation Mobile 915GM/PM/GMS/910GML Express Processor to DRAM Controller (rev 03)
 Subsystem: Sony Corporation Vaio VGN-S3XP
 Flags: bus master, fast devsel, latency 0
 Capabilities: <access denied>

00:01.0 PCI bridge: Intel Corporation Mobile 915GM/PM Express PCI Express Root Port (rev 03) (prog-if 00 [Normal decode])
 Flags: bus master, fast devsel, latency 0, IRQ 24
 Bus: primary=00, secondary=03, subordinate=03, sec-latency=0
 I/O behind bridge: 0000a000-0000cfff
 Memory behind bridge: fea00000-feafffff
 Prefetchable memory behind bridge: cff00000-dfefffff
 Capabilities: <access denied>
 Kernel driver in use: pcieport
 Kernel modules: shpchp

00:1b.0 Audio device: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) High Definition Audio Controller (rev 03)
 Subsystem: Sony Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) High Definition Audio Controller
 Flags: bus master, fast devsel, latency 0, IRQ 26
 Memory at febf8000 (64-bit, non-prefetchable) [size=16K]
 Capabilities: <access denied>
 Kernel driver in use: snd_hda_intel
 Kernel modules: snd_hda_intel
...
---------------------------------------------------------------------------------------------------------------------------------------------
Tried (not working):
sudo alsa force-reload

----------------------------------------------------------------------------------------------------------------------------------------------
Tried creating a file (not working):
sudo gedit /etc/asound.conf containing:
defaults.pcm.card 0
defaults.pcm.device 0
defaults.ctl.card 0

Currently the /etc/asound.conf is deleted to get back to known original state.

----------------------------------------------------------------------------------------------------------------------------------------------
Tried the appending the following options in /etc/modprobe.d/alsa-base.conf
#### Tried appending these one-liners - one-by-one: none worked so far (so I commented them out).
#options snd-hda-intel model=vaio
#options snd-hda-intel model=sony
#options snd-hda-intel model=generic

Then from https://www.kernel.org/doc/Documentation/sound/alsa/HD-Audio-Models.txt

ALC260
======
  gpio1 Enable GPIO1
  coef Enable EAPD via COEF table
  fujitsu Quirk for FSC S7020
  fujitsu-jwse Quirk for FSC S7020 with jack modes and HP mic support

tried again with:
options snd-hda-intel model=gpio1
then
options snd-hda-intel model=coef

Still no sound :)

----------------------------------------------------------------------------------------------------------------------------------------------

Have run the diagnostic script from your web-page:
wget -O alsa-info.sh http://www.alsa-project.org/alsa-info.sh && chmod +x ./alsa-info.sh && ./alsa-info.sh

The results are here:
Your ALSA information is located at http://www.alsa-project.org/db/?f=7cbaecf6922be789b7c40672d57ca1cdf56c2aa3

ALTERNATIVELY, ATTACHING A COPY BELOW:

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

!!Script ran on: Sat Mar 26 15:16:07 UTC 2016

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

Ubuntu Xenial Xerus (development branch) \n \l DISTRIB_ID=Ubuntu DISTRIB_DESCRIPTION="Ubuntu Xenial Xerus (development branch)" NAME="Ubuntu" ID=ubuntu ID_LIKE=debian PRETTY_NAME="Ubuntu 16.04" HOME_URL="http://www.ubuntu.com/" SUPPORT_URL="http://help.ubuntu.com/" BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/" UBUNTU_CODENAME=xenial

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

Manufacturer: Sony Corporation
Product Name: VGN-A497XP
Product Version: C00081YV
Firmware Version: R0080F2

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

Kernel release: 4.4.0-15-generic
Operating System: GNU/Linux
Architecture: i686
Processor: i686
SMP Enabled: Yes

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

Driver version: k4.4.0-15-generic
Library version: 1.1.0
Utilities version: 1.1.0

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

snd_hda_intel

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

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

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

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

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

00:1b.0 Audio device: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) High Definition Audio Controller (rev 03)

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

00:1b.0 0403: 8086:2668 (rev 03)
 Subsystem: 104d:81cd

!!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
snd_atiixp_modem: index=-2
snd_intel8x0m: index=-2
snd_via82xx_modem: index=-2
snd_usb_audio: index=-2
snd_usb_caiaq: index=-2
snd_usb_ua101: index=-2
snd_usb_us122l: index=-2
snd_usb_usx2y: index=-2
snd_cmipci: mpu_port=0x330 fm_port=0x388
snd_pcsp: index=-2
snd_usb_audio: index=-2

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

!!Module: snd_hda_intel
 align_buffer_size : -1
 bdl_pos_adj : 1,-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 : N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N
 enable : Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y
 enable_msi : -1
 id : (null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null)
 index : -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1
 jackpoll_ms : 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
 model : (null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null)
 patch : (null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null)
 position_fix : -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1
 power_save : 0
 power_save_controller : N
 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 : -1

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

Codec: Realtek ALC260
Address: 0
AFG Function Id: 0x1 (unsol 1)
Vendor Id: 0x10ec0260
Subsystem Id: 0x02600000
Revision Id: 0x100300
No Modem Function Group found
Default PCM:
    rates [0x560]: 44100 48000 96000 192000
    bits [0xe]: 16 20 24
    formats [0x1]: PCM
Default Amp-In caps: N/A
Default Amp-Out caps: N/A
State of AFG node 0x01:
  Power states: D0 D1 D2 D3
  Power: setting=D0, actual=D0
GPIO: io=4, o=0, i=0, unsolicited=1, wake=0
  IO[0]: enable=0, dir=0, wake=0, sticky=0, data=0, unsol=0
  IO[1]: enable=0, dir=0, wake=0, sticky=0, data=0, unsol=0
  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
Node 0x02 [Audio Output] wcaps 0x11: Stereo
  Device: name="ALC260 Analog", type="Audio", device=0
  Converter: stream=5, channel=0
  PCM:
    rates [0x560]: 44100 48000 96000 192000
    bits [0xe]: 16 20 24
    formats [0x1]: PCM
Node 0x03 [Audio Output] wcaps 0x211: Stereo Digital
  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="ALC260 Digital", type="SPDIF", device=1
  Converter: stream=5, channel=0
  Digital:
  Digital category: 0x0
  IEC Coding Type: 0x0
  PCM:
    rates [0x560]: 44100 48000 96000 192000
    bits [0x1e]: 16 20 24 32
    formats [0x1]: PCM
Node 0x04 [Audio Input] wcaps 0x10011b: Stereo Amp-In
  Control: name="Capture Volume", index=0, device=0
    ControlAmp: chs=3, dir=In, idx=0, ofs=0
  Control: name="Capture Switch", index=0, device=0
    ControlAmp: chs=3, dir=In, idx=0, ofs=0
  Device: name="ALC260 Analog", type="Audio", device=0
  Amp-In caps: ofs=0x00, nsteps=0x23, stepsize=0x03, mute=1
  Amp-In vals: [0x15 0x15]
  Converter: stream=1, channel=0
  SDI-Select: 0
  PCM:
    rates [0x160]: 44100 48000 96000
    bits [0x6]: 16 20
    formats [0x1]: PCM
  Connection: 7
     0x12 0x13* 0x14 0x15 0x16 0x0f 0x10
Node 0x05 [Audio Input] wcaps 0x10011b: Stereo Amp-In
  Control: name="Capture Volume", index=1, device=0
    ControlAmp: chs=3, dir=In, idx=0, ofs=0
  Control: name="Capture Switch", index=1, device=0
    ControlAmp: chs=3, dir=In, idx=0, ofs=0
  Device: name="ALC260 Alt Analog", type="Audio", device=2
  Amp-In caps: ofs=0x00, nsteps=0x23, stepsize=0x03, mute=1
  Amp-In vals: [0x80 0x80]
  Converter: stream=0, channel=0
  SDI-Select: 0
  PCM:
    rates [0x160]: 44100 48000 96000
    bits [0x6]: 16 20
    formats [0x1]: PCM
  Connection: 8
     0x12* 0x13 0x14 0x15 0x16 0x07 0x0f 0x10
Node 0x06 [Audio Input] wcaps 0x100391: Stereo Digital
  Control: name="IEC958 Capture Switch", index=0, device=0
  Control: name="IEC958 Capture Default", index=0, device=0
  Device: name="ALC260 Digital", type="SPDIF", device=1
  Converter: stream=0, channel=0
  SDI-Select: 0
  Digital:
  Digital category: 0x0
  IEC Coding Type: 0x0
  PCM:
    rates [0x160]: 44100 48000 96000
    bits [0x1e]: 16 20 24 32
    formats [0x1]: PCM
  Unsolicited: tag=00, enabled=0
  Connection: 1
     0x19
Node 0x07 [Audio Mixer] wcaps 0x20010b: Stereo Amp-In
  Control: name="Rear Mic Playback Volume", index=0, device=0
    ControlAmp: chs=3, dir=In, idx=0, ofs=0
  Control: name="Rear Mic Playback Switch", index=0, device=0
    ControlAmp: chs=3, dir=In, idx=0, ofs=0
  Control: name="Front Mic Playback Volume", index=0, device=0
    ControlAmp: chs=3, dir=In, idx=1, ofs=0
  Control: name="Front Mic Playback Switch", index=0, device=0
    ControlAmp: chs=3, dir=In, idx=1, ofs=0
  Control: name="Line Playback Volume", index=0, device=0
    ControlAmp: chs=3, dir=In, idx=2, ofs=0
  Control: name="Line Playback Switch", index=0, device=0
    ControlAmp: chs=3, dir=In, idx=2, ofs=0
  Control: name="CD Playback Volume", index=0, device=0
    ControlAmp: chs=3, dir=In, idx=4, ofs=0
  Control: name="CD Playback Switch", index=0, device=0
    ControlAmp: chs=3, dir=In, idx=4, ofs=0
  Control: name="Aux Playback Volume", index=0, device=0
    ControlAmp: chs=3, dir=In, idx=3, ofs=0
  Control: name="Aux Playback Switch", index=0, device=0
    ControlAmp: chs=3, dir=In, idx=3, ofs=0
  Control: name="Beep Playback Volume", index=0, device=0
    ControlAmp: chs=3, dir=In, idx=5, ofs=0
  Control: name="Beep Playback Switch", index=0, device=0
    ControlAmp: chs=3, dir=In, idx=5, ofs=0
  Amp-In caps: ofs=0x23, nsteps=0x41, stepsize=0x03, mute=1
  Amp-In vals: [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80]
  Connection: 8
     0x12 0x13 0x14 0x15 0x16 0x17 0x0f 0x10
Node 0x08 [Audio Mixer] wcaps 0x20010f: Stereo Amp-In Amp-Out
  Amp-In caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
  Amp-In vals: [0x00 0x00] [0x80 0x80]
  Amp-Out caps: ofs=0x40, nsteps=0x40, stepsize=0x03, mute=0
  Amp-Out vals: [0x40 0x40]
  Connection: 2
     0x02 0x07
Node 0x09 [Audio Mixer] wcaps 0x20010f: Stereo Amp-In Amp-Out
  Control: name="Master Playback Volume", index=0, device=0
    ControlAmp: chs=3, dir=Out, idx=0, ofs=0
  Amp-In caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
  Amp-In vals: [0x00 0x00] [0x00 0x00]
  Amp-Out caps: ofs=0x40, nsteps=0x40, stepsize=0x03, mute=0
  Amp-Out vals: [0x3d 0x3d]
  Connection: 2
     0x02 0x07
Node 0x0a [Audio Mixer] wcaps 0x20010e: Mono Amp-In Amp-Out
  Amp-In caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
  Amp-In vals: [0x00] [0x80]
  Amp-Out caps: ofs=0x23, nsteps=0x41, stepsize=0x03, mute=0
  Amp-Out vals: [0x23]
  Connection: 2
     0x02 0x07
Node 0x0b [Audio Selector] wcaps 0x300101: Stereo
  Connection: 2
     0x08* 0x09
Node 0x0c [Audio Selector] wcaps 0x300101: Stereo
  Connection: 2
     0x08* 0x09
Node 0x0d [Audio Selector] wcaps 0x300101: Stereo
  Connection: 2
     0x08* 0x09
Node 0x0e [Audio Selector] wcaps 0x300101: Stereo
  Connection: 2
     0x08* 0x09
Node 0x0f [Pin Complex] wcaps 0x40018d: Stereo Amp-Out
  Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
  Amp-Out vals: [0x80 0x80]
  Pincap 0x0001003f: IN OUT HP EAPD Detect Trigger ImpSense
  EAPD 0x2: EAPD
  Pin Default 0x01014000: [Jack] Line Out at Ext Rear
    Conn = 1/8, Color = Green
    DefAssociation = 0x0, Sequence = 0x0
  Pin-ctls: 0x40: OUT
  Unsolicited: tag=00, enabled=0
  Connection: 1
     0x08
Node 0x10 [Pin Complex] wcaps 0x40018d: Stereo Amp-Out
  Control: name="Master Playback Switch", index=0, device=0
    ControlAmp: chs=3, dir=Out, idx=0, ofs=0
  Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
  Amp-Out vals: [0x00 0x00]
  Pincap 0x0001003f: IN OUT HP EAPD Detect Trigger ImpSense
  EAPD 0x2: EAPD
  Pin Default 0x02214000: [Jack] HP Out at Ext Front
    Conn = 1/8, Color = Green
    DefAssociation = 0x0, Sequence = 0x0
  Pin-ctls: 0xc0: OUT HP
  Unsolicited: tag=06, enabled=1
  Connection: 1
     0x09
Node 0x11 [Pin Complex] wcaps 0x40010c: Mono Amp-Out
  Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
  Amp-Out vals: [0x80]
  Pincap 0x00000010: OUT
  Pin Default 0x50171000: [N/A] Speaker at Int N/A
    Conn = Analog, Color = Black
    DefAssociation = 0x0, Sequence = 0x0
  Pin-ctls: 0x40: OUT
  Connection: 1
     0x0a
Node 0x12 [Pin Complex] wcaps 0x40018d: Stereo Amp-Out
  Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
  Amp-Out vals: [0x80 0x80]
  Pincap 0x0000133f: IN OUT HP Detect Trigger ImpSense
    Vref caps: HIZ 50 80
  Pin Default 0x01a19000: [Jack] Mic at Ext Rear
    Conn = 1/8, Color = Pink
    DefAssociation = 0x0, Sequence = 0x0
  Pin-ctls: 0x21: IN VREF_50
  Unsolicited: tag=01, enabled=1
  Connection: 1
     0x0b
Node 0x13 [Pin Complex] wcaps 0x40018d: Stereo Amp-Out
  Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
  Amp-Out vals: [0x80 0x80]
  Pincap 0x0000133f: IN OUT HP Detect Trigger ImpSense
    Vref caps: HIZ 50 80
  Pin Default 0x02a19000: [Jack] Mic at Ext Front
    Conn = 1/8, Color = Pink
    DefAssociation = 0x0, Sequence = 0x0
  Pin-ctls: 0x24: IN VREF_80
  Unsolicited: tag=02, enabled=1
  Connection: 1
     0x0c
Node 0x14 [Pin Complex] wcaps 0x40018d: Stereo Amp-Out
  Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
  Amp-Out vals: [0x80 0x80]
  Pincap 0x0000133f: IN OUT HP Detect Trigger ImpSense
    Vref caps: HIZ 50 80
  Pin Default 0x01813000: [Jack] Line In at Ext Rear
    Conn = 1/8, Color = Blue
    DefAssociation = 0x0, Sequence = 0x0
  Pin-ctls: 0x20: IN VREF_HIZ
  Unsolicited: tag=03, enabled=1
  Connection: 1
     0x0d
Node 0x15 [Pin Complex] wcaps 0x40018d: Stereo Amp-Out
  Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
  Amp-Out vals: [0x80 0x80]
  Pincap 0x0000133f: IN OUT HP Detect Trigger ImpSense
    Vref caps: HIZ 50 80
  Pin Default 0x99931000: [Fixed] Aux at Int ATAPI
    Conn = ATAPI, Color = Black
    DefAssociation = 0x0, Sequence = 0x0
  Pin-ctls: 0x20: IN VREF_HIZ
  Unsolicited: tag=00, enabled=0
  Connection: 1
     0x0e
Node 0x16 [Pin Complex] wcaps 0x400001: Stereo
  Pincap 0x00000020: IN
  Pin Default 0x99331000: [Fixed] CD at Int ATAPI
    Conn = ATAPI, Color = Black
    DefAssociation = 0x0, Sequence = 0x0
  Pin-ctls: 0x00:
Node 0x17 [Pin Complex] wcaps 0x400000: Mono
  Pincap 0x00000020: IN
  Pin Default 0x90f71000: [Fixed] Other at Int N/A
    Conn = Analog, Color = Black
    DefAssociation = 0x0, Sequence = 0x0
  Pin-ctls: 0x00:
Node 0x18 [Pin Complex] wcaps 0x400380: Mono Digital
  Pincap 0x00000014: OUT Detect
  Pin Default 0x01446000: [Jack] SPDIF Out at Ext Rear
    Conn = RCA, Color = Orange
    DefAssociation = 0x0, Sequence = 0x0
  Pin-ctls: 0x00:
  Unsolicited: tag=00, enabled=0
  Connection: 1
     0x03
Node 0x19 [Pin Complex] wcaps 0x400280: Mono Digital
  Pincap 0x00000024: IN Detect
  Pin Default 0x01c41000: [Jack] SPDIF In at Ext Rear
    Conn = RCA, Color = Black
    DefAssociation = 0x0, Sequence = 0x0
  Pin-ctls: 0x00:
  Unsolicited: tag=00, enabled=0
Node 0x1a [Vendor Defined Widget] wcaps 0xf00040: Mono
  Processing caps: benign=0, ncoeff=13
Node 0x1b [Volume Knob Widget] wcaps 0x600080: Mono
  Volume-Knob: delta=0, steps=64, direct=0, val=0
  Unsolicited: tag=00, enabled=0
  Connection: 0
Codec: Conexant Generic HDMI
Address: 1
MFG Function Id: 0x2 (unsol 1)
Vendor Id: 0x14f12bfa
Subsystem Id: 0x20030003
Revision Id: 0x90000
Modem Function Group: 0x2
--endcollapse--

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

crw-rw----+ 1 root audio 116, 2 Mar 26 14:59 /dev/snd/controlC0
crw-rw----+ 1 root audio 116, 8 Mar 26 14:59 /dev/snd/hwC0D0
crw-rw----+ 1 root audio 116, 9 Mar 26 14:59 /dev/snd/hwC0D1
crw-rw----+ 1 root audio 116, 4 Mar 26 15:00 /dev/snd/pcmC0D0c
crw-rw----+ 1 root audio 116, 3 Mar 26 15:10 /dev/snd/pcmC0D0p
crw-rw----+ 1 root audio 116, 6 Mar 26 15:00 /dev/snd/pcmC0D1c
crw-rw----+ 1 root audio 116, 5 Mar 26 15:00 /dev/snd/pcmC0D1p
crw-rw----+ 1 root audio 116, 7 Mar 26 14:59 /dev/snd/pcmC0D2c
crw-rw----+ 1 root audio 116, 1 Mar 26 14:59 /dev/snd/seq
crw-rw----+ 1 root audio 116, 33 Mar 26 14:59 /dev/snd/timer

/dev/snd/by-path:
total 0
drwxr-xr-x 2 root root 60 Mar 26 14:59 .
drwxr-xr-x 3 root root 260 Mar 26 14:59 ..
lrwxrwxrwx 1 root root 12 Mar 26 14:59 pci-0000:00:1b.0 -> ../controlC0

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

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

defaults.pcm.card 0
defaults.pcm.device 0
defaults.ctl.card 0

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

APLAY

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

ARECORD

**** List of CAPTURE Hardware Devices ****
card 0: Intel [HDA Intel], device 0: ALC260 Analog [ALC260 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: Intel [HDA Intel], device 1: ALC260 Digital [ALC260 Digital]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: Intel [HDA Intel], device 2: ALC260 Alt Analog [ALC260 Alt Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

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

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

Card hw:0 'Intel'/'HDA Intel at 0xfebf8000 irq 26'
  Mixer name : 'Realtek ALC260'
  Components : 'HDA:10ec0260,02600000,00100300 HDA:14f12bfa,20030003,00090000'
  Controls : 42
  Simple ctrls : 15
Simple mixer control 'Master',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 64
  Mono:
  Front Left: Playback 61 [95%] [-3.00dB] [on]
  Front Right: Playback 61 [95%] [-3.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 'Front Mic',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 65
  Mono:
  Front Left: Playback 0 [0%] [-35.00dB] [off]
  Front Right: Playback 0 [0%] [-35.00dB] [off]
Simple mixer control 'Line',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 65
  Mono:
  Front Left: Playback 0 [0%] [-35.00dB] [off]
  Front Right: Playback 0 [0%] [-35.00dB] [off]
Simple mixer control 'CD',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 65
  Mono:
  Front Left: Playback 0 [0%] [-35.00dB] [off]
  Front Right: Playback 0 [0%] [-35.00dB] [off]
Simple mixer control 'IEC958',0
  Capabilities: pswitch pswitch-joined cswitch cswitch-joined
  Playback channels: Mono
  Capture channels: Mono
  Mono: Playback [off] Capture [off]
Simple mixer control 'IEC958 Default PCM',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [on]
Simple mixer control 'Beep',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 65
  Mono:
  Front Left: Playback 0 [0%] [-35.00dB] [off]
  Front Right: Playback 0 [0%] [-35.00dB] [off]
Simple mixer control 'Aux',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 65
  Mono:
  Front Left: Playback 0 [0%] [-35.00dB] [off]
  Front Right: Playback 0 [0%] [-35.00dB] [off]
Simple mixer control 'Capture',0
  Capabilities: cvolume cswitch
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 35
  Front Left: Capture 21 [60%] [21.00dB] [on]
  Front Right: Capture 21 [60%] [21.00dB] [on]
Simple mixer control 'Capture',1
  Capabilities: cvolume cswitch
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 35
  Front Left: Capture 0 [0%] [0.00dB] [off]
  Front Right: Capture 0 [0%] [0.00dB] [off]
Simple mixer control 'Input Source',0
  Capabilities: cenum
  Items: 'Rear Mic' 'Front Mic' 'Line' 'CD' 'Aux'
  Item0: 'Front Mic'
Simple mixer control 'Input Source',1
  Capabilities: cenum
  Items: 'Rear Mic' 'Front Mic' 'Line' 'CD' 'Aux'
  Item0: 'Rear Mic'
Simple mixer control 'Loopback Mixing',0
  Capabilities: enum
  Items: 'Disabled' 'Enabled'
  Item0: 'Enabled'
Simple mixer control 'Rear Mic',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 65
  Mono:
  Front Left: Playback 0 [0%] [-35.00dB] [off]
  Front Right: Playback 0 [0%] [-35.00dB] [off]

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

--startcollapse--
state.Intel {
 control.1 {
  iface MIXER
  name 'Master Playback Volume'
  value.0 61
  value.1 61
  comment {
   access 'read write'
   type INTEGER
   count 2
   range '0 - 64'
   dbmin -6400
   dbmax 0
   dbvalue.0 -300
   dbvalue.1 -300
  }
 }
 control.2 {
  iface MIXER
  name 'Master Playback Switch'
  value.0 true
  value.1 true
  comment {
   access 'read write'
   type BOOLEAN
   count 2
  }
 }
 control.3 {
  iface MIXER
  name 'Loopback Mixing'
  value Enabled
  comment {
   access 'read write'
   type ENUMERATED
   count 1
   item.0 Disabled
   item.1 Enabled
  }
 }
 control.4 {
  iface MIXER
  name 'Rear Mic Playback Volume'
  value.0 0
  value.1 0
  comment {
   access 'read write'
   type INTEGER
   count 2
   range '0 - 65'
   dbmin -3500
   dbmax 3000
   dbvalue.0 -3500
   dbvalue.1 -3500
  }
 }
 control.5 {
  iface MIXER
  name 'Rear Mic Playback Switch'
  value.0 false
  value.1 false
  comment {
   access 'read write'
   type BOOLEAN
   count 2
  }
 }
 control.6 {
  iface MIXER
  name 'Front Mic Playback Volume'
  value.0 0
  value.1 0
  comment {
   access 'read write'
   type INTEGER
   count 2
   range '0 - 65'
   dbmin -3500
   dbmax 3000
   dbvalue.0 -3500
   dbvalue.1 -3500
  }
 }
 control.7 {
  iface MIXER
  name 'Front Mic Playback Switch'
  value.0 false
  value.1 false
  comment {
   access 'read write'
   type BOOLEAN
   count 2
  }
 }
 control.8 {
  iface MIXER
  name 'Line Playback Volume'
  value.0 0
  value.1 0
  comment {
   access 'read write'
   type INTEGER
   count 2
   range '0 - 65'
   dbmin -3500
   dbmax 3000
   dbvalue.0 -3500
   dbvalue.1 -3500
  }
 }
 control.9 {
  iface MIXER
  name 'Line Playback Switch'
  value.0 false
  value.1 false
  comment {
   access 'read write'
   type BOOLEAN
   count 2
  }
 }
 control.10 {
  iface MIXER
  name 'CD Playback Volume'
  value.0 0
  value.1 0
  comment {
   access 'read write'
   type INTEGER
   count 2
   range '0 - 65'
   dbmin -3500
   dbmax 3000
   dbvalue.0 -3500
   dbvalue.1 -3500
  }
 }
 control.11 {
  iface MIXER
  name 'CD Playback Switch'
  value.0 false
  value.1 false
  comment {
   access 'read write'
   type BOOLEAN
   count 2
  }
 }
 control.12 {
  iface MIXER
  name 'Aux Playback Volume'
  value.0 0
  value.1 0
  comment {
   access 'read write'
   type INTEGER
   count 2
   range '0 - 65'
   dbmin -3500
   dbmax 3000
   dbvalue.0 -3500
   dbvalue.1 -3500
  }
 }
 control.13 {
  iface MIXER
  name 'Aux Playback Switch'
  value.0 false
  value.1 false
  comment {
   access 'read write'
   type BOOLEAN
   count 2
  }
 }
 control.14 {
  iface MIXER
  name 'Input Source'
  value 'Front Mic'
  comment {
   access 'read write'
   type ENUMERATED
   count 1
   item.0 'Rear Mic'
   item.1 'Front Mic'
   item.2 Line
   item.3 CD
   item.4 Aux
  }
 }
 control.15 {
  iface MIXER
  name 'Input Source'
  index 1
  value 'Rear Mic'
  comment {
   access 'read write'
   type ENUMERATED
   count 1
   item.0 'Rear Mic'
   item.1 'Front Mic'
   item.2 Line
   item.3 CD
   item.4 Aux
  }
 }
 control.16 {
  iface MIXER
  name 'Capture Volume'
  value.0 21
  value.1 21
  comment {
   access 'read write'
   type INTEGER
   count 2
   range '0 - 35'
   dbmin 0
   dbmax 3500
   dbvalue.0 2100
   dbvalue.1 2100
  }
 }
 control.17 {
  iface MIXER
  name 'Capture Switch'
  value.0 true
  value.1 true
  comment {
   access 'read write'
   type BOOLEAN
   count 2
  }
 }
 control.18 {
  iface MIXER
  name 'Capture Volume'
  index 1
  value.0 0
  value.1 0
  comment {
   access 'read write'
   type INTEGER
   count 2
   range '0 - 35'
   dbmin 0
   dbmax 3500
   dbvalue.0 0
   dbvalue.1 0
  }
 }
 control.19 {
  iface MIXER
  name 'Capture Switch'
  index 1
  value.0 false
  value.1 false
  comment {
   access 'read write'
   type BOOLEAN
   count 2
  }
 }
 control.20 {
  iface MIXER
  name 'IEC958 Playback Con Mask'
  value '0fff000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'
  comment {
   access read
   type IEC958
   count 1
  }
 }
 control.21 {
  iface MIXER
  name 'IEC958 Playback Pro Mask'
  value '0f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'
  comment {
   access read
   type IEC958
   count 1
  }
 }
 control.22 {
  iface MIXER
  name 'IEC958 Playback Default'
  value '0400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'
  comment {
   access 'read write'
   type IEC958
   count 1
  }
 }
 control.23 {
  iface MIXER
  name 'IEC958 Playback Switch'
  value false
  comment {
   access 'read write'
   type BOOLEAN
   count 1
  }
 }
 control.24 {
  iface MIXER
  name 'IEC958 Default PCM Playback Switch'
  value true
  comment {
   access 'read write'
   type BOOLEAN
   count 1
  }
 }
 control.25 {
  iface MIXER
  name 'IEC958 Capture Switch'
  value false
  comment {
   access 'read write'
   type BOOLEAN
   count 1
  }
 }
 control.26 {
  iface MIXER
  name 'IEC958 Capture Default'
  value '0400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'
  comment {
   access read
   type IEC958
   count 1
  }
 }
 control.27 {
  iface CARD
  name 'Rear Mic Jack'
  value false
  comment {
   access read
   type BOOLEAN
   count 1
  }
 }
 control.28 {
  iface CARD
  name 'Front Mic Jack'
  value false
  comment {
   access read
   type BOOLEAN
   count 1
  }
 }
 control.29 {
  iface CARD
  name 'Line Jack'
  value false
  comment {
   access read
   type BOOLEAN
   count 1
  }
 }
 control.30 {
  iface CARD
  name 'CD Phantom Jack'
  value true
  comment {
   access read
   type BOOLEAN
   count 1
  }
 }
 control.31 {
  iface CARD
  name 'Aux Phantom Jack'
  value true
  comment {
   access read
   type BOOLEAN
   count 1
  }
 }
 control.32 {
  iface CARD
  name 'Front Headphone Jack'
  value false
  comment {
   access read
   type BOOLEAN
   count 1
  }
 }
 control.33 {
  iface CARD
  name 'SPDIF Jack'
  value false
  comment {
   access read
   type BOOLEAN
   count 1
  }
 }
 control.34 {
  iface CARD
  name 'SPDIF In Jack'
  value false
  comment {
   access read
   type BOOLEAN
   count 1
  }
 }
 control.35 {
  iface MIXER
  name 'Beep Playback Volume'
  value.0 0
  value.1 0
  comment {
   access 'read write'
   type INTEGER
   count 2
   range '0 - 65'
   dbmin -3500
   dbmax 3000
   dbvalue.0 -3500
   dbvalue.1 -3500
  }
 }
 control.36 {
  iface MIXER
  name 'Beep Playback Switch'
  value.0 false
  value.1 false
  comment {
   access 'read write'
   type BOOLEAN
   count 2
  }
 }
 control.37 {
  iface PCM
  name 'Playback Channel Map'
  value.0 0
  value.1 0
  comment {
   access read
   type INTEGER
   count 2
   range '0 - 36'
  }
 }
 control.38 {
  iface PCM
  name 'Capture Channel Map'
  value.0 0
  value.1 0
  comment {
   access read
   type INTEGER
   count 2
   range '0 - 36'
  }
 }
 control.39 {
  iface PCM
  device 1
  name 'Playback Channel Map'
  value.0 0
  value.1 0
  comment {
   access read
   type INTEGER
   count 2
   range '0 - 36'
  }
 }
 control.40 {
  iface PCM
  device 1
  name 'Capture Channel Map'
  value.0 0
  value.1 0
  comment {
   access read
   type INTEGER
   count 2
   range '0 - 36'
  }
 }
 control.41 {
  iface PCM
  device 2
  name 'Capture Channel Map'
  value.0 0
  value.1 0
  comment {
   access read
   type INTEGER
   count 2
   range '0 - 36'
  }
 }
 control.42 {
  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
nvram
msr
tifm_sd
input_leds
snd_hda_codec_hdmi
serio_raw
snd_hda_codec_realtek
snd_hda_codec_generic
snd_hda_intel
snd_hda_codec
pcmcia
snd_hda_core
snd_hwdep
snd_pcm
ipw2200
libipw
snd_seq_midi
lib80211
snd_seq_midi_event
snd_rawmidi
cfg80211
lpc_ich
snd_seq
yenta_socket
snd_seq_device
tifm_7xx1
pcmcia_rsrc
snd_timer
tifm_core
pcmcia_core
snd
asus_laptop
sparse_keymap
sony_laptop
shpchp
soundcore
input_polldev
video
joydev
mac_hid
ip6t_REJECT
nf_reject_ipv6
nf_log_ipv6
xt_hl
ip6t_rt
nf_conntrack_ipv6
nf_defrag_ipv6
ipt_REJECT
nf_reject_ipv4
nf_log_ipv4
nf_log_common
xt_LOG
xt_limit
xt_tcpudp
xt_addrtype
nf_conntrack_ipv4
nf_defrag_ipv4
xt_conntrack
ip6table_filter
ip6_tables
nf_conntrack_netbios_ns
nf_conntrack_broadcast
nf_nat_ftp
nf_nat
nf_conntrack_ftp
nf_conntrack
iptable_filter
parport_pc
ip_tables
x_tables
ppdev
lp
parport
autofs4
hid_generic
usbhid
hid
radeon
i2c_algo_bit
ttm
drm_kms_helper
syscopyarea
sysfillrect
sysimgblt
fb_sys_fops
firewire_ohci
drm
psmouse
ahci
firewire_core
r8169
libahci
crc_itu_t
pata_acpi
mii
fjes

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

/sys/class/sound/hwC0D0/init_pin_configs:
0x0f 0x01014000
0x10 0x02214000
0x11 0x50171000
0x12 0x01a19000
0x13 0x02a19000
0x14 0x01813000
0x15 0x99931000
0x16 0x99331000
0x17 0x90f71000
0x18 0x01446000
0x19 0x01c41000

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

[ 4.890371] ipw2200: Detected Intel PRO/Wireless 2200BG Network Connection
[ 5.148656] snd_hda_codec_realtek hdaudioC0D0: autoconfig for ALC260: line_outs=1 (0x10/0x0/0x0/0x0/0x0) type:hp
[ 5.148663] snd_hda_codec_realtek hdaudioC0D0: speaker_outs=0 (0x0/0x0/0x0/0x0/0x0)
[ 5.148667] snd_hda_codec_realtek hdaudioC0D0: hp_outs=0 (0x0/0x0/0x0/0x0/0x0)
[ 5.148669] snd_hda_codec_realtek hdaudioC0D0: mono: mono_out=0x0
[ 5.148672] snd_hda_codec_realtek hdaudioC0D0: dig-out=0x18/0x0
[ 5.148675] snd_hda_codec_realtek hdaudioC0D0: inputs:
[ 5.148679] snd_hda_codec_realtek hdaudioC0D0: Rear Mic=0x12
[ 5.148682] snd_hda_codec_realtek hdaudioC0D0: Front Mic=0x13
[ 5.148685] snd_hda_codec_realtek hdaudioC0D0: Line=0x14
[ 5.148687] snd_hda_codec_realtek hdaudioC0D0: CD=0x16
[ 5.148690] snd_hda_codec_realtek hdaudioC0D0: Aux=0x15
[ 5.148693] snd_hda_codec_realtek hdaudioC0D0: dig-in=0x19
[ 5.211677] Adding 4492284k swap on /dev/sda6. Priority:-1 extents:1 across:4492284k SSFS
[ 5.226137] input: HDA Intel Rear Mic as /devices/pci0000:00/0000:00:1b.0/sound/card0/input10
[ 5.226253] input: HDA Intel Front Mic as /devices/pci0000:00/0000:00:1b.0/sound/card0/input11
[ 5.226355] input: HDA Intel Line as /devices/pci0000:00/0000:00:1b.0/sound/card0/input12
[ 5.226460] input: HDA Intel Front Headphone as /devices/pci0000:00/0000:00:1b.0/sound/card0/input13
[ 5.226568] input: HDA Intel SPDIF as /devices/pci0000:00/0000:00:1b.0/sound/card0/input14
[ 5.226671] input: HDA Intel SPDIF In as /devices/pci0000:00/0000:00:1b.0/sound/card0/input15
[ 5.270656] EXT4-fs (sda3): mounted filesystem with ordered data mode. Opts: discard

---------------------------------------------------------------------------
$ inxi -Ax
Audio: Card Intel 82801FB/FBM/FR/FW/FRW (ICH6 Family) High Definition Audio Controller
           driver: snd_hda_intel bus-ID: 00:1b.0
           Sound: Advanced Linux Sound Architecture v: k4.4.0-15-generic

---------------------------------------------------------------------------

Thank you very much in advance for looking at this :)
Add tags Tag help
Raymond (superquad-vortex2) wrote on 2016-03-27: 	#1

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

You have to retask line out to speaker if node 0x0f is speaker

Node 0x0f [Pin Complex] wcaps 0x40018d: Stereo Amp-Out
  Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
  Amp-Out vals: [0x80 0x80]
  Pincap 0x0001003f: IN OUT HP EAPD Detect Trigger ImpSense
  EAPD 0x2: EAPD
  Pin Default 0x01014000: [Jack] Line Out at Ext Rear
    Conn = 1/8, Color = Green
    DefAssociation = 0x0, Sequence = 0x0
  Pin-ctls: 0x40: OUT
  Unsolicited: tag=00, enabled=0
  Connection: 1
     0x08
Changed in alsa-driver (Ubuntu):
status: 	New → Incomplete
Raymond (superquad-vortex2) wrote on 2016-03-27: 	#2

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

00:1b.0 0403: 8086:2668 (rev 03)
 Subsystem: 104d:81cd
Art (a-granowski) wrote on 2016-03-27: 	#3

Hi Raymond, have now used "Pin Default 0x01014000: [Jack] Line Out at Ext Rear" (like a headphone socket but at the rear and the visible ring is yellow) - NOW WE HAVE SOUND ON LEFT CHANNEL !!! Thank you so much - the linux on this machine is at last usable for daily tasks.

The link you have included:
https://git.kernel.org/cgit/linux/kernel/git/tiwai/sound.git/commit/sound/pci/hda/patch_realtek.c?id=d08c5ef2a039393eaf2ab2152db5f07790fa0f40

speaks of "ALSA: hda - Provide missing pin configs for VAIO with ALC260...
Some models (or maybe depending on BIOS version) of Sony VAIO with ALC260 give no proper pin configurations as default, resulting in the non-working speaker, etc. Just provide the whole pin configurations via a fixup."

Is there a way of getting the right channel working as well ? (this laptop used to have WinXP and the normal headphone socket at the side working with full Stereo sound). If there is a possibility of getting full stereo - what is the next thing I should try?

Irrespective if the full stereo is achievable or not - I am very appreciative of you looking at this problem and getting the laptop to be usable at last - Thank you again very much.
Hide
Raymond (superquad-vortex2) wrote on 2016-03-28: 	#4

snd_hda_codec_realtek hdaudioC0D0: autoconfig for ALC260: line_outs=1 (0x10/0x0/0x0/0x0/0x0) type:hp
 snd_hda_codec_realtek hdaudioC0D0: speaker_outs=0 (0x0/0x0/0x0/0x0/0x0)
snd_hda_codec_realtek hdaudioC0D0: hp_outs=0 (0x0/0x0/0x0/0x0/0x0)
 snd_hda_codec_realtek hdaudioC0D0: mono: mono_out=0x0
snd_hda_codec_realtek hdaudioC0D0: dig-out=0x18/0x0
 snd_hda_codec_realtek hdaudioC0D0: inputs:
 snd_hda_codec_realtek hdaudioC0D0: Rear Mic=0x12
snd_hda_codec_realtek hdaudioC0D0: Front Mic=0x13
 snd_hda_codec_realtek hdaudioC0D0: Line=0x14
 snd_hda_codec_realtek hdaudioC0D0: CD=0x16
snd_hda_codec_realtek hdaudioC0D0: Aux=0x15
snd_hda_codec_realtek hdaudioC0D0: dig-in=0x19

control.32 {
  iface CARD
  name 'Front Headphone Jack'
  value false
  comment {
   access read
   type BOOLEAN
   count 1
  }
 }
Do headphone jack change to true when you plug in headphone?

Do. Mic jack or line in jack change to true when you plug in mic?

You need to use hdajackretask to remove those redundant input pins if not exist in your laptop (e.g. aux, cd,...)

http://voices.canonical.com/david.henningsson/2011/11/29/turn-your-mic-jack-into-a-headphone-jack/

Do you find the missing speaker from windows inf
Raymond (superquad-vortex2) wrote on 2016-03-28: 	#5

Seem same pci ssid

https://git.kernel.org/cgit/linux/kernel/git/tiwai/sound.git/commit/sound/pci/hda?id=5e1b1518a53fc62d9f39a13819c849336c6d8dd4
Raymond (superquad-vortex2) wrote on 2016-03-28: 	#6

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

Alc260 basic model was removed, seem use 0x15 as line out and use mono pin
Raymond (superquad-vortex2) wrote on 2016-03-28: 	#7

- /* LINE-2 is used for line-out in rear */
- {0x15, AC_VERB_SET_PIN_WIDGET_CONTROL, PIN_OUT},
- /* select line-out */
- {0x0e, AC_VERB_SET_CONNECT_SEL, 0x00},
- /* LINE-OUT pin */
- {0x0f, AC_VERB_SET_PIN_WIDGET_CONTROL, PIN_OUT},
- /* enable HP */
- {0x10, AC_VERB_SET_PIN_WIDGET_CONTROL, PIN_HP},
- /* enable Mono */
- {0x11, AC_VERB_SET_PIN_WIDGET_CONTROL, PIN_OUT},
Art (a-granowski) wrote 14 hours ago: 	#8

Hi Raymond, thank you for the suggestions of things to try.
Also thanks for the tip re David Henningsson's ppa and his hdajackretask:

$sudo add-apt-repository ppa:diwic/hda
$sudo apt-get update

[This is up to 14.04 Trusty but seemed to work well enough on 16.04 Xenial Final Beta]

Played around with it (If one makes a mistake, one can press 'Remove boot override' button, shut down computer, wait a little,
then power back on - should be back to where you started.

Still - the only sound is the MONO SOUND from the 0x15 at the back
/* LINE-2 is used for line-out in rear */
- {0x15, AC_VERB_SET_PIN_WIDGET_CONTROL, PIN_OUT}.

I don't know enough at this stage to recompile kernel etc in the effort to re-introduce the 'Alc260 basic model' back in again?
I will leave it at this time, but obviously if you happen to know of any changes in this situation - would be glad to hear it.
Also if you / anyone else happen to hear of more things to try - please let me know - will attempt to try them out.
Again, thank you for the help so far.
Hide
Art (a-granowski) wrote 12 hours ago: 	#9

"Do headphone jack change to true when you plug in headphone?"
The 'headphone' is always present as the only possible output option - it doesn't vary.

Do. Mic jack or line in jack change to true when you plug in mic?
No.
Hide
Art (a-granowski) wrote 12 hours ago: 	#10
Download full text (231.4 KiB)

"Do you find the missing speaker from windows inf" - please see below.

OK I have now re-installed Ubuntu MATE 16.04 Final Beta to dual-boot with Win 8.1 Pro:
The sound when on Win 8.1 Pro is full stereo [Finding ALL the drivers for 8.1 for this older machine is not that easy but it is doable]
Back to sound/audio - hope the details of working Win 8.1 Pro Audio drivers can help someone:

Sony Vaio VGN-497XP Win 8.1 Pro Audio Driver Details (fully working in stereo):

Realtek High Definition Audio:
-----------------------------------------

C:\Windows\ALCMTR.EXE Realtek Semiconductor Corp File Ver: 1.6

C:\Windows\ALCWZRD.EXE Realtek Semiconductor Corp File Ver: 1.1.0.19

C:\Windows\RTHDCPL.EXE Realtek Semiconductor Corp File Ver: 1.1.1.4

C:\Windows\RTLCPL.EXE Realtek Semiconductor Corp File Ver: 1.0.1.39

C:\Windows\SOUNDMAN.EXE Realtek Semiconductor Corp File Ver: 1.0.0.14

C:\Windows\system32\ALSNDMGR.CPL Realtek Semiconductor Corp File Ver: 1.1.0.5

C:\Windows\system32\drivers\drmk.sys Microsoft Corp File Ver: 6.3.9600.17415

C:\Windows\system32\drivers\portcls.sys Microsoft Corp File Ver: 6.3.9600.16384

C:\Windows\system32\drivers\RtkHDAud.sys Realtek Semiconductor Corp File Ver: 5.10.00.5124

C:\Windows\system32\RTCOM\RTCOMDLL.dll File Ver: 1.0.0.15

C:\Windows\system32\RTLCPAPI.dll File Ver: 1.0.0.5

C:\Windows\system32\RTSndMgr.CPL Realtek Semiconductor Corp File Ver: 1.0.0.4

The above give:

Driver service added (HdAudAddService)
Driver Management has concluded the process to add Service HdAudAddService
for Device Instance
ID HDAUDIO\FUNC_01&VEN_10EC&DEV_0260&SUBSYS_02600000&REV_1003\4&124E4BEC&0&0001
with the following status: 0.
---

Device installed (hdaudio.inf)
Driver Management concluded the process to install driver
hdaudio.inf_x86_9e8e7d1d7cd54532\hdaudio.inf for Device Instance
ID HDAUDIO\FUNC_01&VEN_10EC&DEV_0260&SUBSYS_02600000&REV_1003\4&124E4BEC&0&0001
with the following status: 0x0.
---

Driver service added (IntcAzAudAddService)
Driver Management has concluded the process to add Service IntcAzAudAddService
for Device Instance
ID HDAUDIO\FUNC_01&VEN_10EC&DEV_0260&SUBSYS_02600000&REV_1003\4&124E4BEC&0&0001
with the following status: 0.
---

Device installed (hdart.inf)
Driver Management concluded the process to install driver
hdart.inf_x86_b4f6cee5c9639f15\hdart.inf for Device Instance
ID HDAUDIO\FUNC_01&VEN_10EC&DEV_0260&SUBSYS_02600000&REV_1003\4&124E4BEC&0&0001
with the following status: 0x0.
---

************************************************************
hdaudio.inf
************************************************************
;Copyright (c) Microsoft Corporation. All rights reserved.
;
;Module Name:
; HDAUDIO.INF
;
;Abstract:
; INF file for installing the Microsoft UAA Function Driver for High
; Definition Audio
;

[Version]
Signature="$Windows NT$"
Class=MEDIA
ClassGuid={4d36e96c-e325-11ce-bfc1-08002be10318}
Provider=%MSFT%
DriverVer=08/21/2013,6.3.9600.16384
PnPLockdown=1

[SourceDisksNames]
3426=windows cd

[SourceDisksFiles]
hdaudio.sys = 3426

[DestinationDirs]
DefaultDestDir =10; dirid = \system32\drivers
HdAudModel.CopyList =10,system32\drivers

[Manufacturer]
...
Hide
Raymond (superquad-vortex2) wrote 11 hours ago: 	#11

You have to ask the reporter of VGN-A790 laptop which has same pci ssid 104d:81cd as your VGN-A497XP

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

You need to find out whether line out node is internal speaker and which mode is your mic and internal mic
Raymond (superquad-vortex2) wrote 11 hours ago: 	#12

https://git.kernel.org/cgit/linux/kernel/git/tiwai/sound.git/tree/sound/pci/hda/alc260_quirks.c?id=c29b3f6dd7798964d77199af4925be72a3a48349

This is a regression of removing static model of alc260, you have to file upstream bug report at bugzilla.kernel.org
Comment 1 Takashi Iwai 2016-03-29 14:40:51 UTC
Could you give alsa-info.sh outputs running on both old (working) and new (broken) kernels?  Don't paste on bugzilla, but use attachments instead.
Comment 2 Raymond 2016-03-30 02:10:09 UTC
The auto parser ignore line out pin without any warning message because def assoc is zero

https://git.kernel.org/cgit/linux/kernel/git/tiwai/sound.git/tree/sound/pci/hda/hda_auto_parser.c#n230


zero

Default 0x01014000: [Jack] Line Out at Ext Rear
    Conn = 1/8, Color = Green
    DefAssociation = 0x0, Sequence = 0x0

/sys/class/sound/hwC0D0/init_pin_configs:
0x0f 0x01014000
0x10 0x02214000
0x11 0x50171000
0x12 0x01a19000
0x13 0x02a19000
0x14 0x01813000
0x15 0x99931000
0x16 0x99331000
0x17 0x90f71000
0x18 0x01446000
0x19 0x01c41000

/sys/class/sound/hwC0D0/driver_pin_configs:

/sys/class/sound/hwC0D0/user_pin_configs:

You can use hdajackretask to fix the pin default with non zseo default assoc
Comment 3 Raymond 2016-03-30 07:40:03 UTC
the previous basic model enable output on node 0x15, 0x0f, 0x10 and 0x11

this mean that your headphone and internal speaker could be one of them

and you need to find the mic and internal mic from 0x12, 0x13, 0x14 and 0x16


static const struct hda_verb alc260_init_verbs[] = {
	/* Line In pin widget for input */
	{0x14, AC_VERB_SET_PIN_WIDGET_CONTROL, PIN_IN},
	/* CD pin widget for input */
	{0x16, AC_VERB_SET_PIN_WIDGET_CONTROL, PIN_IN},
	/* Mic1 (rear panel) pin widget for input and vref at 80% */
	{0x12, AC_VERB_SET_PIN_WIDGET_CONTROL, PIN_VREF80},
	/* Mic2 (front panel) pin widget for input and vref at 80% */
	{0x13, AC_VERB_SET_PIN_WIDGET_CONTROL, PIN_VREF80},
	/* LINE-2 is used for line-out in rear */
	{0x15, AC_VERB_SET_PIN_WIDGET_CONTROL, PIN_OUT},
	/* select line-out */
	{0x0e, AC_VERB_SET_CONNECT_SEL, 0x00},
	/* LINE-OUT pin */
	{0x0f, AC_VERB_SET_PIN_WIDGET_CONTROL, PIN_OUT},
	/* enable HP */
	{0x10, AC_VERB_SET_PIN_WIDGET_CONTROL, PIN_HP},
	/* enable Mono */
	{0x11, AC_VERB_SET_PIN_WIDGET_CONTROL, PIN_OUT},
Comment 4 Raymond 2016-03-31 02:00:10 UTC
https://bugs.launchpad.net/ubuntu/+source/alsa-driver/+bug/745402

Seem Sony VAIO VGN-A617S with same pci ssid has dock line out
Comment 5 a.granowski 2016-03-31 13:41:37 UTC
(In reply to Takashi Iwai from comment #1)
> Could you give alsa-info.sh outputs running on both old (working) and new
> (broken) kernels?  Don't paste on bugzilla, but use attachments instead.

The new (sound problem) Xenial Final Beta kernel is the only Linux kernel this Vaio VGN-A497XP ever had. It never had 'old (working)' kernel installed.

It had WinXP when new and full stereo sound available from the standard side 'headphone' jack.

Recently have put on Win 8.1 Pro (as a dual-boot with Ubuntu MATE Xenial Final Beta) and when in Windows full stereo is again available.

Thank you for looking at this.
Comment 6 a.granowski 2016-03-31 13:43:06 UTC
Thank you again Raymond for taking the time to provide suggested solutions - will keep trying.
Comment 7 a.granowski 2016-03-31 16:56:56 UTC
(In reply to Raymond from comment #3)
> the previous basic model enable output on node 0x15, 0x0f, 0x10 and 0x11
> 
> this mean that your headphone and internal speaker could be one of them
> 
> and you need to find the mic and internal mic from 0x12, 0x13, 0x14 and 0x16
> 
> 
> static const struct hda_verb alc260_init_verbs[] = {
>       /* Line In pin widget for input */
>       {0x14, AC_VERB_SET_PIN_WIDGET_CONTROL, PIN_IN},
>       /* CD pin widget for input */
>       {0x16, AC_VERB_SET_PIN_WIDGET_CONTROL, PIN_IN},
>       /* Mic1 (rear panel) pin widget for input and vref at 80% */
>       {0x12, AC_VERB_SET_PIN_WIDGET_CONTROL, PIN_VREF80},
>       /* Mic2 (front panel) pin widget for input and vref at 80% */
>       {0x13, AC_VERB_SET_PIN_WIDGET_CONTROL, PIN_VREF80},
>       /* LINE-2 is used for line-out in rear */
>       {0x15, AC_VERB_SET_PIN_WIDGET_CONTROL, PIN_OUT},
>       /* select line-out */
>       {0x0e, AC_VERB_SET_CONNECT_SEL, 0x00},
>       /* LINE-OUT pin */
>       {0x0f, AC_VERB_SET_PIN_WIDGET_CONTROL, PIN_OUT},
>       /* enable HP */
>       {0x10, AC_VERB_SET_PIN_WIDGET_CONTROL, PIN_HP},
>       /* enable Mono */
>       {0x11, AC_VERB_SET_PIN_WIDGET_CONTROL, PIN_OUT},

--------------------------------------------------------------------------
"the previous basic model enable output on node 0x15, 0x0f, 0x10 and 0x11"
>       /* LINE-2 is used for line-out in rear */
>       {0x15, AC_VERB_SET_PIN_WIDGET_CONTROL, PIN_OUT}
Starting with node 0x15

so: running as root ( sudo su --> #)
# hdajackretask
In hdajackretask node 0x15 is labeled as: Pin ID: 0x15 Iternal AUX ATAPI.
Select: override --> Headphone
Pop-up message:
"tee: /sys/class/sound/hwC0D0/reconfig: Device or resource busy"

# alsa force-reload
Unloading ALSA sound driver modules: snd-seq-midi snd-seq-midi-event snd-seq snd-rawmidi snd-seq-device snd-hda-codec-hdmi snd-hda-codec-realtek snd-hda-codec-generic snd-hda-intel snd-hda-codec snd-hda-core snd-hwdep snd-pcm snd-timer (failed: modules still loaded: snd-hda-codec-hdmi snd-hda-codec-realtek snd-hda-codec-generic snd-hda-intel snd-hda-codec snd-hda-core snd-hwdep snd-pcm snd-timer).
Loading ALSA sound driver modules: snd-seq-midi snd-seq-midi-event snd-seq snd-rawmidi snd-seq-device snd-hda-codec-hdmi snd-hda-codec-realtek snd-hda-codec-generic snd-hda-intel snd-hda-codec snd-hda-core snd-hwdep snd-pcm snd-timer.
root@vaio-laptop:~/.config/pulse# 
E: [pulseaudio] main.c: Failed to kill daemon: No such process
0x0f 0x01014000
0x10 0x02214000
0x11 0x50171000
0x12 0x01a19000
0x13 0x02a19000
0x14 0x01813000
0x15 0x0321403f
0x16 0x99331000
0x17 0x90f71000
0x18 0x01446000
0x19 0x01c41000

Repeated above as local user ie using ~/.config/pulse dir:
rosalyn1@vaio-laptop:~$ hdajackretask
0x0f 0x01014000
0x10 0x02214000
0x11 0x50171000
0x12 0x01a19000
0x13 0x02a19000
0x14 0x01813000
0x15 0x0321403f
0x16 0x99331000
0x17 0x90f71000
0x18 0x01446000
0x19 0x01c41000
Heard a brief cracking sound on the headphones (plugged in at the back, presumably on 'node 0x15').
Reboot...
Comment 8 a.granowski 2016-03-31 17:03:34 UTC
After reboot - still nothing changed ie hdajackretask node 0x15 (labeled as: Pin ID: 0x15 Iternal AUX ATAPI)
Select: override --> Headphone

produced no change: ie MONO sound still available from the back socket (presumably on 'node 0x15').
Comment 9 a.granowski 2016-03-31 17:52:09 UTC
OK Eureka: we have sound on headphones and laptop's internal speakers!!!
Thank you Takashi but especially Raymond for all the help you gave.
As local user, launch hdajackretask:
$ hdajackretask

* Select "show unconnected pins"

* Pin 0x0f override to (dropdown menu) --> Internal Speaker

* Pin 0x10 override to (dropdown menu) --> Internal Speaker (LFE)

* Pin 0x15 override to (dropdown menu) --> Headphone

Still received message:
"tee: /sys/class/sound/hwC0D0/reconfig: Device or resource busy"
but the above seemed to have worked.

To make this permanent click button:
"Install boot override"

[P.S. was googling the "tee: /sys/class/sound/hwC0D0/reconfig: Device or resource busy" message and got inpiration from:
https://www.reddit.com/r/linux/comments/17sov5/howto_beats_audio_hp_laptop_speakers_on/

- although obviously the link deals with a different model ]

Thank you very much again.
Comment 10 a.granowski 2016-03-31 18:08:52 UTC
RE microphone:
"and you need to find the mic and internal mic from 0x12, 0x13, 0x14 and 0x16"

Have set pin 0x12 as Microphone and 
pin 0x13 as Internal Mic.
Comment 11 a.granowski 2016-03-31 21:31:37 UTC
The fix consisted of:

As local user, launch hdajackretask:
[ from  https://launchpad.net/~diwic/+archive/ubuntu/hda  ]

$ hdajackretask

* Select "show unconnected pins"

* Pin 0x0f override to (dropdown menu) --> Internal Speaker

* Pin 0x10 override to (dropdown menu) --> Internal Speaker (LFE)

* Pin 0x15 override to (dropdown menu) --> Headphone

Still received message:
"tee: /sys/class/sound/hwC0D0/reconfig: Device or resource busy"
but the above seemed to have worked.

To make this permanent click button:
"Install boot override"

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