[PATCH] cdrom: support read sub-channel command in LBA format

From: Veeraiyan Chidambaram (RBEI/ECF32)
Date: Mon Jul 11 2016 - 02:50:03 EST


Hello Jens,

In CDROM Linux driver code, "Read Sub channel" format is hard coded with CDROM_MSF format only in the function cdrom_read_subchannel() and mmc_ioctl_cdrom_subchannel() in cdrom.c.
Hence, irrespective of "Read Sub channel" command with CDROM_LBA/CDROM_MSF format, the reported Response which is in MSF format was considered as LBA in user space application.

Now the behavior is changed in such way that IOCTL returns either CDROM_MSF or CDROM_LBA format per user request.

Please find the fix patch attached.


Best regards

Veeraiyan Chidambaram
RBEI/ECF

Tel. +91(422)676-4495


Attachment: 0001-cdrom-support-read-sub-channel-command-in-LBA-format.patch
Description: 0001-cdrom-support-read-sub-channel-command-in-LBA-format.patch