Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 19 Nov 1998 17:31:54 -0600
From:      David Kelly <dkelly@hiwaay.net>
To:        pgl@ti.cz
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: pcm0 
Message-ID:  <199811192331.RAA05603@n4hhe.ampr.org>
In-Reply-To: Message from pgl@moo.terminal.cz  of "Thu, 19 Nov 1998 10:08:29 GMT." <19981119100829.517.qmail@moo.terminal.cz> 

next in thread | previous in thread | raw e-mail | index | archive | help
pgl@moo.terminal.cz writes:
> I'm still baffled as to how I can use the pnp0 controller in conjuction with
> the pcm0 driver (or any driver?), as when the kernel says "pcm0 not configure
> d,
> perhaps you want pcm1?", I don't know how to get the audio player (amp, xanim
> ,
> etc etc) to -use- pcm1 instead of pcm0. I don't know much about the
> device nodes etc.

n4hhe: {1055} cd /dev
n4hhe: {1056} ls -l audio*
lrwxrwxrwx  1 root  wheel         6 Nov 11 17:48 audio@ -> audio1
crw-rw-rw-  1 root  wheel   30,   4 Nov 11 17:15 audio0
crw-rw-rw-  1 root  wheel   30,  20 Nov 16 12:43 audio1
n4hhe: {1057}

See how /dev/audio is symbolically linked to /dev/audio1 on my system? 

Same kind of thing you are seeing as the pcm0 device is hard coded in
the kernel. You have to list pcm0 in the config to get its code compiled
in. But then with pnp code also in your kernel the pnp code detects your
audio card before the kernel probes pcm0, then pnp creates a pcm1. When
it comes down to pcm0 the probe is skipped because it quickly notices a
hardware conflict with an already detected device (which just so happens
to also be the same sound card).

/dev/MAKEDEV has changed a bit between 2.2.6, 2.2.7, and 3.0. This is 
how it behaves in 3.0:

n4hhe: [1001] cd /dev
n4hhe: [1002] ./MAKEDEV snd0
n4hhe: [1003] ls -l audio*
lrwxrwxrwx  1 root  wheel         6 Nov 19 17:27 audio@ -> audio0
crw-rw-rw-  1 root  wheel   30,   4 Nov 19 17:27 audio0
crw-rw-rw-  1 root  wheel   30,  20 Nov 16 12:43 audio1
n4hhe: [1004] ./MAKEDEV snd1
n4hhe: [1005] ls -l audio*
lrwxrwxrwx  1 root  wheel         6 Nov 19 17:28 audio@ -> audio1
crw-rw-rw-  1 root  wheel   30,   4 Nov 19 17:27 audio0
crw-rw-rw-  1 root  wheel   30,  20 Nov 19 17:28 audio1
n4hhe: [1006] 

Notice how the /dev/audio link moves. Other sound devices are similarly 
relinked.

--
David Kelly N4HHE, dkelly@nospam.hiwaay.net
=====================================================================
The human mind ordinarily operates at only ten percent of its
capacity -- the rest is overhead for the operating system.



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199811192331.RAA05603>