Bug 178243 - [2.6.21 regression] hda-intel/VIA silent output
Bug#: 178243 Product:  Gentoo Linux Version: unspecified Platform: AMD64
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: dsd@gentoo.org Reported By: ninex@o2.pl
Component: Core system
URL:  http://bugzilla.kernel.org/show_bug.cgi?id=8273
Summary: [2.6.21 regression] hda-intel/VIA silent output
Keywords:  
Status Whiteboard: linux-2.6.21-regression
Opened: 2007-05-12 20:18 0000
Description:   Opened: 2007-05-12 20:18 0000
on kernel-2.6.21 hda-intel dont plays audio
when i trye to play audio i see this error:

May 13 23:32:08 localhost hda-intel: Invalid position buffer, using LPIB read
method instead.
my sound cMay 13 23:31:37 localhost hda_codec: Unknown model for
ALC660VD/ALC861VD, trying auto-probe from BIOS...
May 13 23:31:37 localhost ALSA device list:
May 13 23:31:37 localhost #0: HDA VIA VT82xx at 0xfbffc000 irq 17
ard

when i fallback into kernel 2.6.20-r8 sound works fine!

emerge --info
Portage 2.1.2.7 (default-linux/amd64/2007.0, gcc-4.1.2, glibc-2.5-r2,
2.6.20-gentoo-r8 x86_64)
=================================================================
System uname: 2.6.20-gentoo-r8 x86_64 AMD Athlon(tm) 64 Processor 3200+
Gentoo Base System release 1.12.10
Timestamp of tree: Thu, 10 May 2007 12:30:10 +0000
dev-java/java-config: 1.3.7, 2.0.32
dev-lang/python:     2.4.4
dev-python/pycrypto: 2.0.1-r5
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.23b
virtual/os-headers:  2.6.21
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -pipe -O2 -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config
/usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="* /etc /etc/conf.d /etc/env.d /etc/env.d/java/ /etc/gconf
/etc/init.d /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-march=athlon64 -pipe -O2 -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer parallel-fetch sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.prz.rzeszow.pl          
http://gentoo.po.opole.pl               http://distfiles.gentoo.org            
http://www.ibiblio.org/pub/Linux/distributions/gentoo        
http://dev.gentoo.org"
LINGUAS="pl en"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress
--force --whole-file --delete --delete-after --stats --timeout=180
--exclude=/distfiles --exclude=/local --exclude=/packages
--filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext 7zip X a52 aac acpi alsa amd64 arts audacious
bash-completion bzip2 cdparanoia chardet cups dbus deprecated devil dga
discouraged divx dri dts dv dvd dvdr dvdread encode exif fbcon ffmpeg gif
gnutls gpm hal iconv idea ieee1394 ipv6 java jpeg jpeg2k kde kdeenablefinal
logitech-mouse logrotate lzo mad midi mmx mmxext mng mp3 mpeg ncurses
network-cron nls no-old-linux nptl nptlonly nsplugin ogg opengl pam pcre pdf
perl plugins png ppds python qt3 rar slang spell sse sse2 ssl svg symlink test
theora threads tiff truetype unicode voice vorbis wma wmf wmp x264 xanim xorg
xscreensaver xv xvid zip zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm
alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa
lfloat linear meter mulaw multi null plug rate route share shm softvol"
ELIBC="glibc" INPUT_DEVICES="keyboard mouse synaptics" KERNEL="linux"
LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses
text" LINGUAS="pl en" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS,
PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS,
PORTDIR_OVERLAY


Reproducible: Always

------- Comment #1 From Grzegorz {NineX} Krzystek 2007-05-12 20:20:17 0000 -------
Created an attachment (id=119041) [details]
.config

------- Comment #2 From Grzegorz {NineX} Krzystek 2007-05-12 20:21:44 0000 -------
Created an attachment (id=119043) [details]
lspci

lspci -bvv output

------- Comment #3 From Grzegorz {NineX} Krzystek 2007-05-12 20:22:06 0000 -------
Created an attachment (id=119044) [details]
lsmod

------- Comment #4 From Grzegorz {NineX} Krzystek 2007-05-12 20:25:42 0000 -------
Created an attachment (id=119046) [details]
dmesg

------- Comment #5 From Jeremy K. Truax 2007-05-12 20:38:31 0000 -------
Can you try booting your kernel with the acpi=off argument and see if that has
the same results?

------- Comment #6 From Jeremy K. Truax 2007-05-12 21:05:56 0000 -------
Also when booting with ACPI enabled, can you show the output of:

amixer scontents

------- Comment #7 From Grzegorz {NineX} Krzystek 2007-05-12 21:16:54 0000 -------
(In reply to comment #6)
> Also when booting with ACPI enabled, can you show the output of:
> 
> amixer scontents
> 

with acpi=off same effect

------- Comment #8 From Grzegorz {NineX} Krzystek 2007-05-12 21:18:28 0000 -------
Created an attachment (id=119049) [details]
amixer

amixer scontents when booted acpi=off

------- Comment #9 From Grzegorz {NineX} Krzystek 2007-05-12 21:20:20 0000 -------
Created an attachment (id=119051) [details]
amixer1

amixer output when system booted without acpi=off

------- Comment #10 From Jeremy K. Truax 2007-05-12 21:26:07 0000 -------
If a dev could please review the following upstream bug: 

http://bugzilla.kernel.org/show_bug.cgi?id=8273

I think it is directly related to this bug. 

The amixer scontents output matches the upstream bug in that there is no
'Master' control.

------- Comment #11 From Grzegorz {NineX} Krzystek 2007-05-12 21:36:10 0000 -------
(In reply to comment #10)
> If a dev could please review the following upstream bug: 
> 
> http://bugzilla.kernel.org/show_bug.cgi?id=8273
> 
> I think it is directly related to this bug. 
> 
> The amixer scontents output matches the upstream bug in that there is no
> 'Master' control.
> 
yes it's the same bug

------- Comment #12 From Jeremy K. Truax 2007-05-12 22:00:27 0000 -------
Once verified, could a Dev please add the following:

1. Status Whiteboard: watch-linux-bugzilla
2. URL: http://bugzilla.kernel.org/show_bug.cgi?id=8273

At that point, we'll watch the upstream bug.

------- Comment #13 From Daniel Drake 2007-05-13 19:56:10 0000 -------
Gregorz, what happens when you try and play a sound? The messages you listed in
comment #0 appear during boot.

When you try and play a sound, does your audio app give an error message? Or
does everything seem to function as normal, except that you can't hear
anything?

------- Comment #14 From Daniel Drake 2007-05-13 19:58:42 0000 -------
Which kernel is the dmesg output in comment #4 from? I'm interested to see
dmesg output from the working 2.6.20 kernel.

Jeremy, nice find, that appears to be the same bug.

------- Comment #15 From Daniel Drake 2007-05-20 04:29:24 0000 -------
Grzegorz, this is currently our only completely unsolved 2.6.21 regression. I'd
really appreciate the info requested in the above 2 comments so that we can
feed more info upstream. Thanks in advance.

------- Comment #16 From Grzegorz {NineX} Krzystek 2007-05-20 16:05:22 0000 -------
(In reply to comment #13)
> Gregorz, what happens when you try and play a sound? The messages you listed in
> comment #0 appear during boot.
> 
> When you try and play a sound, does your audio app give an error message? Or
> does everything seem to function as normal, except that you can't hear
> anything?
> 
no errors given by audio apps it looks like audio is mutted...

------- Comment #17 From Grzegorz {NineX} Krzystek 2007-05-20 16:07:16 0000 -------
(In reply to comment #14)
> Which kernel is the dmesg output in comment #4 from? I'm interested to see
> dmesg output from the working 2.6.20 kernel.
> 
> Jeremy, nice find, that appears to be the same bug.
> 

this is dmesg from gentoo-sources-2.6.21

------- Comment #18 From Grzegorz {NineX} Krzystek 2007-05-20 16:09:28 0000 -------
Created an attachment (id=119819) [details]
dmesg-2.6.20-r8

heare isw gentoo-sources-2.6.20-r8 dmesg. on 2.6.20-r8 intel-hda driver works
fine :>

------- Comment #19 From Daniel Drake 2007-05-20 17:34:35 0000 -------
Thanks for the info. One more question: which hardware are you using here,
specifically which mainboard?

I suggest you create a kernel bugzilla account if you don't already have one,
and add yourself to the CC list of the upstream bug so that you are notified
when patches are available (or more info is needed). If not, I'll try and do my
best to notify you on this bug when something happens, but no promises...

------- Comment #20 From Daniel Drake 2007-05-20 18:00:06 0000 -------
Created an attachment (id=119825) [details]
patch

Please apply this patch to 2.6.21 and see if it fixes the problem.

------- Comment #21 From Grzegorz {NineX} Krzystek 2007-05-20 19:18:06 0000 -------
(In reply to comment #20)
> Created an attachment (id=119825) [edit] [details]
> patch
> 
> Please apply this patch to 2.6.21 and see if it fixes the problem.
> 

Works for me ! :D
Thanks Daniel

------- Comment #22 From Daniel Drake 2007-05-20 20:56:11 0000 -------
Thanks for the quick testing, sent that upstream

------- Comment #23 From Daniel Drake 2007-05-24 00:39:49 0000 -------
accepted into ALSA tree

------- Comment #24 From Daniel Drake 2007-05-25 02:42:16 0000 -------
Fixed in gentoo-sources-2.6.21-r2 (genpatches-2.6.21-3)