* [Patch] DVD bugfix in ide-cd.c
[not found] ` <sz2u26d4tt8.fsf@kazoo.cs.uiuc.edu>
@ 2001-02-02 5:12 ` Fredrik Vraalsen
2001-02-02 12:31 ` [livid-dev] " Szymon Polom
2001-02-02 14:07 ` Jens Axboe
0 siblings, 2 replies; 6+ messages in thread
From: Fredrik Vraalsen @ 2001-02-02 5:12 UTC (permalink / raw)
To: axboe; +Cc: torvalds, linux-kernel, livid-dev, Peter Rasmussen
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/
^ permalink raw reply [flat|nested] 6+ messages in thread* Re: [livid-dev] [Patch] DVD bugfix in ide-cd.c
2001-02-02 5:12 ` [Patch] DVD bugfix in ide-cd.c Fredrik Vraalsen
@ 2001-02-02 12:31 ` Szymon Polom
2001-02-02 12:47 ` Szymon Polom
2001-02-02 14:07 ` Jens Axboe
1 sibling, 1 reply; 6+ messages in thread
From: Szymon Polom @ 2001-02-02 12:31 UTC (permalink / raw)
To: Fredrik Vraalsen
Cc: axboe, torvalds, linux-kernel, livid-dev,
Peter Rasmussen (udgaard)
Hi...
Fredrik Vraalsen wrote:
>
> 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.
What's wrong with the people maintaining the source? The bug has been
fixed in 2.2.18 and 2.4.0-test8. I can't imagine how the bug has been
"implemented" in 2.4.1 again.
Any ideas?
Bye... SP.
--
Szymon Polom polom@convergence.de
convergence integrated media GmbH http://www.convergence.de
Rosenthaler Str. 51 fon: +49(0)30-72 62 06 68
D-10178 Berlin fax: +49(0)30-72 62 06 55
-
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/
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [livid-dev] [Patch] DVD bugfix in ide-cd.c
2001-02-02 12:31 ` [livid-dev] " Szymon Polom
@ 2001-02-02 12:47 ` Szymon Polom
0 siblings, 0 replies; 6+ messages in thread
From: Szymon Polom @ 2001-02-02 12:47 UTC (permalink / raw)
To: Fredrik Vraalsen, axboe, torvalds, linux-kernel, livid-dev,
Peter Rasmussen (udgaard)
Hello,
Szymon Polom wrote:
> Fredrik Vraalsen wrote:
> >
> > 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.
>
> What's wrong with the people maintaining the source? The bug has been
> fixed in 2.2.18 and 2.4.0-test8. I can't imagine how the bug has been
> "implemented" in 2.4.1 again.
>
> Any ideas?
I have to revoke my statement. The cached toc problem i meant was in
cdrom_get_toc_entry() not in cdrom_read_toc().
Bye... SP.
--
Szymon Polom polom@convergence.de
convergence integrated media GmbH http://www.convergence.de
Rosenthaler Str. 51 fon: +49(0)30-72 62 06 68
D-10178 Berlin fax: +49(0)30-72 62 06 55
-
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/
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Patch] DVD bugfix in ide-cd.c
2001-02-02 5:12 ` [Patch] DVD bugfix in ide-cd.c Fredrik Vraalsen
2001-02-02 12:31 ` [livid-dev] " Szymon Polom
@ 2001-02-02 14:07 ` Jens Axboe
2001-02-02 14:22 ` Andre Hedrick
1 sibling, 1 reply; 6+ messages in thread
From: Jens Axboe @ 2001-02-02 14:07 UTC (permalink / raw)
To: Fredrik Vraalsen; +Cc: torvalds, linux-kernel, livid-dev, Peter Rasmussen
On Thu, Feb 01 2001, Fredrik Vraalsen wrote:
>
> 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.
Thanks applied, guess we need another work-around for buggy changers...
--
Jens Axboe
-
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/
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Patch] DVD bugfix in ide-cd.c
2001-02-02 14:07 ` Jens Axboe
@ 2001-02-02 14:22 ` Andre Hedrick
0 siblings, 0 replies; 6+ messages in thread
From: Andre Hedrick @ 2001-02-02 14:22 UTC (permalink / raw)
To: Jens Axboe
Cc: Fredrik Vraalsen, torvalds, linux-kernel, livid-dev,
Peter Rasmussen
On Fri, 2 Feb 2001, Jens Axboe wrote:
> Thanks applied, guess we need another work-around for buggy changers...
>
> --
> Jens Axboe
To quote my friend, about comments agreeing with Hale Landis.....
WHY!!! are you still supporting junk? ;-)
Cheers,
Andre Hedrick
Linux ATA Development
ASL Kernel Development
-----------------------------------------------------------------------------
ASL, Inc. Toll free: 1-877-ASL-3535
1757 Houret Court Fax: 1-408-941-2071
Milpitas, CA 95035 Web: www.aslab.com
-
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/
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Patch] DVD bugfix in ide-cd.c
@ 2001-02-02 6:45 Peter Rasmussen
0 siblings, 0 replies; 6+ messages in thread
From: Peter Rasmussen @ 2001-02-02 6:45 UTC (permalink / raw)
To: axboe, vraalsen; +Cc: linux-kernel, livid-dev, plr, torvalds
This patch made it work for me watching DVDs that used to stop, ie. oms
crashed. So I'll approve the patch :-)
Peter
Fredrik Vraalsen <vraalsen@cs.uiuc.edu> on 01 Feb 2001 23:12:44 wrote:
>
>
>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/
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2001-02-02 14:26 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <200102012210.XAA00328@udgaard.com>
[not found] ` <sz2u26d4tt8.fsf@kazoo.cs.uiuc.edu>
2001-02-02 5:12 ` [Patch] DVD bugfix in ide-cd.c Fredrik Vraalsen
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
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox