]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Add support for accessing individual tracks on a CD.
authorsos <sos@FreeBSD.org>
Fri, 11 Aug 2000 09:21:36 +0000 (09:21 +0000)
committersos <sos@FreeBSD.org>
Fri, 11 Aug 2000 09:21:36 +0000 (09:21 +0000)
commit5337af51e2fa254d3bd344f4b33fb8eac60a0066
tree1563af4e96d1756a0a4acc8492613bd1bc449ec2
parent85c9a2ddc16cd13cfb2434396af3929dc95adaa7
Add support for accessing individual tracks on a CD.

This is done by misusing the device minor a bit to encode the
track no there.

So to read track #4 just use /dev/acdNt4 where N is the device #.

The driver no automatically sets the blocksize (sectorsize) to
what the track is set to in the TOC.

This has the nice effect that you can now rip audioi tracks
by simply doing:

dd if=/dev/acdNt2 of=audiotrack2.raw bs=2352

it cant be much simpler than that :)

NOTE: the original acdNa & acdNc device still work as usual,
except the blocksize is set according to track0.
sys/dev/ata/atapi-cd.c