LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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-09-2006, 09:49 AM   #1
int0x80
Member
 
Registered: Sep 2002
Posts: 310

Rep: Reputation: Disabled
Question Debian ALSA (2.6 kernel)


I am running a 2.6.14.3 kernel in Debian with the ALSA packages installed. The sound card is a VIA (onboard), and is correctly identified by ALSA when the system loads. Its driver is compiled into the kernel as opposed to being loaded as a module.

However, the sound does not play on this system. When booting into KDE, I get the useless message from artsd that device /dev/dsp can't be opened. Granted there are many potential causes for this, however I don't see why this is the case for this situation.

* I have already adjusted the mixer settings using alsamixer.

dmesg
Code:
Advanced Linux Sound Architecture Driver Version 1.0.10rc1 (Mon Sep 12 08:13:09 2005 UTC).
via82xx: Assuming DXS channels with 48k fixed sample rate.
         Please try dxs_support=5 option
         and report if it works on your machine.
         For more details, read ALSA-Configuration.txt.
ACPI: PCI Interrupt Link [ALKC] BIOS reported IRQ 0, using IRQ 22
ACPI: PCI Interrupt Link [ALKC] enabled at IRQ 22
ACPI: PCI Interrupt 0000:00:11.5[C] -> Link [ALKC] -> GSI 22 (level, low) -> IRQ 20
PCI: Via IRQ fixup for 0000:00:11.5, from 10 to 4
PCI: Setting latency timer of device 0000:00:11.5 to 64
ALSA device list:
  #0: VIA 8235 with CMI9761 at 0xe000, irq 20
lspci
Code:
0000:00:11.5 Multimedia audio controller: VIA Technologies, Inc. VT8233/A/8235/8237 AC97 Audio Controller (rev 50)
Any suggestions? If there are any other file contents or outputs you'd like to see, please request them.

PS: I've searched all over Google, and through the LQ forums already.
 
Old 01-09-2006, 11:14 AM   #2
Notwerk
Member
 
Registered: Apr 2005
Location: Jordan
Distribution: Debian (Sarge), Ubuntu (6.06)
Posts: 271

Rep: Reputation: 31
Try:
Code:
#killall esd
if that works you know what to investigate
 
Old 01-09-2006, 12:14 PM   #3
int0x80
Member
 
Registered: Sep 2002
Posts: 310

Original Poster
Rep: Reputation: Disabled
Thanks for the suggestion. The esound package is not installed, however. I have seen that in the past where esd blocks artsd and causes problems. Unfortunately this is not the case here.
 
Old 01-10-2006, 06:04 AM   #4
Notwerk
Member
 
Registered: Apr 2005
Location: Jordan
Distribution: Debian (Sarge), Ubuntu (6.06)
Posts: 271

Rep: Reputation: 31
In that case, check the permissions for /dev/dsp

You might need to add your user account to the "audio" group (or whichever is applicable in your case), or modify the device permissions to allow read/write to regular users.

Did you try to dump stuff into /dev/dsp? e.g. $cat /dev/[u]random > /dev/dsp. That should generate some sound if you have the right permissions (as a regular user).
 
Old 01-10-2006, 06:08 AM   #5
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 57
I think by default users are part of audio group but check..
Relaunch alsaconf (you need your driver as a module for this!)
 
Old 01-10-2006, 11:00 AM   #6
int0x80
Member
 
Registered: Sep 2002
Posts: 310

Original Poster
Rep: Reputation: Disabled
I currently don't have access to the machine, but:

Quote:
Originally Posted by Notwerk
In that case, check the permissions for /dev/dsp

You might need to add your user account to the "audio" group (or whichever is applicable in your case), or modify the device permissions to allow read/write to regular users.

Did you try to dump stuff into /dev/dsp? e.g. $cat /dev/[u]random > /dev/dsp. That should generate some sound if you have the right permissions (as a regular user).
I recall the permissions for /dev/dsp being crw-rw----. Unfortunately I didn't think to grep audio /etc/group. However, it appears I was automatically added to the audio group on the Debian system I'm currently on. Therefore, I would assume the same holds true for the system in question. I didn't think to cat anything to /dev/dsp, so that's something to try. Funny that idea didn't cross my mind as that's usually how I find my mouse

Quote:
Originally Posted by nx5000
I think by default users are part of audio group but check..
Relaunch alsaconf (you need your driver as a module for this!)
It appears you were right about the users being part of the audio group. alsaconf won't do much for me in this case as the driver was compiled into the kernel, instead of being built as a module. Usually, I make the sound driver as a module, and then use alsaconf. However, when I first did that in this case, alsaconf would fail to unload the sound modules. Then when I would run alsamixer, I would get an error. I believe it was "alsactl:load_state: 1134: No sound cards found".
 
Old 01-10-2006, 11:31 AM   #7
ericb
Member
 
Registered: Sep 2005
Location: Riverhead, NY
Distribution: Vector Linux 5.1
Posts: 47

Rep: Reputation: 15
i have the same problem, and i'm not very good with linux, so could you maybe dumb it down a little bit?
 
Old 01-10-2006, 12:18 PM   #8
int0x80
Member
 
Registered: Sep 2002
Posts: 310

Original Poster
Rep: Reputation: Disabled
ericb: Just hang tight. Once the solution is determined, it will be explained. Also there are many potential causes for this problem. I found several solutions that worked for others through google. None of them worked for me, however.
 
Old 01-10-2006, 12:35 PM   #9
ericb
Member
 
Registered: Sep 2005
Location: Riverhead, NY
Distribution: Vector Linux 5.1
Posts: 47

Rep: Reputation: 15
alright cool, i still gotta fuck around with alsa, i just installed my system, and so far it hasn't work on slackware, and barely on fedora (i got the sound to work, but it had little stupid problems
 
Old 01-11-2006, 02:06 AM   #10
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 57
Quote:
Originally Posted by GNUbie
alsaconf won't do much for me in this case as the driver was compiled into the kernel, instead of being built as a module. Usually, I make the sound driver as a module, and then use alsaconf. However, when I first did that in this case, alsaconf would fail to unload the sound modules.
Yes, it is an annoying limitation of alsaconf, I discovered it a few days ago.
I also usually compile it as module but just for having a bit more quicker kernel , I linked everything to the kernel.
Then looked at alsaconf and saw

Code:
# In Debian the tool always operates in modinfo mode
#    -m|--modinfo)
#       use_modinfo_db=1; shift ;;
So now, I have my audio drivers as the only modules...
After running alsaconf, everything went fine (you have to be sure to close all apps accessing the sound system)
I'm running artsd on top of it (through KDE Sound System) to enable sharing of the device by multiple programs.
Works ok. (until now..)
 
Old 01-11-2006, 11:03 AM   #11
ericb
Member
 
Registered: Sep 2005
Location: Riverhead, NY
Distribution: Vector Linux 5.1
Posts: 47

Rep: Reputation: 15
i actually got my sound to work on my old soundcard, but it won't detect my newer better one (better than no sound though haha)
 
Old 01-11-2006, 05:02 PM   #12
int0x80
Member
 
Registered: Sep 2002
Posts: 310

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Notwerk
You might need to add your user account to the "audio" group (or whichever is applicable in your case), or modify the device permissions to allow read/write to regular users.

Did you try to dump stuff into /dev/dsp? e.g. $cat /dev/[u]random > /dev/dsp. That should generate some sound if you have the right permissions (as a regular user).
That's actually what the problem was. Catting /dev/urandom to /dev/dsp produced a horrific noise, and adding the user to /etc/group, then restarting kdm/X fixed the problem! Thanks so much
 
Old 01-11-2006, 06:40 PM   #13
Notwerk
Member
 
Registered: Apr 2005
Location: Jordan
Distribution: Debian (Sarge), Ubuntu (6.06)
Posts: 271

Rep: Reputation: 31
I've seen this happen before (on my machine).
The first user account created (through the GUI) after the install was automatically added to the audio group but subsequent user accounts weren't.
 
Old 01-12-2006, 02:11 AM   #14
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 57
You are right notwerk, I have the same on my machine.
Never seen this.
 
  


Reply



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
kernel-2.6.3 compiled with alsa but xmms alsa output dont plays demmylls Linux - General 3 09-01-2006 04:32 AM
Debian and ALSA 1.0.8 - how? sharkzf6 Debian 8 03-19-2005 07:00 AM
alsa-driver-1.0.5.tar.gz or kernel alsa? shanenin Linux - Software 2 05-29-2004 01:47 PM
Debian Sid - ALSA and a stock 2.6.5 kernel UrbanSlayer Debian 8 04-18-2004 09:14 PM
ALSA on Debian, Kernel Source is There Alsa dosent see it? pfizur Linux - Software 3 12-27-2003 08:46 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:11 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration