Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 13 Dec 1999 21:15:24 -0600 (CST)
From:      Ryan Thompson <freebsd@sasknow.com>
To:        freebsd-questions@freebsd.org
Subject:   kscd playing problems in kdemultimedia11 solved for -STABLE
Message-ID:  <Pine.BSF.4.10.9912132100530.69749-100000@sasknow.com>

next in thread | raw e-mail | index | archive | help
Hi all,

Unfortunately, I didn't get any responses to my message posted a day or so
ago starting with "kscd on 3.3-STABLE ... ".

Fortunately, I found a patch in the kde mailing list bugs archive from
about six weeks ago.  :-) I just sucessfully applied this patch to sources
in the kdemultimedia11 port (1.1.2) in 3.4-RC, cvsup'ed yesterday.  I can
now play ATAPI CDs without a problem.

I found the file in question on my -CURRENT system at:

/usr/ports/audio/kdemultimedia11/work/kdemultimedia-1.1.2/kscd/plat_freebsd.c

(after making the sign of the cross at the hellish pathname :-). I applied
the changes and made all install in ../ I then ran kscd again, and was
happy to have a working CD player.

The current canned URL to the message in question is as follows:

http://lists.kde.org/?l=kde-bugs-dist&m=94079002018427&w=2

For the benefit of those who may read this after lists.kde.org breaks the
above link, the message is included below.

I'll also forward this to the maintainer of kdemultimedia, if there's an
email address available.

Message is below.

------------------------------------------------------------------------

List:     kde-bugs-dist
Subject:  Bug#2197: Kscd/FreeBSD problems
From:     Simon Marlow <simonm@jaffacakes.freeserve.co.uk>
Date:     1999-10-24 18:24:53

Kscd failed to do anything reasonable on my FreeBSD system w/ an ATAPI
cdrom drive.  The patches below fix the immediate problems such that I
can now play CDs, but things still aren't perfect.  Also, I have no
idea how these patches will affect SCSI cdrom support.

    - kscd segfaults if it can't find or open the CD device
      (no patch for this one)

    - play didn't work at all (patch to gen_play below - it seems
      that the initial CDIOCSTART is bogus, at least on ATAPI
      cdroms).

    - pressing stop leaves kscd locked up.  (patch below - it
      seems that the ATAPI cdrom returns CD_AS_PLAY_COMPLETED
      after a CDIOCSTOP ioctl, which caused kscd to hang waiting
      for the next track).

    - kscd doesn't cope with errors on the CD medium very
      gracefully, notably it claims the CD is ejected and
      won't do anything until the CD is forcibly ejected and
      re-inserted (no patch for this one).

Cheers,
    Simon

*** plat_freebsd.c      Mon May 17 14:07:34 1999
--- /home/simonm/plat_freebsd.c Sun Oct 24 19:20:18 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);
  }                   

-----------------------------------------------------------------------


  Ryan Thompson <ryan@sasknow.com>
  50% Owner, Technical and Accounts
  Phone: +1 (306) 664-1161

  SaskNow Technologies     http://www.sasknow.com
  #106-380 3120 8th St E   Saskatoon, SK  S7H 0W2



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.10.9912132100530.69749-100000>