Subject: Re: playing audio CDs
To: None <netbsd-help@netbsd.org>
From: Bruce J.A. Nourish <bjan@bjan.net>
List: netbsd-help
Date: 07/11/2003 20:30:34
On Sat, Jul 12, 2003 at 02:15:29AM +0200, Jukka Salmi wrote:
> Hi,
> 
> I'm running NetBSD 1.6.1 stable on a i386 box. It has two ATAPI CD-ROM
> drives (which are connected to a sound card, which in turn is connected
> to an amplifier):

You answer your own question in your next message: your CDs won't play 
audio because your sound card won't play any audio right now.

I guess your mixer settings aren't all set up - although sound cards
differ, most people will have to unmute several channels and set
the volume of several channels appropriately. Also, don't forget to
double check the hardware volume controls and wiring.

Here is what I have:

outputs.master=255,255
outputs.master.mute=off
outputs.mono=255
outputs.mono.mute=off
outputs.mono.source=mixerout
outputs.headphones=255,255
outputs.headphones.mute=on
outputs.tone=255,255
inputs.speaker=127
inputs.speaker.mute=off
inputs.phone=191
inputs.phone.mute=off
inputs.mic=191
inputs.mic.mute=on
inputs.mic.preamp=off
inputs.mic.source=mic0
inputs.line=191,191
inputs.line.mute=off
inputs.cd=191,191
inputs.cd.mute=off
inputs.video=191,191
inputs.video.mute=off
inputs.aux=191,191
inputs.aux.mute=off
inputs.dac=191,191
inputs.dac.mute=off
record.source=mic
record.volume=0,0
record.volume.mute=on
record.mic=0
record.mic.mute=off
outputs.loudness=off
outputs.spatial=off
outputs.spatial.center=0
outputs.spatial.depth=0

Don't worry too much about the partition error, this happens on my
machine also. It doesn't affect CD sound. It would be nice, however,
if the kernel guys could stop it happening; I've been meaning to
ask about this on the list.

Once you get a set of mixer settings to your liking, save them as so:

# mixerctl -a > mixer.conf

And then you can restore them at any time by:

# mixerctl -w `cat mixer.conf`

I have my mixer.conf in /etc, and added the following lines to rc.local:

echo -n " mixer"
mixerctl -w `cat /etc/mixer.conf` > /dev/null

-- 
Bruce J.A. Nourish <bjan+JUNK@bjan.net> 
+JUNK is a bit-bucket: remove it to email me.