Re: Standard sbc and pcm support in GENERIC kernel?

2004-03-08 Thread Helge Oldach
Helge Oldach:
[EMAIL PROTECTED]:
Tijl Coosemans [EMAIL PROTECTED] writes:
 I have an old toshiba which also needs PNPBIOS in 4-STABLE and
 when I tried 5-CURRENT sound just worked. Of course that doesn't say
 anything about your setup...

PNPBIOS is on by default (and non-optional) in 5.x.

That's great, so my peculiar Compaq Deskpro EN scenario should be fine
as well. I will try a FreeSBIE boot anyway to verify.

Just to confirm: 5.x does recognize this on-board sound card properly
(and a lot of other bogus PnP ressources :-)).

Thanks to all for your comments!

Helge
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Standard sbc and pcm support in GENERIC kernel?

2004-03-08 Thread Daniel Lang
Hi,

Narvi wrote on Sun, Mar 07, 2004 at 10:00:35PM +0200:
[..]
 And you really want this to be something somebody new to FreeBSD and
 possibly unix has to go through to get sound working (afetr finding the
 documentation, of course)???
[..]

I'm just saying how it works right now. Obviously a better
way would be preferred.

Hmm maybe I'll come up with a documentation patch...

Best regards,
 Daniel
-- 
IRCnet: Mr-Spock - Agartim billiard bumba m'abdul in papejim twista 
-  rumba rock n rolla. Leik'ab mai. Spirzon Heroin se'osit gaula. -
   - Marijuana esit gaula. Haschisch. Opis. - 
 Daniel Lang * [EMAIL PROTECTED] * +49 89 289 18532 * http://www.leo.org/~dl/


smime.p7s
Description: S/MIME cryptographic signature


Re: Standard sbc and pcm support in GENERIC kernel?

2004-03-07 Thread Narvi

On Thu, 4 Mar 2004, Brandon D. Valentine wrote:

 On Wed, Mar 03, 2004 at 05:03:40PM +0100, Jorn Argelo wrote:
 
  I've been on the question list for some time, and I have noticed that
  many people do not know how to get sound support up and running in
  FreeBSD 5.X. I know that re-compiling the kernel is easy enough, but
  there are still people not willing to do so, as I have noticed on the
  list. Therefor I thought it might be an idea to put sound support in the
  GENERIC kernel configuration, so that newbies will no longer find
  themselves stuck with that.

 If they'd read pcm(4) they'd know how to get sound support up and
 running without recompiling their kernel.  Is there something wrong with
 requiring that a new user bother to read the documentation?


No, but it is also a reasonable expectation for the OS to autodetect and
load support for common hardware - which includes most of the popular
soundcards.

 [ I do not speak for the FreeBSD project. ]

 Brandon D. Valentine
 --
 [EMAIL PROTECTED]   http://www.geekpunk.net
 Pseudo-Random Googlism:  march is great success
 ___
 [EMAIL PROTECTED] mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
 To unsubscribe, send any mail to [EMAIL PROTECTED]

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Standard sbc and pcm support in GENERIC kernel?

2004-03-07 Thread Narvi

On Fri, 5 Mar 2004, Daniel Lang wrote:

 Hi,

 David Raistrick wrote on Fri, Mar 05, 2004 at 08:27:56AM -0800:
 [..]
  kldload snd_driver
 
  is of course the correct way to do it.  FWIW, kldunload snd_driver does
  /not/ unload all of the modules that kldload snd_driver loads.
 [..]

 snd_driver is a module that contains _all_ drivers,
 thus you have the best chance to get sound working.
 Unloading it, will of course unload the whole module with
 all drivers. There is no way to leave one of the drivers
 in the kernel.

 I agree, that there is not much documentation which driver
 module supports which sound device (or I was not successful
 to dig that up).

 However, you can determine the correct module, by subsequently
 loading and unloading each individual driver module. The one
 which attached to your sound device and actually works
 (check /dev/sndstat as well) is obviously the correct one.


And you really want this to be something somebody new to FreeBSD and
possibly unix has to go through to get sound working (afetr finding the
documentation, of course)???

 Not a very efficient way, but it works. :)

 Best regards,
  Daniel
 --
 IRCnet: Mr-Spock
  - kommst du siehst du, gehst du hast du, weisst du, krass! -
 Daniel Lang * [EMAIL PROTECTED] * +49 89 289 18532 * http://www.leo.org/~dl/

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Standard sbc and pcm support in GENERIC kernel?

2004-03-06 Thread Tijl Coosemans
On Fri, 5 Mar 2004 17:58:26 +0100 (MET), Helge Oldach wrote:

 So yes: some machines require a kernel with PNPBIOS even when sound
 modules can be kldload'ed. I presume these are typically boxen without
 knob to disable the PnP BIOS.
 
 Still I wonder whether sound on -CURRENT will do on such a box...

