Quantcast

Can't play an audio CD

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Can't play an audio CD

Michael D. Norwick
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



_______________________________________________
[hidden email] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-multimedia
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Can't play an audio CD

Stuart Barkley
[Much of the original message trimmed.  See thoughts below.]

On Thu, 20 Oct 2011 at 21:09 -0000, Michael D. Norwick wrote:

> I am trying to get a Dell Latitude D630 laptop to play audio CD's
> without success.
>
> $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

I'm still using FreeBSD 8 on my main server.

> 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.

This is all good.

> 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.

The most likely case is that your system does not support direct audio
from the CD drive and that you need to play your CDs with a different
application (instead of just a hardware command).

It used to be common for an audio signal cable to be connected
directly from the CD drive to a specific CD input on the audio mixer.
The 'cdcontrol play' command directs the CD drive to start playing
audio.  After that everything was done in hardware/firmware with no
further OS or application interaction needed.

Many current system don't provide this direct audio connection
anymore.  The audio mixers don't all have input connectors and I don't
know if the audio output is even on current DVD drives.  I haven't
paid attention on recent system hardware assemblies since I don't
worry about this anymore.

Things to try:

We need to see the output of the 'mixer' command.  It is possible that
the volume control for the CD input is set to 0.  My guess is that you
don't even have a CD volume control.

Look at the output from 'cdcontrol volume'.  My system shows 255 for
the left and right channels.  It is possible that these are 0 on your
system thus muting output.

Try other audio player applications.  Some of them should support
playing CDs directly.  These application will read the data from the
drive and then send it to the system audio.  I don't use any of these
anymore, I rip everything to mp3 files.

Stuart
--
I've never been lost; I was once bewildered for three days, but never lost!
                                        --  Daniel Boone
_______________________________________________
[hidden email] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-multimedia
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Can't play an audio CD

Michael D. Norwick
On 10/21/11 08:15, Stuart Barkley wrote:

> [Much of the original message trimmed.  See thoughts below.]
>
> On Thu, 20 Oct 2011 at 21:09 -0000, Michael D. Norwick wrote:
>
>> I am trying to get a Dell Latitude D630 laptop to play audio CD's
>> without success.
>>
>> $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
> I'm still using FreeBSD 8 on my main server.
>
>> 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.
> This is all good.
>
>> 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.
> The most likely case is that your system does not support direct audio
> from the CD drive and that you need to play your CDs with a different
> application (instead of just a hardware command).
>
> It used to be common for an audio signal cable to be connected
> directly from the CD drive to a specific CD input on the audio mixer.
> The 'cdcontrol play' command directs the CD drive to start playing
> audio.  After that everything was done in hardware/firmware with no
> further OS or application interaction needed.
>
> Many current system don't provide this direct audio connection
> anymore.  The audio mixers don't all have input connectors and I don't
> know if the audio output is even on current DVD drives.  I haven't
> paid attention on recent system hardware assemblies since I don't
> worry about this anymore.
>
> Things to try:
>
> We need to see the output of the 'mixer' command.  It is possible that
> the volume control for the CD input is set to 0.  My guess is that you
> don't even have a CD volume control.
>
> Look at the output from 'cdcontrol volume'.  My system shows 255 for
> the left and right channels.  It is possible that these are 0 on your
> system thus muting output.
>
> Try other audio player applications.  Some of them should support
> playing CDs directly.  These application will read the data from the
> drive and then send it to the system audio.  I don't use any of these
> anymore, I rip everything to mp3 files.
>
> Stuart
$ mixer
Mixer vol      is currently set to 100:100
Mixer pcm      is currently set to  75:75
Mixer speaker  is currently set to  75:75
Mixer rec      is currently set to  75:75
Recording source: monitor

and

$ cdcontrol volume
Left volume = 216, right volume = 216

with an audio CD in the drive after executing $cdcontrol play.  Still no
sound from the thing and though I have external speakers plugged into
the headphone out jack,  it doesn't matter if I unplug them.  I have
tried gnome sound juicer and abraca without success.  I am using;

$pkg_info -a

pulseaudio-0.9.22_1
abraca-0.6.0
ffmpeg-0.7.5,1
gxmms2-0.7.1
libggi-2.2.2_3,1
sdl-1.2.14_2,2
xmms2-0.7_2
libdv-1.0.0_2
mplayer-1.0.r20110329_3
sound-juicer-2.32.0
alsa-lib-1.0.23
jackit-0.121.3
libao-1.1.0_1
swfdec-0.8.4_3
swfdec-gnome-2.30.1

In the Gnome multimedia selector tool, OSS is selected for default input
and output.  The tests on that page produce sound when the test buttons
are clicked.  Although I don't know why pulseaudio would not be a
selection.  It is not.

Thank You,
Michael
_______________________________________________
[hidden email] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-multimedia
To unsubscribe, send any mail to "[hidden email]"
Loading...