Bug 115481
Summary: | 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 | ||
---|---|---|---|
Product: | Drivers | Reporter: | a.granowski |
Component: | Sound(ALSA) | Assignee: | Jaroslav Kysela (perex) |
Status: | RESOLVED DOCUMENTED | ||
Severity: | normal | CC: | superquad.vortex2, tiwai |
Priority: | P1 | ||
Hardware: | i386 | ||
OS: | Linux | ||
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: |
Description
a.granowski
2016-03-29 14:21:22 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. 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 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}, https://bugs.launchpad.net/ubuntu/+source/alsa-driver/+bug/745402 Seem Sony VAIO VGN-A617S with same pci ssid has dock line out (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. Thank you again Raymond for taking the time to provide suggested solutions - will keep trying. (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... 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'). 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. 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. 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" |