I have an old toshiba which also needs PNPBIOS in 4-STABLE and
when I tried 5-CURRENT sound just worked. Of course that doesn't say
anything about your setup...
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Standard sbc and pcm support in GENERIC kernel?

2004-03-06 Thread Kevin Oberman
 Date: Fri, 5 Mar 2004 20:08:35 +0100
 From: Tijl Coosemans [EMAIL PROTECTED]
 Sender: [EMAIL PROTECTED]
 
 On Fri, 5 Mar 2004 17:58:26 +0100 (MET), Helge Oldach wrote:
 
  So yes: some machines require a kernel with PNPBIOS even when sound
  modules can be kldload'ed. I presume these are typically boxen without
  knob to disable the PnP BIOS.
  
  Still I wonder whether sound on -CURRENT will do on such a box...
 
 I have an old toshiba which also needs PNPBIOS in 4-STABLE and
 when I tried 5-CURRENT sound just worked. Of course that doesn't say
 anything about your setup...

That is almost certainly because of ACPI. It handles peripheral devices
quite differently from the former mode and, if it works at all on a
given system, should eliminate this Plug-n-Play mess when 5 goes STABLE!

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Standard sbc and pcm support in GENERIC kernel?

2004-03-06 Thread Randy Pratt
On Fri, 5 Mar 2004 14:49:45 -0500
John Baldwin [EMAIL PROTECTED] wrote:

 On Wednesday 03 March 2004 04:31 pm, Randy Pratt wrote:
  On Wed,  3 Mar 2004 17:03:40 +0100 (CET) you wrote:
   I've been on the question list for some time, and I have noticed
   that many people do not know how to get sound support up and
   running in FreeBSD 5.X. I know that re-compiling the kernel is easy
   enough, but there are still people not willing to do so, as I have
   noticed on the list. Therefor I thought it might be an idea to put
   sound support in the GENERIC kernel configuration, so that newbies
   will no longer find themselves stuck with that.
 
  I think I've read more than one time about problems fitting the
  installation on the 1.44M floppies.
 
 That's no longer a problem in 5.x.  I would like to see pcm(4) added back to 
 GENERIC on 5.x.  4.x has been around long enough that its GENERIC can 
 probably just stay the way it is.

That being the case, then there's no reason not to have it in GENERIC
in 5.x.  Anyone that doesn't want/need it will be recompiling the
kernel to remove other unused options.

The less new (desktop) users have to do to get up and running is
probably a good thing to do.  Any concern I had is gone.

Best regards,

Randy




-- 
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Standard sbc and pcm support in GENERIC kernel?

2004-03-06 Thread Dag-Erling Smørgrav
Dan Langille [EMAIL PROTECTED] writes:
 On Fri, 5 Mar 2004, Dan Langille wrote:
  *That* explanation is vast difference to saying they have to read man
  pcm(4).  The difference is sigficicant.
 In the same breath, someone needs to install a spell checker and verify
 the grammer.
  ^^^
Ain't that the truth!

DES
-- 
Dag-Erling Smørgrav - [EMAIL PROTECTED]
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Standard sbc and pcm support in GENERIC kernel?

2004-03-06 Thread Dag-Erling Smørgrav
Jamie Bowden [EMAIL PROTECTED] writes:
 It also presumes the end user has net access, which is not a given.

The handbook is installed in /usr/share/doc, though it isn't updated
when you build world.

DES
-- 
Dag-Erling Smørgrav - [EMAIL PROTECTED]
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Standard sbc and pcm support in GENERIC kernel?

2004-03-06 Thread Dag-Erling Smørgrav
Tijl Coosemans [EMAIL PROTECTED] writes:
 I have an old toshiba which also needs PNPBIOS in 4-STABLE and
 when I tried 5-CURRENT sound just worked. Of course that doesn't say
 anything about your setup...

PNPBIOS is on by default (and non-optional) in 5.x.

DES
-- 
Dag-Erling Smørgrav - [EMAIL PROTECTED]
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Standard sbc and pcm support in GENERIC kernel?

2004-03-06 Thread Mathew Kanner
On Mar 05, Daniel Lang wrote:
 Hi,
 
 David Raistrick wrote on Fri, Mar 05, 2004 at 08:27:56AM -0800:
 [..]
  kldload snd_driver
  
  is of course the correct way to do it.  FWIW, kldunload snd_driver does
  /not/ unload all of the modules that kldload snd_driver loads.
 [..]
 
 snd_driver is a module that contains _all_ drivers,
 thus you have the best chance to get sound working.
 Unloading it, will of course unload the whole module with
 all drivers. There is no way to leave one of the drivers
 in the kernel.
 
 I agree, that there is not much documentation which driver
 module supports which sound device (or I was not successful 
 to dig that up).
 
 However, you can determine the correct module, by subsequently
 loading and unloading each individual driver module. The one
 which attached to your sound device and actually works
 (check /dev/sndstat as well) is obviously the correct one.
 
 Not a very efficient way, but it works. :)

