cdrom: support read sub-channel command in LBA format
authorvchannaiah <vanitha.channaiah@in.bosch.com>
Wed, 29 Jun 2016 12:18:25 +0000 (08:18 -0400)
committerJens Axboe <axboe@fb.com>
Tue, 12 Jul 2016 15:24:50 +0000 (08:24 -0700)
commitbf294e833b3e670450cdc013242d45a4d2b8d395
tree3e64868a26493135f75b880a84ad1e1e2184d7d8
parent54adc01055b75ec8769c5a36574c7a0895c0c0b2
cdrom: support read sub-channel command in LBA format

userspace application can send READ_SUB_CHANNEL command with time bit
enabled and disabled. The time bit allows selection of address reporting
format. If the time bit is disabled the response is in logical block
address(CDROM_LBA) format, represented as a 32-bit integer with ms-byte
first. If the time bit is enabled the response is in time format i.e.,
minutes, second, frame (CDROM_MSF) format.

Signed-off-by: vchannaiah <vanitha.channaiah@in.bosch.com>
Signed-off-by: Mahendran Kuppusamy <mahendran.kuppusamy@in.bosch.com>
[veeraiyan.chidambaram@in.bosch.com: updated Documentation/ioctl/cdrom.txt]
Signed-off-by: Veeraiyan Chidambaram <veeraiyan.chidambaram@in.bosch.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
Documentation/ioctl/cdrom.txt
drivers/cdrom/cdrom.c