From owner-freebsd-multimedia Thu Jun 27 14:59:45 2002 Delivered-To: freebsd-multimedia@freebsd.org Received: from puma.icir.org (puma.icir.org [192.150.187.73]) by hub.freebsd.org (Postfix) with ESMTP id 270CB37B411; Thu, 27 Jun 2002 14:59:23 -0700 (PDT) Received: from puma.icir.org (localhost [127.0.0.1]) by puma.icir.org (8.11.6/8.11.3) with ESMTP id g5RLxHV68988; Thu, 27 Jun 2002 14:59:17 -0700 (PDT) (envelope-from hodson@puma.icir.org) Message-Id: <200206272159.g5RLxHV68988@puma.icir.org> X-Mailer: exmh version 2.5 07/13/2001 with nmh-1.0.3 To: Scott Long Cc: freebsd-multimedia@freebsd.org, cg@freebsd.org From: Orion Hodson Subject: Re: ICH calibration under 5-CURRENT In-Reply-To: Your message of "Thu, 27 Jun 2002 15:19:47 MDT." <20020627211947.GA18048@hollin.btc.adaptec.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Thu, 27 Jun 2002 14:59:17 -0700 Sender: owner-freebsd-multimedia@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org /-- Scott Long wrote: | | --h31gzZEtNLTqOjlF | Content-Type: text/plain; charset=us-ascii | Content-Disposition: inline | | All, | | I noticed that with my ICH3/CS4205 sound setup, if I load the ich | driver at boot or compile it into the kernel, it incorrectly | sets the ac97 sample rate. However, if I load the driver *after* | boot, it's correct. This is due to ich_calibrate() running | before the system clock is itslef calibrated. I see that there are | a few hacks and sysctl's for dealing with this, but the attached | patch should settle this issue. It puts ich_calibrate() into a | config_intrhook, forcing it to run after the system clock is | calibrated. If there are no objections, I'd like to commit it | to 5-CURRENT. I haven't looked into 4-STABLE, so comments there | are welcome also. Scott The patch looks good. I was not aware of the config_intrhook. If you commit to -CURRENT, I'm happy to MFC after checking out the situation on -stable. Thanks - Orion To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-multimedia" in the body of the message