View previous topic :: View next topic |
Author |
Message |
kEiNsTeiN Guru
Joined: 29 Apr 2005 Posts: 361 Location: Germany
|
Posted: Sun Aug 05, 2007 7:43 pm Post subject: OMG HELP! Alsa behaving WIERD! Unable to install hw params |
|
|
Hi!
For some fu**ed up reason, Alsa works only with amarok (which now broke for me), and RealPlayer!!!
with anything else (kaffeine, aplay, alsaplayer, vlc, mplayer), either the program totally freezes, or I get this:
Code: | keinstein src # aplay /usr/share/psi/sound/chat1.wav
Playing WAVE '/usr/share/psi/sound/chat1.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Mono
aplay: set_params:961: Unable to install hw params:
ACCESS: RW_INTERLEAVED
FORMAT: S16_LE
SUBFORMAT: STD
SAMPLE_BITS: 16
FRAME_BITS: 16
CHANNELS: 1
RATE: 44100
PERIOD_TIME: (21333 21334)
PERIOD_SIZE: (940 941)
PERIOD_BYTES: (1880 1882)
PERIODS: (15 17)
BUFFER_TIME: (341315 341316)
BUFFER_SIZE: 15052
BUFFER_BYTES: 30104
TICK_TIME: 0 |
WTF?
Sound in Flash/Firefox doesn't work either, but at least doesnt crash the browser (which actually appears pretty unstable right now, crashing often, to be accurate)
I had an systemupdate 3 days ago, this is what changed:
Code: | Sat Mar 17 06:37:09 2007 >>> media-sound/alsa-utils-1.0.14_rc2-r3
Thu Aug 2 03:09:44 2007 >>> media-sound/alsa-utils-1.0.14
Fri Mar 30 02:11:12 2007 >>> media-sound/alsa-headers-1.0.14_rc3
Mon Jul 30 01:49:42 2007 >>> media-sound/alsa-headers-1.0.14
Sat Mar 17 06:37:09 2007 >>> media-sound/alsa-utils-1.0.14_rc2-r3
Thu Aug 2 03:09:44 2007 >>> media-sound/alsa-utils-1.0.14
Fri Mar 30 03:35:44 2007 >>> media-libs/alsa-lib-1.0.14_rc3
Mon Jul 30 03:38:49 2007 >>> media-libs/alsa-lib-1.0.14a-r1
Fri Aug 3 17:24:32 2007 >>> media-libs/alsa-lib-1.0.14a-r1
Wed Oct 4 06:28:22 2006 >>> media-libs/alsa-oss-1.0.12
Thu Aug 2 05:20:56 2007 >>> media-libs/alsa-oss-1.0.14
|
damn I believe I screwed the whole system... running emerge -e world right now, not sure if it'll help... |
|
Back to top |
|
|
PaulBredbury Watchman
Joined: 14 Jul 2005 Posts: 7310
|
Posted: Sun Aug 05, 2007 7:48 pm Post subject: Re: OMG HELP! Alsa behaving WIERD! Unable to install hw para |
|
|
kEiNsTeiN wrote: | Wed Oct 4 06:28:22 2006 >>> media-libs/alsa-oss-1.0.12
Thu Aug 2 05:20:56 2007 >>> media-libs/alsa-oss-1.0.14 |
12 is not the same as 14. Get those version numbers in sync. All of them, which contain "alsa" in their name. And to forestall the inevitable:
Follow wiki article carefully. |
|
Back to top |
|
|
kEiNsTeiN Guru
Joined: 29 Apr 2005 Posts: 361 Location: Germany
|
Posted: Sun Aug 05, 2007 7:53 pm Post subject: |
|
|
no, they're all 14, I just posted the old version numbers so you can see what I had before, look at the timestamp...
Code: | [I] media-libs/alsa-lib
Available versions: 1.0.10[4] (~)1.0.12_rc1-r1[4] 1.0.13 1.0.14_rc1 [M](~)1.0.14_rc1-r1 1.0.14_rc2 [M](~)1.0.14_rc2-r1 (~)1.0.14_rc3 [M](~)1.0.14_rc3-r1 [M](~)1.0.14_rc4 [M](~)1.0.14_rc4-r1 (~)1.0.14a (~)1.0.14a-r1
Installed versions: 1.0.14a-r1(01:22:34 05.08.2007)(-alisp -alsa_pcm_plugins_adpcm -alsa_pcm_plugins_alaw -alsa_pcm_plugins_copy -alsa_pcm_plugins_dshare -alsa_pcm_plugins_dsnoop -alsa_pcm_plugins_extplug -alsa_pcm_plugins_file -alsa_pcm_plugins_hooks -alsa_pcm_plugins_ladspa -alsa_pcm_plugins_lfloat -alsa_pcm_plugins_linear -alsa_pcm_plugins_meter -alsa_pcm_plugins_mulaw -alsa_pcm_plugins_multi -alsa_pcm_plugins_null -alsa_pcm_plugins_rate -alsa_pcm_plugins_route -alsa_pcm_plugins_share -alsa_pcm_plugins_shm -debug -doc midi)
[I] media-libs/alsa-oss
Available versions: 1.0.12 [M](~)1.0.14_rc4 (~)1.0.14
Installed versions: 1.0.14(01:23:13 05.08.2007)
[I] media-sound/alsa-headers
Available versions: 1.0.13 1.0.14_rc1 1.0.14_rc2 (~)1.0.14_rc3 [M](~)1.0.14_rc4 (~)1.0.14 [M]**9999
Installed versions: 1.0.14(01:11:56 05.08.2007)
[I] media-sound/alsa-utils
Available versions: (0.9) 1.0.13 1.0.14_rc1 1.0.14_rc2-r3 (~)1.0.14
Installed versions: 1.0.14(0.9)(01:14:17 05.08.2007)(midi nls)
[I] media-sound/alsaplayer
Available versions: (~)0.99.77-r1 (~)0.99.80_rc1 **9999[4]
Installed versions: 0.99.80_rc1(01:19:23 05.08.2007)(alsa audiofile -doc -esd flac gtk -jack -mikmod -nas ogg opengl -oss vorbis -xosd)
Homepage: http://www.alsaplayer.org/ |
I have the driver compiled into the kernel, not using alsa-drivers or module stuff
edit: I mentioned that it worked before? |
|
Back to top |
|
|
01mf02 Veteran
Joined: 21 Nov 2004 Posts: 1070 Location: Innsbruck, Austria
|
Posted: Sun Aug 05, 2007 7:56 pm Post subject: |
|
|
Do you have strange CFLAGS etc.? Have you tried moving /etc/asound.conf and ~/.asoundrc somewhere else? |
|
Back to top |
|
|
kEiNsTeiN Guru
Joined: 29 Apr 2005 Posts: 361 Location: Germany
|
Posted: Sun Aug 05, 2007 10:11 pm Post subject: |
|
|
Code: | veit@keinstein ~ $ ls -l /etc/asound.conf
ls: cannot access /etc/asound.conf: No such file or directory
veit@keinstein ~ $ ls -l .asoundrc
ls: cannot access .asoundrc: No such file or directory |
Code: | keinstein ~ # emerge --info
Portage 2.1.3.2 (default-linux/x86/2007.0/desktop, gcc-4.2.0, glibc-2.6-r0, 2.6.22-kamikaze5 i686)
=================================================================
System uname: 2.6.22-kamikaze5 i686 Mobile Intel(R) Pentium(R) 4 - M CPU 2.20GHz
Gentoo Base System release 2.0.0_rc1
Timestamp of tree: Fri, 03 Aug 2007 00:00:01 +0000
ccache version 2.4 [enabled]
dev-java/java-config: 1.3.7, 2.0.33-r1
dev-lang/python: 2.4.4-r4
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache: 2.4-r7
sys-apps/sandbox: 1.2.18.1
sys-devel/autoconf: 2.13, 2.61-r1
sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils: 2.17-r1
sys-devel/gcc-config: 1.3.16
sys-devel/libtool: 1.5.24
virtual/os-headers: 2.6.22-r2
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-Os -pipe -march=pentium4m -fomit-frame-pointer"
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"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/initng/daemon /etc/initng/net /etc/initng/system /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/splash /etc/terminfo"
CXXFLAGS="-Os -pipe -march=pentium4m -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks fixpackages metadata-transfer parallel-fetch sandbox sfperms unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="en_US.UTF-8"
LC_ALL="de_DE.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="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"
PORTDIR_OVERLAY="/usr/portage/local/layman/custom-kernels /usr/portage/local/layman/initng /usr/portage/local/layman/sunrise /usr/portage/local/layman/einit /usr/portage/local/layman/xeffects /usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acpi alsa amarok amr amrr apache2 asf audiofile avi bidi bluetooth bootsplash browserplugin bzip2 bzlib cddb cdinstall cdparanoia cdr cli crypt css cups curl dbus dhcp divx divx4linux dlloader dmi dri dvb dvd dvdr dvdread encode exif ext4dev extras fam fastbuild faxonly fbcon fbsplash ffmpeg flac ftp gd gdbm gif gimpprint glib glibc-omitfp glitz glut gmedia gstreamer gtk hal id3 idn imagemagick imap imlib ipod isdnlog jabber java javascript jpeg kde kdeenablefinal kdehiddenvisibility kickoff kipi libg++ libwww mad matroska midi mime mmx mmxext mozbranding mp3 mp4 mp4live mpeg mpeg2 musicbrainz mysql net nls nptl nptlonly nsplugin ntfs nvidia ogg opengl pam pch pcre pdf pertty pic png ppds pppd qt qt-copy qt3 qt3support qt4 quicktime rdesktop readline realmedia reflection risky sdl session skins slp sockets spell spl splash sse ssl svg tcpd threads tidy tiff tokenizer truetype truetype-fonts type1-fonts udev unicode usb userlocales utempter vcd visualization vorbis wifi win32codecs wmp x264 x86 xcomposite xfs xine xinerama xorg xv xvid xvmc zlib" ALSA_CARDS="intel8x0" 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" DVB_CARDS="dibusb-usb1" ELIBC="glibc" INITNG_PLUGINS="ngcs nge ctrlaltdel also bash_launcher chdir chroot conflict cpout critical cron daemon dev dllaunch envparser find fstat history idleprobe initctl interactive iparser last limit logfile netprobe ngc4 pause pidfile reload renice rlparser simple_launcher stcmd stdout suid syncron syslog unneeded provide" INPUT_DEVICES="keyboard mouse synaptics evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS |
|
|
Back to top |
|
|
kEiNsTeiN Guru
Joined: 29 Apr 2005 Posts: 361 Location: Germany
|
Posted: Mon Aug 06, 2007 3:35 pm Post subject: |
|
|
*bump*
I'm soooo clueless.....
If just amarok and realplayer wouldn't work, so I could get a better sense of what's going on... but this is just sick... |
|
Back to top |
|
|
augury l33t
Joined: 22 May 2004 Posts: 722 Location: philadelphia
|
Posted: Tue Aug 14, 2007 4:28 pm Post subject: |
|
|
Same problem.
Code: |
Portage 2.1.3.5 (unavailable, gcc-4.2.0, glibc-2.3.4.20050125-r1,glibc-2.6-r0, 2.6.23-rc2 i686)
=================================================================
System uname: 2.6.23-rc2 i686 Intel(R) Pentium(R) 4 CPU 3.20GHz
Gentoo Base System release 1.12.10
Timestamp of tree: Tue, 14 Aug 2007 14:00:01 +0000
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.4 [disabled]
dev-java/java-config: 1.3.7, 2.0.33-r1
dev-lang/python: 2.1.3-r1, 2.2.3-r5, 2.3.5, 2.4.4-r4
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache: 2.4
sys-apps/sandbox: 1.2.18.1
sys-devel/autoconf: 2.13, 2.61-r1
sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils: 2.15.92.0.2-r7, 2.15.92.0.2-r10, 2.15.94.0.2.2, 2.16-r1, 2.16.1-r1, 2.17-r1
sys-devel/gcc-config: 1.3.16
sys-devel/libtool: 1.5.24
virtual/os-headers: 2.6.22-r2
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
|
Code: | 00:1b.0 Audio device: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) High Definition Audio Controller (rev 03)
|
Just running firefox I get this in the terminal
Code: | ALSA lib pcm_misc.c:740:(snd_pcm_parse_control_id) Cannot get index for 0 |
aoss firefox
Code: |
ALSA lib confmisc.c:769:(parse_card) cannot find card 'h '³_driver'
ALSA lib conf.c:3510:(_snd_config_evaluate) function snd_func_card_driver returned error: No such device
ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
ALSA lib conf.c:3510:(_snd_config_evaluate) function snd_func_concat returned error: No such device
ALSA lib confmisc.c:1251:(snd_func_refer) error evaluating name
ALSA lib conf.c:3510:(_snd_config_evaluate) function snd_func_refer returned error: No such device
ALSA lib conf.c:3982:(snd_config_expand) Evaluate error: No such device
ALSA lib pcm.c:2144:(snd_pcm_open_noupdate) Unknown PCM default
ALSA lib pcm_hw.c:1351:(_snd_pcm_hw_open) Invalid value for card
|
Otherwise I get sound. Except in alsaplayer. |
|
Back to top |
|
|
ketjap Tux's lil' helper
Joined: 03 Nov 2005 Posts: 75 Location: The Netherlands
|
Posted: Fri Sep 14, 2007 9:00 am Post subject: |
|
|
Same problem here at 2 different machiines. Has anyone an solution yet? Is it the kernel or is it alsa? |
|
Back to top |
|
|
ketjap Tux's lil' helper
Joined: 03 Nov 2005 Posts: 75 Location: The Netherlands
|
Posted: Fri Sep 14, 2007 9:03 am Post subject: |
|
|
I've found another post with the same problem. There solution was to downgrade alsa lower then 1.0.14. |
|
Back to top |
|
|
ketjap Tux's lil' helper
Joined: 03 Nov 2005 Posts: 75 Location: The Netherlands
|
Posted: Fri Sep 14, 2007 9:30 am Post subject: |
|
|
When you only put =media-libs/alsa-lib-1.0.14a-r1 in /etc/portage/package.mask it will do the trick. |
|
Back to top |
|
|
KarlH420 n00b
Joined: 25 Apr 2005 Posts: 45
|
Posted: Fri Sep 14, 2007 3:25 pm Post subject: |
|
|
Thanks ketjap That solved the issue for me too. |
|
Back to top |
|
|
69719 l33t
Joined: 20 Sep 2004 Posts: 865
|
Posted: Fri Sep 21, 2007 9:21 pm Post subject: |
|
|
try this
echo 'ALSA_PCM_PLUGINS="adpcm alaw copy dshare dsnoop extplug file hooks ladspa lfloat linear meter mulaw multi null rate route share shm"' >> /etc/make.conf
emerge --oneshot alsa-lib && /etc/init.d/alsasound restart |
|
Back to top |
|
|
daemian n00b
Joined: 07 Jul 2007 Posts: 1
|
Posted: Sun Sep 30, 2007 10:51 pm Post subject: |
|
|
escor wrote: | try this
echo 'ALSA_PCM_PLUGINS="adpcm alaw copy dshare dsnoop extplug file hooks ladspa lfloat linear meter mulaw multi null rate route share shm"' >> /etc/make.conf
emerge --oneshot alsa-lib && /etc/init.d/alsasound restart |
Woot ! I had this same weird behaviour since ALSA update, and this incantation saved my day !
Are all these plugins really needed, by the way ?
Many thanks |
|
Back to top |
|
|
69719 l33t
Joined: 20 Sep 2004 Posts: 865
|
Posted: Mon Oct 01, 2007 4:43 am Post subject: |
|
|
Important plugins: plug ioplug, recommended plugins (at minimum): plug ioplug dmix |
|
Back to top |
|
|
|