David and Daniel,
First let me say that on my 5.x machine, kldunload snd_driver
does unload all the modules (and detaches the drivers when
applicable).
In regards to how hard it is to know which module provides the
driver, I've just added to -current the following, 

[EMAIL PROTECTED] cat /dev/sndstat
FreeBSD Audio Driver (newpcm)
Installed devices:
pcm0: CMedia CMI8738 at io 0xb800 irq 11 kld snd_cmi (1p/1r/0v channels duplex 
default)
pcm1: Creative EMU10K1 at io 0xb400 irq 5 kld snd_emu10k1 (4p/2r/0v channels duplex)

So the installation procedure is, as root.

kldload snd_driver
for each kld xxx in the output 
echo xxx_load=\YES\  /boot/loader.conf

Does this seem reasonable?

--Mat


-- 
In general, a standard is very useful, whether it's de facto
or du jour.
- Microsoft's Greg Sullivan
as misquoted by News.Com
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Standard sbc and pcm support in GENERIC kernel?

2004-03-06 Thread Helge Oldach
[EMAIL PROTECTED]:
Tijl Coosemans [EMAIL PROTECTED] writes:
 I have an old toshiba which also needs PNPBIOS in 4-STABLE and
 when I tried 5-CURRENT sound just worked. Of course that doesn't say
 anything about your setup...

PNPBIOS is on by default (and non-optional) in 5.x.

That's great, so my peculiar Compaq Deskpro EN scenario should be fine
as well. I will try a FreeSBIE boot anyway to verify.

BTW, why not make PNPBIOS on by default in 4-STABLE? Is this a danger
of breaking things, aka POLA violation against prepare for 5.x
upgrade case?

Helge
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Standard sbc and pcm support in GENERIC kernel?

2004-03-05 Thread Helge Oldach
Mathew Kanner:
   I would like to note that kldload'ing the sound modules works
very well and I would prefer that to be standard operating procedure
for sound.

The issue with kldloading is that you still need PNPBIOS for many
on-board sound devices. Which means that you need to compile your own
kernel anyway, or don´t you?

Helge
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Standard sbc and pcm support in GENERIC kernel?

2004-03-05 Thread Daniel O'Connor
On Fri, 5 Mar 2004 19:06, Helge Oldach wrote:
 The issue with kldloading is that you still need PNPBIOS for many
 on-board sound devices. Which means that you need to compile your own
 kernel anyway, or don´t you?

I don't think I've ever seen a motherboard/BIOS where you HAD to compile it in 
the kernel..
I don't see why kldload'ing is different to static compilation WRT calling the 
BIOS..

(Then again I don't have any ISA hardware anymore :)

-- 
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
The nice thing about standards is that there
are so many of them to choose from.
  -- Andrew Tanenbaum
GPG Fingerprint - 9A8C 569F 685A D928 5140  AE4B 319B 41F4 5D17 FDD5
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Standard sbc and pcm support in GENERIC kernel?

2004-03-05 Thread Jorn Argelo

On 3/4/2004, Brandon D. Valentine [EMAIL PROTECTED] wrote:

On Wed, Mar 03, 2004 at 05:03:40PM +0100, Jorn Argelo wrote:

 I've been on the question list for some time, and I have noticed that
 many people do not know how to get sound support up and running in
 FreeBSD 5.X. I know that re-compiling the kernel is easy enough, but
 there are still people not willing to do so, as I have noticed on the
 list. Therefor I thought it might be an idea to put sound support in the
 GENERIC kernel configuration, so that newbies will no longer find
 themselves stuck with that.

If they'd read pcm(4) they'd know how to get sound support up and
running without recompiling their kernel.  Is there something wrong with
requiring that a new user bother to read the documentation?

I guess that that is the main problem. Some newbies don't read any
documentation at all. They think that installing and configuring FreeBSD
is as easy as Bill's software is ...

Anyway, I was merely suggesting something, but if the list disagrees with
me, then it's alright with me. Thanks for all the responses though, it
gave me some insight.

Cheers,

Jorn.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Standard sbc and pcm support in GENERIC kernel?

2004-03-05 Thread Helge Oldach
Daniel O'Connor:
On Fri, 5 Mar 2004 19:06, Helge Oldach wrote:
 The issue with kldloading is that you still need PNPBIOS for many
 on-board sound devices. Which means that you need to compile your own
 kernel anyway, or don´t you?

I don't think I've ever seen a motherboard/BIOS where you HAD to
compile it in the kernel..

I have a number of Compaq DeskPro EN K450 here. Rather decent machines
for FreeBSD desktops, and for sure not uncommon hardware. But
unfortunately the stupid Compaq BIOS doesn't have a knob to turn off
PnP, so I have to rely on PNPBIOS to deal with what the Compaq BIOS had
detected.

With PNPBIOS:

FreeBSD Audio Driver (newpcm)
Installed devices:
pcm0: ESS 1869 DSP at io 0x220 irq 5 drq 1:0 bufsz 4096 (1p/1r/0v channels duplex)

Without PNPBIOS: no pcm0.

Latest BIOS revision, of course.

I don't see why kldload'ing is different to static compilation WRT
calling the BIOS..

It's not. But without PNPBIOS either won't work on these boxes.

Helge
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Standard sbc and pcm support in GENERIC kernel?

2004-03-05 Thread Mathew Kanner
On Mar 05, Helge Oldach wrote:
 Daniel O'Connor:
 On Fri, 5 Mar 2004 19:06, Helge Oldach wrote:
  The issue with kldloading is that you still need PNPBIOS for many
  on-board sound devices. Which means that you need to compile your own
  kernel anyway, or don?t you?
 
 I don't think I've ever seen a motherboard/BIOS where you HAD to
 compile it in the kernel..
 
 I have a number of Compaq DeskPro EN K450 here. Rather decent machines
 for FreeBSD desktops, and for sure not uncommon hardware. But
 unfortunately the stupid Compaq BIOS doesn't have a knob to turn off
 PnP, so I have to rely on PNPBIOS to deal with what the Compaq BIOS had
 detected.

Helge,
Are you required to compile sound in the kernel to get it to
work?  If so, then I will document the fact that in some unsual
circumstances that including sound statcily in the kernel is needed,
otherwise I intend to de-emphesize it.

--Mat

--Mat

-- 
The beaver, which has come to represent Canada as the eagle
does the United States and the lion Britain, is a
flat-tailed, slow-witted, toothy rodent known to bite off
it's own testicles or to stand under its own falling trees.
- June Callwood
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Standard sbc and pcm support in GENERIC kernel?

2004-03-05 Thread Daniel O'Connor
On Fri, 5 Mar 2004 23:38, Helge Oldach wrote:
 I don't think I've ever seen a motherboard/BIOS where you HAD to
 compile it in the kernel..

 I have a number of Compaq DeskPro EN K450 here. Rather decent machines
 for FreeBSD desktops, and for sure not uncommon hardware. But
 unfortunately the stupid Compaq BIOS doesn't have a knob to turn off
 PnP, so I have to rely on PNPBIOS to deal with what the Compaq BIOS had
 detected.

 With PNPBIOS:

 FreeBSD Audio Driver (newpcm)
 Installed devices:
 pcm0: ESS 1869 DSP at io 0x220 irq 5 drq 1:0 bufsz 4096 (1p/1r/0v
 channels duplex)

 Without PNPBIOS: no pcm0.

Ahh, I see..
Sorry I didn't realise you meant the PNPBIOS in the kernel.. duh :)

-- 
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
The nice thing about standards is that there
are so many of them to choose from.
  -- Andrew Tanenbaum
GPG Fingerprint - 9A8C 569F 685A D928 5140  AE4B 319B 41F4 5D17 FDD5
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Standard sbc and pcm support in GENERIC kernel?

2004-03-05 Thread Dag-Erling Smørgrav
Mathew Kanner [EMAIL PROTECTED] writes:
   Are you required to compile sound in the kernel to get it to
 work?

No, he is required to compile a kernel with the PNPBIOS option (which
is not in GENERIC).

DES
-- 
Dag-Erling Smørgrav - [EMAIL PROTECTED]
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Standard sbc and pcm support in GENERIC kernel?

2004-03-05 Thread Helge Oldach
Mathew Kanner:
On Mar 05, Helge Oldach wrote:
 Daniel O'Connor:
 On Fri, 5 Mar 2004 19:06, Helge Oldach wrote:
  The issue with kldloading is that you still need PNPBIOS for many
  on-board sound devices. Which means that you need to compile your own
  kernel anyway, or don?t you?
 
 I don't think I've ever seen a motherboard/BIOS where you HAD to
 compile it in the kernel..
 
 I have a number of Compaq DeskPro EN K450 here. Rather decent machines
 for FreeBSD desktops, and for sure not uncommon hardware. But
 unfortunately the stupid Compaq BIOS doesn't have a knob to turn off
 PnP, so I have to rely on PNPBIOS to deal with what the Compaq BIOS had
 detected.

   Are you required to compile sound in the kernel to get it to
work?

Yes, that is exactly correct. I am sorry, I just wasn't clear enough
with my wording. To be safe, I just tested it:

case a) options PNPBIOS and device pcm in the kernel config = works

case b) options PNPBIOS in the kernel config and kldload snd_pcm =
pcm isn't recognized, but the other PnP devices show up during probe

case c) *no* options PNPBIOS but kldload snd_pcm = neither pcm nor
other PnP devices are recognized

Did I forget one variation? :-)

If so, then I will document the fact that in some unsual
circumstances that including sound statcily in the kernel is needed,
otherwise I intend to de-emphesize it.

I suppose the former is adequate.

What strikes me is case b). It seems a kldload'ed module cannot
recognize its devices when they were probed and attached by the PnP
BIOS. Does that sound reasonable?

This is 4.9-STABLE of some few days ago (right after the TCP re-assembly
queue fix). How will it work with -CURRENT which doesn't have a PNPBIOS
option? Can I use sound at all?

Helge
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Standard sbc and pcm support in GENERIC kernel?

2004-03-05 Thread David Raistrick
On Fri, 5 Mar 2004, Helge Oldach wrote:

 case b) options PNPBIOS in the kernel config and kldload snd_pcm =
 pcm isn't recognized, but the other PnP devices show up during probe

 case c) *no* options PNPBIOS but kldload snd_pcm = neither pcm nor
 other PnP devices are recognized

 Did I forget one variation? :-)


Have you tried kldload snd_driver  instead of snd_pcm?  This should load
all modules, instead of just the pcm module.  Unless you're certian that
snd_pcm is the correct module for support for your sound card?

kldload'ing snd_pcm never did enough to make sound work on my systems, I
always needed to load snd_driver.



---
david raistrick
[EMAIL PROTECTED]   http://www.expita.com/nomime.html

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Standard sbc and pcm support in GENERIC kernel?

2004-03-05 Thread David Raistrick
On Fri, 5 Mar 2004, Helge Oldach wrote:

 This is 4.9-STABLE of some few days ago (right after the TCP re-assembly
 queue fix). How will it work with -CURRENT which doesn't have a PNPBIOS
 option? Can I use sound at all?

Ahh, I was refering to 5.x.  I've never tried to kldload any pcm drivers
in -STABLE.



---
david raistrick
[EMAIL PROTECTED]   http://www.expita.com/nomime.html

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Standard sbc and pcm support in GENERIC kernel?

2004-03-05 Thread Mathew Kanner
[...Just noticed that we are posting to multiple groups.  Sorry
everyone, though I not ready to drop them...]

On Mar 05, Helge Oldach wrote:
 Mathew Kanner:
 On Mar 05, Helge Oldach wrote:

 
 Yes, that is exactly correct. I am sorry, I just wasn't clear enough
 with my wording. To be safe, I just tested it:
 
 case a) options PNPBIOS and device pcm in the kernel config = works
 
 case b) options PNPBIOS in the kernel config and kldload snd_pcm =
 pcm isn't recognized, but the other PnP devices show up during probe
 
 case c) *no* options PNPBIOS but kldload snd_pcm = neither pcm nor
 other PnP devices are recognized
 
 Did I forget one variation? :-)

Helge,

kldloading snd_pcm isn't enough.  You need to load the driver
for your particular card (the module dependacies should load snd_pcm
for you).  I think you are going to have to retry your tests.

--Mat
-- 
We peer so suspiciously at each other that we cannot see
that we Canadians are standing on the mountaintop of human
wealth, freedom and privilege.
- Pierre Elliott Trudeau
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Standard sbc and pcm support in GENERIC kernel?

2004-03-05 Thread David Raistrick
On Thu, 4 Mar 2004, Brandon D. Valentine wrote:


 If they'd read pcm(4) they'd know how to get sound support up and
 running without recompiling their kernel.  Is there something wrong with
 requiring that a new user bother to read the documentation?

pcm(4) only explains the technical details, as well as partially covering
the reboot-to-make-it-work scenario.  It doesn't cover the kdlload
scenario to bring sound online without rebooting.

If pcm(4) or the handbook, or something, would give a more end-user
oriented (for those who are new to 5.x or new to freebsd entirely)
approach, this would be very helpful.


pcm(4) also provides no detail on how to determine what foo should be
for your soundcard.

   snd_foo_load  (``NO'') If set to ``YES'', load driver for
 card/chipset foo.


For example, I have an ALC650 soundcard in my XPC.  Where do I look to
find out what snd_foo_load I need to enable the sound?  I've still not
found this information.

I use snd_driver_load=YES which loads /all/ of the pcm drivers, but I
cannot tell from kldstat which driver I'm actually using, so I could avoid
loading the others.

Providing detail on how to kldload snd_driver_load or snd_foo_load
would be nice, so users can test this without rebooting their systems.


kldload snd_driver

is of course the correct way to do it.  FWIW, kldunload snd_driver does
/not/ unload all of the modules that kldload snd_driver loads.


All of this of course assumes that the modules are even built and
installed in /boot/kernel/ which may or may not be the case (in my
experiance) with a fresh installation.  You may need to make install
these...


~shrug~

...david
---
david raistrick
[EMAIL PROTECTED]   http://www.expita.com/nomime.html

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Standard sbc and pcm support in GENERIC kernel?

2004-03-05 Thread Helge Oldach
Mathew Kanner:
On Mar 05, Helge Oldach wrote:
 Mathew Kanner:
 On Mar 05, Helge Oldach wrote:
 case b) options PNPBIOS in the kernel config and kldload snd_pcm =
 pcm isn't recognized, but the other PnP devices show up during probe

   kldloading snd_pcm isn't enough.  You need to load the driver
