From owner-freebsd-stable@FreeBSD.ORG Wed Oct 26 19:37:48 2011 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9497D106564A; Wed, 26 Oct 2011 19:37:48 +0000 (UTC) (envelope-from crodr001@gmail.com) Received: from mail-bw0-f54.google.com (mail-bw0-f54.google.com [209.85.214.54]) by mx1.freebsd.org (Postfix) with ESMTP id E8F888FC16; Wed, 26 Oct 2011 19:37:47 +0000 (UTC) Received: by mail-bw0-f54.google.com with SMTP id zt4so2328756bkb.13 for ; Wed, 26 Oct 2011 12:37:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=P4/77/2YJkIkFJ5QEeJz4k0yMhqS2MYF6lL0zwPKLUc=; b=s1aS8+4vKW/lml8j/SfRgVZwolGoQj/LS3BiBG8MM4eRF6ypNexCi83MIDUf9xXhJW 5OII3d+iBlVDljtE9Eqo6PvuQfByTRzb0xKsRTpBQCZLkSPhgF/LmIZNEoLlN4av7fi4 oAxtdLEaxnXjtpQG/mbm3XKuSxc+E5CT5TaQA= MIME-Version: 1.0 Received: by 10.204.38.16 with SMTP id z16mr13873082bkd.66.1319657867513; Wed, 26 Oct 2011 12:37:47 -0700 (PDT) Sender: crodr001@gmail.com Received: by 10.204.39.12 with HTTP; Wed, 26 Oct 2011 12:37:47 -0700 (PDT) In-Reply-To: <4EA83BF5.4090201@orange.fr> References: <4EA68C47.2070908@orange.fr> <4EA7C5C9.8010903@orange.fr> <4EA7DEF3.7030807@orange.fr> <7334F735-D217-471E-B5AA-151DD9204B65@gsoft.com.au> <4EA83BF5.4090201@orange.fr> Date: Wed, 26 Oct 2011 12:37:47 -0700 X-Google-Sender-Auth: r3EkPNEtyD_PdJAA4Ws36AMEWMo Message-ID: From: Craig Rodrigues To: Claude Buisson Content-Type: text/plain; charset=ISO-8859-1 Cc: FreeBSD Current , freebsd-stable@freebsd.org Subject: Re: can audio CDs be played with ATA_CAM ? X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 Oct 2011 19:37:48 -0000 On Wed, Oct 26, 2011 at 9:57 AM, Claude Buisson wrote: > > Doing my home work step by step: > > I found only 1 place in VLC where the first message: > > [0x2caf2a3c] cdda access error: Could not set block size > > is emitted, after an: > > ioctl( p_vcddev->i_device_handle, CDRIOCSETBLOCKSIZE, &i_size ) > > CDRIOCSETBLOCKSIZE is defined in sys/cdrio.h, and in the kernel used in: > > sys/dev/ata/atapi-cd.c > > which is a brought into the kernel by: > > device atapicd > > So the natural question is: > > Is this ioctl supported with ATA_CAM (and atapicam) ? > > If not, what is to be used instead ? Claude, Thanks for digging into this a bit. I just added some code to make it easier for applications to detect at runtime if ATA_CAM has been configured in the kernel: http://lists.freebsd.org/pipermail/svn-src-stable-9/2011-October/000114.html I am not 100% sure how the CD driver works with ATA_CAM. I think you might need to look at: src/sys/cam/scsi/scsi_cd.c and also read the cd(4) man page. We may need to extend scsi_cd.c, but I'm not sure. -- Craig Rodrigues rodrigc@crodrigues.org