You are not logged in.

#1 2007-06-21 09:39:51

George_K
Member
From: Russie, Saint-Pétersbourg
Registered: 2006-09-27
Posts: 75

[SOLVED] Can`t setup alsa->jack converter (jackplug)

Followed official guidelines (http://www.alsa-project.org/alsa-doc/do … p#jackplug), but aplay fails with error

aplay: set_params:900: Sample format non available

I tried different ways to fix but didn`t figure out how to correct this. Sometimes I got

ALSA lib pcm_params.c:2152:(snd_pcm_hw_refine_slave) Slave PCM not usable
aplay: set_params:878: Broken configuration for this PCM: no configurations available

I don`t know how to debug this.
This is an example output of "mplayer -ao alsa":

Audio file file format detected.
==========================================================================
Opening audio decoder: [pcm] Uncompressed PCM audio decoder
AUDIO: 8000 Hz, 1 ch, s16le, 128.0 kbit/100.00% (ratio: 16000->16000)
Selected audio codec: [pcm] afm: pcm (Uncompressed PCM)
==========================================================================
JACK tmpdir identified as [/tmp]
[AO_ALSA] Format s16le is not supported by hardware, trying default.
[AO_ALSA] Unable to set format: Invalid argument
Could not open/initialize audio device -> no sound.

Output to jack works fine. Using Sound Blaster Audigy SE (snd-ca0106).
Do you know how to fix this?

Last edited by George_K (2007-06-22 11:29:17)

Offline

#2 2007-06-22 03:50:53

shinlun
Member
From: Taipei, Taiwan
Registered: 2007-05-16
Posts: 61

Re: [SOLVED] Can`t setup alsa->jack converter (jackplug)

I don't know if you update your alsa-plugins to the latest version, but this problem is related to alsa-lib 1.0.14. You can't find the answer for this on google yet because most distros don't use alsa-lib 1.0.14 for now. I browsed the alsa-lib source a bit and found that it seems that they released 1.0.14 in a hurry(that might explain why most distros still use 1.0.13). If you want to use aplay with jack, you have to explicitly compile lsoft pcm module in this version(you don't have to do this for previous versions). Besides, you have to fix typo(???) in its configure file for this to work. You can use the PKGBUILD below to try out yourself:

pkgname=alsa-lib
pkgver=1.0.14
pkgrel=2
pkgdesc="An alternative implementation of Linux sound support"
arch=(i686 x86_64)
url="http://www.alsa-project.org"
depends=('glibc')
license=('GPL')
options=(!libtool)
source=(ftp://ftp.alsa-project.org/pub/lib/$pkgname-1.0.14a.tar.bz2
    http://www.archlinux.org/~tpowa/alsa-patches/alsa-lib-20070605-1.patch.bz2)
md5sums=('72dc63821ce33f2b97a151a909b06ff8'
         '4842a269f601dbb524c6648f9a4a5013')

build() {
  cd $startdir/src/$pkgname-1.0.14a
  patch -Np1 -i ../alsa-lib-20070605-1.patch || return 1
  sed -i -e '20227s|"$softfloat" != "yes"|"$softfloat" = "yes"|' configure || return 1
  sed -i -e 's|softloat|softfloat|' configure || return 1
  ./configure --prefix=/usr --with-softfloat
  make || return 1
  make DESTDIR=$startdir/pkg install
}

Last edited by shinlun (2007-06-22 04:12:57)

Offline

#3 2007-06-22 11:28:58

George_K
Member
From: Russie, Saint-Pétersbourg
Registered: 2006-09-27
Posts: 75

Re: [SOLVED] Can`t setup alsa->jack converter (jackplug)

This works. Thank you! How have you learned this?

Offline

#4 2007-06-22 12:36:25

shinlun
Member
From: Taipei, Taiwan
Registered: 2007-05-16
Posts: 61

Re: [SOLVED] Can`t setup alsa->jack converter (jackplug)

You are welcome smile I googled this problem but didn't find any solution for it, so I just hacked my system everywhere and finally got this down. Just lucky enough on this, because 99% of time I wasn't neutral

Offline

Board footer

Powered by FluxBB