From owner-freebsd-ports-bugs@FreeBSD.ORG Sat Dec 26 19:40:02 2009 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 276D4106568D for ; Sat, 26 Dec 2009 19:40:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 002F88FC22 for ; Sat, 26 Dec 2009 19:40:02 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id nBQJe12v023475 for ; Sat, 26 Dec 2009 19:40:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id nBQJe1WT023474; Sat, 26 Dec 2009 19:40:01 GMT (envelope-from gnats) Resent-Date: Sat, 26 Dec 2009 19:40:01 GMT Resent-Message-Id: <200912261940.nBQJe1WT023474@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Juergen Lock Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E78E3106566B for ; Sat, 26 Dec 2009 19:38:36 +0000 (UTC) (envelope-from nox@jelal.kn-bremen.de) Received: from smtp.kn-bremen.de (gelbbaer.kn-bremen.de [78.46.108.116]) by mx1.freebsd.org (Postfix) with ESMTP id A8C5D8FC13 for ; Sat, 26 Dec 2009 19:38:36 +0000 (UTC) Received: by smtp.kn-bremen.de (Postfix, from userid 10) id 227E11E00756; Sat, 26 Dec 2009 20:38:35 +0100 (CET) Received: from triton8.kn-bremen.de (noident@localhost [127.0.0.1]) by triton8.kn-bremen.de (8.14.3/8.14.3) with ESMTP id nBQJaFhc000545 for ; Sat, 26 Dec 2009 20:36:15 +0100 (CET) (envelope-from nox@triton8.kn-bremen.de) Received: (from nox@localhost) by triton8.kn-bremen.de (8.14.3/8.14.3/Submit) id nBQJaFGA000544; Sat, 26 Dec 2009 20:36:15 +0100 (CET) (envelope-from nox) Message-Id: <200912261936.nBQJaFGA000544@triton8.kn-bremen.de> Date: Sat, 26 Dec 2009 20:36:15 +0100 (CET) From: Juergen Lock To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: ports/142049: [PATCH:] make audio/cdparanoia work with new cam/ata code X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Juergen Lock List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 26 Dec 2009 19:40:02 -0000 >Number: 142049 >Category: ports >Synopsis: [PATCH:] make audio/cdparanoia work with new cam/ata code >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sat Dec 26 19:40:01 UTC 2009 >Closed-Date: >Last-Modified: >Originator: Juergen Lock >Release: FreeBSD 8.0-STABLE amd64 >Organization: me? organized?? >Environment: System: FreeBSD triton8.kn-bremen.de 8.0-STABLE FreeBSD 8.0-STABLE #0: Sat Dec 5 16:24:45 CET 2009 nox@triton8.kn-bremen.de:/usr/obj/data/home/nox/src-s8/src/sys/TRITON8 amd64 >Description: As noted on -current some time ago, cdparanoia seems to be currently broken for optical drives using the new cam/ata code i.e. connected via ahci(4)/siis(4): http://lists.freebsd.org/pipermail/freebsd-current/2009-August/010359.html >How-To-Repeat: Make sure the drive is using the new cam/ata code (this thread may be useful: http://lists.freebsd.org/pipermail/freebsd-current/2009-December/014224.html ), then: Insert audio cd, make sure cdparanoia can access the drive's /dev/cdX and /dev/passY devices (you can find the corresponding passY device by running camcontrol devlist ), then run: cdparanoia -d /dev/cdX 1 to try and rip the first track. If you have mplayer built with cdparanoia support you can also test this way: mplayer -cache 8192 -cdrom-device /dev/cdX cdda:// >Fix: The patch works for me, only drives conneted on a SAS controller (i.e. not native (S)ATA) may still be broken, but that's probably still rare so this is at least much better than it was. (The patch can go in e.g. /usr/ports/audio/cdparanoia/files/patch-camata ) Index: interface/scsi_interface.c @@ -1480,10 +1480,16 @@ /* * if the bus device name is `ata', we're (obviously) * running ATAPICAM. + * same for the new ahci(4) and siis(4) drivers and future others + * which use SATA transport too... */ - if (strncmp(d->ccb->cpi.dev_name, "ata", 3) == 0) { - cdmessage(d, "\tDrive is ATAPI (using ATAPICAM)\n"); + if (strncmp(d->ccb->cpi.dev_name, "ata", 3) == 0 || +#if __FreeBSD_version >= 800102 + d->ccb->cpi.transport == XPORT_SATA || +#endif + d->ccb->cpi.transport == XPORT_ATA) { + cdmessage(d, "\tDrive is ATAPI (using ATAPICAM or direct CAM (S)ATA transport)\n"); d->is_atapi = 1; } else { cdmessage(d, "\tDrive is SCSI\n"); >Release-Note: >Audit-Trail: >Unformatted: