From owner-freebsd-ports Mon Dec 20 14:30: 8 1999 Delivered-To: freebsd-ports@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id 7A78B15082 for ; Mon, 20 Dec 1999 14:30:02 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id OAA69511; Mon, 20 Dec 1999 14:30:02 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from sasknow.com (h139-142-245-96.ss.fiberone.net [139.142.245.96]) by hub.freebsd.org (Postfix) with ESMTP id A0CED14EAE for ; Mon, 20 Dec 1999 14:23:44 -0800 (PST) (envelope-from root@sasknow.com) Received: (from root@localhost) by sasknow.com (8.9.3/8.9.3) id QAA31528; Mon, 20 Dec 1999 16:24:23 -0600 (CST) (envelope-from root) Message-Id: <199912202224.QAA31528@sasknow.com> Date: Mon, 20 Dec 1999 16:24:23 -0600 (CST) From: ryan@sasknow.com Reply-To: ryan@sasknow.com To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: ports/15594: kscd-1.2.7 in -STABLE ports not playing ATAPI CDs Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 15594 >Category: ports >Synopsis: kscd-1.2.7 in -STABLE ports not playing ATAPI CDs >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Dec 20 14:30:01 PST 1999 >Closed-Date: >Last-Modified: >Originator: Ryan Thompson >Release: >Organization: >Environment: Nothing special, problem appears to affect more than just myself. Using /dev/acd0[a|c] See description. >Description: When attempting to play ATAPI CDs, or to advance/rewind/pause/play CDs started with cdcontrol, kscd displays an "Ejected" message in its window and stops playback. (But does not eject the disc) >How-To-Repeat: Appears to affect all ATAPI CDROMs that I have tested; try and play one. >Fix: I've successfully used the following small patches on kscd-1.2.7, which have appeared to correct playback on my -STABLE system, without any adverse side effects. These patches were obtained from a KDE mailing list archive, and have been around for quite some time. *** plat_freebsd.c Mon May 17 14:07:34 1999 *************** *** 248,258 **** break; case CD_AS_PLAY_COMPLETED: ! *mode = TRACK_DONE; /* waiting for next track. */ break; case CD_AS_NO_STATUS: ! case 0: *mode = STOPPED; break; } --- 248,259 ---- break; case CD_AS_PLAY_COMPLETED: ! *mode = STOPPED; ! /* *mode = TRACK_DONE; /* waiting for next track. */ break; case CD_AS_NO_STATUS: ! case CD_AS_AUDIO_INVALID: *mode = STOPPED; break; } *************** *** 368,378 **** msf.end_s = (end % (60*75)) / 75; msf.end_f = end % 75; if (ioctl(d->fd, CDIOCSTART)) return (-1); ! if (ioctl(d->fd, CDIOCPLAYMSF, &msf)) ! return (-2); return (0); } --- 369,383 ---- msf.end_s = (end % (60*75)) / 75; msf.end_f = end % 75; + #if 0 if (ioctl(d->fd, CDIOCSTART)) return (-1); + #endif ! if (ioctl(d->fd, CDIOCPLAYMSF, &msf)) { ! perror("ioctl(CDIOPLAYMSF)"); ! return (-2); ! } return (0); } >Release-Note: >Audit-Trail: >Unformatted: >release: FreeBSD 3.4-STABLE i386 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message