for your particular card (the module dependacies should load snd_pcm
for you).  I think you are going to have to retry your tests.

Bingo! kldload snd_ess does in fact also load snd_sbc and snd_pcm, and
it all works. Apologies, I was mislead by the fact that in the kernel
just has options pcm without any further fuzz.

So yes: some machines require a kernel with PNPBIOS even when sound
modules can be kldload'ed. I presume these are typically boxen without
knob to disable the PnP BIOS.

Still I wonder whether sound on -CURRENT will do on such a box...

Thanks all for sharing!

Helge
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Standard sbc and pcm support in GENERIC kernel?

2004-03-05 Thread Daniel Lang
Hi,

David Raistrick wrote on Fri, Mar 05, 2004 at 08:27:56AM -0800:
[..]
 kldload snd_driver
 
 is of course the correct way to do it.  FWIW, kldunload snd_driver does
 /not/ unload all of the modules that kldload snd_driver loads.
[..]

snd_driver is a module that contains _all_ drivers,
thus you have the best chance to get sound working.
Unloading it, will of course unload the whole module with
all drivers. There is no way to leave one of the drivers
in the kernel.

I agree, that there is not much documentation which driver
module supports which sound device (or I was not successful 
to dig that up).

However, you can determine the correct module, by subsequently
loading and unloading each individual driver module. The one
which attached to your sound device and actually works
(check /dev/sndstat as well) is obviously the correct one.

Not a very efficient way, but it works. :)

Best regards,
 Daniel
-- 
IRCnet: Mr-Spock
 - kommst du siehst du, gehst du hast du, weisst du, krass! -
Daniel Lang * [EMAIL PROTECTED] * +49 89 289 18532 * http://www.leo.org/~dl/


smime.p7s
Description: S/MIME cryptographic signature


Re: Standard sbc and pcm support in GENERIC kernel?

2004-03-05 Thread Brandon D. Valentine
[ Whoa, Nelly. Cc: trimmed. ]

On Fri, Mar 05, 2004 at 05:33:47PM +0100, Helge Oldach wrote:
 
 This is 4.9-STABLE of some few days ago (right after the TCP re-assembly
 queue fix). How will it work with -CURRENT which doesn't have a PNPBIOS
 option? Can I use sound at all?

If you wish to test this you might burn and boot a FreeSBIE LiveCD,
which is based on FreeBSD 5.2.1.  This should tell you whether ACPI in
the 5.x kernel handles your BIOS quirk.

HTH,

Brandon D. Valentine
-- 
[EMAIL PROTECTED]   http://www.geekpunk.net
Pseudo-Random Googlism:  spring is in the air whether he's pausing for
 an outdoor lunch or enjoying a bounce
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Standard sbc and pcm support in GENERIC kernel?

2004-03-05 Thread Mathew Kanner
On Mar 05, Helge Oldach wrote:
 [..snip..]

 Bingo! kldload snd_ess does in fact also load snd_sbc and snd_pcm, and
 it all works. Apologies, I was mislead by the fact that in the kernel
 just has options pcm without any further fuzz.

Yes, this is a confusing aspect.  It should be a little better
soon.

--Mat

-- 
The state has no business in the bedrooms of the
nation.
- Pierre Elliott Trudeau
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Standard sbc and pcm support in GENERIC kernel?

2004-03-05 Thread John Baldwin
On Wednesday 03 March 2004 04:31 pm, Randy Pratt wrote:
 On Wed,  3 Mar 2004 17:03:40 +0100 (CET) you wrote:
  I've been on the question list for some time, and I have noticed
  that many people do not know how to get sound support up and
  running in FreeBSD 5.X. I know that re-compiling the kernel is easy
  enough, but there are still people not willing to do so, as I have
  noticed on the list. Therefor I thought it might be an idea to put
  sound support in the GENERIC kernel configuration, so that newbies
  will no longer find themselves stuck with that.

 I think I've read more than one time about problems fitting the
 installation on the 1.44M floppies.

That's no longer a problem in 5.x.  I would like to see pcm(4) added back to 
GENERIC on 5.x.  4.x has been around long enough that its GENERIC can 
probably just stay the way it is.

-- 
John Baldwin [EMAIL PROTECTED]http://www.FreeBSD.org/~jhb/
Power Users Use the Power to Serve  =  http://www.FreeBSD.org
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Standard sbc and pcm support in GENERIC kernel?

2004-03-05 Thread Avleen Vig
On Thu, Mar 04, 2004 at 06:26:47PM -0500, Dan Langille wrote:
  If they'd read pcm(4) they'd know how to get sound support up and
  running without recompiling their kernel.  Is there something wrong with
  requiring that a new user bother to read the documentation?
 
 They would first have to know to read man pcm(4).

All the have to do is look at the handbook. And if they can't find the
link on the *front page* of freebsd.org, under the clearly labelled
catagory of Support, then there is very little we can or should do to
help them. After a point, enough is enough. If the user isn't prepared
to educate themselves, your attempts will ultimately fail.

-- 
Avleen Vig
Systems Administrator
Personal: www.silverwraith.com
EFnet:irc.mindspring.com (Earthlink user access only)
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Standard sbc and pcm support in GENERIC kernel?

2004-03-05 Thread Dan Langille
On Fri, 5 Mar 2004, Avleen Vig wrote:

 On Thu, Mar 04, 2004 at 06:26:47PM -0500, Dan Langille wrote:
   If they'd read pcm(4) they'd know how to get sound support up and
   running without recompiling their kernel.  Is there something wrong with
   requiring that a new user bother to read the documentation?
 
  They would first have to know to read man pcm(4).

 All the have to do is look at the handbook. And if they can't find the
 link on the *front page* of freebsd.org, under the clearly labelled
 catagory of Support, then there is very little we can or should do to
 help them. After a point, enough is enough. If the user isn't prepared
 to educate themselves, your attempts will ultimately fail.

*That* explanation is vast difference to saying they have to read man
pcm(4).  The difference is sigficicant.

-- 
Dan Langille - BSDCan: http://www.bsdcan.org/
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Standard sbc and pcm support in GENERIC kernel?

2004-03-05 Thread Dan Langille
On Fri, 5 Mar 2004, Dan Langille wrote:

 *That* explanation is vast difference to saying they have to read man
 pcm(4).  The difference is sigficicant.

In the same breath, someone needs to install a spell checker and verify
the grammer.

-- 
Dan Langille - BSDCan: http://www.bsdcan.org/
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Standard sbc and pcm support in GENERIC kernel?

2004-03-05 Thread Avleen Vig
On Fri, Mar 05, 2004 at 09:58:52PM -0500, Dan Langille wrote:
  All the have to do is look at the handbook. And if they can't find the
  link on the *front page* of freebsd.org, under the clearly labelled
  catagory of Support, then there is very little we can or should do to
  help them. After a point, enough is enough. If the user isn't prepared
  to educate themselves, your attempts will ultimately fail.
 
 *That* explanation is vast difference to saying they have to read man
 pcm(4).  The difference is sigficicant.

