From owner-freebsd-current@FreeBSD.ORG Sat Aug 30 20:26:06 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9AFBB16A4BF for ; Sat, 30 Aug 2003 20:26:06 -0700 (PDT) Received: from relay10.melbpc.org.au (newkoala.melbpc.org.au [203.12.152.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id F258A44003 for ; Sat, 30 Aug 2003 20:26:02 -0700 (PDT) (envelope-from kpeter@melbpc.org.au) Received: from 127.0.0.1 (localhost [127.0.0.1]) by av.domain.name (Postfix) with SMTP id 8B48FAA94 for ; Sun, 31 Aug 2003 13:26:04 +1000 (EST) Received: by relay10.melbpc.org.au (Postfix, from userid 1004) id 81809AA90; Sun, 31 Aug 2003 13:26:04 +1000 (EST) Received: from melbpc.org.au (a2-59.melbpc.org.au [203.12.157.59]) by relay10.melbpc.org.au (Postfix) with ESMTP id 4FC03AA80 for ; Sun, 31 Aug 2003 13:25:32 +1000 (EST) Message-ID: <3F516AA7.4030408@melbpc.org.au> Date: Sun, 31 Aug 2003 13:25:27 +1000 From: Peter Kostouros Organization: Melbourne PC User Group User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.5b) Gecko/20030824 X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-current@FreeBSD.ORG Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, hits=-1.8 required=8.0 tests=AWL,BAYES_30,USER_AGENT_MOZILLA_UA version=2.55 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.55 (1.174.2.19-2003-05-19-exp) Subject: Inappropriate ioctl for device (CDIOCREADAUDIO) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: kpeter@melbpc.org.au List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 31 Aug 2003 03:26:06 -0000 Hi I am using cd2mp3 (which uses dagrab) to copy an audio file. Unfortunately I receive the following message: dagrab: read raw ioctl failed at lba 33 length 12: Inappropriate ioctl for device I hope the following snippet of code from dagrab might be useful: void cd_read_audio(int lba,int num,char *buf) { struct ioc_read_audio ra; ra.address.lba=lba ra.address_format=CD_LBA_FORMAT; ra.nframes=num; ra.buffer=buf; if(ioctl(cdrom_fd,CDIOCREADAUDIO,&ra)) { fprintf(...); ... } } cd2mp3 works if I use last week's kernel. Note, I re-built cd2mp3 and its dependencies. -- Regards Peter As always the organisation disavows knowledge of this email