From: Fredrik Vraalsen <vraalsen@cs.uiuc.edu>
To: axboe@suse.de
Cc: torvalds@transmeta.com, linux-kernel@vger.kernel.org,
livid-dev@linuxvideo.org,
Peter Rasmussen (udgaard) <plr@udgaard.com>
Subject: [Patch] DVD bugfix in ide-cd.c
Date: 01 Feb 2001 23:12:44 -0600 [thread overview]
Message-ID: <sz2lmrp4qib.fsf_-_@kazoo.cs.uiuc.edu> (raw)
In-Reply-To: <200102012210.XAA00328@udgaard.com> <sz2u26d4tt8.fsf@kazoo.cs.uiuc.edu>
In-Reply-To: <sz2u26d4tt8.fsf@kazoo.cs.uiuc.edu>
This is a small patch to Linux kernel 2.4.1 that fixes a problem with
DVD playback in OMS (Open Media System). With the stock 2.4.1 kernel
OMS will only play up to a certain point on the DVD before it complains
about no more data left on input (basically read() returns 0). This
patch reverts a change between 2.4.0 and 2.4.1.
diff -u --recursive --new-file v2.4.0/linux/drivers/ide/ide-cd.c linux/drivers/ide/ide-cd.c
--- v2.4.0/linux/drivers/ide/ide-cd.c Tue Jan 2 16:59:17 2001
+++ linux/drivers/ide/ide-cd.c Sun Jan 28 13:37:50 2001
@@ -1872,6 +1872,9 @@
If it is, just return. */
(void) cdrom_check_status(drive, sense);
+ if (CDROM_STATE_FLAGS(drive)->toc_valid)
+ return 0;
+
/* First read just the header, so we know how long the TOC is. */
stat = cdrom_read_tocentry(drive, 0, 1, 0, (char *) &toc->hdr,
sizeof(struct atapi_toc_header), sense);
--
Fredrik Vraalsen - Research Assistant, Pablo research group
Department of Computer Science, University of Illinois at U-C
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/
next parent reply other threads:[~2001-02-02 5:13 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <200102012210.XAA00328@udgaard.com>
[not found] ` <sz2u26d4tt8.fsf@kazoo.cs.uiuc.edu>
2001-02-02 5:12 ` Fredrik Vraalsen [this message]
2001-02-02 12:31 ` [livid-dev] " Szymon Polom
2001-02-02 12:47 ` Szymon Polom
2001-02-02 14:07 ` Jens Axboe
2001-02-02 14:22 ` Andre Hedrick
2001-02-02 6:45 Peter Rasmussen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=sz2lmrp4qib.fsf_-_@kazoo.cs.uiuc.edu \
--to=vraalsen@cs.uiuc.edu \
--cc=axboe@suse.de \
--cc=linux-kernel@vger.kernel.org \
--cc=livid-dev@linuxvideo.org \
--cc=plr@udgaard.com \
--cc=torvalds@transmeta.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®