Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 298840 - alsa: lspci shows other PCI Subsys Device number of sound card VIA1617A then given in /proc...
Summary: alsa: lspci shows other PCI Subsys Device number of sound card VIA1617A then ...
Status: RESOLVED DUPLICATE of bug 281631
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High normal with 1 vote (vote)
Assignee: Gentoo ALSA team
URL: https://bugtrack.alsa-project.org/als...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-12-29 10:16 UTC by Marc Blumentritt
Modified: 2012-02-20 09:56 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marc Blumentritt 2009-12-29 10:16:43 UTC
lspci shows other PCI Subsys Device number of sound card VIA1617A then given in /proc/asound/card0/codec97#0/ac97#0-0.

I think this is the reason for this error message when restoring default values for alsamixer:

* Loading ALSA modules...
*   Loading: snd-card-0...                        [ ok ]
*   Loading: snd-card-0...                        [ ok ]
* Restoring Mixer Levels...
Unknown hardware: "VIA8237" "VIA Technologies VIA1617A" "AC97a:56494170" "0x1106" "0xaa01"
Hardware is initialized using a guess method
* Errors while restoring defaults, ignoring

Reproducible: Always

Steps to Reproduce:
mediamachine codec97#0 # lspci | grep 11.5
00:11.5 Multimedia audio controller: VIA Technologies, Inc. VT8233/A/8235/8237 AC97 Audio Controller (rev 60)


mediamachine codec97#0 # lspci -n | grep 11.5
00:11.5 0401: 1106:3059 (rev 60)
mediamachine codec97#0 # cat /proc/asound/cards
 0 [V8237          ]: VIA8237 - VIA 8237
                      VIA 8237 with VIA1617A at 0xd800, irq 12
mediamachine codec97#0 # cat /proc/asound/card0/codec97#0/ac97#0-0
0-0/0: VIA Technologies VIA1617A

PCI Subsys Vendor: 0x1106
PCI Subsys Device: 0xaa01

Flags: 0
Revision         : 0x00
Compat. Class    : 0x00
Subsys. Vendor ID: 0xffff
Subsys. ID       : 0xffff

Capabilities     : -headphone out-
DAC resolution   : 18-bit
ADC resolution   : 18-bit
3D enhancement   : IC Ensemble/KS Waves

Current setup
Mic gain         : +0dB [+0dB]
POP path         : pre 3D
Sim. stereo      : off
3D enhancement   : off
Loudness         : off
Mono output      : MIX
Mic select       : Mic1
ADC/DAC loopback : off
Double rate slots: 10/11
Extended ID      : codec=0 rev=2 LDAC SDAC CDAC DSA=0 SPDIF DRA VRA
Extended status  : SPCV LDAC SDAC CDAC SPDIF=10/11 VRA
PCM front DAC    : 48000Hz
PCM Surr DAC     : 48000Hz
PCM LFE DAC      : 48000Hz
PCM ADC          : 48000Hz
SPDIF Control    : Consumer PCM Category=0x2 Generation=1 Rate=48kHz
Actual Results:  
see error message for restoring mixer

Expected Results:  
mixer should be restored as expected

mediamachine # emerge --info                                                                                            
Portage 2.1.6.13 (default/linux/x86/10.0, gcc-4.3.4, glibc-2.9_p20081201-r2, 2.6.31-gentoo-r6 i686)                                  
=================================================================                                                                    
System uname: Linux-2.6.31-gentoo-r6-i686-Intel-R-_Core-TM-2_Duo_CPU_E6550_@_2.33GHz-with-gentoo-2.0.0                               
Timestamp of tree: Tue, 29 Dec 2009 09:15:01 +0000                                                                                   
app-shells/bash:     4.0_p35                                                                                                         
dev-lang/python:     2.6.4                                                                                                           
dev-util/cmake:      2.6.4-r3                                                                                                        
sys-apps/baselayout: 2.0.0                                                                                                           
sys-apps/openrc:     0.5.2-r2                                                                                                        
sys-apps/sandbox:    1.6-r2                                                                                                          
sys-devel/autoconf:  2.63-r1                                                                                                         
sys-devel/automake:  1.7.9-r1, 1.9.6-r2, 1.10.2                                                                                      
sys-devel/binutils:  2.18-r3                                                                                                         
sys-devel/gcc-config: 1.4.1                                                                                                          
sys-devel/libtool:   2.2.6b                                                                                                          
virtual/os-headers:  2.6.27-r2                                                                                                       
ACCEPT_KEYWORDS="x86"                                                                                                                
CBUILD="i686-pc-linux-gnu"                                                                                                           
CFLAGS="-O2 -pipe -march=c3-2 -fomit-frame-pointer"                                                                                  
CHOST="i686-pc-linux-gnu"                                                                                                            
CONFIG_PROTECT="/etc /usr/share/X11/xkb"                                                                                             
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"                                                                                                                                      
CXXFLAGS="-O2 -pipe -march=c3-2 -fomit-frame-pointer"                                                                                                       
DISTDIR="/var/portage/distfiles"                                                                                                                            
FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="de en"
MAKEOPTS="-j3"
PKGDIR="/mediamachine/bin_packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/var/portage"
PORTDIR_OVERLAY="/var/portage/local/layman/sunrise /var/portage/local/layman/ephemeral /var/portage/local/my_ebuilds"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac alsa ao ass audio audiofile avi cdr custom-cflags dbus divx dri dts dvb dvd dvdr dvdread encode fbcon ffmpeg flac gphoto2 hal ieee1394 jpeg lash lirc midi minimal mmx mmxext mp3 mpeg mplayer mudflap multicall musepack nls nocd nptl nptlonly nvram ogg png savedconfig sse syslog theora threads unicode usb v4l v4l2 vcd vdr video vidix vorbis win32codecs wmf x86 xine xorg xv xvid xvmc zlib" ALSA_CARDS="via82xx" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="imon" LINGUAS="de en" LIRC_DEVICES="imon_pad" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="openchrome via"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2009-12-29 13:46:41 UTC
epia ~ # /etc/init.d/alsasound start
 * Loading ALSA modules ...
 *   Loading: snd-card-0 ...                                                                 [ ok ]
 *   Loading: snd-card-0 ...                                                                 [ ok ]
 *   Loading: snd-seq-oss ...                                                                [ ok ]
 *   Loading: snd-pcm-oss ...                                                                [ ok ]
 * Restoring Mixer Levels ...
