Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 20 Oct 2011 20:09:22 -0500
From:      "Michael D. Norwick" <mnorwick@centurytel.net>
To:        freebsd-multimedia@freebsd.org
Subject:   Can't play an audio CD
Message-ID:  <4EA0C642.6080509@centurytel.net>

next in thread | raw e-mail | index | archive | help
Good Day;

I am trying to get a Dell Latitude D630 laptop to play audio CD's 
without success.  The following is the question I posed to 
freebsd-questions@;

"It seems that I still cannot figure this out.  No amount of searching 
the docs or mailing lists has gotten me closer to a solution.  I csup'd 
the source tree again last night and built another kernel and world for;

*default release=cvs tag=RELENG_9
*default delete use-rel-suffix

/usr/src/sys/amd64/conf/KERNEL_101811 contains (among other things);

# ATA controllers
device        ahci        # AHCI-compatible SATA controllers
device        ata        # Legacy ATA/SATA controllers
options     ATA_CAM        # Handle legacy controllers with CAM
options     ATA_STATIC_ID    # Static device numbering
device        mvs        # Marvell 88SX50XX/88SX60XX/88SX70XX/SoC SATA
device        siis        # SiliconImage SiI3124/SiI3132/SiI3531 SATA

# SCSI Controllers

# ATA/SCSI peripherals
device        scbus        # SCSI bus (required for ATA/SCSI)
device        ch        # SCSI media changers
device        da        # Direct Access (disks)
device        sa        # Sequential Access (tape etc)
device        cd        # CD
device        pass        # Passthrough device (direct ATA/SCSI access)
device        ses        # SCSI Environmental Services (and SAF-TE)

This resulted in;
$uname -a

FreeBSD ****.****.net 9.0-RC1 FreeBSD 9.0-RC1 #1: Wed Oct 19 05:37:43 
CDT 2011     michael@****.****.net:/usr/obj/usr/src/sys/KERNEL_101811  amd64

and the following devices in /dev;

$ ls -l cd*
crw-rw-rw-  1 root  operator    0, 105 Oct 19 19:08 cd0
lrwxr-xr-x  1 root  wheel            8 Oct 19 19:08 cdrom -> /dev/cd0

/etc/devfs.conf contains;

# Commonly used by many ports
#link    acd0    cdrom
link    /dev/cd0 cdrom
perm    /dev/cd0 0660

# Allow a user in the wheel group to query the smb0 device
perm    /dev/smb0  0660

# Allow members of group operator to cat things to the speaker
#own    speaker    root:operator
#perm    speaker    0660

perm    /dev/pass0  0660
perm    /dev/xpt0   0660
perm    /dev/pass1  0660
#perm    /dev/xpt1  0660
perm    /dev/mdctl  0660
perm    /dev/md0  0660

perm    /dev/bpf0    0660
perm    /dev/bpf1    0660
perm    /dev/bpf2    0660
perm    /dev/bpf3    0660
perm    /dev/bpf4    0660

link    /tmp    shm

$ cat /boot/loader.conf
atapicam_load="YES"
hw.ata.atapi_dma=0
linux_load="YES"
snd_hda_load="YES"

$ cat /etc/rc.conf
hostname="****.****.net"
keymap=us.iso.kbd
ifconfig_bge0=" inet 192.168.1.22 netmask 255.255.255.0"
defaultrouter="192.168.1.1"
hald_enable="YES"
dbus_enable="YES"
gdm_enable="YES"
sshd_enable="YES"
linux_enable="YES"
abi_enable="YES"
sysctl_enable="YES"
ntpd_enable="YES"
powerd_enable="YES"

$dmesg

cd0 at ata0 bus 0 scbus1 target 0 lun 0
cd0: <TSSTcorp DVD+-RW TS-L632H D300> Removable CD-ROM SCSI-0 device
cd0: 33.300MB/s transfers (UDMA2, ATAPI 12bytes, PIO 65534bytes)
cd0: cd present [26466 x 2048 byte records]

