Re: No audio : did I miss something basic ?

2009-07-30 Thread Jan Stary
On Jul 30 04:19:31, Jacob Meuser wrote:
 On Wed, Jul 29, 2009 at 07:55:01PM +0200, jean-francois wrote:
  It's rather an old card.
 
 well, you have an Audigy2 card.  the first generation SB Live! cards
 mostly work well.  I've tried a few different board models.  Audigy
 cards have a known problem with volume control.  I have never
 personally tried any type of Audigy2 card.  apparently the Audigy2
 Value cards work ...
 
  For the momdne I run OpenBSD 4.4
 
 I think if you upgrade to 4.5 and get the onboard device detected
 you will be happier
 
 note that the emu(4) driver doesn't really take advantage of the special
 features (filters and such) of the emu chips.  nor does emu(4) support
 multichannel, pure digital (s/pdif output), or high resolution ( 16
 bits) modes.

Is there any card/driver combination that does support higher resolutions?
The azalia manpage (I have a Intel 82801GB HD Audio actually) says in BUGS:

There is no way to use 20-bit or 24-bit precision
because of a limitation of the MI audio framework.

Is the MI audio framework the same thing that's described in audio(4)?

Thanks

Jan



Re: No audio : did I miss something basic ?

2009-07-30 Thread Jacob Meuser
On Thu, Jul 30, 2009 at 11:06:48AM +0200, Jan Stary wrote:
 On Jul 30 04:19:31, Jacob Meuser wrote:
  On Wed, Jul 29, 2009 at 07:55:01PM +0200, jean-francois wrote:
   It's rather an old card.
  
  well, you have an Audigy2 card.  the first generation SB Live! cards
  mostly work well.  I've tried a few different board models.  Audigy
  cards have a known problem with volume control.  I have never
  personally tried any type of Audigy2 card.  apparently the Audigy2
  Value cards work ...
  
   For the momdne I run OpenBSD 4.4
  
  I think if you upgrade to 4.5 and get the onboard device detected
  you will be happier
  
  note that the emu(4) driver doesn't really take advantage of the special
  features (filters and such) of the emu chips.  nor does emu(4) support
  multichannel, pure digital (s/pdif output), or high resolution ( 16
  bits) modes.
 
 Is there any card/driver combination that does support higher resolutions?
 The azalia manpage (I have a Intel 82801GB HD Audio actually) says in BUGS:

azalia(4) and envy(4)

   There is no way to use 20-bit or 24-bit precision
   because of a limitation of the MI audio framework.
 
 Is the MI audio framework the same thing that's described in audio(4)?

yeah, that statement is outdated.  imo, kinda dumb it was there in the
first place.  if a feature is not supported due to a limitation of an
upper layer, is it really a bug of the lower layer?

-- 
jake...@sdf.lonestar.org
SDF Public Access UNIX System - http://sdf.lonestar.org



Re: No audio : did I miss something basic ?

2009-07-29 Thread Alexandre Ratchov
On Tue, Jul 28, 2009 at 11:13:47PM +0200, Jean-Frangois SIMON wrote:
 Hi,
 
 I am runing VLC under fvwm but could not have any sound.
 
 Are things working by default or there might be something to tune in
 general, or in my case ?
 

in most cases, yes. But on certain devices, you may have to
start aucat(1) in server mode, if the application you uses
requires sample formats not supported by the device. AFAIK
it's not your case.

does the following produce sound?

cat /bsd /dev/audio

if not, try setting all ``mute'' knobs to ``off'' (eg.
``mixerctl outputs.headphones.mute=off''), tweak the mixer
until you get sound with the above command.

once sound works, if vlc still doesn't work, try:

$ SIO_DEBUG=1 vlc

and see if there are sound related error messages.

 Thanks for help.
 
 dmesg | grep audio
 audio0 at emu0
 
 $ audioctl
 name=SB Live!
 version=0x00
 config=emuxki
 encodings=ulinear:8,mulaw:8*,alaw:8*,slinear:8*,slinear_le:16,ulinear_le:16*,slinear_be:16*,ulinear_be:16*
 properties=full_duplex,mmap,independent
 full_duplex=0
 fullduplex=0
 blocksize=8192
 hiwat=8
 lowat=1
 output_muted=0
 monitor_gain=0
 mode=
 play.rate=48000
 play.channels=2
 play.precision=16
 play.encoding=slinear_le
 play.gain=255
 play.balance=32
 play.port=0x0
 play.avail_ports=0x0
 play.seek=0
 play.samples=0
 play.eof=0
 play.pause=0
 play.error=0
 play.waiting=0
 play.open=0
 play.active=0
 play.buffer_size=65536
 play.block_size=8192
 play.errors=0
 record.rate=48000
 record.channels=2
 record.precision=16
 record.encoding=slinear_le
 record.gain=255
 record.balance=32
 record.port=0x1
 record.avail_ports=0x7
 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=65536
 record.block_size=8192
 record.errors=0
 
 $
 mixerctl
 
 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
 inputs.speaker=255
 inputs.speaker.mute=off
 inputs.phone=191
 inputs.phone.mute=on
 inputs.mic=255
 inputs.mic.mute=on
 inputs.mic.preamp=off
 inputs.mic.source=mic0
 inputs.line=255,255
 inputs.line.mute=on
 inputs.cd=255,255
 inputs.cd.mute=on
 inputs.video=191,191
 inputs.video.mute=on
 inputs.aux=255,255
 inputs.aux.mute=on
 inputs.dac=255,255
 inputs.dac.mute=off
 record.source=mic
 record.volume=255,255
 record.volume.mute=off
 outputs.spatial=off
 outputs.spatial.center=0
 outputs.spatial.depth=0
 outputs.extamp=off
-- Alexandre



Re: No audio : did I miss something basic ?

2009-07-29 Thread Jacob Meuser
On Wed, Jul 29, 2009 at 07:13:06AM +0200, Jean-Fran?ois SIMON wrote:
 Yes I have a sound card on the MB but seems not to be discovered.
 Sound out from VLC and mplayer, which do not show any error about sound,
 however I tried any jack of the MB and Sound Blaster card but no sound at
 all ?

for the onboard audio, check BIOS settings and/or remove the SB card.
the onboard device is more likely to be better supported then the SB
card anyway.

 Full dmesg :
 
 $ dmesg
 OpenBSD 4.4 (GENERIC) #1021: Tue Aug 12 17:16:55 MDT 2008
 dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC
 cpu0: AMD Sempron(tm) Processor LE-1200 (AuthenticAMD 686-class, 512KB L2
 cache) 2.01 GHz
 cpu0:
 FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUS
 H,MMX,FXSR,SSE,SSE2,SSE3,CX16
 real mem  = 1039429632 (991MB)
 avail mem = 996581376 (950MB)
 mainbus0 at root
 bios0 at mainbus0: AT/286+ BIOS, date 09/11/08, BIOS32 rev. 0 @ 0xf0010,
 SMBIOS rev. 2.5 @ 0xfc520 (22 entries)
 bios0: vendor American Megatrends Inc. version P1.00 date 09/11/2008
 apm0 at bios0: Power Management spec V1.2
 apm0: battery life expectancy 0%
 apm0: AC off, battery charge unknown, estimated 0:00 hours
 acpi at bios0 function 0x0 not configured
 pcibios0 at bios0: rev 3.0 @ 0xf/0x1
 pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xf44b0/400 (23 entries)
 pcibios0: no compatible PCI ICU found: ICU vendor 0x10de product 0x0548
 pcibios0: PCI bus #8 is the last bus
 bios0: ROM list: 0xc/0xea00
 cpu0 at mainbus0
 pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
 NVIDIA MCP67 Memory rev 0xa2 at pci0 dev 0 function 0 not configured
 pcib0 at pci0 dev 1 function 0 NVIDIA MCP67 Host rev 0xa2
 nviic0 at pci0 dev 1 function 1 NVIDIA MCP67 SMBus rev 0xa2
 iic0 at nviic0
 spdmem0 at iic0 addr 0x51: 1GB DDR2 SDRAM non-parity PC2-5300CL5
 iic1 at nviic0
 vendor NVIDIA, unknown product 0x0543 (class processor subclass
 Co-processor, rev 0xa2) at pci0 dev 1 function 3 not configured
 ohci0 at pci0 dev 2 function 0 NVIDIA MCP67 USB rev 0xa2: irq 11, version
 1.0, legacy support
 ehci0 at pci0 dev 2 function 1 NVIDIA MCP67 USB rev 0xa2: irq 10
 usb0 at ehci0: USB revision 2.0
 uhub0 at usb0 NVIDIA EHCI root hub rev 2.00/1.00 addr 1
 ohci1 at pci0 dev 4 function 0 NVIDIA MCP67 USB rev 0xa2: irq 10, version
 1.0, legacy support
 ehci1 at pci0 dev 4 function 1 NVIDIA MCP67 USB rev 0xa2: irq 10
 usb1 at ehci1: USB revision 2.0
 uhub1 at usb1 NVIDIA EHCI root hub rev 2.00/1.00 addr 1
 pciide0 at pci0 dev 6 function 0 NVIDIA MCP67 IDE rev 0xa1: DMA, channel 0
 configured to compatibility, channel 1 configured to compatibility
 pciide0: channel 0 disabled (no drives)
 pciide0: channel 1 ignored (disabled)
 ppb0 at pci0 dev 8 function 0 NVIDIA MCP67 PCI rev 0xa2
 pci1 at ppb0 bus 1
 re0 at pci1 dev 8 function 0 D-Link Systems DGE-528T rev 0x10:
 RTL8169/8110SB (0x1000), irq 10, address 00:22:b0:bd:32:61
 rgephy0 at re0 phy 7: RTL8169S/8110S PHY, rev. 3
 emu0 at pci1 dev 10 function 0 Creative Labs SoundBlaster Audigy 2 rev
 0x00: irq 10
 ac97: codec id 0x83847650 (SigmaTel STAC9750/51)
 ac97: codec features headphone, 20 bit DAC, 20 bit ADC, SigmaTel 3D
 audio0 at emu0
 pciide1 at pci0 dev 9 function 0 NVIDIA MCP67 SATA rev 0xa2: DMA
 pciide1: using irq 15 for native-PCI interrupt
 wd0 at pciide1 channel 0 drive 0: Veritech SSD 2009-01
 wd0: 1-sector PIO, LBA48, 30800MB, 63078400 sectors
 wd1 at pciide1 channel 0 drive 1: SAMSUNG HD103UJ
 wd1: 16-sector PIO, LBA48, 953869MB, 1953525168 sectors
 wd0(pciide1:0:0): using PIO mode 4, Ultra-DMA mode 5
 wd1(pciide1:0:1): using PIO mode 4, Ultra-DMA mode 5
 wd2 at pciide1 channel 1 drive 1: MAXTOR STM3160215AS
 wd2: 16-sector PIO, LBA48, 152627MB, 312581808 sectors
 wd2(pciide1:1:1): using PIO mode 4, Ultra-DMA mode 5
 nfe0 at pci0 dev 10 function 0 NVIDIA MCP67 LAN rev 0xa2: irq 10, address
 00:19:66:97:0d:31
 rgephy1 at nfe0 phy 3: RTL8169S/8110S PHY, rev. 2
 ppb1 at pci0 dev 11 function 0 vendor NVIDIA, unknown product 0x0562 rev
 0xa2
 pci2 at ppb1 bus 2
 ppb2 at pci0 dev 12 function 0 NVIDIA MCP67 PCIE rev 0xa2
 pci3 at ppb2 bus 3
 ppb3 at pci0 dev 13 function 0 NVIDIA MCP67 PCIE rev 0xa2
 pci4 at ppb3 bus 4
 ppb4 at pci0 dev 14 function 0 NVIDIA MCP67 PCIE rev 0xa2
 pci5 at ppb4 bus 5
 ppb5 at pci0 dev 15 function 0 NVIDIA MCP67 PCIE rev 0xa2
 pci6 at ppb5 bus 6
 ppb6 at pci0 dev 16 function 0 NVIDIA MCP67 PCIE rev 0xa2
 pci7 at ppb6 bus 7
 ppb7 at pci0 dev 17 function 0 NVIDIA MCP67 PCIE rev 0xa2
 pci8 at ppb7 bus 8
 vga1 at pci0 dev 18 function 0 vendor NVIDIA, unknown product 0x053b rev
 0xa2
 wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
 wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
 drm at vga1 unsupported
 pchb0 at pci0 dev 24 function 0 AMD AMD64 0Fh HyperTransport rev 0x00
 pchb1 at pci0 dev 24 function 1 AMD AMD64 0Fh Address Map rev 0x00
 pchb2 at pci0 dev 24 function 2 AMD AMD64 0Fh DRAM Cfg rev 0x00
 kate0 at pci0 dev 24 function 3 AMD AMD64 0Fh 

Re: No audio : did I miss something basic ?

2009-07-29 Thread jean-francois
I still could'nt ear anything, I don't understand what wrong I am doing.
The integrated MB card is not detected at all thought I could look after
the bios settings, however not necessary and I prefer to use the SB Live
if this is something possible.

Le mercredi 29 juillet 2009 C  08:22 +0200, Alexandre Ratchov a C)crit :
 On Tue, Jul 28, 2009 at 11:13:47PM +0200, Jean-FranC'ois SIMON wrote:
  Hi,
  
  I am runing VLC under fvwm but could not have any sound.
  
  Are things working by default or there might be something to tune in
  general, or in my case ?
  
 
 in most cases, yes. But on certain devices, you may have to
 start aucat(1) in server mode, if the application you uses
 requires sample formats not supported by the device. AFAIK
 it's not your case.
 
 does the following produce sound?
 
   cat /bsd /dev/audio
 
 if not, try setting all ``mute'' knobs to ``off'' (eg.
 ``mixerctl outputs.headphones.mute=off''), tweak the mixer
 until you get sound with the above command.
 
 once sound works, if vlc still doesn't work, try:
 
   $ SIO_DEBUG=1 vlc
 
 and see if there are sound related error messages.
 
  Thanks for help.
  
  dmesg | grep audio
  audio0 at emu0
  
  $ audioctl
  name=SB Live!
  version=0x00
  config=emuxki
  encodings=ulinear:8,mulaw:8*,alaw:8*,slinear:8*,slinear_le:16,ulinear_le:16*,slinear_be:16*,ulinear_be:16*
  properties=full_duplex,mmap,independent
  full_duplex=0
  fullduplex=0
  blocksize=8192
  hiwat=8
  lowat=1
  output_muted=0
  monitor_gain=0
  mode=
  play.rate=48000
  play.channels=2
  play.precision=16
  play.encoding=slinear_le
  play.gain=255
  play.balance=32
  play.port=0x0
  play.avail_ports=0x0
  play.seek=0
  play.samples=0
  play.eof=0
  play.pause=0
  play.error=0
  play.waiting=0
  play.open=0
  play.active=0
  play.buffer_size=65536
  play.block_size=8192
  play.errors=0
  record.rate=48000
  record.channels=2
  record.precision=16
  record.encoding=slinear_le
  record.gain=255
  record.balance=32
  record.port=0x1
  record.avail_ports=0x7
  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=65536
  record.block_size=8192
  record.errors=0
  
  $
  mixerctl
  
  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
  inputs.speaker=255
  inputs.speaker.mute=off
  inputs.phone=191
  inputs.phone.mute=on
  inputs.mic=255
  inputs.mic.mute=on
  inputs.mic.preamp=off
  inputs.mic.source=mic0
  inputs.line=255,255
  inputs.line.mute=on
  inputs.cd=255,255
  inputs.cd.mute=on
  inputs.video=191,191
  inputs.video.mute=on
  inputs.aux=255,255
  inputs.aux.mute=on
  inputs.dac=255,255
  inputs.dac.mute=off
  record.source=mic
  record.volume=255,255
  record.volume.mute=off
  outputs.spatial=off
  outputs.spatial.center=0
  outputs.spatial.depth=0
  outputs.extamp=off
 -- Alexandre



Re: No audio : did I miss something basic ?

2009-07-29 Thread Jean-François SIMON
Thanks for your patience. No it just rest silent and here two successive
audioctl, no movement in the play sensor.

$ audioctl
name=SB Live!
version=0x00
config=emuxki
encodings=ulinear:8,mulaw:8*,alaw:8*,slinear:8*,slinear_le:16,ulinear_le:16*,slinear_be:16*,ulinear_be:16*
properties=full_duplex,mmap,independent
full_duplex=0
fullduplex=0
blocksize=8192
hiwat=8
lowat=6
output_muted=0
monitor_gain=0
mode=play
play.rate=48000
play.channels=2
play.precision=16
play.encoding=slinear_le
play.gain=255
play.balance=32
play.port=0x0
play.avail_ports=0x0
play.seek=0
play.samples=0
play.eof=0
play.pause=0
play.error=0
play.waiting=0
play.open=1
play.active=0
play.buffer_size=65536
play.block_size=8192
play.errors=0
record.rate=48000
record.channels=2
record.precision=16
record.encoding=slinear_le
record.gain=255
record.balance=32
record.port=0x1
record.avail_ports=0x7
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=65536
record.block_size=8192
record.errors=0

$ audioctl
name=SB Live!
version=0x00
config=emuxki
encodings=ulinear:8,mulaw:8*,alaw:8*,slinear:8*,slinear_le:16,ulinear_le:16*,slinear_be:16*,ulinear_be:16*
properties=full_duplex,mmap,independent
full_duplex=0
fullduplex=0
blocksize=8192
hiwat=8
lowat=6
output_muted=0
monitor_gain=0
mode=play
play.rate=48000
play.channels=2
play.precision=16
play.encoding=slinear_le
play.gain=255
play.balance=32
play.port=0x0
play.avail_ports=0x0
play.seek=0
play.samples=0
play.eof=0
play.pause=0
play.error=0
play.waiting=0
play.open=1
play.active=0
play.buffer_size=65536
play.block_size=8192
play.errors=0
record.rate=48000
record.channels=2
record.precision=16
record.encoding=slinear_le
record.gain=255
record.balance=32
record.port=0x1
record.avail_ports=0x7
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=65536
record.block_size=8192
record.errors=0


