Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 142174 - ALSA:Unable to set hw params for playback
Summary: ALSA:Unable to set hw params for playback
Status: VERIFIED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Sound Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-07-30 06:00 UTC by morpheus
Modified: 2006-07-30 07:15 UTC (History)
0 users

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 morpheus 2006-07-30 06:00:23 UTC
Hi!
Well, this is my first entry so please be gentle.

I've got a problem using alsa with a Soundblaster Audigy 2ZS. There is no surround.Stereo works.

This is the error:

speaker-test -Dplug:surround40 -c4

speaker-test 1.0.12rc1

Playback device is plug:surround40
Stream parameters are 48000Hz, S16_LE, 4 channels
Using 16 octaves of pink noise
Rate set to 48000Hz (requested 48000Hz)
Buffer size range from 64 to 16384
Period size range from 16 to 16384
Using max buffer size 16384
Periods = 4
was set period_size = 4096
was set buffer_size = 16384
Unable to set hw params for playback: Unpassender IOCTL (I/O-Control) f
Comment 1 morpheus 2006-07-30 06:00:23 UTC
Hi!
Well, this is my first entry so please be gentle.

I've got a problem using alsa with a Soundblaster Audigy 2ZS. There is no surround.Stereo works.

This is the error:

speaker-test -Dplug:surround40 -c4

speaker-test 1.0.12rc1

Playback device is plug:surround40
Stream parameters are 48000Hz, S16_LE, 4 channels
Using 16 octaves of pink noise
Rate set to 48000Hz (requested 48000Hz)
Buffer size range from 64 to 16384
Period size range from 16 to 16384
Using max buffer size 16384
Periods = 4
was set period_size = 4096
was set buffer_size = 16384
Unable to set hw params for playback: Unpassender IOCTL (I/O-Control) für das Gerät
Setting of hwparams failed: Unpassender IOCTL (I/O-Control) für das Gerät

cat /proc/asound/cards
 0 [Audigy2        ]: Audigy2 - Audigy 2 ZS [SB0350]
                      Audigy 2 ZS [SB0350] (rev.4, serial:0x20021102) at 0xd400, irq 21

cat /proc/asound/pcm
00-04: p16v : p16v : playback 1 : capture 1
00-03: emu10k1 : Multichannel Playback : playback 1
00-02: emu10k1 efx : Multichannel Capture/PT Playback : playback 8 : capture 1
00-01: emu10k1 mic : Mic Capture : capture 1
00-00: emu10k1 : ADC Capture/Standard PCM Playback : playback 32 : capture 1

Kernel config: 

grep SOUND .config
CONFIG_SOUND=y
# CONFIG_SOUND_PRIME is not set

grep SND .config
# CONFIG_SND is not set

I've tested the following:

gentoo-sources-2.6.15-r1:
alsa-driver-1.0.11
alsa-lib-1.0.11

alsa-driver-1.0.10-r2
alsa-lib-1.0.10

gentoo-sources-2.6.16-r6:
alsa-driver-1.0.11
alsa-lib-1.0.11

gentoo-sources-2.6.16-r6:
Kernel driver

vanilla-sources-2.6.17.6:
alsa-driver-1.0.11
alsa-lib-1.0.11

gentoo-sources-2.6.17-r4:
alsa-driver-1.0.11
alsa-lib-1.0.11

alsa-driver-1.0.12_rc1-r1
alsa-lib-1.0.12_rc1

I'm getting always the same error. If I am right everything worked well until alsa-xy-1.0.9z.For sure alsa-xy-1.0.8 worked. The card works well running Windows.I've tried to get back to alsa-xy-1.0.9z but it does not compile with gcc-3.4.6.  

emerge --info:

Portage 2.1-r1 (default-linux/x86/2006.0, gcc-3.4.6, glibc-2.3.6-r4, 2.6.17-gentoo-r4 i686)
=================================================================
System uname: 2.6.17-gentoo-r4 i686 AMD Athlon(tm) XP 2400+
Gentoo Base System version 1.6.15
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
app-admin/eselect-compiler: [Not Present]
dev-lang/python:     2.3.5-r2, 2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.13-r3
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer -D_FILE_OFFSET_BITS=64"
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/gconf /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer -D_FILE_OFFSET_BITS=64"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="ftp://mirror.switch.ch/mirror/gentoo/  http://distfiles.gentoo.org"
LANG="de_DE.UTF-8"
LC_ALL="de_DE.UTF-8"
LINGUAS="de"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_EXTRA_OPTS="--progress"
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'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 3dnow 3dnowext X a52 alsa apache2 apm asf audiofile avi berkdb bitmap-fonts bzip2 cdr cjk cli crypt cups curl dlloader dri dts dvd dvdr dvdread eds emboss encode esd ffmpeg flac foomaticdb fortran gdbm gif glut gmp gnome gpm gstreamer gtk gtk2 idn imagemagick imlib ipv6 isdnlog java jpeg kde lcms ldap libg++ libwww mad matroska mikmod mmx mmxext mng motif mp3 mpeg ncurses nls nptl nptlonly nsplugin nvidia ogg opengl oss pam pcre pdflib perl png pppd python qt qt3 qt4 quicktime readline reflection samba sdl session slang spell spl sse ssl svga tcltk tcpd tiff truetype truetype-fonts type1-fonts udev unicode usb vcd vorbis win32codecs xine xml xml2 xmms xorg xv xvid zlib elibc_glibc input_devices_keyboard input_devices_mouse kernel_linux linguas_de userland_GNU video_cards_nvidia"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTDIR_OVERLAY


Motherboard is: MSI K7N2 Delta2 Platinum MS-6570E (nVidia nForce2 400 Ultra)


There is entry on this problem at the German gentoo forum: http://forums.gentoo.org/viewtopic-t-460392.html

If you need further information please write.
Comment 2 Diego Elio Pettenò (RETIRED) gentoo-dev 2006-07-30 06:33:12 UTC
Please report this upstream (www.alsa-project.de) because it sounds like an ALSA generic problem.

Anyway, you might also have a broken system because of -D_FILE_OFFSET_BITS=64 (that should _not ever_ be passed through C[XX]FLAGS).

Comment 3 morpheus 2006-07-30 07:15:31 UTC
-D_FILE_OFFSET_BITS=64 was the problem. I should have checked this before. Sorry.