(cd0:ata0:0:0:0): READ(10). CDB: 28 0 0 0 67 61 0 0 1 0
(cd0:ata0:0:0:0): CAM status: SCSI Status Error
(cd0:ata0:0:0:0): SCSI status: Check Condition
(cd0:ata0:0:0:0): SCSI sense: HARDWARE FAILURE asc:3e,2 (Timeout on 
logical unit)
(cd0:ata0:0:0:0): READ(10). CDB: 28 0 0 0 67 61 0 0 1 0
(cd0:ata0:0:0:0): CAM status: SCSI Status Error
(cd0:ata0:0:0:0): SCSI status: Check Condition
(cd0:ata0:0:0:0): SCSI sense: HARDWARE FAILURE asc:3e,2 (Timeout on 
logical unit)
(cd0:ata0:0:0:0): READ(10). CDB: 28 0 0 0 67 61 0 0 1 0
(cd0:ata0:0:0:0): CAM status: SCSI Status Error
(cd0:ata0:0:0:0): SCSI status: Check Condition
(cd0:ata0:0:0:0): SCSI sense: HARDWARE FAILURE asc:3e,2 (Timeout on 
logical unit)
(cd0:ata0:0:0:0): READ(10). CDB: 28 0 0 0 67 61 0 0 1 0
(cd0:ata0:0:0:0): CAM status: SCSI Status Error
(cd0:ata0:0:0:0): SCSI status: Check Condition
(cd0:ata0:0:0:0): SCSI sense: HARDWARE FAILURE asc:3e,2 (Timeout on 
logical unit)
(cd0:ata0:0:0:0): READ(10). CDB: 28 0 0 0 67 61 0 0 1 0
(cd0:ata0:0:0:0): CAM status: SCSI Status Error
(cd0:ata0:0:0:0): SCSI status: Check Condition
(cd0:ata0:0:0:0): SCSI sense: HARDWARE FAILURE asc:3e,2 (Timeout on 
logical unit)
(cd0:ata0:0:0:0): cddone: got error 0x5 back

with a data CD in the drive during reboot.
Trying to manually mount the drive results in;

$ sudo mount_cd9660 /dev/cd0 /media/dvdrom
mount_cd9660: /dev/cd0: Invalid argument

$ cat /etc/fstab
# Device    Mountpoint    FStype    Options    Dump    Pass#
proc        /proc        procfs    rw    0    0
/dev/ada0p2    /        ufs    rw    1    1
/dev/ada0p3    none        swap    sw    0    0
/dev/ada0p4    /var        ufs    rw    2    2
/dev/ada0p5    /usr        ufs    rw    2    2
/dev/ada0p6    /home        ufs    rw    2    2
linproc   /compat/linux/proc    linprocfs    rw   0    0
/dev/cd0    /media/dvdrom    cd9660  rw,noauto 0    0

$ cdcontrol info
Starting track = 1, ending track = 1, TOC size = 18 bytes
track     start  duration   block  length   type
-------------------------------------------------
     1   0:02.00   5:52.66       0   26466   data
   170   5:54.66         -   26466       -      -

Before I recompiled the kernel, when I inserted a music CD, Gnome would 
display a folder containing the *.wav files but I could not play them 
(with or without the CLI tool).  Now I cannot even access a data CD.  
Again, the machine is a Dell Latitude D630 laptop."

Continuing to trouble shoot I changed I changed /boot/loader.conf to:

$ cat /boot/loader.conf
atapicam_load="YES"
hw.ata.atapi_dma="0"
linux_load="YES"
lindev_load="YES"
linprocfs_load="YES"
linsysfs_load="YES"
sound_load="YES"
snd_hda_load="YES"
pf_load="YES"

I needed the linux and pf_load statements for another reason and those 
features work as expected.  I have rebooted several times and tried the 
old original freebsd 9 kernel (%boot kernel.orig) from the initial 
install with the same result - can't play an audio CD.  I can now - 
mount_cd9660 - a data CD with my custom kernel booted.  I know sound 
works because gnome audio themes work.  The current /etc/rc.conf is as 
follows;

$ cat /etc/rc.conf
hostname="****.****.net"
keymap=us.iso.kbd
ifconfig_bge0=" inet 192.168.1.22 netmask 255.255.255.0"
defaultrouter="192.168.1.1"
#hald_enable="YES"
#dbus_enable="YES"
#polkitd_enable="YES"
gnome_enable="YES"
gdm_enable="YES"
sshd_enable="YES"
linux_enable="YES"
abi_enable="YES"
sysctl_enable="YES"
ntpd_enable="YES"
powerd_enable="YES"

$ cat /etc/fstab
# Device    Mountpoint    FStype    Options    Dump    Pass#
proc        /proc        procfs    rw    0    0
/dev/ada0p2    /        ufs    rw    1    1
/dev/ada0p3    none        swap    sw    0    0
/dev/ada0p4    /var        ufs    rw    2    2
/dev/ada0p5    /usr        ufs    rw    2    2
/dev/ada0p6    /home        ufs    rw    2    2
linproc   /compat/linux/proc    linprocfs    rw   0    0
#/dev/cd0    /media/dvdrom    cd9660  rw,noauto 0    0

As was suggested, I have run the command line tools and have gotten 
mixed results, such as;

$ camcontrol devlist
<TSSTcorp DVD+-RW TS-L632H D300>   at scbus1 target 0 lun 0 (pass0,cd0)
<ST980813ASG 3.ADD>                at scbus2 target 0 lun 0 (ada0,pass1)

and;

$cdcontrol play 1 - results in drive activity but again, no audio.

Any further wisdom or pointers would be greatly appreciated.
Thank You,
Michael






Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4EA0C642.6080509>