With Linux 2.6.34-rc3 the headphone output on my Sony VPCW21Z1E stopped working: The builtin speakers still work and the headphone *detection* also works (mutes internal speakers), but there is no sound on the headphone jack.
The PCM-Device is also missing in alsamixer.
brings the PCM-device back and headphone-out also works like it used to in 2.6.34-rc2
00:1b.0 Audio device: Intel Corporation 82801G (ICH7 Family) High Definition Audio Controller (rev 02)
Subsystem: Sony Corporation Device 9066
Flags: bus master, fast devsel, latency 0, IRQ 28
Memory at 56200000 (64-bit, non-prefetchable) [size=16K]
Capabilities:  Power Management version 2
Capabilities:  MSI: Enable+ Count=1/1 Maskable- 64bit+
Capabilities:  Express Root Complex Integrated Endpoint, MSI 00
Capabilities:  Virtual Channel <?>
Capabilities:  Root Complex Link <?>
Kernel driver in use: HDA Intel
Kernel modules: snd-hda-intel
Codec: Realtek ALC262
Function Id: 0x1
Vendor Id: 0x10ec0262
Subsystem Id: 0x104d3e00
Revision Id: 0x100302
No Modem Function Group found
Then it worked accidentally in the former versions :)
Could you attach alsa-info.sh output (run with --no-upload option)?
Created attachment 25863 [details]
Ok, here it is.
The Output is from 2.6.34-rc3 with 6a4f2ccb467e00281470cde2dee08fe5ecde62d1 reverted.
Could you give both before and after revert to compare?
Created attachment 25866 [details]
alsa-info with vanilla kernel (patch NOT reverted - non working headphone jack)
this is the alsa-info output with a plain vanilla 2.6.34-rc3 kernel module (patch not reverted, headphone not working)
Handled-By : Takashi Iwai <firstname.lastname@example.org>
Thanks. It's indeed a stupid bug introduced by that commit.
Fixed by the patch below.
Created attachment 25871 [details]
Fix the broken array range check in patch_realtek.c
Created attachment 25872 [details]
(Revised) Fix the broken array range check in patch_realtek.c
Sorry, pasted a wrong one in the above...
Patch : https://bugzilla.kernel.org/attachment.cgi?id=25872
Fixed by commit f9700d5a4575e7fb343df10a1d29d425e4b81082 .