View Full Version : First BSD install - previously a gentoo user - HDA_intel help needed
nagatzul
12-16-2010, 09:57 AM
Hi
Support for my onboard Intel sound is listed.
I need some help with debugging my sound to get it working.
osstest runs without any errors but no sound comes out.
I'm unfamiliar with the environment, any help appreciated.
Consider me a BSD noob.:confused:
kmoore134
12-16-2010, 04:29 PM
Odds are that multiple devices are in use, but the wrong one is active. Please post
the output of "cat /dev/sndstat" and "mixer" on your system.
nagatzul
12-17-2010, 02:44 PM
FreeBSD Audio Driver (newpcm: 64bit 2009061500/amd64)
Installed devices:
pcm0: <USB audio> (rec) default
pcm1: <HDA Realtek ALC885 PCM #0 Analog> (play/rec)
pcm2: <HDA Realtek ALC885 PCM #1 Analog> (play/rec)
pcm3: <HDA Realtek ALC885 PCM #2 Digital> (play/rec)
$ mixer
Mixer vol is currently set to 75:75
Mixer pcm is currently set to 75:75
Mixer mic is currently set to 75:75
Looks like pcm0 is default. How do I change that?
kmoore134
12-17-2010, 03:35 PM
Yep, that looks like the problem. Put this line into /etc/sysctl.conf and restart:
hw.snd.default_unit=1
Does that fix it?
nagatzul
12-19-2010, 10:29 AM
Still defaults to pcm1 seemingly.
Any way to do this with a command that doesn't require a restart?
[x@pcbsd-4153] /usr/home/icarium# cat /dev/sndstat
FreeBSD Audio Driver (newpcm: 64bit 2009061500/amd64)
Installed devices:
pcm0: <HDA Realtek ALC885 PCM #0 Analog> (play/rec)
pcm1: <HDA Realtek ALC885 PCM #1 Analog> (play/rec) default
pcm2: <HDA Realtek ALC885 PCM #2 Digital> (play/rec)
[x@pcbsd-4153] /usr/home/icarium# mixer
Mixer vol is currently set to 75:75
Mixer pcm is currently set to 75:75
Mixer speaker is currently set to 75:75
Mixer mix is currently set to 0:0
Mixer rec is currently set to 75:75
Mixer igain is currently set to 81:81
Mixer monitor is currently set to 0:0
Recording source: monitor
# Disable coredump
kern.coredump=0
# Up the maxfiles to 4x default
kern.maxfiles=49312
# Allow users to mount CD's
vfs.usermount=1
hw.snd.default_unit=1
# Enable more sound channels
dev.pcm.0.play.vchans=4
dev.pcm.0.rec.vchans=4
# Autodetect the most recent sound card. Uncomment for Digital output / USB
#hw.snd.default_auto=1
kmoore134
12-20-2010, 02:27 PM
Interesting, it looks like the USB device that was pcm0 dissappeared. Do you have some webcam
or other USB audio device not plugged in now? If so, you may need to set it back to "0" to
get the first analog device.
nagatzul
12-21-2010, 06:00 PM
Yes, it turns out I did actually remove my Logitech.
Is there a way to rather assign by device ID which could be more consistent?
kmoore134
12-21-2010, 06:26 PM
I did some looking through "man sound" and didn't see a way to do that. If anybody else knows of
a way, feel free to chime in :)
Either way, I think I'll need to investigate doing a sound-config GUI for the 9 series at
some point, so its easy to jump between devices.
nagatzul
12-21-2010, 06:48 PM
Thanks for the fast reply.
I tried the sysctl.conf with 0 later 1 and then even 2.
Still not a peep from sound (I know it's on and working because live boot disc has intro sound playing - Sabayon 5 something).
osstest shows me:
osstest
Sound subsystem and version: FreeBSD native OSS ABI 801000 (0x00040000)
Platform: FreeBSD/amd64 8.1-RELEASE FreeBSD 8.1-RELEASE #1: Sat Jul 17 14:19:59 PDT 2010 root@build8x64.pcbsd.org:/usr/obj/usr/pcbsd-build81/fbsd-source/8.1/sys/PCBSD
/dev/dsp0.p0 (audio engine 0): pcm0:play:dsp0.p0
- Performing audio playback test... /dev/dsp0.p0: Device busy
Can't open the device
/dev/dsp0.vp0 (audio engine 1): pcm0:virtual:dsp0.vp0
Note! Device is in use (by PID 2873/) but will try anyway
- Performing audio playback test... /dev/dsp0.vp0: Device busy
Can't open the device
/dev/dsp0.vp1 (audio engine 2): pcm0:virtual:dsp0.vp1
- Performing audio playback test...
<left> OK <right> OK <stereo> OK <measured srate 48007.00 Hz (0.01%)>
/dev/dsp0.vp2 (audio engine 3): pcm0:virtual:dsp0.vp2
- Performing audio playback test...
<left> OK <right> OK <stereo> OK <measured srate 47995.00 Hz (-0.01%)>
/dev/dsp0.vp3 (audio engine 4): pcm0:virtual:dsp0.vp3
- Performing audio playback test...
<left> OK <right> OK <stereo> OK <measured srate 47988.00 Hz (-0.03%)>
/dev/dsp0.r0 (audio engine 5): pcm0:record:dsp0.r0
- Skipping input only device
/dev/dsp0.vr0 (audio engine 6): pcm0:virtual:dsp0.vr0
- Skipping input only device
/dev/dsp0.vr1 (audio engine 7): pcm0:virtual:dsp0.vr1
- Skipping input only device
/dev/dsp0.vr2 (audio engine 8): pcm0:virtual:dsp0.vr2
- Skipping input only device
/dev/dsp0.vr3 (audio engine 9): pcm0:virtual:dsp0.vr3
- Skipping input only device
/dev/dsp1.p0 (audio engine 10): pcm1:play:dsp1.p0
- Performing audio playback test... /dev/dsp1.p0: Device busy
Can't open the device
/dev/dsp1.vp0 (audio engine 11): pcm1:virtual:dsp1.vp0
- Performing audio playback test...
<left> OK <right> OK <stereo> OK <measured srate 47983.00 Hz (-0.04%)>
/dev/dsp1.vp1 (audio engine 12): pcm1:virtual:dsp1.vp1
- Performing audio playback test...
<left> OK <right> OK <stereo> OK <measured srate 47988.00 Hz (-0.03%)>
/dev/dsp1.vp2 (audio engine 13): pcm1:virtual:dsp1.vp2
- Performing audio playback test...
<left> OK <right> OK <stereo> OK <measured srate 47988.00 Hz (-0.03%)>
/dev/dsp1.vp3 (audio engine 14): pcm1:virtual:dsp1.vp3
- Performing audio playback test...
<left> OK <right> OK <stereo> OK <measured srate 47990.00 Hz (-0.02%)>
/dev/dsp1.r0 (audio engine 15): pcm1:record:dsp1.r0
- Skipping input only device
/dev/dsp1.vr0 (audio engine 16): pcm1:virtual:dsp1.vr0
- Skipping input only device
/dev/dsp2.p0 (audio engine 17): pcm2:play:dsp2.p0
- Performing audio playback test... /dev/dsp2.p0: Device busy
Can't open the device
/dev/dsp2.vp0 (audio engine 18): pcm2:virtual:dsp2.vp0
- Performing audio playback test...
<left> OK <right> OK <stereo> OK <measured srate 47995.00 Hz (-0.01%)>
/dev/dsp2.vp1 (audio engine 19): pcm2:virtual:dsp2.vp1
- Performing audio playback test...
<left> OK <right> OK <stereo> OK <measured srate 47995.00 Hz (-0.01%)>
/dev/dsp2.r0 (audio engine 20): pcm2:record:dsp2.r0
- Skipping input only device
/dev/dsp2.vr0 (audio engine 21): pcm2:virtual:dsp2.vr0
- Skipping input only device
*** Some errors were detected during the tests ***
I hope that helps.
nagatzul
12-21-2010, 08:32 PM
dmesg | grep hdac
hdac0: <Intel 82801I High Definition Audio Controller> mem 0xf9100000-0xf9103fff irq 22 at device 27.0 on pci0
hdac0: HDA Driver Revision: 20100226_0142
hdac0: [ITHREAD]
hdac0: HDA Codec #2: Realtek ALC885
pcm0: <HDA Realtek ALC885 PCM #0 Analog> at cad 2 nid 1 on hdac0
pcm1: <HDA Realtek ALC885 PCM #1 Analog> at cad 2 nid 1 on hdac0
pcm2: <HDA Realtek ALC885 PCM #2 Digital> at cad 2 nid 1 on hdac0
hdac0: <Intel 82801I High Definition Audio Controller> mem 0xf9100000-0xf9103fff irq 22 at device 27.0 on pci0
hdac0: HDA Driver Revision: 20100226_0142
hdac0: [ITHREAD]
hdac0: HDA Codec #2: Realtek ALC885
pcm0: <HDA Realtek ALC885 PCM #0 Analog> at cad 2 nid 1 on hdac0
pcm1: <HDA Realtek ALC885 PCM #1 Analog> at cad 2 nid 1 on hdac0
pcm2: <HDA Realtek ALC885 PCM #2 Digital> at cad 2 nid 1 on hdac0
vBulletin® v3.8.5, Copyright ©2000-2013, Jelsoft Enterprises Ltd.