Maybe if I say this here, having it in the archives will help *SOMEONE*
at *SOME* point in the future :-)
95% of the questions I see asked about FreeBSD can be answered by
reading the Handbook (http://freebsd.org/handbook/)

Everyone newbie with a problem should first go there. Hell I'm not even
a newbie (haven't been for almost 7 years) but I still go there.

-- 
Avleen Vig
Systems Administrator
Personal: www.silverwraith.com
EFnet:irc.mindspring.com (Earthlink user access only)
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Standard sbc and pcm support in GENERIC kernel?

2004-03-05 Thread Jamie Bowden
On Fri, 5 Mar 2004, Dan Langille wrote:

 On Fri, 5 Mar 2004, Avleen Vig wrote:

  All the have to do is look at the handbook. And if they can't find the
  link on the *front page* of freebsd.org, under the clearly labelled
  catagory of Support, then there is very little we can or should do
  to help them. After a point, enough is enough. If the user isn't
  prepared to educate themselves, your attempts will ultimately fail.

 *That* explanation is vast difference to saying they have to read man
 pcm(4).  The difference is sigficicant.

It also presumes the end user has net access, which is not a given.

Jamie Bowden

-- 
It was half way to Rivendell when the drugs began to take hold
Hunter S Tolkien Fear and Loathing in Barad Dur
Iain Bowen [EMAIL PROTECTED]


___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Standard sbc and pcm support in GENERIC kernel?

2004-03-04 Thread Randy Pratt
On Wed,  3 Mar 2004 17:03:40 +0100 (CET) you wrote:

 I've been on the question list for some time, and I have noticed
 that many people do not know how to get sound support up and
 running in FreeBSD 5.X. I know that re-compiling the kernel is easy
 enough, but there are still people not willing to do so, as I have
 noticed on the list. Therefor I thought it might be an idea to put
 sound support in the GENERIC kernel configuration, so that newbies
 will no longer find themselves stuck with that.

I think I've read more than one time about problems fitting the
installation on the 1.44M floppies.

Definitely a bikeshed discussion but adding to the documentation
regarding kldload or a knob in sysinstall to turn on all sound
modules is preferable to adding to the kernel.

Best regards,

Randy
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Standard sbc and pcm support in GENERIC kernel?

2004-03-04 Thread Robert Watson

On Wed, 3 Mar 2004, Randy Pratt wrote:

 On Wed,  3 Mar 2004 17:03:40 +0100 (CET) you wrote:
 
  I've been on the question list for some time, and I have noticed
  that many people do not know how to get sound support up and
  running in FreeBSD 5.X. I know that re-compiling the kernel is easy
  enough, but there are still people not willing to do so, as I have
  noticed on the list. Therefor I thought it might be an idea to put
  sound support in the GENERIC kernel configuration, so that newbies
  will no longer find themselves stuck with that.
 
 I think I've read more than one time about problems fitting the
 installation on the 1.44M floppies. 
 
 Definitely a bikeshed discussion but adding to the documentation
 regarding kldload or a knob in sysinstall to turn on all sound modules
 is preferable to adding to the kernel. 

Actually, pcm was in GENERIC for a while, but was removed because it
caused hangs on boot with a common line of Dell Latitude notebooks at the
time.  The problem is likely now fixed, and I'd certainly not object to it
being in GENERIC as long as there are no similar widespread issues now.

Robert N M Watson FreeBSD Core Team, TrustedBSD Projects
[EMAIL PROTECTED]  Senior Research Scientist, McAfee Research


___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Standard sbc and pcm support in GENERIC kernel?

2004-03-04 Thread Rahul Siddharthan
Robert Watson wrote:
[pcm in GENERIC]
 Actually, pcm was in GENERIC for a while, but was removed because it
 caused hangs on boot with a common line of Dell Latitude notebooks at the
 time.  The problem is likely now fixed, and I'd certainly not object to it
 being in GENERIC as long as there are no similar widespread issues
 now.

Isn't there also an issue with some of the sound code being GPL'd (the
stuff in sys/gnu/dev/sound/pci, ie the emu10k1 and maestro stuff)?
If this goes into a GENERIC kernel that's redistributed, the whole
kernel has to be distributed under the GPL.

Rahul
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Standard sbc and pcm support in GENERIC kernel?

2004-03-04 Thread Mathew Kanner
On Mar 04, Robert Watson wrote:
 
 On Wed, 3 Mar 2004, Randy Pratt wrote:
 
  On Wed,  3 Mar 2004 17:03:40 +0100 (CET) you wrote:
   I've been on the question list for some time, and I have noticed
   that many people do not know how to get sound support up and
   running in FreeBSD 5.X. I know that re-compiling the kernel is easy
   enough, but there are still people not willing to do so, as I have
   noticed on the list. Therefor I thought it might be an idea to put
   sound support in the GENERIC kernel configuration, so that newbies
   will no longer find themselves stuck with that.
  
  I think I've read more than one time about problems fitting the
  installation on the 1.44M floppies. 
  
  Definitely a bikeshed discussion but adding to the documentation
  regarding kldload or a knob in sysinstall to turn on all sound modules
  is preferable to adding to the kernel. 
 
 Actually, pcm was in GENERIC for a while, but was removed because it
 caused hangs on boot with a common line of Dell Latitude notebooks at the
 time.  The problem is likely now fixed, and I'd certainly not object to it
 being in GENERIC as long as there are no similar widespread issues now.

Hello All,
I would like to note that kldload'ing the sound modules works
very well and I would prefer that to be standard operating procedure
for sound.  I have a patch for the PCM man page that includes this
tid-bit.
--Mat

-- 
In general, a standard is very useful, whether it's de facto
or du jour.
- Microsoft's Greg Sullivan
as misquoted by News.Com
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Standard sbc and pcm support in GENERIC kernel?

2004-03-04 Thread Brandon D. Valentine
On Wed, Mar 03, 2004 at 05:03:40PM +0100, Jorn Argelo wrote:
 
 I've been on the question list for some time, and I have noticed that
 many people do not know how to get sound support up and running in
 FreeBSD 5.X. I know that re-compiling the kernel is easy enough, but
 there are still people not willing to do so, as I have noticed on the
 list. Therefor I thought it might be an idea to put sound support in the
 GENERIC kernel configuration, so that newbies will no longer find
 themselves stuck with that.

If they'd read pcm(4) they'd know how to get sound support up and
running without recompiling their kernel.  Is there something wrong with
requiring that a new user bother to read the documentation?

[ I do not speak for the FreeBSD project. ]

Brandon D. Valentine
-- 
[EMAIL PROTECTED]   http://www.geekpunk.net
Pseudo-Random Googlism:  march is great success
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Standard sbc and pcm support in GENERIC kernel?

2004-03-04 Thread Dan Langille
On Thu, 4 Mar 2004, Brandon D. Valentine wrote:

 On Wed, Mar 03, 2004 at 05:03:40PM +0100, Jorn Argelo wrote:
 
  I've been on the question list for some time, and I have noticed that
  many people do not know how to get sound support up and running in
  FreeBSD 5.X. I know that re-compiling the kernel is easy enough, but
  there are still people not willing to do so, as I have noticed on the
  list. Therefor I thought it might be an idea to put sound support in the
  GENERIC kernel configuration, so that newbies will no longer find
  themselves stuck with that.

 If they'd read pcm(4) they'd know how to get sound support up and
 running without recompiling their kernel.  Is there something wrong with
 requiring that a new user bother to read the documentation?

They would first have to know to read man pcm(4).

-- 
Dan Langille - BSDCan: http://www.bsdcan.org/
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]