LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 01-06-2006, 03:19 PM   #1
kaz2100
Senior Member
 
Registered: Apr 2005
Location: Penguin land, with apple, no gates
Distribution: Debian testing woody(32) sarge etch lenny squeeze(+64) wheezy jessie
Posts: 1,445

Rep: Reputation: 83
ALSA not working. (jackd)


Hi, penguins.

I am experiencing trouble with ALSA. I am using debian with kernel 2.6.10. I successfully installed jackd and alsa, then configured alsa with alsaconf. xmms works (plays mp3 file)

When I start jackd, I get following.
Code:
>jackd -d alsa 
jackd 0.99.0
Copyright 2001-2003 Paul Davis and others.
jackd comes with ABSOLUTELY NO WARRANTY
This is free software, and you are welcome to redistribute it
under certain conditions; see the file COPYING for details

loading driver ..
creating alsa driver ... hw:0|hw:0|1024|2|48000|0|0|nomon|swmeter|-|32bit
ALSA: Cannot open PCM device alsa_pcm for playback. Falling back to capture-only mode
cannot load driver module alsa
Following is content of /etc/modprobe.d/sound
Code:
alias snd-card-0 snd-intel8x0
options snd-intel8x0 index=0
aplay gives me following
Code:
>aplay ~/c.wav
ALSA lib confmisc.c:550:(snd_determine_driver) could not open control for card 0
ALSA lib conf.c:3461:(_snd_config_evaluate) function snd_func_card_driver returned error: No such device
ALSA lib confmisc.c:387:(snd_func_concat) error evaluating strings
ALSA lib conf.c:3461:(_snd_config_evaluate) function snd_func_concat returned error: No such device
ALSA lib confmisc.c:945:(snd_func_refer) error evaluating name
ALSA lib conf.c:3461:(_snd_config_evaluate) function snd_func_refer returned error: No such device
ALSA lib conf.c:3930:(snd_config_expand) Evaluate error: No such device
ALSA lib pcm.c:2068:(snd_pcm_open_noupdate) Unknown PCM default
aplay: main:508: audio open error: No such device
Kernel config file (sound related part) follows:
Code:
CONFIG_SND=m
CONFIG_SND_TIMER=m
CONFIG_SND_PCM=m
CONFIG_SND_SEQUENCER=m
CONFIG_SND_SEQ_DUMMY=m
CONFIG_SND_OSSEMUL=y
CONFIG_SND_MIXER_OSS=m
CONFIG_SND_PCM_OSS=m
CONFIG_SND_SEQUENCER_OSS=y
CONFIG_SND_RTCTIMER=m
CONFIG_SND_VERBOSE_PRINTK=y
CONFIG_SND_AC97_CODEC=m
CONFIG_SND_INTEL8X0=m
I looked around the web, but I have not found solution yet.

Any suggestion will be appreciated. Thanks in advence.
 
Old 01-06-2006, 05:47 PM   #2
generic_genus
Member
 
Registered: Oct 2005
Distribution: Gentoo Unstable
Posts: 51

Rep: Reputation: 15
When you run jack is there anyother software accessing the soundcard e.g. do you have xmms open, or is there another sound server running such as esound or arts?
 
Old 01-06-2006, 08:10 PM   #3
foo_bar_foo
Senior Member
 
Registered: Jun 2004
Posts: 2,553

Rep: Reputation: 51
yo need realtime access
modprobe realtime any=1
or you have not passed realtime the right parameters

or you can run jackd without -R

or run jackd as root using sudo or something
 
Old 01-07-2006, 07:49 AM   #4
kaz2100
Senior Member
 
Registered: Apr 2005
Location: Penguin land, with apple, no gates
Distribution: Debian testing woody(32) sarge etch lenny squeeze(+64) wheezy jessie
Posts: 1,445

Original Poster
Rep: Reputation: 83
Thank you for your replies.

I tried to run immediately after reboot as root, and same result. jackd -R is same too. aplay also does not work.
 
Old 01-07-2006, 08:05 AM   #5
MMYoung
Member
 
Registered: Apr 2004
Location: Arkansas
Distribution: Ubuntu 8.10
Posts: 365

Rep: Reputation: 30
Do you have alsa-plugins installed? For jackd to work in conjunction with alsa you will need to install the plugins as well, IIRC.

HTH,
MMYoung
 
Old 01-07-2006, 10:23 AM   #6
kaz2100
Senior Member
 
Registered: Apr 2005
Location: Penguin land, with apple, no gates
Distribution: Debian testing woody(32) sarge etch lenny squeeze(+64) wheezy jessie
Posts: 1,445

Original Poster
Rep: Reputation: 83
thanks,

I installed a Debian package named "alsaplayer-jack". I am not sure if this is the plugin MMYoung says.

So far, I checked following:
alsasound utility returns
Code:
>sh alsasound
ALSA sound driver loaded.
>
alsamixer does not work.
Code:
>alsamixer

alsamixer: function snd_ctl_open failed for default: No such device
>
amixer does not either
Code:
>amixer
amixer: Mixer attach default error: No such device
>
~/.asoundrc looks like
Code:
>cat .asoundrc 
pcm.intel8x0    {
        type hw
        card 0
}
ctl.intel8x0    {
        type hw
        card 0
}
>
lsmod looks ok (modules are loaded)
Code:
> lsmod
Module                  Size  Used by
nvidia               3915004  12 
snd_intel8x0           28320  0 
snd_ac97_codec         73376  1 snd_intel8x0
snd_pcm_oss            48676  0 
snd_mixer_oss          17568  1 snd_pcm_oss
snd_pcm                82728  3 snd_intel8x0,snd_ac97_codec,snd_pcm_oss
snd_timer              20228  1 snd_pcm
snd                    45028  6 snd_intel8x0,snd_ac97_codec,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_timer
ipv6                  228832  10 
pcmcia                 19144  4 
ohci_hcd               32328  0 
ehci_hcd               40516  0 
yenta_socket           19136  0 
pcmcia_core            48080  2 pcmcia,yenta_socket
e100                   29792  0 
8250_pci               16768  0 
8250                   21340  1 8250_pci
serial_core            17984  1 8250
snd_page_alloc          7524  2 snd_intel8x0,snd_pcm
uhci_hcd               30828  0 
shpchp                 78420  0 
pci_hotplug             9636  1 shpchp
>
/etc/modules.conf (it is huge, so related part) looks like
Code:
# snd module options
options snd device_mode=0660
# autoloader aliases
alias char-major-116 snd
alias char-major-14 soundcore
###
alias snd-card-0 snd-intel8x0
###
alias sound-slot-0 snd-card-0
alias sound-slot-1 snd-card-1
alias sound-slot-2 snd-card-2
alias sound-slot-3 snd-card-3
alias sound-slot-4 snd-card-4
alias sound-slot-5 snd-card-5
alias sound-slot-6 snd-card-6
alias sound-slot-7 snd-card-7
above sound-slot-0 snd-pcm-oss snd-mixer-oss snd-seq-oss
above sound-slot-1 snd-pcm-oss snd-mixer-oss snd-seq-oss
above sound-slot-2 snd-pcm-oss snd-mixer-oss snd-seq-oss
above sound-slot-3 snd-pcm-oss snd-mixer-oss snd-seq-oss
above sound-slot-4 snd-pcm-oss snd-mixer-oss snd-seq-oss
above sound-slot-5 snd-pcm-oss snd-mixer-oss snd-seq-oss
above sound-slot-6 snd-pcm-oss snd-mixer-oss snd-seq-oss
above sound-slot-7 snd-pcm-oss snd-mixer-oss snd-seq-oss
alias sound-service-0-0 snd-mixer-oss
alias sound-service-0-1 snd-seq-oss
alias sound-service-0-3 snd-pcm-oss
alias sound-service-0-8 snd-seq-oss
alias sound-service-0-12 snd-pcm-oss
/etc/modutils/alsa-base looks (again it is huge, so top part)
Code:
# snd module options
options snd device_mode=0660
# autoloader aliases
alias char-major-116 snd
alias char-major-14 soundcore
###
alias snd-card-0 snd-intel8x0
###
alias sound-slot-0 snd-card-0
alias sound-slot-1 snd-card-1
alias sound-slot-2 snd-card-2
alias sound-slot-3 snd-card-3
alias sound-slot-4 snd-card-4
alias sound-slot-5 snd-card-5
alias sound-slot-6 snd-card-6
alias sound-slot-7 snd-card-7
above sound-slot-0 snd-pcm-oss snd-mixer-oss snd-seq-oss
above sound-slot-1 snd-pcm-oss snd-mixer-oss snd-seq-oss
above sound-slot-2 snd-pcm-oss snd-mixer-oss snd-seq-oss
above sound-slot-3 snd-pcm-oss snd-mixer-oss snd-seq-oss
above sound-slot-4 snd-pcm-oss snd-mixer-oss snd-seq-oss
above sound-slot-5 snd-pcm-oss snd-mixer-oss snd-seq-oss
above sound-slot-6 snd-pcm-oss snd-mixer-oss snd-seq-oss
above sound-slot-7 snd-pcm-oss snd-mixer-oss snd-seq-oss
alias sound-service-0-0 snd-mixer-oss
alias sound-service-0-1 snd-seq-oss
alias sound-service-0-3 snd-pcm-oss
alias sound-service-0-8 snd-seq-oss
alias sound-service-0-12 snd-pcm-oss
I recompiled alsa modules, without any error. One thing I notice is the file names under /etc directory, they are alsa-base insted of alsa, but they are generated by aptitude or something.

Any suggestion will be appreciated.
 
Old 03-22-2006, 10:02 AM   #7
kaz2100
Senior Member
 
Registered: Apr 2005
Location: Penguin land, with apple, no gates
Distribution: Debian testing woody(32) sarge etch lenny squeeze(+64) wheezy jessie
Posts: 1,445

Original Poster
Rep: Reputation: 83
I am replying myself.

Missing things were:

#1. Kernel config,
Code:
  CONFIG_SECURITY=y
  CONFIG_SECURITY_CAPABILITIES=m
  CONFIG_SECURITY_SELINUX=y
#2. realtime script and realtime-lsm (both Debian package). This module did not install correct place with my configuration. (I have both 2.6.15.6 and 2.5.6.10 kernels.
Code:
make KERNEL_DIR=/my/src/for/linux-2.6.15.6
make install
resulted in modules installed for 2.6.10. Something is not quite right yet.

Last edited by kaz2100; 03-23-2006 at 01:27 PM.
 
Old 04-07-2006, 02:51 PM   #8
kaz2100
Senior Member
 
Registered: Apr 2005
Location: Penguin land, with apple, no gates
Distribution: Debian testing woody(32) sarge etch lenny squeeze(+64) wheezy jessie
Posts: 1,445

Original Poster
Rep: Reputation: 83
I found solution to #2 of 22/Mar.
Code:
make install  KERNEL_DIR=/my/src/for/linux-2.6.15.6
takes care of the issue.

Also, I had to modify /etc/init.d/realtime to point "realtime.ko"
Code:
if test ! -e "/lib/modules/`uname -r`/extra/realtime.ko"
                                      ^^^^^

Last edited by kaz2100; 04-07-2006 at 04:10 PM. Reason: additional information
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Multiple ICE1712 (M-Audio) cards and Jackd djdebian76 Linux - Hardware 0 04-30-2005 04:31 PM
alsa not working ZaphyR Linux - Newbie 8 08-12-2004 03:05 PM
jackd does not work, cannot configure SBLive for audio recording in SuSE 9.0 kshaffer Linux - Software 2 05-05-2004 11:27 AM
Need help with jackd sanjuro54 Linux - Software 0 03-20-2004 01:25 PM
ALSA and EMU10K1 working and yet not working Nevernamed90 Linux - Newbie 1 01-09-2003 02:16 AM


All times are GMT -5. The time now is 10:51 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration