From root@sasknow.com  Mon Dec 20 14:23:46 1999
Return-Path: <root@sasknow.com>
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 <FreeBSD-gnats-submit@freebsd.org>; 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
Sender: root@sasknow.com
Reply-To: ryan@sasknow.com
To: FreeBSD-gnats-submit@freebsd.org
Subject: kscd-1.2.7 in -STABLE ports not playing ATAPI CDs
X-Send-Pr-Version: 3.2

>Number:         15594
>Category:       ports
>Synopsis:       kscd-1.2.7 in -STABLE ports not playing ATAPI CDs
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    will
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Dec 20 14:30:01 PST 1999
>Closed-Date:    Mon Mar 5 12:39:45 PST 2001
>Last-Modified:  Mon Mar 05 12:40:25 PST 2001
>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:
Responsible-Changed-From-To: freebsd-ports->se 
Responsible-Changed-By: steve 
Responsible-Changed-When: Sun Dec 26 16:25:22 PST 1999 
Responsible-Changed-Why:  
Over to port's maintainer. 
Responsible-Changed-From-To: se->will 
Responsible-Changed-By: steve 
Responsible-Changed-When: Mon May 29 16:05:46 PDT 2000 
Responsible-Changed-Why:  
Will now maintains the KDE ports. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=15594 
State-Changed-From-To: open->suspended 
State-Changed-By: will 
State-Changed-When: Mon Oct 23 14:23:14 PDT 2000 
State-Changed-Why:  
Since I don't have time to chase down KDE1.x PRs at the moment, suspend 
this until I get a chance to check it out on some machines at work.  I wonder 
if this was fixed from 1.1.1->1.1.2. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=15594 
State-Changed-From-To: suspended->closed 
State-Changed-By: will 
State-Changed-When: Mon Mar 5 12:39:45 PST 2001 
State-Changed-Why:  
KDE 1.x is leaving ports soon.  kdemultimedia11 was deleted last week. 
I believe kscd in KDE2 works -- please try it. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=15594 
>Unformatted:
 >release:        FreeBSD 3.4-STABLE i386
