[mythtv-commits] Ticket #4025: DVD Eject not working properly
MythTV
mythtv at cvs.mythtv.org
Sat Oct 27 20:21:22 UTC 2007
#4025: DVD Eject not working properly
--------------------------------+-------------------------------------------
Reporter: skd5aner at gmail.com | Owner: ijr
Type: defect | Status: new
Priority: minor | Milestone: unknown
Component: mythtv | Version: head
Severity: medium | Resolution:
Mlocked: 0 |
--------------------------------+-------------------------------------------
Comment(by maverik044 <level42 at sympatico.ca>):
Attached is a patch that fixes eject with drives managed by the kernel
SCSI driver. If the drive is managed by the SCSI driver (/dev/scdx) and
returns status CDS_TRAY_OPEN, this patch uses ioctl to send a packet to
the drive to query its status.
Packet format is per "Mt Fuji Commands for multimedia devices" SFF8090i,
version 1.0 and therefore independent of the kernel. The only thing I
can't test is BIG_ENDIAN machines, the structure format in the code is
correct, I just don't know if the right includes files are there for
WORDS_BIGENDIAN to be defined.
I mentioned previously that there is a kernel driver patch floating around
for this. I would like to add that it has been since around 2.6.11 of the
kernel, and never made it in the kernel, not even the recent 2.6.23
release. Therefore I assume it will never be for some reason. Thus
requiring this patch as all IDE/ATA/SATA devices are managed by the SCSI
driver in recent kernels (by default) unless specifically configured
otherwise.
This should partially fix the above problem as the "Unable to open orclose
the empty drive xxxx (/dev/scd0). You may have to use the eject button on
the drive" message is the same I get for my Pioneer drive. This patch
fixes that. I suspect that skd5aner also has a problem with the locking
function of the drive from Myth.
--
Ticket URL: <http://svn.mythtv.org/trac/ticket/4025#comment:5>
MythTV <http://svn.mythtv.org/trac>
MythTV
More information about the mythtv-commits
mailing list