Date: Wed, 26 Oct 2011 12:37:47 -0700 From: Craig Rodrigues <rodrigc@crodrigues.org> To: Claude Buisson <clbuisson@orange.fr> Cc: FreeBSD Current <freebsd-current@freebsd.org>, freebsd-stable@freebsd.org Subject: Re: can audio CDs be played with ATA_CAM ? Message-ID: <CAG=rPVeRBMx62PuOhw22D1f9WbKB7nbzCAgbsMqVaFpEYvbVvQ@mail.gmail.com> In-Reply-To: <4EA83BF5.4090201@orange.fr> References: <4EA68C47.2070908@orange.fr> <CAG=rPVcUAMbqQ3T-JMVj9TNCKjQOzMw3Jc2ekTbULb9YpM5umA@mail.gmail.com> <4EA7C5C9.8010903@orange.fr> <C1560A8D-4BFD-4B33-8915-DA2A1565D26D@gsoft.com.au> <4EA7DEF3.7030807@orange.fr> <7334F735-D217-471E-B5AA-151DD9204B65@gsoft.com.au> <4EA83BF5.4090201@orange.fr>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Oct 26, 2011 at 9:57 AM, Claude Buisson <clbuisson@orange.fr> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAG=rPVeRBMx62PuOhw22D1f9WbKB7nbzCAgbsMqVaFpEYvbVvQ>