|
NetBSD General Other questions regarding NetBSD which do not fit in any of the categories below. |
|
Thread Tools | Display Modes |
|
|||
There is some troble in my netbsd's audio
I installed NetBSD 5.0.1/AMD64, but when I play mp3 files there is no sound.
I have seached the internet , but no useful information found... Please help me, and tell me how to use or set for audio/sound. Thanks a lot! Code:
#dmesg Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 The NetBSD Foundation, Inc. All rights reserved. Copyright (c) 1982, 1986, 1989, 1991, 1993 The Regents of the University of California. All rights reserved. NetBSD 5.0.1 (GENERIC) #0: Thu Jul 30 00:08:07 UTC 2009 builds@b7.netbsd.org:/home/builds/ab/netbsd-5-0-1-RELEASE/amd64/200907292356Z-obj/home/builds/ab/netbsd-5-0-1-RELEASE/src/sys/arch/amd64/compile/GENERIC total memory = 3071 MB avail memory = 2961 MB timecounter: Timecounters tick every 10.000 msec timecounter: Timecounter "i8254" frequency 1193182 Hz quality 100 SMBIOS rev. 2.4 @ 0xf2874 (25 entries) Hewlett-Packard HP Compaq 6520s (F.0B) mainbus0 (root) cpu0 at mainbus0 apid 0: Intel 686-class, 1995MHz, id 0x6fd cpu0: Enhanced SpeedStep (1420 mV) 2200 MHz cpu0: Enhanced SpeedStep frequencies available (MHz): 2200 2000 1800 1600 1400 1200 cpu1 at mainbus0 apid 1: Intel 686-class, 1995MHz, id 0x6fd ioapic0 at mainbus0 apid 1: pa 0xfec00000, version 20, 24 pins acpi0 at mainbus0: Intel ACPICA 20080321 acpi0: X/RSDT: OemId <HPQOEM,SLIC-MPC,00000001>, AslId <HP ,00000001> acpi0: SCI interrupting at int 9 acpi0: fixed-feature power button present timecounter: Timecounter "ACPI-Fast" frequency 3579545 Hz quality 1000 ACPI-Fast 24-bit timer acpiec0 at acpi0 (C006, PNP0C09): ACPI Embedded Controller acpiec0: io 0x62,0x66 attimer1 at acpi0 (C240, PNP0100): AT Timer attimer1: io 0x40-0x43 irq 0 pcppi1 at acpi0 (C241, PNP0800) pcppi1: io 0x61 midi0 at pcppi1: PC speaker (CPU-intensive output) sysbeep0 at pcppi1 hpet0 at acpi0 (C243, PNP0103) hpet0: mem 0xfed00000-0xfed003ff timecounter: Timecounter "hpet0" frequency 14318179 Hz quality 2000 pckbc1 at acpi0 (C247, PNP0303): kbd port pckbc1: io 0x60,0x64 irq 1 pckbc2 at acpi0 (C248, SYN013E): aux port pckbc2: irq 12 hpqlb0 at acpi0 (C24B, HPQ0006): HP Quick Launch Buttons acpibat0 at acpi0 (C1E9, PNP0C0A-1): ACPI Battery (Control Method) acpibat0: battery info: Hewlett-Packard, LIon, Primary 00094 2007/10/26 acpiacad0 at acpi0 (C1E8, ACPI0003): ACPI AC Adapter acpibut0 at acpi0 (C263, PNP0C0E): ACPI Sleep Button acpilid0 at acpi0 (C1ED, PNP0C0D): ACPI Lid Switch acpidalb0 at acpi0 (C1EB, PNP0C32-1): Direct Application Launch Button C261 (PNP0C14) at acpi0 not configured C36B (PNP0C0B) at acpi0 not configured C36C (PNP0C0B) at acpi0 not configured C36D (PNP0C0B) at acpi0 not configured C36E (PNP0C0B) at acpi0 not configured C36F (PNP0C0B) at acpi0 not configured C370 (PNP0C0B) at acpi0 not configured C371 (PNP0C0B) at acpi0 not configured C372 (PNP0C0B) at acpi0 not configured acpitz0 at acpi0 (TZ2): active cooling level 0: 105.0C active cooling level 1: 70.0C active cooling level 2: 60.0C critical 110.0C acpitz1 at acpi0 (TZ3): critical 108.0C passive 20.0C, passive cooling acpitz2 at acpi0 (TZ4): critical 110.0C, passive cooling acpitz3 at acpi0 (TZ0): active cooling level 0: 80.0C active cooling level 1: 72.0C active cooling level 2: 62.0C active cooling level 3: 50.0C active cooling level 4: 35.0C acpitz4 at acpi0 (TZ1): critical 108.0C passive 33.0C, passive cooling attimer1: attached to pcppi1 pckbd0 at pckbc1 (kbd slot) pckbc1: using irq 1 for kbd slot wskbd0 at pckbd0: console keyboard pms0 at pckbc1 (aux slot) pms0: Synaptics touchpad version 6.2 pms0: Palm detect, Multi-finger pckbc1: using irq 12 for aux slot wsmouse0 at pms0 mux 0 pci0 at mainbus0 bus 0: configuration mode 1 pci0: i/o space, memory space enabled, rd/line, rd/mult, wr/inv ok pchb0 at pci0 dev 0 function 0 pchb0: vendor 0x8086 product 0x2a00 (rev. 0x0c) agp0 at pchb0: can't find internal VGA device config space ppb0 at pci0 dev 1 function 0: vendor 0x8086 product 0x2a01 (rev. 0x0c) pci1 at ppb0 bus 1 pci1: i/o space, memory space enabled, rd/line, wr/inv ok vga0 at pci1 dev 0 function 0: vendor 0x1002 product 0x7196 (rev. 0x00) wsdisplay0 at vga0 kbdmux 1: console (80x25, vt100 emulation), using wskbd0 wsmux1: connecting to wsdisplay0 drm at vga0 not configured wm0 at pci0 dev 25 function 0: Intel i82801H IFE (GT) LAN Controller, rev. 3 wm0: interrupting at ioapic0 pin 22 wm0: PCI-Express bus wm0: FLASH wm0: Ethernet address 00:1a:4b:89:cf:6c inphy0 at wm0 phy 1: i82562ET 10/100 media interface, rev. 0 inphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto uhci0 at pci0 dev 26 function 0: vendor 0x8086 product 0x2834 (rev. 0x03) uhci0: interrupting at ioapic0 pin 16 usb0 at uhci0: USB revision 1.0 uhci1 at pci0 dev 26 function 1: vendor 0x8086 product 0x2835 (rev. 0x03) uhci1: interrupting at ioapic0 pin 17 usb1 at uhci1: USB revision 1.0 ehci0 at pci0 dev 26 function 7: vendor 0x8086 product 0x283a (rev. 0x03) ehci0: interrupting at ioapic0 pin 18 ehci0: EHCI version 1.0 ehci0: companion controllers, 2 ports each: uhci0 uhci1 usb2 at ehci0: USB revision 2.0 azalia0 at pci0 dev 27 function 0: Generic High Definition Audio Controller azalia0: interrupting at ioapic0 pin 16 azalia0: host: 0x8086/0x284b (rev. 3), HDA rev. 1.0 ppb1 at pci0 dev 28 function 0: vendor 0x8086 product 0x283f (rev. 0x03) pci2 at ppb1 bus 8 pci2: i/o space, memory space enabled, rd/line, wr/inv ok ppb2 at pci0 dev 28 function 1: vendor 0x8086 product 0x2841 (rev. 0x03) pci3 at ppb2 bus 16 pci3: i/o space, memory space enabled, rd/line, wr/inv ok wpi0 at pci3 dev 0 function 0: vendor 0x8086 product 0x4222 (rev. 0x02) wpi0: interrupting at ioapic0 pin 17 wpi0: RoW, address 00:1c:bf:6d:25:b8 wpi0: 11a rates: 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps wpi0: 11b rates: 1Mbps 2Mbps 5.5Mbps 11Mbps wpi0: 11g rates: 1Mbps 2Mbps 5.5Mbps 11Mbps 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps ppb3 at pci0 dev 28 function 4: vendor 0x8086 product 0x2847 (rev. 0x03) ppb3: disabling notification events pci4 at ppb3 bus 40 pci4: i/o space, memory space enabled, rd/line, wr/inv ok uhci2 at pci0 dev 29 function 0: vendor 0x8086 product 0x2830 (rev. 0x03) uhci2: interrupting at ioapic0 pin 20 usb3 at uhci2: USB revision 1.0 uhci3 at pci0 dev 29 function 1: vendor 0x8086 product 0x2831 (rev. 0x03) uhci3: interrupting at ioapic0 pin 21 usb4 at uhci3: USB revision 1.0 uhci4 at pci0 dev 29 function 2: vendor 0x8086 product 0x2832 (rev. 0x03) uhci4: interrupting at ioapic0 pin 18 usb5 at uhci4: USB revision 1.0 ehci1 at pci0 dev 29 function 7: vendor 0x8086 product 0x2836 (rev. 0x03) ehci1: interrupting at ioapic0 pin 20 ehci1: EHCI version 1.0 ehci1: companion controllers, 2 ports each: uhci2 uhci3 uhci4 usb6 at ehci1: USB revision 2.0 ppb4 at pci0 dev 30 function 0: vendor 0x8086 product 0x2448 (rev. 0xf3) pci5 at ppb4 bus 2 pci5: i/o space, memory space enabled ichlpcib0 at pci0 dev 31 function 0 ichlpcib0: vendor 0x8086 product 0x2815 (rev. 0x03) timecounter: Timecounter "ichlpcib0" frequency 3579545 Hz quality 1000 ichlpcib0: 24-bit timer ichlpcib0: TCO (watchdog) timer configured. piixide0 at pci0 dev 31 function 1 piixide0: Intel 82801HBM IDE Controller (ICH8M) (rev. 0x03) piixide0: bus-master DMA support present piixide0: primary channel configured to compatibility mode piixide0: primary channel interrupting at ioapic0 pin 14 atabus0 at piixide0 channel 0 piixide0: secondary channel configured to compatibility mode piixide0: secondary channel ignored (disabled) ahcisata0 at pci0 dev 31 function 2: vendor 0x8086 product 0x2829 ahcisata0: interrupting at ioapic0 pin 17 ahcisata0: AHCI revision 1.1, 3 ports, 32 command slots, features 0xef20e080 atabus1 at ahcisata0 channel 0 isa0 at ichlpcib0 timecounter: Timecounter "clockinterrupt" frequency 100 Hz quality 0 timecounter: Timecounter "TSC" frequency 1995149300 Hz quality 3000 acpiacad0: AC adapter online. azalia0: codec[0]: Analog Devices AD1981HD (rev. 2.0), HDA rev. 1.0 azalia0: codec[1]: 0x11c1/0x1040 (rev. 2.0), HDA rev. 1.0 azalia0: codec[1]: No support for modem function groups azalia0: codec[1] has no audio function groups audio0 at azalia0: full duplex, independent atapibus0 at atabus0: 2 targets uhub0 at usb0: vendor 0x8086 UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub0: 2 ports with 2 removable, self powered uhub1 at usb1: vendor 0x8086 UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub1: 2 ports with 2 removable, self powered uhub2 at usb2: vendor 0x8086 EHCI root hub, class 9/0, rev 2.00/1.00, addr 1 uhub2: 4 ports with 4 removable, self powered cd0 at atapibus0 drive 0: <HL-DT-STCD-RW/DVD DRIVE GCC-C10N, , 1.03> cdrom removable cd0: 32-bit data port uhub3 at usb3: vendor 0x8086 UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub3: 2 ports with 2 removable, self powered uhub4 at usb4: vendor 0x8086 UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub4: 2 ports with 2 removable, self powered uhub5 at usb5: vendor 0x8086 UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub5: 2 ports with 2 removable, self powered uhub6 at usb6: vendor 0x8086 EHCI root hub, class 9/0, rev 2.00/1.00, addr 1 uhub6: 6 ports with 6 removable, self powered cd0: drive supports PIO mode 4, DMA mode 2 cd0(piixide0:0:0): using PIO mode 4, DMA mode 2 (using DMA) ahcisata0 port 0: device present, speed: 1.5Gb/s wd0 at atabus1 drive 0: <Hitachi HTS542516K9SA00> wd0: drive supports 16-sector PIO transfers, LBA48 addressing wd0: 149 GB, 310101 cyl, 16 head, 63 sec, 512 bytes/sect x 312581808 sectors wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 5 (Ultra/100) wd0(ahcisata0:0:0): using PIO mode 4, DMA mode 2, Ultra-DMA mode 5 (Ultra/100) (using DMA) Kernelized RAIDframe activated pad0: outputs: 44100Hz, 16-bit, stereo audio1 at pad0: half duplex hpqlb0: registering on wskbd0 boot device: wd0 root on wd0a dumps on wd0b root file system type: ffs uhidev0 at uhub3 port 2 configuration 1 interface 0 uhidev0: vendor 0x0461 USB Optical Mouse, rev 2.00/2.00, addr 2, iclass 3/1 ums0 at uhidev0: 3 buttons and Z dir. wsmouse1 at ums0 mux 0 wsdisplay0: screen 1 added (80x25, vt100 emulation) wsdisplay0: screen 2 added (80x25, vt100 emulation) wsdisplay0: screen 3 added (80x25, vt100 emulation) wsdisplay0: screen 4 added (80x25, vt100 emulation) cd0(piixide0:0:0): Check Condition on CDB: 0x35 00 00 00 00 00 00 00 00 00 SENSE KEY: Not Ready ASC/ASCQ: Medium Not Present set{u,g}id pid 522 (gnome-pty-helper) was invoked by uid 1005 ppid 425 (gnome-terminal) with fd 2 closed Code:
#audioctl -a name=HD-Audio version=1.0 config=azalia0 encodings=slinear_le:16,slinear_be:16*,ulinear_le:16*,ulinear_be:16*,mulaw:8*,alaw:8*,slinear_le:32,slinear_be:32*,ulinear_le:32*,ulinear_be:32* properties=full_duplex,independent full_duplex=1 fullduplex=1 blocksize=4096 hiwat=16 lowat=12 monitor_gain=0 mode=play,record play.rate=44100 play.channels=2 play.precision=16 play.encoding=slinear_le play.gain=120 play.balance=32 play.port=0x0 play.avail_ports=0x0 play.seek=65536 play.samples=515813376 play.eof=0 play.pause=0 play.error=0 play.waiting=0 play.open=1 play.active=1 play.buffer_size=65536 record.rate=44100 record.channels=2 record.precision=16 record.encoding=slinear_le record.gain=127 record.balance=32 record.port=0x0 record.avail_ports=0x4 record.seek=0 record.samples=515809280 record.eof=0 record.pause=0 record.error=0 record.waiting=0 record.open=1 record.active=1 record.buffer_size=65536 record.errors=0 Code:
# mixerctl -a outputs.spdif.source=os outputs.lineout.source=dac outputs.lineout.mute=off outputs.lineout=124,124 record.lineout=85,85 outputs.lineout.dir=output outputs.lineout.boost=off outputs.lineout.eapd=off outputs.headphones.src=dac outputs.headphones.mute=off outputs.headphones=124,124 outputs.headphones.boost=off outputs.mono.mute=off outputs.mono=124 record.mic=85,85 outputs.linein.source=dac outputs.linein.mute=off outputs.linein=124,124 record.linein=85,85 outputs.linein.dir=output outputs.mono.source=dac inputs.beep.source=digitalbeep inputs.beep.mute=off inputs.beep=119 inputs.dac.mute=off inputs.dac=120,120 inputs.mic.mute=off inputs.mic=120,120 inputs.linein.mute=off inputs.linein=120,120 record.source=mixedmic record.mute=off record.master=119,119 outputs.mic2.source=dac outputs.mic2.mute=off outputs.mic2=124,124 record.mic2=85,85 outputs.mic2.dir=output inputs.lineout.mute=off inputs.lineout=120,120 inputs.aux.mute=off inputs.aux=120,120 inputs.mic2.mute=off inputs.mic2=120,120 inputs.cd.mute=off inputs.cd=120,120 record.mixedmic.mute1=off record.mixedmic.mute2=off playback.mode=analog That's all. Last edited by J65nko; 13th December 2009 at 12:47 AM. Reason: Code tags added |
|
|||
The following message would appear to be the culprit, Intel's HD audio really is a nightmare.
azalia0: codec[1] has no audio function groups Is there any way you can test a later version of NetBSD? if still doesn't work, then considering submitting a bug report. |
|
||||
Quote:
The message about no audio function groups doesn't disturb the audio system- this is normal- on my T61 I have the same and sound works- including the Pulseaudio etc. The thing that might be distorting the sound is the mixer settings- I am sure that smething should be muted. But this may be checked only by the owner of that laptop. Normally T61 doesn't offer a sound unless I change some mixetctl variables. Piotr. |
|
|||
> it is only when you play mp3 or don't you have sound at all?
I don't have any sound at all. > Do you use gnome? Yes, I am using Gnome now. > Can you play anything from console? No, I can not. I searched an audio file (audiotest.au ) , larkhost$ cat ./audiotest.au > /dev/audio sh: cannot create /dev/audio: error 16 larkhost$ cat ./audiotest.au > /dev/audio1 ^C larkhost$ but has no sound. |
|
||||
Ok, if you use Gnome you probably use pulseaudio. Try not to load Gnome and X at all including gdm, hal and dbus- then try to play something from console (you can use mplayer).
Please also try to play it from the root account- maybe there is a problem with permissions. If it doesn't work I do not know how to help you. Maybe mixer mutes something. It maight be also problem within gstreamer. I would advise to run the current and see if the hdaudio driver supports your card well. Piotr |
|
|||
Another way, how to see if the hdaudio driver supports my card?
I do not know how to use it? Can you tell me? Thanks! |
|
|||
> Ok, if you use Gnome you probably use pulseaudio. Try not to load Gnome and X at all including gdm, hal and dbus- then try to play something from console (you can use mplayer).
> Please also try to play it from the root account- maybe there is a problem with permissions. I did so. There is still no sound when I played audio files. And with some errors listed blow: I: caps.c: Dropping root privileges. W: main.c: High-priority scheduling enabled in configuration but not allowed by policy. E: pid.c: Daemon already running. E: main.c: pa_pid_file_create() failed. > I would advise to run the current and see if the hdaudio driver supports your card well. how to see if the hdaudio driver supports my card? I do not know how to use it? Can you tell me? Thanks! yakebao |
|
||||
Yakebao,
from the errors Quote:
dbus="YES" hal="YES" gdm="YES" and restart the system and then try to play some file (use some console mp3 player). I am pretty sure that there is something with the setup (perhaps gstreamer). Could you try to run gstreamer-properties and set everything to pulseadio after you try to play the sound from pure console? I really cannot imagine that azalia doesn't support your hardware. Hdaudio drive is available as far as I know in current only- you had to download the sets for current and build you own kernel only with hdaudio removing azalia. Please hash dbus, hal and gdm, restart the system and then play a sound. BTW, do you use headphones set when playing? Piotr P.S. how did you installed gnome? Maybe some component is missing? |
|
|||
To Pjoter,
I'am very glad to tell you that, this problem has benn solved now. Yesterday , I had get all the packages(2009Q3) from ftp.netbsd.org, then reinstalled my system(NetBSD/amd64 version). NOTE:At selecting packages page , I choosed FULL install. After reboot my NetBSD system, 1) I installed gnome from the packages: #pkg_add gnome (dependence is solved by pkgsrc system) (dbus/hal/famd/gdm is copied to /etc/rc.d/ and configed at /etc/rc.conf) 2) I installed all the gstreamer-plugins* As you said, I run gstreamer-properties and set everything to pulseadio. 3) Copy pulse config files to /etc # cp -R /usr/pkg/etc/pulse/ /etc/ 4) Modify the default config file #load-module module-hal-detect ==> load-module module-hal-detect tsched=0 NOTE:I searched this by Google. 5) Add user to pulse groups #usermod -G pulse userLoginName #usermod -G pulseacc userLoginName #usermod -G pulsert userLoginName 6) Reboot the system. When startup , I played mp3 file with Totem Movie Player 2.26.3. Every thing is ok. I am very very very grateful for your help! Best wished! yakebao |
|
|||
I'm having a similar problem. I have audio working (can cat > /dev/audio, and it makes noise), but cannot access pulseaudio. I followed the directions above, and pulseaudio is starting, but does not work.
To test it, I use the gstreamer-properties program, and click "test". I get "Autodetect: failed to connect: connection refused". Furthermore, if I use the drop-down in gstreamer-properties to select the pulseaudio output instead of autodetect, it prints "dropping root privileges" on the console, and the program hangs. I've tried adding "auth-anonymous=1" to "module-native-protocol-unix" in default.pa, but that doesn't seem to help. Furthermore, there doesn't seems to be anything relevant in /var/log/messages, the only things I see from pulse are "high priority scheduling enabled in configuration but not allowed in policy". Any advice or tips for where to looks would be great. Thanks! Please do not post with anonymous bugmenot accounts -- Carpetsmoker Last edited by Carpetsmoker; 2nd January 2010 at 10:56 AM. Reason: Added comment acout bugmenot account |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
OpenBSD 4.6/4.5, Kaffeine and audio | Squishy | OpenBSD General | 1 | 3rd November 2009 10:07 PM |
netbsd 5 and intel hda audio support | jaideep_jdof | NetBSD General | 5 | 18th September 2009 05:50 PM |
macmini audio | gosha | OpenBSD General | 15 | 14th January 2009 02:43 AM |
Audio & Headphones | JMJ_coder | General Hardware | 3 | 10th November 2008 05:21 PM |
Audio Chat for Solaris? | whispersGhost | Solaris | 9 | 19th June 2008 12:09 AM |