2009/7/29 Alexandre Ratchov a...@caoua.org

 On Wed, Jul 29, 2009 at 06:40:11PM +0200, jean-francois wrote:
  I still could'nt ear anything, I don't understand what wrong I am doing.
  The integrated MB card is not detected at all thought I could look after
  the bios settings, however not necessary and I prefer to use the SB Live
  if this is something possible.
 

 ok, could you run ``cat /dev/arandom /dev/audio'' in
 background (or in another window) and then:

 run ``audioctl'' few times and check that play.pause=0,
 play.active=1, play.samples is increasing and play.errors
 stays around 0. I'm interested in getting two samples of the
 output of audioctl.

 then, check that your speakers work and are properly
 connected and start tweaking mixerctl as follows (the above
 command should continue running):

 set all continous knobs to the maximum (255), set to ``off'' all
 ``mute'' knobs.  Switch on/off other knobs outputs.extamp,
 outputs.spacial, try different combinations...

 you should end up hearing a heavy ``static'' noise. Let me
 know if it works.

 -- Alexandre



Re: No audio : did I miss something basic ?

2009-07-29 Thread Alexandre Ratchov
On Wed, Jul 29, 2009 at 07:06:15PM +0200, Jean-Frangois SIMON wrote:
 Thanks for your patience. No it just rest silent and here two successive
 audioctl, no movement in the play sensor.
 
 $ audioctl
 play.samples=0
 play.open=1
 play.active=0
 play.errors=0

very strange, the device is opened but it's stopped, and
cat(1) cant do that.

can you confirm that the ``cat /dev/arandom /dev/audio''
command was still running during the whole operation. Are
you sure it didn't terminate with a error?

play.active=0 indicates that the device is stopped and play.samples=0 means it
has played 0 samples, so it's normal you dont hear anything so far.

during the ``cat /dev/arandom /dev/audio'' command the
play.active should be 1, and play.sample should be
increasing.

fwiw, if the ``cat /dev/arandom /dev/audio'' terminates
with ``Device busy'', you can use fstat(1) to see which
programm is using it, (and kill it), example:

$ fstat /dev/audio  
USER CMD  PID   FD MOUNTINUM MODE   R/WSZ|DV NAME
aucataucat  312793 /1709 crw-rw-rw-  rw   audio0 
/dev/audio
$ sudo kill 31279

-- Alexandre



Re: No audio : did I miss something basic ?

2009-07-29 Thread Predrag Punosevac
I carefully looked the output of your audictl. This is mine for fully
working Sound Blaster Live Audio Card (including full duplex). Is that
what you have?

$ audioctl
name=SB Live!
version=0x07
config=emuxki
encodings=ulinear:8,mulaw:8*,alaw:8*,slinear:8*,slinear_le:16,\
ulinear_le:16*,slinear_be:16*,ulinear_be:16*
properties=full_duplex,mmap,independent
full_duplex=0
fullduplex=0
blocksize=8192
hiwat=8
lowat=6
output_muted=0
monitor_gain=0
mode=
play.rate=48000
play.channels=2
play.precision=16
play.encoding=slinear_le
play.gain=255
play.balance=32
play.port=0x0
play.avail_ports=0x0
play.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=65536
record.block_size=8192
record.errors=0

I am running 4.5/i386 stable with bsd.mp kernel. The only thing 
I personally could notice is that your version is 0x00 and mine is
0x07. When did you purchase your Audio Card? I think that they are 
monkeying with the chip-sets in the new cards and the driver might have
a problem.

Cheers,
Predrag



Re: No audio : did I miss something basic ?

2009-07-29 Thread jean-francois
It's rather an old card. lowlat is also different (6 in yr case 1 in
mine).

For the momdne I run OpenBSD 4.4

Le mercredi 29 juillet 2009 C  13:38 -0400, Predrag Punosevac a C)crit :
 I carefully looked the output of your audictl. This is mine for fully
 working Sound Blaster Live Audio Card (including full duplex). Is that
 what you have?
 
 $ audioctl
 name=SB Live!
 version=0x07
 config=emuxki
 encodings=ulinear:8,mulaw:8*,alaw:8*,slinear:8*,slinear_le:16,\
 ulinear_le:16*,slinear_be:16*,ulinear_be:16*
 properties=full_duplex,mmap,independent
 full_duplex=0
 fullduplex=0
 blocksize=8192
 hiwat=8
 lowat=6
 output_muted=0
 monitor_gain=0
 mode=
 play.rate=48000
 play.channels=2
 play.precision=16
 play.encoding=slinear_le
 play.gain=255
 play.balance=32
 play.port=0x0
 play.avail_ports=0x0
 play.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=65536
 record.block_size=8192
 record.errors=0
 
 I am running 4.5/i386 stable with bsd.mp kernel. The only thing 
 I personally could notice is that your version is 0x00 and mine is
 0x07. When did you purchase your Audio Card? I think that they are 
 monkeying with the chip-sets in the new cards and the driver might have
 a problem.
 
 Cheers,
 Predrag



Re: No audio : did I miss something basic ?

2009-07-29 Thread jean-francois
It was running and did'nt end with an error. I also check other output
on the cards, the cable and the speakers.

Le mercredi 29 juillet 2009 C  19:20 +0200, Alexandre Ratchov a C)crit :
 On Wed, Jul 29, 2009 at 07:06:15PM +0200, Jean-FranC'ois SIMON wrote:
  Thanks for your patience. No it just rest silent and here two successive
  audioctl, no movement in the play sensor.
  
  $ audioctl
  play.samples=0
  play.open=1
  play.active=0
  play.errors=0
 
 very strange, the device is opened but it's stopped, and
 cat(1) cant do that.
 
 can you confirm that the ``cat /dev/arandom /dev/audio''
 command was still running during the whole operation. Are
 you sure it didn't terminate with a error?
 
 play.active=0 indicates that the device is stopped and play.samples=0 means it
 has played 0 samples, so it's normal you dont hear anything so far.
 
 during the ``cat /dev/arandom /dev/audio'' command the
 play.active should be 1, and play.sample should be
 increasing.
 
 fwiw, if the ``cat /dev/arandom /dev/audio'' terminates
 with ``Device busy'', you can use fstat(1) to see which
 programm is using it, (and kill it), example:
 
 $ fstat /dev/audio  
 USER CMD  PID   FD MOUNTINUM MODE   R/WSZ|DV NAME
 aucataucat  312793 /1709 crw-rw-rw-  rw   audio0 
 /dev/audio
 $ sudo kill 31279
 
 -- Alexandre



Re: No audio : did I miss something basic ?

2009-07-29 Thread Jacob Meuser
On Wed, Jul 29, 2009 at 07:55:01PM +0200, jean-francois wrote:
 It's rather an old card.

well, you have an Audigy2 card.  the first generation SB Live! cards
mostly work well.  I've tried a few different board models.  Audigy
cards have a known problem with volume control.  I have never
personally tried any type of Audigy2 card.  apparently the Audigy2
Value cards work ...

 For the momdne I run OpenBSD 4.4

I think if you upgrade to 4.5 and get the onboard device detected
you will be happier

note that the emu(4) driver doesn't really take advantage of the special
features (filters and such) of the emu chips.  nor does emu(4) support
multichannel, pure digital (s/pdif output), or high resolution ( 16
bits) modes.

-- 
jake...@sdf.lonestar.org
SDF Public Access UNIX System - http://sdf.lonestar.org



No audio : did I miss something basic ?

2009-07-28 Thread Jean-François SIMON
Hi,

I am runing VLC under fvwm but could not have any sound.

Are things working by default or there might be something to tune in
general, or in my case ?

Thanks for help.

dmesg | grep audio
audio0 at emu0

$ audioctl
name=SB Live!
version=0x00
config=emuxki
encodings=ulinear:8,mulaw:8*,alaw:8*,slinear:8*,slinear_le:16,ulinear_le:16*,slinear_be:16*,ulinear_be:16*
properties=full_duplex,mmap,independent
full_duplex=0
fullduplex=0
blocksize=8192
hiwat=8
lowat=1
output_muted=0
monitor_gain=0
mode=
play.rate=48000
play.channels=2
play.precision=16
play.encoding=slinear_le
play.gain=255
play.balance=32
play.port=0x0
play.avail_ports=0x0
play.seek=0
play.samples=0
play.eof=0
play.pause=0
play.error=0
play.waiting=0
play.open=0
play.active=0
play.buffer_size=65536
play.block_size=8192
play.errors=0
record.rate=48000
record.channels=2
record.precision=16
record.encoding=slinear_le
record.gain=255
record.balance=32
record.port=0x1
record.avail_ports=0x7
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=65536
record.block_size=8192
record.errors=0

$
mixerctl

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
inputs.speaker=255
inputs.speaker.mute=off
inputs.phone=191
inputs.phone.mute=on
inputs.mic=255
inputs.mic.mute=on
inputs.mic.preamp=off
inputs.mic.source=mic0
inputs.line=255,255
inputs.line.mute=on
inputs.cd=255,255
inputs.cd.mute=on
inputs.video=191,191
inputs.video.mute=on
inputs.aux=255,255
inputs.aux.mute=on
inputs.dac=255,255
inputs.dac.mute=off
record.source=mic
record.volume=255,255
record.volume.mute=off
outputs.spatial=off
outputs.spatial.center=0
outputs.spatial.depth=0
outputs.extamp=off



