DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD General

OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 7th May 2008
FreeMan FreeMan is offline
Port Guard
 
Join Date: May 2008
Posts: 13
Thanked 0 Times in 0 Posts
Default USB Sound?

Hello all, I'm a newbie to Unix and I managed to install OpenBSD and some software. During the whole process, I use OpenBSD handbook, but the only thing I can't figure out is the USB sound. I can't hear anything. Does anyone know how to load the sound during boot?
Reply With Quote
  #2   (View Single Post)  
Old 7th May 2008
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 2,883
Thanked 190 Times in 160 Posts
Default

Quote:
Originally Posted by cklbwe View Post
Does anyone know how to load the sound during boot?
Be sure to study Section 13.1 of the FAQ:

http://openbsd.org/faq/faq13.html#confaudio

If you still experience problems, having read this section will help you articulate specific questions.
Reply With Quote
  #3   (View Single Post)  
Old 7th May 2008
FreeMan FreeMan is offline
Port Guard
 
Join Date: May 2008
Posts: 13
Thanked 0 Times in 0 Posts
Default

Yes, I tried section 13.1 before I post here, it didn't work in my case. I'll try it one more time.

Last edited by FreeMan; 7th May 2008 at 03:56 AM.
Reply With Quote
  #4   (View Single Post)  
Old 7th May 2008
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 2,883
Thanked 190 Times in 160 Posts
Default

Quote:
Originally Posted by cklbwe View Post
...it didn't work in my case.
  • Provide the output of dmesg(8).
  • Provide the output of the following command:
    Code:
    $ audioctl | grep mute

Last edited by ocicat; 7th May 2008 at 04:14 AM.
Reply With Quote
  #5   (View Single Post)  
Old 7th May 2008
FreeMan FreeMan is offline
Port Guard
 
Join Date: May 2008
Posts: 13
Thanked 0 Times in 0 Posts
Default

My "dmesg":
Quote:
# dmesg
OpenBSD 4.3 (GENERIC) #698: Wed Mar 12 11:07:05 MDT 2008
deraadt@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: AMD Athlon(tm) 64 FX-74 Processor ("AuthenticAMD" 686-class, 1024KB L2 cache) 3.01 GHz
cpu0: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,P GE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT ,SSE3,CX16
real mem = 2666950656 (2543MB)
avail mem = 2575749120 (2456MB)
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 03/22/07, BIOS32 rev. 0 @ 0xf0010, SMBIOS rev. 2.4 @ 0xf0730 (83 entries)
bios0: vendor American Megatrends Inc. version "0402" date 03/22/2007
bios0: ASUSTek Computer INC. L1N64-SLI WS
apm0 at bios0: Power Management spec V1.2
apm0: AC on, battery charge unknown
acpi at bios0 function 0x0 not configured
pcibios0 at bios0: rev 3.0 @ 0xf0000/0x10000
pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xf6ff0/512 (30 entries)
pcibios0: no compatible PCI ICU found: ICU vendor 0x10de product 0x0360
pcibios0: Warning, unable to fix up PCI interrupt routing
pcibios0: PCI bus #5 is the last bus
bios0: ROM list: 0xc0000/0xca00
cpu0 at mainbus0
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
"NVIDIA MCP55 Memory" rev 0xa1 at pci0 dev 0 function 0 not configured
pcib0 at pci0 dev 1 function 0 "NVIDIA MCP55 ISA" rev 0xa2
nviic0 at pci0 dev 1 function 1 "NVIDIA MCP55 SMBus" rev 0xa2
iic0 at nviic0
adt0 at iic0 addr 0x2e: adt7475 rev 0x69
spdmem0 at iic0 addr 0x50: 2GB DDR2 SDRAM non-parity PC2-6400CL5
spdmem1 at iic0 addr 0x51: 2GB DDR2 SDRAM non-parity PC2-6400CL5
iic1 at nviic0
ohci0 at pci0 dev 2 function 0 "NVIDIA MCP55 USB" rev 0xa1: irq 10, version 1.0, legacy support
ehci0 at pci0 dev 2 function 1 "NVIDIA MCP55 USB" rev 0xa2: irq 11
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 "NVIDIA EHCI root hub" rev 2.00/1.00 addr 1
pciide0 at pci0 dev 4 function 0 "NVIDIA MCP55 IDE" rev 0xa1: DMA, channel 0 configured to compatibility, channel 1 configured to compatibility
atapiscsi0 at pciide0 channel 0 drive 0
scsibus0 at atapiscsi0: 2 targets
cd0 at scsibus0 targ 0 lun 0: <TSSTcorp, CD/DVDW SH-S182M, SB02> SCSI0 5/cdrom removable
atapiscsi1 at pciide0 channel 0 drive 1
scsibus1 at atapiscsi1: 2 targets
cd1 at scsibus1 targ 0 lun 0: <CyberDrv, CW088D CD-R/RW, 15HF> SCSI0 5/cdrom removable
cd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2
cd1(pciide0:0:1): using PIO mode 4, Ultra-DMA mode 2
pciide0: channel 1 ignored (disabled)
pciide1 at pci0 dev 5 function 0 "NVIDIA MCP55 SATA" rev 0xa2: DMA
pciide1: using irq 5 for native-PCI interrupt
pciide2 at pci0 dev 5 function 1 "NVIDIA MCP55 SATA" rev 0xa2: DMA
pciide2: using irq 10 for native-PCI interrupt
pciide3 at pci0 dev 5 function 2 "NVIDIA MCP55 SATA" rev 0xa2: DMA
pciide3: using irq 10 for native-PCI interrupt
wd0 at pciide3 channel 0 drive 0: <ST3500630AS>
wd0: 16-sector PIO, LBA48, 476940MB, 976773168 sectors
wd0(pciide3:0:0): using PIO mode 4, Ultra-DMA mode 5
ppb0 at pci0 dev 6 function 0 "NVIDIA MCP55 PCI-PCI" rev 0xa2
pci1 at ppb0 bus 5
"VIA VT6306 FireWire" rev 0xc0 at pci1 dev 11 function 0 not configured
azalia0 at pci0 dev 6 function 1 "NVIDIA MCP55 HD Audio" rev 0xa2: irq 11
azalia0: codec[s]: Analog Devices/0x198b
audio0 at azalia0
nfe0 at pci0 dev 8 function 0 "NVIDIA MCP55 LAN" rev 0xa2: irq 5, address 00:1b:fc:d3:ea:2d
eephy0 at nfe0 phy 1: Marvell 88E1116 Gigabit PHY, rev. 1
nfe1 at pci0 dev 9 function 0 "NVIDIA MCP55 LAN" rev 0xa2: irq 10, address 00:1b:fc:d3:ec:3b
eephy1 at nfe1 phy 1: Marvell 88E1116 Gigabit PHY, rev. 1
ppb1 at pci0 dev 10 function 0 "NVIDIA MCP55 PCIE" rev 0xa2
pci2 at ppb1 bus 4
ppb2 at pci0 dev 13 function 0 "NVIDIA MCP55 PCIE" rev 0xa2
pci3 at ppb2 bus 3
ppb3 at pci0 dev 14 function 0 "NVIDIA MCP55 PCIE" rev 0xa2
pci4 at ppb3 bus 2
sili0 at pci4 dev 0 function 0 "CMD Technology SiI3531 SATA" rev 0x01: irq 10
scsibus2 at sili0: 1 targets
ppb4 at pci0 dev 15 function 0 "NVIDIA MCP55 PCIE" rev 0xa2
pci5 at ppb4 bus 1
vga1 at pci5 dev 0 function 0 "NVIDIA GeForce 8800 GTS" rev 0xa2
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
pchb0 at pci0 dev 24 function 0 "AMD AMD64 HyperTransport" rev 0x00
pci6 at pchb0 bus 128
"NVIDIA MCP55 Memory" rev 0xa1 at pci6 dev 0 function 0 not configured
"NVIDIA MCP55 ISA" rev 0xa2 at pci6 dev 1 function 0 not configured
nviic1 at pci6 dev 1 function 1 "NVIDIA MCP55 SMBus" rev 0xa2
iic2 at nviic1
iic3 at nviic1
pciide4 at pci6 dev 5 function 0 "NVIDIA MCP55 SATA" rev 0xa2: DMA
pciide4: using irq 11 for native-PCI interrupt
pciide5 at pci6 dev 5 function 1 "NVIDIA MCP55 SATA" rev 0xa2: DMA
pciide5: using irq 5 for native-PCI interrupt
pciide6 at pci6 dev 5 function 2 "NVIDIA MCP55 SATA" rev 0xa2: DMA
pciide6: using irq 10 for native-PCI interrupt
ppb5 at pci6 dev 10 function 0 "NVIDIA MCP55 PCIE" rev 0xa2
pci7 at ppb5 bus 130
ppb6 at pci6 dev 15 function 0 "NVIDIA MCP55 PCIE" rev 0xa2
pci8 at ppb6 bus 129
pchb1 at pci0 dev 24 function 1 "AMD AMD64 Address Map" rev 0x00
pchb2 at pci0 dev 24 function 2 "AMD AMD64 DRAM Cfg" rev 0x00
pchb3 at pci0 dev 24 function 3 "AMD AMD64 Misc Cfg" rev 0x00
isa0 at pcib0
isadma0 at isa0
pckbc0 at isa0 port 0x60/5
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pcppi0 at isa0 port 0x61
midi0 at pcppi0: <PC speaker>
spkr0 at pcppi0
lpt0 at isa0 port 0x378/4 irq 7
it2 at isa0 port 0xd00/8: IT8716F rev 0x01
npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16
pccom0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
usb1 at ohci0: USB revision 1.0
uhub1 at usb1 "NVIDIA OHCI root hub" rev 1.00/1.00 addr 1
biomask ff6d netmask ff6d ttymask ffef
mtrr: Pentium Pro MTRR support
uaudio0 at uhub1 port 2 configuration 1 interface 0 "C-Media INC. USB Audio" rev 1.10/0.10 addr 2
uaudio0: audio rev 1.00, 2 mixer controls
audio1 at uaudio0
uhidev0 at uhub1 port 3 configuration 1 interface 0 "Alcor Micro product 0x3002" rev 1.10/1.00 addr 3
uhidev0: iclass 3/1
ukbd0 at uhidev0: 8 modifier keys, 6 key codes
wskbd1 at ukbd0 mux 1
wskbd1: connecting to wsdisplay0
uhidev1 at uhub1 port 3 configuration 1 interface 1 "Alcor Micro product 0x3002" rev 1.10/1.00 addr 3
uhidev1: iclass 3/0, 4 report ids
uhid0 at uhidev1 reportid 2: input=1, output=0, feature=0
uhid1 at uhidev1 reportid 3: input=3, output=0, feature=0
uhid2 at uhidev1 reportid 4: input=1, output=0, feature=0
uhidev2 at uhub1 port 4 configuration 1 interface 0 "Logitech Logitech USB Optical Mouse" rev 2.00/43.00 addr 4
uhidev2: iclass 3/1
ums0 at uhidev2: 3 buttons and Z dir.
wsmouse0 at ums0 mux 0
softraid0 at root
root on wd0a swap on wd0b dump on wd0b
My output of "audioctl | grep mute":
Quote:
output_muted=0

Last edited by FreeMan; 7th May 2008 at 04:56 AM.
Reply With Quote
  #6   (View Single Post)  
Old 7th May 2008
FreeMan FreeMan is offline
Port Guard
 
Join Date: May 2008
Posts: 13
Thanked 0 Times in 0 Posts
Default

I think I may have found the problem. I typed audioctl and it gives me motherboard sound (HD-Audio), but I only use USB speakers (uaudio0). Would this be it? If so, could you show me how to change it?
Reply With Quote
  #7   (View Single Post)  
Old 7th May 2008
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 2,883
Thanked 190 Times in 160 Posts
Default

Quote:
Originally Posted by cklbwe
Code:
...
uaudio0 at uhub1 port 2 configuration 1 interface 0 "C-Media INC. USB Audio" rev 1.10/0.10 addr 2
uaudio0: audio rev 1.00, 2 mixer controls
...
Okay, so your audio device is recognized by the kernel. This is essential.
Quote:
Code:
output_muted=0
Okay, not so definitive in this case. Please provide the entire output of the following:
Code:
$ audioctl
Reply With Quote
  #8   (View Single Post)  
Old 7th May 2008
FreeMan FreeMan is offline
Port Guard
 
Join Date: May 2008
Posts: 13
Thanked 0 Times in 0 Posts
Default

Here is my audioctl info:

Quote:
# audioctl
name=HD-Audio
version=1.0
config=azalia0
encodings=slinear_le:16,slinear_le:16,slinear_le:1 6,slinear_le:16,slinear_le:16
properties=full_duplex,independent
full_duplex=0
fullduplex=0
blocksize=8704
hiwat=7
lowat=1
output_muted=0
monitor_gain=0
mode=
play.rate=44100
play.channels=2
play.precision=16
play.encoding=slinear_le
play.gain=127
play.balance=32
play.port=0x0
play.avail_ports=0x0
play.seek=8704
play.samples=2184704
play.eof=0
play.pause=0
play.error=1
play.waiting=0
play.open=0
play.active=0
play.buffer_size=65536
record.rate=44100
record.channels=1
record.precision=16
record.encoding=slinear_le
record.gain=127
record.balance=32
record.port=0x0
record.avail_ports=0x0
record.seek=0
record.samples=0
record.eof=0
record.pause=0
record.error=0
record.waiting=0
record.open=0
record.active=0
record.buffer_size=32768
record.errors=0
Reply With Quote
  #9   (View Single Post)  
Old 7th May 2008
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 2,883
Thanked 190 Times in 160 Posts
Default

From your dmesg(8) output:
Code:
azalia0 at pci0 dev 6 function 1 "NVIDIA MCP55 HD Audio" rev 0xa2: irq 11
azalia0: codec[s]: Analog Devices/0x198b
audio0 at azalia0
Is there audio functionality on your motherboard?
Reply With Quote
Old 7th May 2008
BSDfan666 BSDfan666 is offline
Real Name: N/A, this is the interweb.
Helpful companion
 
Join Date: Apr 2008
Location: Ontario, Canada
Posts: 2,223
Thanked 193 Times in 184 Posts
Default

This is a little off topic, but when pcibios chokes up a message like "Warning, unable to fix up PCI interrupt routing" it's a good idea to disable it and use acpi for acpiprt(4) support.

Now, on to your question, you'll need to create a few device nodes.

Here's how:
Code:
$ cd /dev
$ sudo MAKEDEV audio1
$ sudo rm {audio,audioctl,mixer,sound}
$ sudo ln -s audio1 audio
$ sudo ln -s audioctl1 audioctl
$ sudo ln -s sound1 sound
$ sudo ln -s mixer1 mixer
Afterwards, Post the output of audioctl -a and mixerctl -a here.

Hope this helps you my friend.

Last edited by BSDfan666; 7th May 2008 at 05:31 AM.
Reply With Quote
Old 7th May 2008
FreeMan FreeMan is offline
Port Guard
 
Join Date: May 2008
Posts: 13
Thanked 0 Times in 0 Posts
Default

To ocicat: Yes, I did mention that I have HD Audio on my motherboard in my of my posts above, but I don't use it because my speakers use USB 2.0 only. How can I change it to USB audio (uaudio0)?

To BSDfan666: I'm using root account so I guess I don't have to use "sudo". I stopped at step 2 because there was an error:

Quote:
# cd /dev
# MAKEDEV audio1
ksh: MAKEDEV: not found
Here is the output of "ls -la /dev | grep audio":

Quote:
# cd /dev
# ls -la /dev | grep audio
lrwx------ 1 root wheel 6 May 6 03:56 audio -> audio0
crw-rw-rw- 1 root wheel 42, 128 May 6 19:20 audio0
lrwx------ 1 root wheel 9 May 6 03:56 audioctl -> audioctl0
crw-rw-rw- 1 root wheel 42, 192 May 6 03:56 audioctl0

Last edited by FreeMan; 7th May 2008 at 05:32 AM.
Reply With Quote
Old 7th May 2008
BSDfan666 BSDfan666 is offline
Real Name: N/A, this is the interweb.
Helpful companion
 
Join Date: Apr 2008
Location: Ontario, Canada
Posts: 2,223
Thanked 193 Times in 184 Posts
Default

Wha? Is your /dev directory not populated or something? There should be a MAKEDEV script, try appending ./ and see if that helps.
Reply With Quote
Old 7th May 2008
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 2,883
Thanked 190 Times in 160 Posts
Default

Quote:
Originally Posted by cklbwe View Post
Yes, I did mention that I have HD Audio on my motherboard in my of my posts above, but I don't use it because my speakers use USB 2.0 only. How can I change it to USB audio (uaudio0)?
You will need to determine whether this can be disabled in your BIOS settings.
Reply With Quote
Old 7th May 2008
FreeMan FreeMan is offline
Port Guard
 
Join Date: May 2008
Posts: 13
Thanked 0 Times in 0 Posts
Default

To ocicat: I'll try it now and see how it goes.

To BSDfan666:

I just installed OpenBSD 4.3 several days ago.

Quote:
./
ksh: ./: cannot execute - Is a directory
Reply With Quote
Old 7th May 2008
BSDfan666 BSDfan666 is offline
Real Name: N/A, this is the interweb.
Helpful companion
 
Join Date: Apr 2008
Location: Ontario, Canada
Posts: 2,223
Thanked 193 Times in 184 Posts
Default

Quote:
Originally Posted by cklbwe View Post
I just installed OpenBSD 4.3 several days ago.
I said try "appending" that..

Meaning, "./MAKEDEV audio1"
Reply With Quote
Old 7th May 2008
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 2,883
Thanked 190 Times in 160 Posts
Default

Quote:
Originally Posted by BSDfan666 View Post
...try appending ./ and see if that helps.
If unclear, BSDfan666 is asking you do perform the following:
Code:
$ cd /dev
$ sudo ./MAKEDEV audio1
...after removing the original links. Most likely during installation you didn't have your USB device connected, so the device nodes created were based on what was found on the motherboard. Since you want to use an auxiliary device instead, you are having to change what audio device is referenced by the kernel.
Reply With Quote
Old 7th May 2008
FreeMan FreeMan is offline
Port Guard
 
Join Date: May 2008
Posts: 13
Thanked 0 Times in 0 Posts
Default

I added "./" before "MAKEDEV" and I succeeded. I got the sound back. Thank you very much, you guys!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Sound on FreeBSD corey_james Guides 19 13th August 2010 11:05 PM
Recording sound with external sound card backrow OpenBSD General 5 21st August 2009 08:17 PM
qemu sound Oko OpenBSD Packages and Ports 2 7th May 2009 06:59 AM
Sound Problem. MetalHead OpenBSD General 3 16th November 2008 09:27 PM
Sound JimC FreeBSD General 9 15th August 2008 06:05 PM


All times are GMT. The time now is 05:46 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick