Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
ALSA & 2.6 kernel mini HOW-TO?
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2, 3, 4, 5, 6, 7  Next  
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
RobB_NZ
n00b
n00b


Joined: 24 Jan 2004
Posts: 8
Location: New Zealand

PostPosted: Sat Jan 24, 2004 5:10 am    Post subject: Reply with quote

I've finally got sound working in KDE, thanks to all the help in this thread and lots of other places. I've done about every tweak I've seen, and I had only one remaining error: in dmesg I got
Code:

Real Time Clock Driver v1.12
via82xx: Assuming DXS channels with 48k fixed sample rate.
         Please try dxs_support=1 or dxs_support=4 option
         and report if it works on your machine.
devfs_mk_cdev: could not append to parent for sound/audio

so (for reasons that now escape me) I got rid of all my sound-related modules with rmmod, and then deleted everything in /dev that was remotely sound-related. When I rebooted, some of the entries in dev were recreated although not all, and the error had gone away.

The snddevices script that comes with alsa-driver seems to create a whole heap of devices that don't seem to be useful. Could this be a problem?

Anyway, the real solution came when I was looking in KMix. I could get a click from my speakers if I muted/unmuted the PCM channel, as long as the master was unmuted with the volume turned up. No system sounds would play however, and xmms would lock up for about 30 seconds when I tried to play anything through it.

I started to fiddle with the VIA DXS sliders, and all of a sudden a bunch of sounds started playing. And yes, I did have the speaker volume set pretty high at the time... 8O

It seems that the DXS sliders are controlling options rather than levels? With them set to zero, not only was there no sound, but the sounds were blocked and waiting. Very strange. Now, I have the 3 '3D' sliders set to minimum, the first two VIA DXS sliders set to maximum and the other two set to minimum, and both system sounds and xmms are working well.

Not ideal, because I still don't understand what's going on, but at least I've got sound. I'll be looking into this whole "DXS" thing! Of course, now KDE is making noises at me whenever I do anything and I'm almost pining for the silence again...
Back to top
View user's profile Send private message
windex82
Apprentice
Apprentice


Joined: 05 Jun 2003
Posts: 181

PostPosted: Sat Jan 24, 2004 9:28 pm    Post subject: Reply with quote

Yeah, I've got another sound just stopped working story... I managed to get it to work by downgrading to lib and utlis .9.8 with kernel 2.6.1-gentoo for a while in kde, after logging out and back into sound went away. Also, even when I manage to find the 10 minute window with working sount noatun refuses to output any sound, kaboodle on the other hand plays just fine. But of course this is only in the couple minutes I catch it and make it work for 10 more minutes. Whatever I'm doing to fix it here and there isnt very consistant either. Also nothing ever complains about not being able to output sound.

Oh yeah, I've got a sblive using the emu10k1 driver, things were working pretty decent with kernel 2.4 although i never figured out what type of sound system i was in fact using (sound just worked i never merged any alsa-drivers, libs or utils) Sound was also working pretty good in 2.6.0.
Back to top
View user's profile Send private message
tucanoj
n00b
n00b


Joined: 05 Sep 2003
Posts: 44

PostPosted: Sun Jan 25, 2004 6:22 am    Post subject: Reply with quote

Anyone had any luck getting ALSA to run on kernel 2.6 w/ a ESS Maestro 3i.
I emerged alsa-utils, but when I run
Code:
amixer set Master 100 unmute
my speakers go crazy. They start spewing some god awful noise that I
can only compare to my fire alarm and I'm forced to logout to stop it.
Anyone know what's going on or how to fix this?
Back to top
View user's profile Send private message
zeurx
n00b
n00b


Joined: 26 Jun 2002
Posts: 54

PostPosted: Tue Jan 27, 2004 4:43 am    Post subject: modules will not load Reply with quote

ok i am setting up alsa as of 1/26/04 and i go to test/boot my computer and it can not load snd-emu10k1 or snd-via82xx with the error of

Code:

WARNING: Error inserting snd_rawmidi (/lib/modules/2.6.2-rc2/kernel/sound/core/snd-rawmidi.ko): Unknown symbol in module, or unknown parameter (see dmesg)
FATAL: Error inserting snd_emu10k1 (/lib/modules/2.6.2-rc2/kernel/sound/pci/emu10k1/snd-emu10k1.ko): Unknown symbol in module, or unknown parameter (see dmesg)


Code:

FATAL: Error inserting snd_via82xx (/lib/modules/2.6.2-rc2/kernel/sound/pci/snd-via82xx.ko): Unknown symbol in module, or unknown parameter (see dmesg)


can someone please help me on this
Back to top
View user's profile Send private message
agent_jdh
Veteran
Veteran


Joined: 08 Aug 2002
Posts: 1776
Location: Scotland

PostPosted: Wed Jan 28, 2004 12:31 am    Post subject: Re: modules will not load Reply with quote

zeurx wrote:
ok i am setting up alsa as of 1/26/04 and i go to test/boot my computer and it can not load snd-emu10k1 or snd-via82xx with the error of

Code:

WARNING: Error inserting snd_rawmidi (/lib/modules/2.6.2-rc2/kernel/sound/core/snd-rawmidi.ko): Unknown symbol in module, or unknown parameter (see dmesg)
FATAL: Error inserting snd_emu10k1 (/lib/modules/2.6.2-rc2/kernel/sound/pci/emu10k1/snd-emu10k1.ko): Unknown symbol in module, or unknown parameter (see dmesg)


Code:

FATAL: Error inserting snd_via82xx (/lib/modules/2.6.2-rc2/kernel/sound/pci/snd-via82xx.ko): Unknown symbol in module, or unknown parameter (see dmesg)


can someone please help me on this


By any chance do you have module-init-tools-3.0_pre6 or pre7 installed?

You want to downgrade back to module-init-tools-3.0_pre5

A bug report has been filed http://bugs.gentoo.org/show_bug.cgi?id=39397
_________________
Jingle Jangle Jewellery
Back to top
View user's profile Send private message
crazy-bee
Apprentice
Apprentice


Joined: 03 Jan 2003
Posts: 170

PostPosted: Wed Jan 28, 2004 4:20 pm    Post subject: Reply with quote

*Sigh* Should have read that message earlier. Solved my problem by downgrading to pre5. Had tons of errors like the following:

snd_cmipci: Unknown symbol snd_opl3_create
snd_cmipci: Unknown symbol snd_mpu401_uart_interrupt
snd_cmipci: Unknown symbol snd_mpu401_uart_new
snd_cmipci: Unknown symbol snd_opl3_hwdep_new
snd_cmipci: Unknown symbol snd_opl3_create
snd_cmipci: Unknown symbol snd_mpu401_uart_interrupt
snd_cmipci: Unknown symbol snd_mpu401_uart_new
snd_cmipci: Unknown symbol snd_opl3_hwdep_new
Back to top
View user's profile Send private message
jorisor
n00b
n00b


Joined: 24 Jan 2004
Posts: 5

PostPosted: Wed Jan 28, 2004 4:31 pm    Post subject: Reply with quote

I got alsa working in kernel 2.6.1.

my system


kernel 2.6.1 gentoo-dev-sources
Hercules Fortusimose III Sound fusion cs46xx
nforce 2 board (non-deluxe) with sound disabeld)

build kernel with also and alsa-oss as a module
emerge alsa-utils (this will emerge alsa-lib)

there is a script in /usr/src/linux/script
called MAKEDEV.snd.
run it, it wil make your dev

you dont need add rc-update add alsasound boot, remember to run alsamixer to set the control
for your volume!.

for xmms emerge xmms-alsa

Succes
Back to top
View user's profile Send private message
agent_jdh
Veteran
Veteran


Joined: 08 Aug 2002
Posts: 1776
Location: Scotland

PostPosted: Thu Jan 29, 2004 1:35 am    Post subject: Reply with quote

jorisor wrote:
I got alsa working in kernel 2.6.1.

my system


kernel 2.6.1 gentoo-dev-sources
Hercules Fortusimose III Sound fusion cs46xx
nforce 2 board (non-deluxe) with sound disabeld)

build kernel with also and alsa-oss as a module
emerge alsa-utils (this will emerge alsa-lib)

there is a script in /usr/src/linux/script
called MAKEDEV.snd.
run it, it wil make your dev

you dont need add rc-update add alsasound boot, remember to run alsamixer to set the control
for your volume!.

for xmms emerge xmms-alsa

Succes


You don't need to make your devices, as Gentoo (currently) uses devfs.

The point of the alsasound boot script is that it loads/saves your settings without you having to use alsamixer.
_________________
Jingle Jangle Jewellery
Back to top
View user's profile Send private message
OdinsDream
Veteran
Veteran


Joined: 01 Jun 2002
Posts: 1057

PostPosted: Tue Apr 20, 2004 4:58 am    Post subject: Reply with quote

homeobocks wrote:
I get no sound! When I run amixer set Master 100 mute, it says "amixer: Unable to find simple control 'Master,' 0". Similar things occur for amixer set [whatever] unmute.

Also, when I run aplay, it gives me the message

"ALSA lib pcm_hw.c:1055:(snd_pcm_hw_open) open /dev/snd/pcmC0D0p failed: No such file or directory
aplay: main:502: audio open error: No such file or directory"

What could be wrong?

EDIT: Solved.


I'm getting that same error. How did you fix it?
_________________
s/(?<!gnu\/)linux(?! kernel)/GNU\/Linux/gi

Don't blame me. I didn't vote for him.

http://john.simplykiwi.com
Back to top
View user's profile Send private message
serzz
Apprentice
Apprentice


Joined: 03 Apr 2004
Posts: 153

PostPosted: Tue Apr 20, 2004 7:06 am    Post subject: Reply with quote

Any Idea how to configure alsa under kernel-2.4
Back to top
View user's profile Send private message
OdinsDream
Veteran
Veteran


Joined: 01 Jun 2002
Posts: 1057

PostPosted: Tue Apr 20, 2004 11:42 pm    Post subject: Reply with quote

serzz wrote:
Any Idea how to configure alsa under kernel-2.4


Gentoo's ALSA Guide should get you up and running. 2.6 is marginally different, but I've used the guide for 2.4 reliably on several systems.
_________________
s/(?<!gnu\/)linux(?! kernel)/GNU\/Linux/gi

Don't blame me. I didn't vote for him.

http://john.simplykiwi.com
Back to top
View user's profile Send private message
serzz
Apprentice
Apprentice


Joined: 03 Apr 2004
Posts: 153

PostPosted: Thu Apr 22, 2004 7:28 am    Post subject: Reply with quote

Code:

bash-2.05b# modprobe cmaudio
/lib/modules/2.4.20-gentoo-r6/kernel/drivers/sound/cmaudio.o: kernel-module version mismatch
        /lib/modules/2.4.20-gentoo-r6/kernel/drivers/sound/cmaudio.o was compiled for kernel version 2.4.21
        while this kernel is version 2.4.20-gentoo-r6.
/lib/modules/2.4.20-gentoo-r6/kernel/drivers/sound/cmaudio.o: insmod /lib/modules/2.4.20-gentoo-r6/kernel/drivers/sound/cmaudio.o failed
/lib/modules/2.4.20-gentoo-r6/kernel/drivers/sound/cmaudio.o: insmod cmaudio failed

Code:

bash-2.05b# /etc/init.d/alsasound restart
 * WARNING:  you are stopping a boot service.
 * ALSA is not loaded
 * Loading ALSA drivers...
 * Using ALSA OSS emulation
 * Loading: cmaudio
/lib/modules/2.4.20-gentoo-r6/kernel/drivers/sound/cmaudio.o: kernel-module version mismatch
        /lib/modules/2.4.20-gentoo-r6/kernel/drivers/sound/cmaudio.o was compiled for kernel version 2.4.21
        while this kernel is version 2.4.20-gentoo-r6.
/lib/modules/2.4.20-gentoo-r6/kernel/drivers/sound/cmaudio.o: insmod /lib/modules/2.4.20-gentoo-r6/kernel/drivers/sound/cmaudio.o failed
/lib/modules/2.4.20-gentoo-r6/kernel/drivers/sound/cmaudio.o: insmod cmaudio failed
 * Running card-dependent scripts
 * ERROR: Failed to load necessary drivers
 * Restoring Mixer Levels
 * No mixer config in /etc/asound.state, you have to unmute your card!    [ !! ]
                                                                          [ ok ]



Any advise???
Back to top
View user's profile Send private message
Helena
Veteran
Veteran


Joined: 02 Apr 2003
Posts: 1027
Location: De Meern, The Netherlands

PostPosted: Thu Apr 22, 2004 9:03 am    Post subject: Reply with quote

serzz wrote:

Any advise???
Although this question does not belong here (it's about 2.6 kernels!) I'll advise you always to recompile alsa-driver whenever you recompile a kernel. This is also stated in the ALSA guide.
Back to top
View user's profile Send private message
serzz
Apprentice
Apprentice


Joined: 03 Apr 2004
Posts: 153

PostPosted: Fri Apr 23, 2004 6:46 am    Post subject: Reply with quote

no, couple days ago I started to use Kernel 2,6. So mine problem is kinda Kernel 2,6 related.
Back to top
View user's profile Send private message
Helena
Veteran
Veteran


Joined: 02 Apr 2003
Posts: 1027
Location: De Meern, The Netherlands

PostPosted: Fri Apr 23, 2004 10:54 am    Post subject: Reply with quote

serzz wrote:
no, couple days ago I started to use Kernel 2,6. So mine problem is kinda Kernel 2,6 related.
Well your previous post clearly shows you are still running 2.4... If you had ALSA running under 2.4 and are trying to move to 2.6 then you'll have to completely remove ALSA (including alsa-driver, alsa-utils, alsa-tools) and start all over again for the 2.6 kernel.
Back to top
View user's profile Send private message
serzz
Apprentice
Apprentice


Joined: 03 Apr 2004
Posts: 153

PostPosted: Fri Apr 23, 2004 12:03 pm    Post subject: Reply with quote

I unmerged all the tools and then remerged them. Still getting the same output line. What else kernel-2.4 related I should move?
Back to top
View user's profile Send private message
Helena
Veteran
Veteran


Joined: 02 Apr 2003
Posts: 1027
Location: De Meern, The Netherlands

PostPosted: Fri Apr 23, 2004 6:23 pm    Post subject: Reply with quote

serzz wrote:
I unmerged all the tools and then remerged them. Still getting the same output line. What else kernel-2.4 related I should move?
You should not simply re-emerge everything. Have you followed all instructions in the start of this thread and other relevant replies?

/EDIT: are you really starting up with the new (2.6 based) kernel? Type
Code:
uname -r
to check.
Back to top
View user's profile Send private message
serzz
Apprentice
Apprentice


Joined: 03 Apr 2004
Posts: 153

PostPosted: Fri Apr 23, 2004 8:07 pm    Post subject: Reply with quote

I get 2.4.20-gentoo-r6. I have no idea from where start. Any suggestions?
Back to top
View user's profile Send private message
Helena
Veteran
Veteran


Joined: 02 Apr 2003
Posts: 1027
Location: De Meern, The Netherlands

PostPosted: Fri Apr 23, 2004 8:58 pm    Post subject: Reply with quote

serzz wrote:
I get 2.4.20-gentoo-r6. I have no idea from where start. Any suggestions?
Well first I must say that you post quickly. Your first one was about 2.4, then you said you moved to 2.6 now it appears you haven't. I suggest you study the documentation in more detail before asking questions. Moving from 2.4 to 2.6 is not a simple task, since a lot is different. I cannot possibly tell you all the details.

If you search the forum you may also find lots of helpful hints.
Back to top
View user's profile Send private message
serzz
Apprentice
Apprentice


Joined: 03 Apr 2004
Posts: 153

PostPosted: Fri Apr 23, 2004 9:34 pm    Post subject: Reply with quote

Well now I'm running Kernel-2.6.5 without DEVFS Support. But I'm trying to get it working then back to Alsa configuration.
Back to top
View user's profile Send private message
electroarts
Tux's lil' helper
Tux's lil' helper


Joined: 03 Jan 2004
Posts: 86

PostPosted: Tue May 18, 2004 8:50 am    Post subject: compiling my own ALSA-driver modules for 2.6 Reply with quote

Hi all,
I would like to use different/newer versions of the alsa-driver than are included in the 2.6 kernel. But I am having serious trouble getting them working.

I have sound enabled in my kernel, but not ALSA [alsa-driver will not compile with anything other than *just* sound enabled in the kernel!]. I can compile the alsa-driver ebuild, but get the same errors reported above when loading:
Code:
snd_pcm: Unknown symbol snd_timer_notify
snd_pcm: Unknown symbol snd_timer_interrupt
snd_pcm: Unknown symbol snd_timer_new
snd_pcm_oss: Unknown symbol snd_pcm_lib_read
snd_pcm_oss: Unknown symbol snd_pcm_hw_constraints_init
snd_pcm_oss: Unknown symbol snd_pcm_hw_param_near
snd_pcm_oss: Unknown symbol _snd_pcm_hw_param_setinteger
snd_pcm_oss: Unknown symbol snd_pcm_kernel_ioctl

for lines and lines and lines.

I also tried this:
Quote:
You want to downgrade back to module-init-tools-3.0_pre5

but that didn't do the trick either.

Suggestions?
Kernel version 2.6.4-ck2
ALSA drivers version 1.0.4-r1
TIA.
Back to top
View user's profile Send private message
teedog
Apprentice
Apprentice


Joined: 09 Mar 2004
Posts: 211

PostPosted: Sat May 29, 2004 5:15 am    Post subject: Reply with quote

Helena, would you be kind enough to edit your first post (compile ALSA components as modules) so that newcommers are not misled? Thanks for the howto.
Back to top
View user's profile Send private message
Helena
Veteran
Veteran


Joined: 02 Apr 2003
Posts: 1027
Location: De Meern, The Netherlands

PostPosted: Sat May 29, 2004 4:26 pm    Post subject: Reply with quote

teedog wrote:
Helena, would you be kind enough to edit your first post (compile ALSA components as modules) so that newcommers are not misled? Thanks for the howto.
OK I inderstand your question. The trouble is I haven't done much with ALSA recently. Do you have suggestions?
Back to top
View user's profile Send private message
teedog
Apprentice
Apprentice


Joined: 09 Mar 2004
Posts: 211

PostPosted: Sat May 29, 2004 5:42 pm    Post subject: Reply with quote

I meant editing your first post in this thread to match your second post. In your first post you select Y for all the ALSA components. In the second post you select M, which is the correct thing to do, I presume.
Back to top
View user's profile Send private message
sphen
n00b
n00b


Joined: 01 Mar 2004
Posts: 7
Location: United Kingdom

PostPosted: Fri Jun 04, 2004 12:04 am    Post subject: Reply with quote

mr_smidge wrote:
GRR, I'm still having some annoying issue with getting ALSA working.. I'm running 2.6.0-test11, and 1.0.0_rc2 of alsa-lib and alsa-utils, and getting the following:
Code:

root # /etc/init.d/alsasound start
 * Loading ALSA drivers...
 * Loading: snd-mixer-oss
WARNING: Error inserting snd (/lib/modules/2.6.0-test11/kernel/sound/core/snd.ko): Input/output error
 * Loading: snd-pcm-oss
WARNING: Error inserting snd (/lib/modules/2.6.0-test11/kernel/sound/core/snd.ko): Input/output error
 * Loading: snd-seq-oss
WARNING: Error inserting snd (/lib/modules/2.6.0-test11/kernel/sound/core/snd.ko): Input/output error
WARNING: Error inserting snd_seq (/lib/modules/2.6.0-test11/kernel/sound/core/seq/snd-seq.ko): Device or resource busy
FATAL: Error inserting snd_seq_oss (/lib/modules/2.6.0-test11/kernel/sound/core/seq/oss/snd-seq-oss.ko): Device or resource busy
 * Loading: snd_emu10k1
WARNING: Error inserting snd (/lib/modules/2.6.0-test11/kernel/sound/core/snd.ko): Input/output error
 * Loading: snd_via82xx
WARNING: Error inserting snd (/lib/modules/2.6.0-test11/kernel/sound/core/snd.ko): Input/output error
 * Running card-dependent scripts
 * Restoring Mixer Levels
/usr/sbin/alsactl: set_controls:986: snd_ctl_open error: No such file or directory
/usr/sbin/alsactl: set_controls:986: snd_ctl_open error: No such file or directory                                       [ ok ]

root # lsmod
Module                  Size  Used by
snd_via82xx            22848  0
snd_mpu401_uart         6912  0
snd_emu10k1            93508  0
snd_rawmidi            21952  0
snd_ac97_codec         53252  0
snd_util_mem            3840  1 snd_emu10k1
snd_hwdep               8192  1 snd_emu10k1
snd_seq_midi_event      6848  0
snd_seq_device          7236  0
snd_pcm_oss            49668  0
snd_pcm                92352  0
snd_page_alloc          9732  0
snd_timer              23616  0
snd_mixer_oss          17856  0
nvidia               1703596  10


Weirdness.. What's going on here?

I have all the ALSA stuff compiled as modules.

Even though the alsasound supposedly finishes with [ OK ], there's no sound.. alsamixer is giving me that annoying "alsamixer: function snd_ctl_open failed for default: No such file or directory" error message..


Hello All,

First of all I'm pretty new, so I need some help.

I have exactly the same problem with my current attempt to install ALSA, but I am struggling to find the solution. Can anyone point me in the right direction?

Thanks

Stephen
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Goto page Previous  1, 2, 3, 4, 5, 6, 7  Next
Page 6 of 7

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum