]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/commit
MFC r228808, r228847, 229395:
authormav <mav@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Thu, 12 Jan 2012 15:02:51 +0000 (15:02 +0000)
committermav <mav@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Thu, 12 Jan 2012 15:02:51 +0000 (15:02 +0000)
commit75d0724769a209b767b454fc312e13621a2601cf
tree27bea1cc9887a1952ed2fa6f00660a1c71815a9a
parent07ade296c734b50cb1a956198e42cdab7fa465b6
MFC r228808, r228847, 229395:

r228808, r228847:
Make cd driver to handle Audio CDs, reporting their 2352 bytes sectors to
GEOM and using READ CD command for reading data, same as acd driver does.
Audio CDs identified by checking respective bit of the control field of
the first track in TOC.

229395:
Add support for CDRIOCGETBLOCKSIZE and CDRIOCSETBLOCKSIZE IOCTLs to control
sector size same as acd driver does. Together with r228808 and r228847 this
allows existing multimedia/vlc to play Audio CDs via CAM cd driver.

PR: ports/162190
Sponsored by: iXsystems, Inc.

git-svn-id: svn://svn.freebsd.org/base/stable/8@230015 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/cam/scsi/scsi_all.h
sys/cam/scsi/scsi_cd.c