Date: Tue, 16 Jan 2001 11:11:05 +0000 (GMT) From: Andrew Gordon <arg@arg1.demon.co.uk> To: Bruce Burden <brucegb@realtime.net> Cc: freebsd-multimedia@freebsd.org Subject: Re: MTV, 4.2, X-4.0.1, fvwm2, and audio? Message-ID: <Pine.BSF.4.21.0101160946460.64154-200000@server.arg.sj.co.uk> In-Reply-To: <20010116011421.A93884@tigerfish2.my.domain>
next in thread | previous in thread | raw e-mail | index | archive | help
This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. Send mail to mime@docserver.cac.washington.edu for more info. --0-496454288-979643465=:64154 Content-Type: TEXT/PLAIN; charset=US-ASCII On Tue, 16 Jan 2001, Bruce Burden wrote: > > I have a MSI 694D Pro mainboard, with the AC'97 built in audio > (VIA Apollo Pro 133A chipset). I am running FreeBSD 4.2, XF86-4.0.1_10, > fvwm2 2.2.4, and I have MTV 1.1.4. Here is the dmesg bit about the audio: > > pcm0: <VIA VT82C686A AC'97 Audio> port 0xd400-0xd403,0xd000-0xd003,0xcc00-0xccff > irq 18 at device 7.5 on pci0 > > Or, the ioctl with SNDCTL_DSP_SAMPLESIZE is what is failing. Is > anybody else encountering this problem? Work arounds? Fixes? Suggestions? There is a fix for this problem in -current (/sys/dev/sound/pcm/channel.c rev 1.46), but it doesn't seem to have made it back to -stable yet. Try the enclosed patch. However, this may not help very much (depending what kind of audio your application is trying to play): the problem is with sound hardware that only supports a limited set of sampling rates, so if your program needs a rate that the hardware doesn't support, this patch will get past the bogus failure on DSP_SAMPLESIZE, only to fail for real on DSP_SPEED later. --0-496454288-979643465=:64154 Content-Type: TEXT/PLAIN; charset=US-ASCII; name=patch Content-Transfer-Encoding: BASE64 Content-ID: <Pine.BSF.4.21.0101161111050.64154@server.arg.sj.co.uk> Content-Description: Content-Disposition: attachment; filename=patch SW5kZXg6IGNoYW5uZWwuYw0KPT09PT09PT09PT09PT09PT09PT09PT09PT09 PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT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B7DQog IAkJYy0+c3BlZWQgPSBEU1BfREVGQVVMVF9TUEVFRDsNCisgCQlod3NwZCA9 IERTUF9ERUZBVUxUX1NQRUVEOw0KKyAJCVJBTkdFKGh3c3BkLCBjaG5fZ2V0 Y2FwcyhjKS0+bWluc3BlZWQsDQorIAkJCWNobl9nZXRjYXBzKGMpLT5tYXhz cGVlZCk7DQorIAkJYy0+c3BlZWQgPSBod3NwZDsNCiAgCQlyID0gY2huX3Nl dGZvcm1hdChjLCBmbXQpOw0KISAJCWlmIChyID09IDApIHsNCiEgCQkJciA9 IGNobl9zZXRzcGVlZChjLCBod3NwZCk7DQohIAkJfQ0KICAJCWlmIChyID09 IDApDQogIAkJCXIgPSBjaG5fc2V0dm9sdW1lKGMsIDEwMCwgMTAwKTsNCiAg CX0NCg== --0-496454288-979643465=:64154-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-multimedia" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0101160946460.64154-200000>