Fellows,
Ok, this is a working edition of the fm801 chip driver attached.
It tested with play, rvplayer, x11amp.
I've found no probs so far.
Can anyone put it on the cvs tree?
Put it to /usr/src/sys/dev/sound/pci/fms.c
To add it to the kernel you have to add the line
dev/sound/pci/fms.c
optional pcm
to the file
/usr/src/sys/conf/files
and rebuild the kernel...
Also the driver is designed to be compiled as a module.
Note, that the current edition works only with latest snapshot of the
system.
To make it working with 4.1
you'll have to apply the following path:
----------------------------------------------------
--- fms.c Tue Aug 22 22:37:07 2000
+++ fms-4.1.c Tue Aug 22 22:39:28 2000
@@ -115,19 +115,10 @@
static int fm801ch_setup(pcm_channel *c);
*/
-static u_int32_t fmts[] = {
- AFMT_U8,
- AFMT_STEREO | AFMT_U8,
- AFMT_S16_LE,
- AFMT_STEREO | AFMT_S16_LE, /*
- AFMT_STEREO | (AFMT_S16_LE | AFMT_S16_BE | AFMT_U16_LE |
AFMT_U16_BE),
- (AFMT_S16_LE | AFMT_S16_BE | AFMT_U16_LE | AFMT_U16_BE), */
- 0
-};
-
static pcmchan_caps fm801ch_caps = {
4000, 48000,
- fmts, 0
+ AFMT_STEREO | AFMT_U8 | AFMT_S16_LE,
+ AFMT_STEREO | AFMT_U8 | AFMT_S16_LE
};
static pcm_channel fm801_chantemplate = {
-----------------------------------------------------
Thanks,
Dmitry.
--
**********************************************************************
("`-''-/").___..--''"`-._ (\ Dimmy the Wild UA1ACZ
`6_ 6 ) `-. ( ).`-.__.`) DataArt Enterprises, Inc.
(_Y_.)' ._ ) `._ `. ``-..-' Serpukhovskaja street, 10
_..`--'_..-_/ /--'_.' ,' Saint Petersburg, Russia
(il),-'' (li),' ((!.-' +7 (812) 3261780, 5552490
**********************************************************************
fms.c