Re: No audio : did I miss something basic ?

2009-07-28 Thread Chris Bennett

What are you trying to get sound from?
Try turning off the mutes that are on.

mixerctl inputs.cd.mute=off   for example.

also, try   cdio cdplay, with a music cd (This is pure digital and 
gives better quality than cdio play)


also, add to .profile:
pgrep -x aucat || aucat -l  (someone please correct this for me if 
it has changed more recently)


If this isn't enough, please post a full dmesg, if you have another 
sound system that is integrated into motherboard, you can also have problems



inputs.cd.mute=onJean-Frangois SIMON wrote:


Hi,

I am runing VLC under fvwm but could not have any sound.

Are things working by default or there might be something to tune in
general, or in my case ?

Thanks for help.

dmesg | grep audio
audio0 at emu0

$ audioctl
name=SB Live!
version=0x00
config=emuxki
encodings=ulinear:8,mulaw:8*,alaw:8*,slinear:8*,slinear_le:16,ulinear_le:16*,slinear_be:16*,ulinear_be:16*
properties=full_duplex,mmap,independent
full_duplex=0
fullduplex=0
blocksize=8192
hiwat=8
lowat=1
output_muted=0
monitor_gain=0
mode=
play.rate=48000
play.channels=2
play.precision=16
play.encoding=slinear_le
play.gain=255
play.balance=32
play.port=0x0
play.avail_ports=0x0
play.seek=0
play.samples=0
play.eof=0
play.pause=0
play.error=0
play.waiting=0
play.open=0
play.active=0
play.buffer_size=65536
play.block_size=8192
play.errors=0
record.rate=48000
record.channels=2
record.precision=16
record.encoding=slinear_le
record.gain=255
record.balance=32
record.port=0x1
record.avail_ports=0x7
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=65536
record.block_size=8192
record.errors=0

$
mixerctl

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
inputs.speaker=255
inputs.speaker.mute=off
inputs.phone=191
inputs.phone.mute=on
inputs.mic=255
inputs.mic.mute=on
inputs.mic.preamp=off
inputs.mic.source=mic0
inputs.line=255,255
inputs.line.mute=on
inputs.cd=255,255
inputs.cd.mute=on
inputs.video=191,191
inputs.video.mute=on
inputs.aux=255,255
inputs.aux.mute=on
inputs.dac=255,255
inputs.dac.mute=off
record.source=mic
record.volume=255,255
record.volume.mute=off
outputs.spatial=off
outputs.spatial.center=0
outputs.spatial.depth=0
outputs.extamp=off




Re: No audio : did I miss something basic ?

2009-07-28 Thread Jean-François SIMON
Yes I have a sound card on the MB but seems not to be discovered.
Sound out from VLC and mplayer, which do not show any error about sound,
however I tried any jack of the MB and Sound Blaster card but no sound at
all ?

Full dmesg :

$ dmesg
OpenBSD 4.4 (GENERIC) #1021: Tue Aug 12 17:16:55 MDT 2008
dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: AMD Sempron(tm) Processor LE-1200 (AuthenticAMD 686-class, 512KB L2
cache) 2.01 GHz
cpu0:
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUS
H,MMX,FXSR,SSE,SSE2,SSE3,CX16
real mem  = 1039429632 (991MB)
avail mem = 996581376 (950MB)
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 09/11/08, BIOS32 rev. 0 @ 0xf0010,
SMBIOS rev. 2.5 @ 0xfc520 (22 entries)
bios0: vendor American Megatrends Inc. version P1.00 date 09/11/2008
apm0 at bios0: Power Management spec V1.2
apm0: battery life expectancy 0%
apm0: AC off, battery charge unknown, estimated 0:00 hours
acpi at bios0 function 0x0 not configured
pcibios0 at bios0: rev 3.0 @ 0xf/0x1
pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xf44b0/400 (23 entries)
pcibios0: no compatible PCI ICU found: ICU vendor 0x10de product 0x0548
pcibios0: PCI bus #8 is the last bus
bios0: ROM list: 0xc/0xea00
cpu0 at mainbus0
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
NVIDIA MCP67 Memory rev 0xa2 at pci0 dev 0 function 0 not configured
pcib0 at pci0 dev 1 function 0 NVIDIA MCP67 Host rev 0xa2
nviic0 at pci0 dev 1 function 1 NVIDIA MCP67 SMBus rev 0xa2
iic0 at nviic0
spdmem0 at iic0 addr 0x51: 1GB DDR2 SDRAM non-parity PC2-5300CL5
iic1 at nviic0
vendor NVIDIA, unknown product 0x0543 (class processor subclass
Co-processor, rev 0xa2) at pci0 dev 1 function 3 not configured
ohci0 at pci0 dev 2 function 0 NVIDIA MCP67 USB rev 0xa2: irq 11, version
1.0, legacy support
ehci0 at pci0 dev 2 function 1 NVIDIA MCP67 USB rev 0xa2: irq 10
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 NVIDIA EHCI root hub rev 2.00/1.00 addr 1
ohci1 at pci0 dev 4 function 0 NVIDIA MCP67 USB rev 0xa2: irq 10, version
1.0, legacy support
ehci1 at pci0 dev 4 function 1 NVIDIA MCP67 USB rev 0xa2: irq 10
usb1 at ehci1: USB revision 2.0
uhub1 at usb1 NVIDIA EHCI root hub rev 2.00/1.00 addr 1
pciide0 at pci0 dev 6 function 0 NVIDIA MCP67 IDE rev 0xa1: DMA, channel 0
configured to compatibility, channel 1 configured to compatibility
pciide0: channel 0 disabled (no drives)
pciide0: channel 1 ignored (disabled)
ppb0 at pci0 dev 8 function 0 NVIDIA MCP67 PCI rev 0xa2
pci1 at ppb0 bus 1
re0 at pci1 dev 8 function 0 D-Link Systems DGE-528T rev 0x10:
RTL8169/8110SB (0x1000), irq 10, address 00:22:b0:bd:32:61
rgephy0 at re0 phy 7: RTL8169S/8110S PHY, rev. 3
emu0 at pci1 dev 10 function 0 Creative Labs SoundBlaster Audigy 2 rev
0x00: irq 10
ac97: codec id 0x83847650 (SigmaTel STAC9750/51)
ac97: codec features headphone, 20 bit DAC, 20 bit ADC, SigmaTel 3D
audio0 at emu0
pciide1 at pci0 dev 9 function 0 NVIDIA MCP67 SATA rev 0xa2: DMA
pciide1: using irq 15 for native-PCI interrupt
wd0 at pciide1 channel 0 drive 0: Veritech SSD 2009-01
wd0: 1-sector PIO, LBA48, 30800MB, 63078400 sectors
wd1 at pciide1 channel 0 drive 1: SAMSUNG HD103UJ
wd1: 16-sector PIO, LBA48, 953869MB, 1953525168 sectors
wd0(pciide1:0:0): using PIO mode 4, Ultra-DMA mode 5
wd1(pciide1:0:1): using PIO mode 4, Ultra-DMA mode 5
wd2 at pciide1 channel 1 drive 1: MAXTOR STM3160215AS
wd2: 16-sector PIO, LBA48, 152627MB, 312581808 sectors
wd2(pciide1:1:1): using PIO mode 4, Ultra-DMA mode 5
nfe0 at pci0 dev 10 function 0 NVIDIA MCP67 LAN rev 0xa2: irq 10, address
00:19:66:97:0d:31
rgephy1 at nfe0 phy 3: RTL8169S/8110S PHY, rev. 2
ppb1 at pci0 dev 11 function 0 vendor NVIDIA, unknown product 0x0562 rev
0xa2
pci2 at ppb1 bus 2
ppb2 at pci0 dev 12 function 0 NVIDIA MCP67 PCIE rev 0xa2
pci3 at ppb2 bus 3
ppb3 at pci0 dev 13 function 0 NVIDIA MCP67 PCIE rev 0xa2
pci4 at ppb3 bus 4
ppb4 at pci0 dev 14 function 0 NVIDIA MCP67 PCIE rev 0xa2
pci5 at ppb4 bus 5
ppb5 at pci0 dev 15 function 0 NVIDIA MCP67 PCIE rev 0xa2
pci6 at ppb5 bus 6
ppb6 at pci0 dev 16 function 0 NVIDIA MCP67 PCIE rev 0xa2
pci7 at ppb6 bus 7
ppb7 at pci0 dev 17 function 0 NVIDIA MCP67 PCIE rev 0xa2
pci8 at ppb7 bus 8
vga1 at pci0 dev 18 function 0 vendor NVIDIA, unknown product 0x053b rev
0xa2
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
drm at vga1 unsupported
pchb0 at pci0 dev 24 function 0 AMD AMD64 0Fh HyperTransport rev 0x00
pchb1 at pci0 dev 24 function 1 AMD AMD64 0Fh Address Map rev 0x00
pchb2 at pci0 dev 24 function 2 AMD AMD64 0Fh DRAM Cfg rev 0x00
kate0 at pci0 dev 24 function 3 AMD AMD64 0Fh Misc Cfg rev 0x00: core rev
DH-G1
isa0 at pcib0
isadma0 at isa0
com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
com1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo
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