From owner-freebsd-stable Tue Nov 19 16:39:33 2002 Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E438537B404 for ; Tue, 19 Nov 2002 16:39:32 -0800 (PST) Received: from rootlabs.com (root.org [67.118.192.226]) by mx1.FreeBSD.org (Postfix) with SMTP id 7E41C43E8A for ; Tue, 19 Nov 2002 16:39:28 -0800 (PST) (envelope-from nate@rootlabs.com) Received: (qmail 61929 invoked by uid 1000); 20 Nov 2002 00:39:29 -0000 Date: Tue, 19 Nov 2002 16:39:29 -0800 (PST) From: Nate Lawson To: ports@freebsd.org Cc: stable@freebsd.org Subject: HEADSUP - change in CDRIOC.*SPEED ioctl units Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG I just MFCd code that was committed to current a month ago that changes the semantics of CDRIOC{READ,WRITE}SPEED ioctls to take the raw value (in KB/sec). Before, the units were multiples of CDROM 1X speed (i.e. 1x = 177 K/s, 2x = 354 K/s, ...) Also, it is now possible to tell the drive to select its maximum possible speed by sending 0xffff as the ioctl argument. Maintainers of CD player, ripper, and burner packages should make sure they've tracked the change correctly. If you don't use the CDRIOC interface, you don't need to change anything. If you do, multiply all values by 177 before passing them to ioctl(). For examples on how to do this, see usr.sbin/cdcontrol or usr.sbin/burncd. -Nate To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message