Subject: Re: opl and mpu @ cmpci not configured?
To: None <port-i386@netbsd.org>
From: None <diro@nixsys.bz>
List: tech-kern
Date: 04/24/2006 17:35:28
>It occurred to me that diro@nixsys.bz wrote in gmane.os.netbsd.ports.i386:
>> So:  
>>
>> cmpci0 at pci0 dev 6 function 0: C-Media Electronics CMI8738/C3DX PCI Audio 
>> Device (rev. 0x10)
>> cmpci0: interrupting at irq 3
>> audio0 at cmpci0: full duplex, mmap, independent
>> opl at cmpci0 not configured
>> mpu at cmpci0 not configured  
>>
>> Which is able to play CDs, but not other audio. 

> It should be able to play audio using the standard sound device as well
> (As in: MP3s etc)

Strange, indeed. Applications timeout when trying to play MP3s and hang for 
a little when sent `kill` commands. 

>> Will commenting out the audio device entries and letting COMPAT_OSSAUDIO do 
>> its stuff work? I tried setting opl0 and mpu0 manually in the kernel config 
>> file and that didn't help. 

> There are

> opl* at cmpci? flags 1
> mpu* at cmpci?

> entries in the GENERIC kernel config, that should attach. COMPAT_OSSAUDIO
> makes the sound device be more Linux-ish. I don't know how required it is
> anymore.

Even though they're compiled in, they still don't attach to cmpci for some 
reason. 

>> Is there any way to get the mixer on this card to work? 

> The mixer is unrelated to COMPAT_OSSAUDIO, opl and mpu. What does 
>
> mixerctl -a print out?

mixerctl -a
inputs.dac=255,255
inputs.dac.mute=off
inputs.fmsynth=255,255
inputs.fmsynth.mute=off
inputs.cd=255,255
inputs.cd.mute=off
inputs.line=255,255
inputs.line.mute=off
inputs.aux=255,255
inputs.aux.mute=off
inputs.mic=255
inputs.mic.mute=on
inputs.mic.preamp=on
inputs.speaker=255
record.source=
record.mic=0
playback.mode=dac
spdif.input=spdin1
spdif.input.phase=positive
spdif.output=playback
spdif.output.playback=wave
spdif.output.voltage=5V
spdif.monitor=off
outputs.master=255,255
outputs.rear=on
outputs.rear.individual=on
outputs.rear.reverse=on
outputs.surround=on 

Which have been set in /etc/mixerctl.conf 

Thanks for the response!