Re: Problem with sound in 5.3-BETA2

From: David Barbero <sico_at_loquefaltaba.com>
Date: Tue, 14 Sep 2004 23:51:11 +0200 (CEST)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi all.

I probe to modify fm801.c to intend repair this error with my sound card,
with Alexander V. Ribchansky helps, this sound card is working properly.

pcm0_at_pci1:7:0:  class=0x040100 card=0x13191319 chip=0x08011319 rev=0xb2
hdr=0x00
    vendor   = 'Forte Media, Inc.'
    device   = 'FM801 Xwave PCI audio controller'
    class    = multimedia
    subclass = audio


The problem is one if for testing if de card is only radio tunner or not,
this if fail with some cards.

This is a simple modification for fm801.c :

- -- fm801.c.orig        Tue Sep 14 23:31:15 2004
+++ fm801.c     Tue Sep 14 23:44:48 2004
_at__at_ -736,11 +736,9 _at__at_
                 * power-on value should be `0', while on AC97-less tuner
                 * card (SF64-PCR) it was 0x80.
                 */
- -               if (bus_space_read_1(st, sh, 0x28) == 0) {
                        device_set_desc(dev,
                        result = 0;
- -               }

                bus_release_resource(dev, regtype, regid, reg);
        }


I don't know if any of this problem will be repair on 5.3-RELEASE, but
with the original fm801.c some sound card with this chipset, don't work...

Best Regards

- --
"Linux is for people who hate Windows, BSD is for
people who love UNIX"

David Barbero dijo:
> when i compile the kernel, i see LINT and take exactly this line for
> the card:
>
> device "snd_fm801"
> device sound
>
> but don't work...
>
> I try to recompile kernel and load as module with kldload "snd_fm801".
> if this don't work, I upgrade to -CURRENT and try.
>
> the version of fm801.c work on 4.7 is:
> FreeBSD: src/sys/dev/sound/pci/fm801.c,v 1.3.2.6 2002/08/30 14:52:45
> sobomax Exp
>
> Thk.
>
> --
> "Linux is for people who hate Windows, BSD is for
> people who love UNIX"
>
> El 31/08/2004, a las 22:18, Kevin Oberman escribió:
>> I don't think the patch that allows devices ending in numerics to work
>> properly has been committed to RELENG_5, so you need to enclose the
>> name
>> in quotation marks. This is fixed in CURRENT and I suspect it will be
>> in
>> RELENG_5 fairly soon.
>>
>> Until then, kldload "snd_fm801" has a better chance of working. (Or
>> device "snd_fm801"
>> if you are building it into the kernel.)
>>
>> If you actually tried to load with the quotation marks, please ignore
>> this.
>
> _______________________________________________
> freebsd-current_at_freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "freebsd-current-unsubscribe_at_freebsd.org"
>

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (FreeBSD)

iQIVAwUBQUdnzlzCah3DrEDZAQJiRA//X8Kwkss/AEbU8JJCsr7jyB29xY2BjG6r
mTYiLvYaXrE27VbiSgCh6q2kfZRIOScpgH7O9nswuZtsn3dM10ZBSbrfTa+IkDRA
hUJ825zRPNeYkqQ6ezQnq+rSocMCgjjZWQbSfpJadarpEWOq+gHlKlXAUQMSXy3M
FfZB+iPceIqYqVfdt3hdosnxYaxKR4DY3Gla1qqRd43xkkap5yC+GGJ8suVGxaJ9
ceermrYeyCPejMG2380t+tqivMPYB63r+EIydbhH854ElZ/tA8mSYcc2Q/KMrfbN
xHLPpA33QeI0tuAahw38lRAwE2J3lbhZ4i/P22znfQlJ0nhgkxypawIXXczn/gXm
pOwz9bSzhim7barAbmrq5Y6VufTxGcIOJSwRtRsbPiTYn0Ycy6QXOLaZI3HO7cW/
EbkQ4oWDoLzpwyvg9iechHFTfoLvKAY080lQ0EGobJn4u3r1AowLCvYDMZpaeOpw
BMw+YwGb6+phpDdRSoeiwBZqmbdo+CrvCf54k1ftxDiNZEweC7CAF9LoWbPO7OUE
Lc28tSZnqt0zdB6z/GIWxo8MAaSVzm8OS09OchWWBFg03o6cZZ4699+RO7uZmamv
5/8aruwST92e4AsFfaUovw99UjYjsYki4pRIDN8DHDQf5t5aBsP5Xza6K49JpFAQ
kD25s4b+T6U=
=KspK
-----END PGP SIGNATURE-----
Received on Tue Sep 14 2004 - 19:51:26 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:12 UTC