Unknown hardware: "VIA8233" "ICEnsemble VT1616i" "AC97a:49434552" "0x1106" "0xaa01"
Hardware is initialized using a guess method
 * Errors while restoring defaults, ignoring                                                 [ ok ]


Looks familiar. Hadn't started alsa in a good while now.

Did you run alsaconf after the last alsa/kernel upgrade?
Comment 2 Marc Blumentritt 2009-12-29 20:39:25 UTC
(In reply to comment #1)

> Looks familiar. Hadn't started alsa in a good while now.
> 
> Did you run alsaconf after the last alsa/kernel upgrade?

Yes. I followed the gentoo alsa guide. Afterward I still got the same error message.

Some more details about my application:
This is a system for a media center (freevo), which I build on my desktop PC. It is placed inside the initrd of the kernel, /usr is inside a squashfs file and mounted during boot. If I restart the alsasound start script after booting into the system (thus saving a new asound.state), the error message disappears. Then I copy the new asound.state to my build system, build a new initrd, copy it to my media center, reboot, and to my surprise, the error is back ?!?

I don't understand this, but I think, it is somehow connected to the difference in the PCI Subsys Device numbers as listed in my first post.
Comment 3 mathias 2010-01-03 13:35:24 UTC
(In reply to comment #2)
> (In reply to comment #1)
> 
> > Looks familiar. Hadn't started alsa in a good while now.
> > 
> > Did you run alsaconf after the last alsa/kernel upgrade?
> 
> Yes. I followed the gentoo alsa guide. Afterward I still got the same error
> message.
> 
> Some more details about my application:
> This is a system for a media center (freevo), which I build on my desktop PC.
> It is placed inside the initrd of the kernel, /usr is inside a squashfs file
> and mounted during boot. If I restart the alsasound start script after booting
> into the system (thus saving a new asound.state), the error message disappears.
> Then I copy the new asound.state to my build system, build a new initrd, copy
> it to my media center, reboot, and to my surprise, the error is back ?!?
> 
> I don't understand this, but I think, it is somehow connected to the difference
> in the PCI Subsys Device numbers as listed in my first post.
> 

got same error than you with same card .
ALSA_CARDS="via82xx"
tried everithing ( alsaconf ...) but alway's same problem
cannot save alsamixer setup ...
and sometimes , ALSA time out .( error's in alsalib).
Comment 4 mathias 2010-01-03 13:38:41 UTC
alsasound           | * Restoring Mixer Levels ...
alsasound           |Unknown hardware: "VIA8237" "Realtek ALC655 rev 0" "AC97a:414c4760" "0x1458" "0xa002"




Portage 2.1.7.16 (default/linux/x86/10.0/developer, gcc-4.4.2, glibc-2.11-r1, 2.6.32-tuxonice i686)
=================================================================
System uname: Linux-2.6.32-tuxonice-i686-AMD_Athlon-tm-_XP_3000+-with-gentoo-2.0.1
Timestamp of tree: Sun, 03 Jan 2010 11:00:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     4.0_p35
dev-java/java-config: 1.3.7-r1, 2.1.10
dev-lang/python:     2.6.4, 3.1.1-r1
dev-python/pycrypto: 2.0.1-r8
dev-util/ccache:     2.4-r8
dev-util/cmake:      2.8.0
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.6.0
sys-apps/sandbox:    2.2
sys-devel/autoconf:  2.13, 2.65
sys-devel/automake:  1.4_p6, 1.5-r1, 1.6.3-r1, 1.7.9-r2, 1.8.5-r4, 1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="x86 ~x86"
ACCEPT_LICENSE="*"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=athlon-xp -fno-stack-protector -O2 -pipe -fomit-frame-pointer -fstack-protector"
CHOST="i686-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 /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=athlon-xp -fno-stack-protector -O2 -pipe -fomit-frame-pointer -fstack-protector"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests ccache confcache cvs digest distlocks fixpackages multilib-strict news parallel-fetch protect-owned sandbox sfperms sign splitdebug strict svn unmerge-logs unmerge-orphans"
GENTOO_MIRRORS="http://91.121.125.139/gentoo-distfiles/ ftp://gentoo.imj.fr/pub/gentoo/ ftp://ftp.free.fr/mirrors/ftp.gentoo.org/ ftp://mirror.qubenet.net/mirror/gentoo/ http://mirror.qubenet.net/mirror/gentoo/"
LANG="fr"
LC_ALL="fr_FR@euro"
LDFLAGS="-Wl,-O1"
LINGUAS="fr"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X a52 aac aalib accessibility acl acpi additions alsa amarok apache2 autoipd avahi bash-completion berkdb bluetooth brandy bzip2 cairo capi cdparanoia cdr cgi chm chroot cli consolekit cracklib crypt cups curl cursors custom-cflags custom-optimization cvs cxx dar32 dbus deprecated discouraged distribution djbfft dri dtmf dts dvd dvdnav dvdr eds emacs embedded emboss emerald emoticon encode escreen evo examples extras fam fasttrack fat fbcon fbcondecor fbsplash ffmpeg firefox flac fortran fts3 gadu gd gdbm gif gimp git glibc-omitfp glitz glut gmp gnome gnome-print gnutella gnutls gpm gstreamer gtk h224 h323 hash hbci hdb-ldap hipe httpd iceweasel iconv icu image inquisitio java javascript jingle jpeg jpeg2k kde kdrive kerberos kpoll latex lcms ldap libnotify libv4l2 libwww lightning live mad magic matroska mdnsresponder-compat melt mikmod mmx mmxext mng modules mono motif mozdevelop mozdom mp3 mp4 mpeg mplayer msn mttr mudflap musepack music mysql ncurses netmeeting nls nptl nptlonly nsplugin ntfs nvidia objc odbc ofx ogg openal opengl openmp oscar otr overlays pam pcntl pcre pdf perl php pink plugins png policykit portage ppds pppd pth pvr python qa qt3 qt3support qt4 quicktime quotes readline reflection replytolist rtsp ruby-bindings sasl sbc sctp 
sdb-ldap sdk sdl sdl-image seamonkey server session shout sip skins slp snmp sound source spell spl sql sqlite srt sse ssl startup-notification stream subversion svg sysfs tcpd themes theora threads thunar tiff tk truetype udev unicode unsupported upnp usb utils v4l v4l2 vboxwebsrv vdpau vhook videos visibility vlm vorbis wav webdav webdav-serf webkit win32codecs wxwindows x264 x86 xcb xcomposite xml xorg xosd xulrunner xv xvid xvmc yahoo zlib" ALSA_CARDS="via82xx" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias php slp " ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="fr" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 5 mathias 2010-04-07 16:35:46 UTC
i had always same problem with new kernel (2.6.33) , trying alsadriver from kernel and from source ...
( sdl timeout  (in alsalib)  playing sound and lot of problem with this card , including computer slow down time to time ). (VT8237)
The only solution i have found is to go to OSS4 sound driver , and all is now perfect for me (oss-devel from layman)... no problem now ......
Problem was really with alsa drivers  ( with my configuration  perharps ?).

00:11.5 Multimedia audio controller: VIA Technologies, Inc. VT8233/A/8235/8237 AC97 Audio Controller (rev 60)
        Subsystem: Giga-byte Technology GA-7VAX Onboard Audio (Realtek ALC650)
        Flags: medium devsel, IRQ 22
        I/O ports at bc00 [size=256]
        Capabilities: [c0] Power Management version 2
        Kernel driver in use: oss_via823x
Comment 6 the_mgt 2010-08-09 09:48:00 UTC
Same problem here on a MII 6000E Epia mainboard with onboard sound. This board worked fine with alsa since before kernel 2.6.9, now it is unusable as media center, since the SPDIF settings are overwritten on everystart and i dont get a PCM signal to my A/V amp

This is totally ridiculous and needs fixing urgently.

The system uses openrc and baselayout and is bootet via PXE without an initrd, the alsa stuff is compiled as module.
Comment 7 the_mgt 2010-08-10 11:06:17 UTC
Filed bugreport on the alsa project:
https://bugtrack.alsa-project.org/alsa-bug/view.php?id=5093
Comment 8 Tony Vroon (RETIRED) gentoo-dev 2012-02-20 09:56:37 UTC
The -I option to alsactl has been added in 1.0.25-r1, which should keep this from occurring. I am basing that reply on comments in the upstream bug report.

*** This bug has been marked as a duplicate of bug 281631 ***