From owner-freebsd-current@FreeBSD.ORG Sat Sep 26 10:39:15 2009 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D6F45106568F; Sat, 26 Sep 2009 10:39:15 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe13.swipnet.se [212.247.155.129]) by mx1.freebsd.org (Postfix) with ESMTP id 414BC8FC08; Sat, 26 Sep 2009 10:39:15 +0000 (UTC) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.0 c=1 a=XHM-INoyEekA:10 a=MnI1ikcADjEx7bvsp0jZvQ==:17 a=2Wltjp1iGr9nZTRj-RYA:9 a=Sj5Kmyq1QcmJMa0LlXsa6yMpQSoA:4 a=gd-ioQtvp527Bu-M:21 a=QtHKle6pPz0OWZ3b:21 Received: from [188.126.201.140] (account mc467741@c2i.net HELO laptop.adsl.tele2.no) by mailfe13.swip.net (CommuniGate Pro SMTP 5.2.16) with ESMTPA id 923815559; Sat, 26 Sep 2009 12:39:13 +0200 To: freebsd-current@freebsd.org, mav@freebsd.org Content-Disposition: inline From: Hans Petter Selasky X-Face: (%:6u[ldzJ`0qjD7sCkfdMmD*RxpO< =?iso-8859-1?q?Q0yAl=7E=3F=60=27F=3FjDVb=5DE6TQ7=27=23h-VlLs=7Dk/=0A=09?=(yxg(p!IL.`#ng"%`BMrham7%UK,}VH\wUOm=^>wEEQ+KWt[{J#x6ow~JO:,zwp.(t; @ =?iso-8859-1?q?Aq=0A=09=3A4=3A=26nFCgDb8=5B3oIeTb=5E=27?=",; u{5{}C9>"PuY\)!=#\u9SSM-nz8+SR~B\!qBv Date: Sat, 26 Sep 2009 12:39:51 +0200 MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200909261239.52792.hselasky@c2i.net> Cc: Subject: Re: 8-current + USB CD-ROM drive + CAM layer audio extraction from CD X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 26 Sep 2009 10:39:15 -0000 Hi, It turns out the xmms is not able to read audio from CD's due to a removed IOCTL. cdparanoia is however able to read audio from CD's after a recompile including libcam. static int cdrom_read_audio(int cdfd, int lba, char *buf, int btw) { int rtr = 3; do { struct ioc_read_audio ira; ira.buffer = buf; ira.nframes = btw; ira.address_format = CD_MSF_FORMAT; ira.address.msf.minute = lba / (75 * 60); ira.address.msf.second = (lba / 75) % 60; ira.address.msf.frame = lba % 75; if (ioctl(cdfd, CDIOCREADAUDIO, &ira) >= 0) return ira.nframes; } while (--rtr >= 0); return -1; } The "CDIOCREADAUDIO" is not implemented in the FreeBSD 8/9-current kernel from what I can see. --HPS