Re: [gentoo-user] udev / sound

2006-02-15 Thread Uwe Thiem
On 13 February 2006 08:52, Richard Fish wrote:
> On 2/12/06, Uwe Thiem <[EMAIL PROTECTED]> wrote:
> > How about dsp and such? Shouldn't there be rules to create them as well?
>
> Yes, your 50-udev.rules file should contain:
>
> /etc/udev/rules.d/50-udev.rules:KERNEL=="adsp",
> NAME="sound/%k", SYMLINK+="%k", GROUP="audio"
> /etc/udev/rules.d/50-udev.rules:KERNEL=="adsp[0-9]*",
> NAME="sound/%k", SYMLINK+="%k", GROUP="audio"
> /etc/udev/rules.d/50-udev.rules:KERNEL=="dsp",
> NAME="sound/%k", SYMLINK+="%k", GROUP="audio"
> /etc/udev/rules.d/50-udev.rules:KERNEL=="dsp[0-9]*",
> NAME="sound/%k", SYMLINK+="%k", GROUP="audio"
>
> But these will only be created if you load the snd_pcm_oss module,
> which emulates the OSS API for alsa.
>
> But according to your own posts, you are not using OSS.  So why do you
> want the legacy OSS device nodes?

Probably because I am missing something here, though I don't know yet 
what. ;-)

Uwe

-- 
Why do consumers keep buying products they will live to curse?
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] udev / sound

2006-02-12 Thread Richard Fish
On 2/12/06, Uwe Thiem <[EMAIL PROTECTED]> wrote:
> How about dsp and such? Shouldn't there be rules to create them as well?

Yes, your 50-udev.rules file should contain:

/etc/udev/rules.d/50-udev.rules:KERNEL=="adsp",
NAME="sound/%k", SYMLINK+="%k", GROUP="audio"
/etc/udev/rules.d/50-udev.rules:KERNEL=="adsp[0-9]*",  
NAME="sound/%k", SYMLINK+="%k", GROUP="audio"
/etc/udev/rules.d/50-udev.rules:KERNEL=="dsp", 
NAME="sound/%k", SYMLINK+="%k", GROUP="audio"
/etc/udev/rules.d/50-udev.rules:KERNEL=="dsp[0-9]*",   
NAME="sound/%k", SYMLINK+="%k", GROUP="audio"

But these will only be created if you load the snd_pcm_oss module,
which emulates the OSS API for alsa.

But according to your own posts, you are not using OSS.  So why do you
want the legacy OSS device nodes?

-Richard

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] udev / sound

2006-02-12 Thread Uwe Thiem
On 13 February 2006 00:25, Abhay Kedia wrote:
> On Monday 13 February 2006 00:29, Uwe Thiem wrote:
> > No, they are not. That's OSS stuff and not present on my box since I
> > don't use OSS.
>
> I have this in my /etc/udev/rules.d/50-udev.rules which is related to ALSA
>
> # alsa devices
> SUBSYSTEM=="sound", GROUP="audio"
> KERNEL=="controlC[0-9]*",   NAME="snd/%k"
> KERNEL=="hw[CD0-9]*",   NAME="snd/%k"
> KERNEL=="pcm[CD0-9cp]*",NAME="snd/%k"
> KERNEL=="midiC[D0-9]*", NAME="snd/%k"
> KERNEL=="timer",NAME="snd/%k"
> KERNEL=="seq",  NAME="snd/%k"
>
> Confirm that you have some similar entries.

Yup, have exactly the same rules, and I think they lead to these devices:

[EMAIL PROTECTED] ~ $ ls -l /dev/snd
total 0
crw-rw 1 root audio 116,  0 Feb 12 22:33 controlC0
crw-rw 1 root audio 116, 24 Feb 12 22:33 pcmC0D0c
crw-rw 1 root audio 116, 16 Feb 12 22:33 pcmC0D0p
crw-rw 1 root audio 116, 25 Feb 12 22:33 pcmC0D1c
crw-rw 1 root audio 116, 33 Feb 12 22:33 timer

Though hw, midi and seq are missing.

How about dsp and such? Shouldn't there be rules to create them as well?

Uwe

-- 
Why do consumers keep buying products they will live to curse?
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] udev / sound

2006-02-12 Thread Abhay Kedia
On Monday 13 February 2006 00:29, Uwe Thiem wrote:
>
> No, they are not. That's OSS stuff and not present on my box since I don't
> use OSS.
>
I have this in my /etc/udev/rules.d/50-udev.rules which is related to ALSA

# alsa devices
SUBSYSTEM=="sound", GROUP="audio"
KERNEL=="controlC[0-9]*",   NAME="snd/%k"
KERNEL=="hw[CD0-9]*",   NAME="snd/%k"
KERNEL=="pcm[CD0-9cp]*",NAME="snd/%k"
KERNEL=="midiC[D0-9]*", NAME="snd/%k"
KERNEL=="timer",NAME="snd/%k"
KERNEL=="seq",  NAME="snd/%k"

Confirm that you have some similar entries.

-- 
Regards,
Abhay


pgpMoa0XdP67e.pgp
Description: PGP signature


Re: [gentoo-user] udev / sound

2006-02-12 Thread Uwe Thiem
On 12 February 2006 21:21, Christoph Eckert wrote:
> > > Did you raise the
> > > master and PCM sliders in alsamixer -c 1?
> >
> > What does that have to do with udev not creating the special device
> > files?
>
> Nothing, just the default answer if there's no audio output.

Well, default answers aren't all that helpful with specific questions. Like 
keyword-triggered (knee-jerk triggered) responses in real life. ;-)

Uwe

-- 
Why do consumers keep buying products they will live to curse?
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] udev / sound

2006-02-12 Thread Christoph Eckert

> How would that help udev to create the relevant special device files?

as seen before, your ALSA devices are present, so it doesn't seem to be 
an udev problem.

ALSA apps don't output sound using device files.

cat /proc/asound/cards

should list your cards,

ls -l /dev/snd/

should show the devices,

alsamixer -c 1

should show the controls of your first card,

If all is present, I'd try xmms, set it to play via ALSA in the prefs 
and load a file.


Best regards


ce
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] udev / sound

2006-02-12 Thread Christoph Eckert

> > Did you raise the
> > master and PCM sliders in alsamixer -c 1?
>
> What does that have to do with udev not creating the special device
> files?

Nothing, just the default answer if there's no audio output.


Best regards


ce
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] udev / sound

2006-02-12 Thread Uwe Thiem
On 11 February 2006 23:04, Abhay Kedia wrote:
> On Sunday 12 February 2006 00:59, Uwe Thiem wrote:
> > Sound is gone. Artsd complains that there is no /dev/dsp - and rightly
> > so. All sound-related devices under /dev are gone. There are a couple of
> > devices under /dev/snd:
>
> The devices of interest are under /dev/sound and not under /dev/snd
>
> # ls -l /dev/sound
> total 0
> crw-rw  1 root audio 14, 4 Feb 11 15:19 audio
> crw-rw  1 root audio 14, 3 Feb 11 15:19 dsp
> crw-rw  1 root audio 14, 0 Feb 11 15:19 mixer
> crw-rw  1 root audio 14, 1 Feb 11 15:19 sequencer
> crw-rw  1 root audio 14, 8 Feb 11 15:19 sequencer2
> #

No, they are not. That's OSS stuff and not present on my box since I don't use 
OSS.

Uwe

-- 
Why do consumers keep buying products they will live to curse?
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] udev / sound

2006-02-12 Thread Uwe Thiem
On 11 February 2006 22:19, Christoph Eckert wrote:
> > Sound is gone. Artsd complains that there is no /dev/dsp - and
> > rightly so. All sound-related devices under /dev are gone. There are
> > a couple of devices under /dev/snd:
> >
> > [EMAIL PROTECTED] /dev/snd $ ls -l
> > total 0
> > crw-rw 1 root audio 116,  0 Feb 11 21:14 controlC0
> > crw-rw 1 root audio 116, 24 Feb 11 21:14 pcmC0D0c
> > crw-rw 1 root audio 116, 16 Feb 11 21:14 pcmC0D0p
> > crw-rw 1 root audio 116, 25 Feb 11 21:14 pcmC0D1c
> > crw-rw 1 root audio 116, 33 Feb 11 21:14 timer
>
> there are ALSA capture and playback devices; did you accidentally
> disable the ALSA-OSS-emulation in the kernel config? 

Nope. Didn't even recompile the kernel.

> Did you raise the 
> master and PCM sliders in alsamixer -c 1?

What does that have to do with udev not creating the special device files?

Uwe

-- 
Why do consumers keep buying products they will live to curse?

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] udev / sound

2006-02-12 Thread Uwe Thiem
On 11 February 2006 23:21, Christoph Eckert wrote:
> > The devices of interest are under /dev/sound and not under /dev/snd
> >
> > # ls -l /dev/sound
> > total 0
> > crw-rw  1 root audio 14, 4 Feb 11 15:19 audio
> > crw-rw  1 root audio 14, 3 Feb 11 15:19 dsp
> > crw-rw  1 root audio 14, 0 Feb 11 15:19 mixer
> > crw-rw  1 root audio 14, 1 Feb 11 15:19 sequencer
> > crw-rw  1 root audio 14, 8 Feb 11 15:19 sequencer2
> > #
>
> these are the OSS devices, these days emulated by ALSA.
>
> As OSS is deprecated, go to the control center, soundsystem, hardware
> and choose ALSA.

How would that help udev to create the relevant special device files?

Uwe

-- 
Why do consumers keep buying products they will live to curse?

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] udev / sound

2006-02-11 Thread Christoph Eckert

> The devices of interest are under /dev/sound and not under /dev/snd
>
> # ls -l /dev/sound
> total 0
> crw-rw  1 root audio 14, 4 Feb 11 15:19 audio
> crw-rw  1 root audio 14, 3 Feb 11 15:19 dsp
> crw-rw  1 root audio 14, 0 Feb 11 15:19 mixer
> crw-rw  1 root audio 14, 1 Feb 11 15:19 sequencer
> crw-rw  1 root audio 14, 8 Feb 11 15:19 sequencer2
> #

these are the OSS devices, these days emulated by ALSA.

As OSS is deprecated, go to the control center, soundsystem, hardware 
and choose ALSA.

Unfortunately this will not help applications which are still written to 
use OSS (like firefox, Skype and so on). If you need them, you need to 
figure out what goes wrong with the OSS emulation of ALSA. Maybe a prob 
of improper device rights (try an app which needs OSS as root)?


Best regards


ce

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] udev / sound

2006-02-11 Thread Abhay Kedia
On Sunday 12 February 2006 00:59, Uwe Thiem wrote:
>
> Sound is gone. Artsd complains that there is no /dev/dsp - and rightly so.
> All sound-related devices under /dev are gone. There are a couple of
> devices under /dev/snd:
>
The devices of interest are under /dev/sound and not under /dev/snd

# ls -l /dev/sound
total 0
crw-rw  1 root audio 14, 4 Feb 11 15:19 audio
crw-rw  1 root audio 14, 3 Feb 11 15:19 dsp
crw-rw  1 root audio 14, 0 Feb 11 15:19 mixer
crw-rw  1 root audio 14, 1 Feb 11 15:19 sequencer
crw-rw  1 root audio 14, 8 Feb 11 15:19 sequencer2
#

Now try "/etc/init.d/alsasound restart" and then immediately see under dmesg 
for any errors or any other things of interest.

-- 
Regards,
Abhay


pgp9lgbXUCUhi.pgp
Description: PGP signature


Re: [gentoo-user] udev / sound

2006-02-11 Thread Christoph Eckert

> Sound is gone. Artsd complains that there is no /dev/dsp - and
> rightly so. All sound-related devices under /dev are gone. There are
> a couple of devices under /dev/snd:
>
> [EMAIL PROTECTED] /dev/snd $ ls -l
> total 0
> crw-rw 1 root audio 116,  0 Feb 11 21:14 controlC0
> crw-rw 1 root audio 116, 24 Feb 11 21:14 pcmC0D0c
> crw-rw 1 root audio 116, 16 Feb 11 21:14 pcmC0D0p
> crw-rw 1 root audio 116, 25 Feb 11 21:14 pcmC0D1c
> crw-rw 1 root audio 116, 33 Feb 11 21:14 timer

there are ALSA capture and playback devices; did you accidentally 
disable the ALSA-OSS-emulation in the kernel config? Did you raise the 
master and PCM sliders in alsamixer -c 1?


Best regards


ce

-- 
gentoo-user@gentoo.org mailing list



[gentoo-user] udev / sound

2006-02-11 Thread Uwe Thiem
Hi folks,

I did an update world last night with a --sync that was a couple of days old 
because it took me several nights to get all the stuff (deltup didn't have 
most of the diffs, so I had to download the whole tarballs).

After emerging, compiling, installing all of it, I did an etc-update. Among 
other things, I merged the new udev rules and rebooted to get them into 
effect.

Sound is gone. Artsd complains that there is no /dev/dsp - and rightly so. All 
sound-related devices under /dev are gone. There are a couple of devices 
under /dev/snd:

[EMAIL PROTECTED] /dev/snd $ ls -l
total 0
crw-rw 1 root audio 116,  0 Feb 11 21:14 controlC0
crw-rw 1 root audio 116, 24 Feb 11 21:14 pcmC0D0c
crw-rw 1 root audio 116, 16 Feb 11 21:14 pcmC0D0p
crw-rw 1 root audio 116, 25 Feb 11 21:14 pcmC0D1c
crw-rw 1 root audio 116, 33 Feb 11 21:14 timer

lsmod reveals that the relevant modules are loaded:

mii 5888  1 sis900
snd_intel8x0   32224  0
snd_ac97_codec 84092  1 snd_intel8x0
snd_ac97_bus3200  1 snd_ac97_codec
snd_pcm83588  2 snd_intel8x0,snd_ac97_codec
snd_timer  24836  1 snd_pcm
snd52196  4 snd_intel8x0,snd_ac97_codec,snd_pcm,snd_timer
snd_page_alloc 11144  2 snd_intel8x0,snd_pcm

If I recollect correctly that's about what I had before.

Now, what did I wrong? ... and equally important: What do I do to get my noise 
back? ;-)

Uwe

-- 
Why do consumers keep buying products they will live to curse?
-- 
gentoo-user@gentoo.org mailing list