i am trying to enable ALSA . i have built ALSA support and my sound-card module into the kernel. now as advised by these 2 pages: http://gentoo-wiki.com/HOWTO_ALSA_sound_mixer_aka_dmix http://www.alsa-project.org/alsa-doc/doc-php/template.php?company=VIA&card=VIA+southbridge+AC97+audio.&chip=VIA82C686%2C+VIA8233%2C+VIA8233A%2C+VIA8235%2C+VIA8237&module=via82xx i see that i need to put my configurations (like alias snd-card-0) in a file. now i don't see any "/etc/conf.modules" or "/etc/modules.conf" as advised by ALSA-Project", nor i see any "/etc/modules.d/alsa" file. where does CRUX keeps ALSA configurations ? -- http://arnuld.blogspot.com/
i am trying to enable ALSA . i have built ALSA support and my sound-card module into the kernel. now as advised by these 2 pages: Note that you either build something into your kernel (monolithic), or build it as a module (modular). You don't build modules into a kernel,
Arnuld, On Mon, May 07, 2007 at 04:30:08 +0000, arnuld wrote: though.
http://gentoo-wiki.com/HOWTO_ALSA_sound_mixer_aka_dmix http://www.alsa-project.org/alsa-doc/doc-php/template.php?company=VIA&card=VIA+southbridge+AC97+audio.&chip=VIA82C686%2C+VIA8233%2C+VIA8233A%2C+VIA8235%2C+VIA8237&module=via82xx
i see that i need to put my configurations (like alias snd-card-0) in a file.
now i don't see any "/etc/conf.modules" or "/etc/modules.conf" as advised by ALSA-Project" Those files were used by modutils with linux kernel 2.4. Kernel 2.6 (and
I can't remember having to do that to get sound working... thus any CRUX release since 2.0) uses module-init-tools, so the ALSA howto seems to have been written for older kernels. Here's a hint which should help you to find the answer to the question yourself. Both howto's mention 'modprobe' to load modules, which comes with a fine man page. Johannes -- Johannes Winkelmann mailto:jw@smts.ch Zurich, Switzerland http://jw.smts.ch
On 5/7/07, Johannes Winkelmann <jw@smts.ch> wrote:
Arnuld,
i see that i need to put my configurations (like alias snd-card-0) in a file.
I can't remember having to do that to get sound working...
see down here.
now i don't see any "/etc/conf.modules" or "/etc/modules.conf" as advised by ALSA-Project"
Those files were used by modutils with linux kernel 2.4. Kernel 2.6 (and thus any CRUX release since 2.0) uses module-init-tools, so the ALSA howto seems to have been written for older kernels.
NO, just yesterday, i used Gentoo, with kernel 2.6.20, where one *has* to write that "snd-card-0" kind of things to get sound working. even latest Fedora Core 6 have those files hidden in the system.
Here's a hint which should help you to find the answer to the question yourself. Both howto's mention 'modprobe' to load modules, which comes with a fine man page.
i know that and i have loaded the module using that but that does not work. that is why i thought i need to to "alias-snd-card-0" kind of thing . any ideas on getting sound working ? -- http://arnuld.blogspot.com/
Hi Arnuld, please post output of your: # lspci # lsmod # ls -al /dev/snd Do you have an 'audio' group and your user as member in it? Pavel. Mon, 7 May 2007, arnuld wrote:
On 5/7/07, Johannes Winkelmann <jw@smts.ch> wrote:
Arnuld,
i see that i need to put my configurations (like alias snd-card-0) in a file.
I can't remember having to do that to get sound working...
see down here.
now i don't see any "/etc/conf.modules" or "/etc/modules.conf" as advised by ALSA-Project"
Those files were used by modutils with linux kernel 2.4. Kernel 2.6 (and thus any CRUX release since 2.0) uses module-init-tools, so the ALSA howto seems to have been written for older kernels.
NO, just yesterday, i used Gentoo, with kernel 2.6.20, where one *has* to write that "snd-card-0" kind of things to get sound working. even latest Fedora Core 6 have those files hidden in the system.
Here's a hint which should help you to find the answer to the question yourself. Both howto's mention 'modprobe' to load modules, which comes with a fine man page.
i know that and i have loaded the module using that but that does not work. that is why i thought i need to to "alias-snd-card-0" kind of thing . any ideas on getting sound working ?
-- http://arnuld.blogspot.com/ _______________________________________________ CRUX mailing list CRUX@lists.crux.nu http://lists.crux.nu/mailman/listinfo/crux
On 5/7/07, Pavel Samek <psamek@redash.cz> wrote:
Hi Arnuld,
please post output of your: # lspci
sh-3.2$ /usr/sbin/lspci | grep audio 00:11.5 Multimedia audio controller: VIA Technologies, Inc. VT8233/A/8235/8237 AC97 Audio Controller (rev 60) sh-3.2$
# lsmod
does not matter, as i built drivers into the kernel. BTW, "lsmod" gives NOTHING at output
# ls -al /dev/snd
sh-3.2$ ls -al /dev/snd total 0 drwxr-xr-x 2 root root 180 May 7 10:50 . drwxr-xr-x 10 root root 3360 May 7 11:33 .. crw-rw---- 1 root audio 116, 0 May 7 10:50 controlC0 crw-rw---- 1 root audio 116, 24 May 7 10:50 pcmC0D0c crw-rw---- 1 root audio 116, 16 May 7 10:50 pcmC0D0p crw-rw---- 1 root audio 116, 25 May 7 10:50 pcmC0D1c crw-rw---- 1 root audio 116, 17 May 7 10:50 pcmC0D1p crw-rw---- 1 root audio 116, 1 May 7 10:50 seq crw-rw---- 1 root audio 116, 33 May 7 10:50 timer sh-3.2$
Do you have an 'audio' group and your user as member in it?
of course, i am the member of audio group. BTW, problems are same even as ROOT.
Pavel.
Mon, 7 May 2007, arnuld wrote:
On 5/7/07, Johannes Winkelmann <jw@smts.ch> wrote:
Arnuld,
i see that i need to put my configurations (like alias snd-card-0) in a file.
I can't remember having to do that to get sound working...
see down here.
now i don't see any "/etc/conf.modules" or "/etc/modules.conf" as advised by ALSA-Project"
Those files were used by modutils with linux kernel 2.4. Kernel 2.6 (and thus any CRUX release since 2.0) uses module-init-tools, so the ALSA howto seems to have been written for older kernels.
NO, just yesterday, i used Gentoo, with kernel 2.6.20, where one *has* to write that "snd-card-0" kind of things to get sound working. even latest Fedora Core 6 have those files hidden in the system.
Here's a hint which should help you to find the answer to the question yourself. Both howto's mention 'modprobe' to load modules, which comes with a fine man page.
i know that and i have loaded the module using that but that does not work. that is why i thought i need to to "alias-snd-card-0" kind of thing . any ideas on getting sound working ?
-- http://arnuld.blogspot.com/ _______________________________________________ CRUX mailing list CRUX@lists.crux.nu http://lists.crux.nu/mailman/listinfo/crux
_______________________________________________ CRUX mailing list CRUX@lists.crux.nu http://lists.crux.nu/mailman/listinfo/crux
Sorry, Arnuld, I am a little bit off topic. You have already answered some questions in another thread. Here are some hints, but probably doesn't help: - the default configuration files are in /usr/share/alsa (installed with alsa-lib port) and are usually sufficient. - I have the following /etc/asound.conf file pcm.!default { type plug slave.pcm "kombinace" } pcm.vystup { type dmix ipc_key 1024 ipc_key_add_uid 1 slave { pcm "hw:0,0" # format S32_LE period_time 0 period_size 1024 buffer_size 8192 rate 44100 } } pcm.dsp0 { type plug slave.pcm "vystup" } pcm.vstup { type dsnoop ipc_key 2048 ipc_key_add_uid 1 slave { pcm "hw:0,0" channels 2 period_size 1024 buffer_size 4096 rate 44100 periods 0 period_time 0 } bindings { 0 0 0 1 } } pcm.kombinace { type asym playback.pcm "vystup" capture.pcm "vstup" } - the simple aplay command works? Pavel.
On 5/7/07, Pavel Samek <psamek@redash.cz> wrote:
I am a little bit off topic. You have already answered some questions in another thread. Here are some hints, but probably doesn't help: - the default configuration files are in /usr/share/alsa (installed with alsa-lib port) and are usually sufficient.
yes, i think it is sufficient and i should not touch that file.
- I have the following /etc/asound.conf file
i dont have any "/etc/asound.conf" file but i do have "/etc/asound.state". any problem with that. -- http://arnuld.blogspot.com/
On Mon, May 07, 2007 at 06:59:58 +0000, arnuld wrote: > > On 5/7/07, Johannes Winkelmann <jw@smts.ch> wrote: [...] > > Here's a hint which should help you to find the answer to the question > > yourself. Both howto's mention 'modprobe' to load modules, which comes > > with a fine man page. > > i know that and i have loaded the module using that but that does not > work. That's not what I meant. You're looking for a configuration file, and this configuration file is mentioned in the man page of modprobe. > that is why i thought i need to to "alias-snd-card-0" kind of > thing . Well, once the module is loaded, the alias has no influence anymore. Thus if you load the proper modules with modprobe, and don't get any sound, the aliases won't help. Again, reading the man pages for modprobe and its configuration would have told you that. > any ideas on getting sound working ? The following three steps have worked fine for me: 1. compile proper kernel (alternatively, add alsa-driver if you prefer to use those over the in-kernel ones) 2. reboot 3. set volume 4. enjoy music This has also worked with my EPIA CL10000 which has a Via AC97 sound controller. Johannes -- Johannes Winkelmann mailto:jw@smts.ch Zurich, Switzerland http://jw.smts.ch
On Mon, May 07, 2007 at 09:23:50 +0200, Johannes Winkelmann wrote: [...]
The following three steps have worked fine for me: 1. compile proper kernel (alternatively, add alsa-driver if you prefer to use those over the in-kernel ones) 2. reboot 3. set volume 4. enjoy music
So much for counting, although #4 isn't really part of getting it to work :-) Johannes -- Johannes Winkelmann mailto:jw@smts.ch Zurich, Switzerland http://jw.smts.ch
On 5/7/07, Johannes Winkelmann <jw@smts.ch> wrote:
On Mon, May 07, 2007 at 06:59:58 +0000, arnuld wrote:
i know that and i have loaded the module using that but that does not work.
That's not what I meant. You're looking for a configuration file, and this configuration file is mentioned in the man page of modprobe.
see down here.
that is why i thought i need to to "alias-snd-card-0" kind of thing .
Well, once the module is loaded, the alias has no influence anymore. Thus if you load the proper modules with modprobe, and don't get any sound, the aliases won't help. Again, reading the man pages for modprobe and its configuration would have told you that.
Ok, i got it. it says "modprobe.conf" or all files under "/etc/modprobe.d" directory are a replacement for "/etc/modules.conf". then i added these to "/etc/modprobe.conf": alias char-major-116 snd alias char-major-14 soundcore alias snd-card-0 snd-emu10k1 alias sound-slot-0 snd-card-0 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 alias /dev/dsp snd-pcm-oss options snd cards_limit=1 then i did had a reboot and after that i tried this, as "root": "/etc/rc.d/alsa start". terminal said: "NO state is present for CARD V8237" then i did these 2 and i did not get any message: /etc/rc.d/alsa stop /etc/rc.d/alsa start then i tried to play the song using ogg123 and it HUNG :-(, same problem, it keeps on playing the 1st "1 sec" part of song for unlimited number of times, repeatedly.
any ideas on getting sound working ?
The following three steps have worked fine for me: 1. compile proper kernel (alternatively, add alsa-driver if you prefer to use those over the in-kernel ones) 2. reboot 3. set volume 4. enjoy music
that is for CRUX 2.2. in CRUX 2.3, this just does not work -- http://arnuld.blogspot.com/
Hi, Okay, just to repeat that from my previous mail: if you build the sound drivers into your kernel, they're not considered modules. This means that anything you'd configure in modprobe.conf, modules.conf, conf.modules etc. won't have _any_ influence. Really. On Mon, May 07, 2007 at 08:07:55 +0000, arnuld wrote:
On 5/7/07, Johannes Winkelmann <jw@smts.ch> wrote:
On Mon, May 07, 2007 at 06:59:58 +0000, arnuld wrote:
i know that and i have loaded the module using that but that does not work.
That's not what I meant. You're looking for a configuration file, and this configuration file is mentioned in the man page of modprobe.
see down here.
that is why i thought i need to to "alias-snd-card-0" kind of thing .
Well, once the module is loaded, the alias has no influence anymore. Thus if you load the proper modules with modprobe, and don't get any sound, the aliases won't help. Again, reading the man pages for modprobe and its configuration would have told you that.
Ok, i got it. it says "modprobe.conf" or all files under "/etc/modprobe.d" directory are a replacement for "/etc/modules.conf".
then i added these to "/etc/modprobe.conf": As mentioned, unless you actually build it as kernel modules, this has no impact. Both howto's you mention before assume that you have build modules.
then i did had a reboot and after that i tried this, as "root": "/etc/rc.d/alsa start". terminal said: "NO state is present for CARD V8237" That's fine, since it'll try to recover a state when it wasn't stored before. This only happens the first time, as you saw yourself.
then i tried to play the song using ogg123 and it HUNG :-(, same problem, it keeps on playing the 1st "1 sec" part of song for unlimited number of times, repeatedly. As Pavel suggested, try more low level stuff first; aplay, or cat some data into your playback device.
The following three steps have worked fine for me: [...] that is for CRUX 2.2. in CRUX 2.3, this just does not work Well, that's at least a starting point. IIRC, neither of the two releases has sound support in the boot kernels, so in any case it was _your_ kernel that supported in on 2.2. Try to remember what you did differently.
In general, there was no difference between 2.2 and 2.3 WRT sound; both work fine for me with the previously steps. Johannes -- Johannes Winkelmann mailto:jw@smts.ch Zurich, Switzerland http://jw.smts.ch
On 5/7/07, Johannes Winkelmann <jw@smts.ch> wrote:
Hi,
Okay, just to repeat that from my previous mail: if you build the sound drivers into your kernel, they're not considered modules. This means that anything you'd configure in modprobe.conf, modules.conf, conf.modules etc. won't have _any_ influence. Really.
YES, you are right. i saw this myself :-)
As Pavel suggested, try more low level stuff first; aplay, or cat some data into your playback device.
i tried "aplay" and it says "playing" but i do not hear anything then it gives this message: sh-3.2$ aplay beltry.wav Playing WAVE 'beltry.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo aplay: pcm_write:1265: write error: Input/output error sh-3.2$ i tried google with keywords "cat audio data linux" but did not find anything on how to "cat" an audio song.
In general, there was no difference between 2.2 and 2.3 WRT sound; both work fine for me with the previously steps.
so the BUG is in ALSA drivers ? -- http://arnuld.blogspot.com/
participants (3)
-
arnuld
-
Johannes Winkelmann
-
Pavel Samek