From owner-freebsd-multimedia Mon Dec 14 03:15:19 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id DAA11152 for freebsd-multimedia-outgoing; Mon, 14 Dec 1998 03:15:19 -0800 (PST) (envelope-from owner-freebsd-multimedia@FreeBSD.ORG) Received: from arthur.axion.bt.co.uk (arthur.axion.bt.co.uk [132.146.5.4]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id DAA11137 for ; Mon, 14 Dec 1998 03:15:05 -0800 (PST) (envelope-from guilhem.ensuque@bt-sys.bt.co.uk) Received: from rambo (actually rambo.futures.bt.co.uk) by arthur (local) with SMTP; Mon, 14 Dec 1998 11:12:06 +0000 Received: from mussel.futures.bt.co.uk (actually mussel) by rambo with SMTP (PP); Mon, 14 Dec 1998 11:15:12 +0000 Received: by mussel.futures.bt.co.uk with Microsoft Exchange (IMC 4.0.837.3) id <01BE2751.BFCBC7B0@mussel.futures.bt.co.uk>; Mon, 14 Dec 1998 11:06:07 -0000 Message-ID: From: Guilhem Ensuque To: "'Luigi Rizzo'" , "'multimedia@FreeBSD.ORG'" Subject: [FBSD-multimedia] RE: Dell latitude sound.... (fwd) Date: Mon, 14 Dec 1998 09:24:34 -0000 X-Mailer: Microsoft Exchange Server Internet Mail Connector Version 4.0.837.3 Sender: owner-freebsd-multimedia@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hi Luigi Hi all Sorry to be a pain but I have a newbie question... How do you apply patches? what is the syntax of the command? I have been trying to get the CS4237b working on my Dell Latitude for two weeks now and am on the verge of nervous breakdown, so this may save my life ... :) Guilhem >-----Original Message----- >From: Luigi Rizzo [SMTP:luigi@labinfo.iet.unipi.it] >Sent: 13 December 1998 15:16 >To: multimedia@FreeBSD.ORG >Subject: Re: Dell latitude sound.... (fwd) > >As Soren noticed, the BIOS in the Dell Latitude laptop maps the codec >registers of the CS423x at 0x530 -- this is a bit unusual because these >registers are usually at 0x534 (0x530 is the offset for the >configuration registers, which are not present in most modern >boards...). > >For historical reasons, the "pcm" driver looks for the codec registers >at ioaddr+4, so in order to find the codec ion the Dell and probably >other machines you either need to specify the base address as 0x52c, or >apply the following patch to sys/i386/isa/snd/ad1848.c > > cheers > luigi > > > int > mss_detect(struct isa_device *dev) > { > int i; > u_char tmp, tmp1, tmp2 ; > snddev_info *d = &(pcm_info[dev->id_unit]); > char *name; >+ int retry = 1 ; >+ >+ again: > d->io_base = dev->id_iobase; > d->bd_flags |= BD_F_MCE_BIT ; > >... > > for (i=0; i<10; i++) > if (inb(io_Index_Addr(d)) & IA_BUSY) > DELAY(10000); /* maybe busy, wait & retry later */ > else > break ; > if ((inb(io_Index_Addr(d)) & IA_BUSY) != 0x00) { /* Not a AD1848 >*/ >+ if (retry) { >+ retry = 0 ; >+ dev->id_iobase = dev->id_iobase - 4 ; >+ goto again ; > } > BVDDB(printf("mss_detect error, busy still set (0x%02x)\n", > inb(io_Index_Addr(d)))); > return 0; > } > > > >To Unsubscribe: send mail to majordomo@FreeBSD.org >with "unsubscribe freebsd-multimedia" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-multimedia" in the body of the message