Audio problems, 5.9 -release, Thinkpad Carbon X1 Gen3

2016-07-05 Thread Alexander Judge
Hi,

Audio playback behaves as if muted except for roughly periodic short,
sub-second bursts.
I’ve observed this playing audio files using Firefox, Chromium, VLC, and
mplayer.
When playing video the picture is likewise affected, but disabling audio in
VLC fixes it.

mplayer complains about the requested audio codec (see below).

Any help appreciated.


$ mplayer SONG59B.MP3
MPlayer SVN-r37520 (C) 2000-2015 MPlayer Team

Playing SONG59B.MP3.
libavformat version 56.40.101 (external)
Audio only file format detected.
Load subtitles in ./
==
Requested audio codec family [mpg123] (afm=mpg123) not available.
Enable it at compilation.
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
libavcodec version 56.60.100 (external)
AUDIO: 44100 Hz, 2 ch, floatle, 256.0 kbit/9.07% (ratio: 32003->352800)
Selected audio codec: [ffmp3float] afm: ffmpeg (FFmpeg MPEG layer-3 audio)
==
AO: [sndio] 44100Hz 2ch s32le (4 bytes per sample)
Video: no video
Starting playback...
A:   0.1 (00.1) of 225.0 (03:45.0)  0.4%
Audio device got stuck!
A:   0.4 (00.4) of 225.0 (03:45.0)  0.5%
Audio device got stuck!
A:   0.7 (00.6) of 225.0 (03:45.0)  0.6%
Audio device got stuck!
A:   1.0 (00.9) of 225.0 (03:45.0)  0.6%
Audio device got stuck!
A:   1.2 (01.2) of 225.0 (03:45.0)  0.6%
Audio device got stuck!
A:   1.5 (01.5) of 225.0 (03:45.0)  0.6%
Audio device got stuck!
A:   1.8 (01.8) of 225.0 (03:45.0)  0.6%
Audio device got stuck!
A:   2.1 (02.0) of 225.0 (03:45.0)  0.6%
Audio device got stuck!
A:   2.4 (02.3) of 225.0 (03:45.0)  0.7%
Audio device got stuck!
A:   2.6 (02.6) of 225.0 (03:45.0)  0.7%
Audio device got stuck!
A:   2.6 (02.6) of 225.0 (03:45.0)  0.7%

Exiting... (Quit)


dmesg:

OpenBSD 5.9 (GENERIC.MP) #8: Sun Jun 19 15:20:19 AEST 2016
alex@thecount:/usr/src/sys/arch/amd64/compile/GENERIC.MP
RTC BIOS diagnostic error 80
real mem = 8469381120 (8077MB)
avail mem = 8208502784 (7828MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.7 @ 0xccbfd000 (65 entries)
bios0: vendor LENOVO version "N14ET35W (1.13 )" date 04/07/2016
bios0: LENOVO 20BSCTO1WW
acpi0 at bios0: rev 2
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP ASF! HPET ECDT APIC MCFG SSDT SSDT SSDT SSDT SSDT SSDT
SSDT SSDT SSDT SSDT PCCT SSDT UEFI MSDM BATB FPDT UEFI BGRT
acpi0: wakeup devices LID_(S4) SLPB(S3) IGBE(S4) EXP2(S4) XHCI(S3) EHC1(S3)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpihpet0 at acpi0: 14318179 Hz
acpiec0 at acpi0
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Core(TM) i7-5500U CPU @ 2.40GHz, 798.30 MHz
cpu0:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUS
H,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX
,EST,TM2,SSSE3,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEA
DLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,LONG,LAHF,ABM,3DNOWP,PERF,ITSC,FS
GSBASE,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID,RDSEED,ADX,SMAP,PT,SENSOR,ARAT
cpu0: 256KB 64b/line 8-way L2 cache
cpu0: smt 0, core 0, package 0
mtrr: Pentium Pro MTRR support, 10 var ranges, 88 fixed ranges
cpu0: apic clock running at 99MHz
cpu0: mwait min=64, max=64, C-substates=0.2.1.2.4.1.1.1, IBE
cpu1 at mainbus0: apid 1 (application processor)
cpu1: Intel(R) Core(TM) i7-5500U CPU @ 2.40GHz, 798.15 MHz
cpu1:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUS
H,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX
,EST,TM2,SSSE3,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEA
DLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,LONG,LAHF,ABM,3DNOWP,PERF,ITSC,FS
GSBASE,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID,RDSEED,ADX,SMAP,PTcpu1: failed to
identify
,SENSORcpu2 at mainbus0,ARAT: apid 2 (application processor)

cpu2: Intel(R) Core(TM) i7-5500U CPU @ 2.40GHz, 798.15 MHz
cpu2:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUS
H,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX
,EST,TM2,SSSE3,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEA
DLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,LONG,LAHF,ABM,3DNOWP,PERF,ITSCcpu
1: 256KB 64b/line 8-way L2 cache
cpu2: failed to identify
cpu1: smt 1, core 0, package 0
cpu3 at mainbus0,FSGSBASE,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID,RDSEED,ADX,SMAP,PT:
apid 3 (application processor)
,SENSOR,ARAT
cpu3: Intel(R) Core(TM) i7-5500U CPU @ 2.40GHz, 798.15 MHz
cpu3:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUS
H,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX
,EST,TM2,SSSE3,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEA
DLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,LONG,LAHF,ABM,3DNOWPcpu2: 256KB
64b/line 8-way L2 cache
,PERF,ITSCcpu2: smt 0, core 1, package 0

Re: Audio problems with OpenBSD-current/amd64 on Acer C720p Chromebook

2015-07-31 Thread lists
  Sorry for wasting yout time.

there is still stutter on disk activity on mp amd64 which is mostly in
media players depending on gtk libs, it is embarrassing to say the
least.



Re: Audio problems with OpenBSD-current/amd64 on Acer C720p Chromebook

2015-07-31 Thread Alexandre Ratchov
On Fri, Jul 31, 2015 at 03:05:40AM +0200, Alexander Shendi wrote:
 Hi,
 
 after rebooting the GENERIC.MP kernel supplied with the 5.8 snapshot I had 
 been using previously everything works fine.
 
 I don't actually know why -- I'll assume it was a hardware glitch.
 
 Sorry for wasting yout time.
 

no problem :)



Re: Audio problems with OpenBSD-current/amd64 on Acer C720p Chromebook

2015-07-31 Thread Alexandre Ratchov
On Fri, Jul 31, 2015 at 11:53:31AM +0300, li...@wrant.com wrote:
   Sorry for wasting yout time.
 
 there is still stutter on disk activity on mp amd64 which is mostly in
 media players depending on gtk libs, it is embarrassing to say the
 least.

You mean that audio on a mostly idle box, with only a gtk-based
player sutters?

When audio stutters, before playback stops, you could run audioctl
to see the number of errors, to determine whether they are caused
by the player (very few errors or not at all) or by the audio
sub-system.

Before testing, make sure you use the latest kernel, libsndio,
sndiod and audioctl.



Re: Audio problems with OpenBSD-current/amd64 on Acer C720p Chromebook

2015-07-31 Thread Gregor Best
On Fri, Jul 31, 2015 at 11:53:31AM +0300, li...@wrant.com wrote:
 [...]
 there is still stutter on disk activity on mp amd64 which is mostly in
 media players depending on gtk libs, it is embarrassing to say the
 least.
 [...]

I've seen something similar when my cvsync cronjob kicks in. I can live
with that though to be honest.

Your patch didn't apply though, you might want to resend it.

-- 
Gregor Best



Audio problems with OpenBSD-current/amd64 on Acer C720p Chromebook

2015-07-30 Thread Alexander Shendi
Dear list subscribers,
 
I have installed OpenBSD-current on my Acer C720p Chromebook.  
I am using -current because I had problems with X11 with 
the 5.7 release.
 
Audio used to work out of the box on that device with earlier 
versions of -current, but has stopped working in the most recent 
version I have installed (Playback of an MP3-file with either 
VLC or mpg123 produced no sound)
 
$ uname -a
OpenBSD alex-acer-720p.my.domain 5.8 GENERIC.MP#1206 amd64

Excerpt from dmesg follows:
 
[...]
azalia0 at pci0 dev 3 function 0 Intel Core 4G HD Audio rev 0x09: msi
azalia0: No codecs found
[...]
azalia1 at pci0 dev 27 function 0 Intel 8 Series HD Audio rev 0x04: msi
azalia1: codecs: Realtek/0x0283
audio0 at azalia1
[...]

(The entire dmesg can be found at: 
http://www.alexshendi.org/tmp/dmesg-c720p-20150730.txt)

However I had some success in getting sound to work: I added the line:

sndiod_flags='-f /dev/audio1'

to /etc/rc.conf.local

Now playing an MP3-file in VLC works, but I'm not able to adjust the volume
in VLC. Does this have something to do with /dev/audioctl?

I noticed that both /dev/audio and /dev/audioctl are symlinks to 
/dev/audio0 resp. /dev/audioctl0. Sould I change these links 
to point to audio1 and audioctl1? 

Any suggestions will be appreciated. Many thanks in advance.

Best Regards,

Alexander



Re: Audio problems with OpenBSD-current/amd64 on Acer C720p Chromebook

2015-07-30 Thread Alexandre Ratchov
On Thu, Jul 30, 2015 at 09:29:31PM +0200, Alexander Shendi wrote:
 Dear list subscribers,
  
 I have installed OpenBSD-current on my Acer C720p Chromebook.  
 I am using -current because I had problems with X11 with 
 the 5.7 release.
  
 Audio used to work out of the box on that device with earlier 
 versions of -current, but has stopped working in the most recent 
 version I have installed (Playback of an MP3-file with either 
 VLC or mpg123 produced no sound)
  
 $ uname -a
 OpenBSD alex-acer-720p.my.domain 5.8 GENERIC.MP#1206 amd64
 
 Excerpt from dmesg follows:
  
 [...]
 azalia0 at pci0 dev 3 function 0 Intel Core 4G HD Audio rev 0x09: msi
 azalia0: No codecs found
 [...]
 azalia1 at pci0 dev 27 function 0 Intel 8 Series HD Audio rev 0x04: msi
 azalia1: codecs: Realtek/0x0283
 audio0 at azalia1
 [...]
 
 (The entire dmesg can be found at: 
 http://www.alexshendi.org/tmp/dmesg-c720p-20150730.txt)
 
 However I had some success in getting sound to work: I added the line:
 
 sndiod_flags='-f /dev/audio1'
 
 to /etc/rc.conf.local
 

there's no /dev/audio1 according to your dmesg and -f uses another
syntax (see sndio(7) man page)

 Now playing an MP3-file in VLC works, but I'm not able to adjust the volume
 in VLC. Does this have something to do with /dev/audioctl?
 
 I noticed that both /dev/audio and /dev/audioctl are symlinks to 
 /dev/audio0 resp. /dev/audioctl0. Sould I change these links 
 to point to audio1 and audioctl1? 

The symlinks are only used by audioctl and mixerctl utilities, no
need to change them.

 
 Any suggestions will be appreciated. Many thanks in advance.

could you do the following: build  install a new kernel with these
options defined.

option AUDIO_DEBUG
option AZALIA_DEBUG

Then, boot it, kill sndiod, and start it in a terminal with:

sndiod -dd

and in another terminal, play a .mp3 with mpg123 (or whatever you
use) and see what errors sndiod displays and what dmesg says. Let
me know if you have questions and/or you need help for the setup.

thanks



Re: Audio problems with OpenBSD-current/amd64 on Acer C720p Chromebook

2015-07-30 Thread Alexander Shendi
Gesendet: Donnerstag, 30. Juli 2015 um 23:27 Uhr
Von: Alexandre Ratchov a...@caoua.org
An: Alexander Shendi alexander.she...@web.de
Cc: misc@openbsd.org
Betreff: Re: Audio problems with OpenBSD-current/amd64 on Acer C720p Chromebook
[snip]

 could you do the following: build  install a new kernel with these
 options defined.
 
 option AUDIO_DEBUG
 option AZALIA_DEBUG
 
 Then, boot it, kill sndiod, and start it in a terminal with:
 
 sndiod -dd
 
 and in another terminal, play a .mp3 with mpg123 (or whatever you
 use) and see what errors sndiod displays and what dmesg says. Let
 me know if you have questions and/or you need help for the setup.
 
 thanks

I did as you requested. Namely:

* Got the OpenBSD-current sources via AnonCVS.
* Built a custom kernel with the options above 
* Removed the -f /dev/audio1 flags from /etc/rc.conf.local
* Booted the new, custom kernel
* Killed sndiod via pkill sndiod
* Restarted it in a terminal as requested above
* Played an MP3-file in VLC (no sound output observed) for a 
  few seconds.

Please find the combined terminal output and the new dmesg at:

http://www.alexshendi.org/tmp/dmesg-acer-c720p-20150731.txt

However I can't make much sense of the output as I don't
know enough about the audio subsystem. Could you please 
have a look? Please let me know if I can run further test,
or if you need further info.

Many thanks for your help.

Best Regards,

Alexander



Re: Audio problems with OpenBSD-current/amd64 on Acer C720p Chromebook

2015-07-30 Thread Alexander Shendi
Hi,

after rebooting the GENERIC.MP kernel supplied with the 5.8 snapshot I had 
been using previously everything works fine.

I don't actually know why -- I'll assume it was a hardware glitch.

Sorry for wasting yout time.

Best Regards,

Alexander



Re: Audio problems on OpenBSD 5.7

2015-05-16 Thread Bryan Pimmler
On Thu, May 14, 2015 at 5:49 AM, Alexandre Ratchov a...@caoua.org wrote:
 Something is wrong here, could you build a kernel with the
 AUDIO_DEBUG and AZALIA_DEBUG options, reboot, run the same command,
 and send me the resulting dmesg, please?

Here you are:
$ cat /dev/audio0  /tmp/foo
cat: /dev/audio0: Device not configured

OpenBSD 5.7 (GENERIC.MP.audio_debug) #0: Sat May 16 22:15:54 EDT 2015
br...@home.my.domain:/usr/src/sys/arch/amd64/compile/GENERIC.MP.audio_debug
real mem = 8471965696 (8079MB)
avail mem = 8242503680 (7860MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.8 @ 0xec3b0 (78 entries)
bios0: vendor American Megatrends Inc. version F5 date 06/23/2014
bios0: GIGABYTE M4HM87P-00
acpi0 at bios0: rev 2
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP APIC FPDT LPIT SSDT SSDT SSDT SSDT MCFG HPET
SSDT SSDT ASF! DMAR
acpi0: wakeup devices PXSX(S4) RP01(S4) PXSX(S4) RP02(S4) PXSX(S4)
RP03(S4) PXSX(S4) RP04(S4) PXSX(S4) RP05(S4) PXSX(S4) RP06(S4)
PXSX(S4) RP07(S4) PXSX(S4) RP08(S4) [...]
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Core(TM) i7-4770R CPU @ 3.20GHz, 3507.37 MHz
cpu0: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,LONG,LAHF,ABM,PERF,ITSC,FSGSBASE,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID
cpu0: 256KB 64b/line 8-way L2 cache
cpu0: smt 0, core 0, package 0
mtrr: Pentium Pro MTRR support, 10 var ranges, 88 fixed ranges
cpu0: apic clock running at 99MHz
cpu0: mwait min=64, max=64, C-substates=0.2.1.2.0, IBE
cpu1 at mainbus0: apid 2 (application processor)
cpu1: Intel(R) Core(TM) i7-4770R CPU @ 3.20GHz, 3492.39 MHz
cpu1: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,LONG,LAHF,ABM,PERF,ITSC,FSGSBASE,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID
cpu1: 256KB 64b/line 8-way L2 cache
cpu1: smt 0, core 1, package 0
cpu2 at mainbus0: apid 4 (application processor)
cpu2: Intel(R) Core(TM) i7-4770R CPU @ 3.20GHz, 3491.91 MHz
cpu2: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,LONG,LAHF,ABM,PERF,ITSC,FSGSBASE,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID
cpu2: 256KB 64b/line 8-way L2 cache
cpu2: smt 0, core 2, package 0
cpu3 at mainbus0: apid 6 (application processor)
cpu3: Intel(R) Core(TM) i7-4770R CPU @ 3.20GHz, 3492.62 MHz
cpu3: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,LONG,LAHF,ABM,PERF,ITSC,FSGSBASE,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID
cpu3: 256KB 64b/line 8-way L2 cache
cpu3: smt 0, core 3, package 0
cpu4 at mainbus0: apid 1 (application processor)
cpu4: Intel(R) Core(TM) i7-4770R CPU @ 3.20GHz, 3491.91 MHz
cpu4: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,LONG,LAHF,ABM,PERF,ITSC,FSGSBASE,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID
cpu4: 256KB 64b/line 8-way L2 cache
cpu4: smt 1, core 0, package 0
cpu5 at mainbus0: apid 3 (application processor)
cpu5: Intel(R) Core(TM) i7-4770R CPU @ 3.20GHz, 3491.91 MHz
cpu5: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,LONG,LAHF,ABM,PERF,ITSC,FSGSBASE,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID
cpu5: 256KB 64b/line 8-way L2 cache
cpu5: smt 1, core 1, package 0
cpu6 at mainbus0: apid 5 (application processor)
cpu6: Intel(R) Core(TM) i7-4770R CPU @ 3.20GHz, 3491.91 MHz
cpu6: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,LONG,LAHF,ABM,PERF,ITSC,FSGSBASE,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID
cpu6: 256KB 64b/line 8-way L2 cache
cpu6: smt 1, core 2, package 0
cpu7 at mainbus0: apid 7 

Re: Audio problems on OpenBSD 5.7

2015-05-15 Thread Bryan Pimmler
On Thu, May 14, 2015 at 2:39 PM, Alexandre Ratchov a...@caoua.org wrote:
 Clearly a driver problem. Try using -mplay option, until this
 gets fixed,

Yes, adding -mplay to sndiod appears to fix the problem entirely (i.e.
now several programs can play audio simultaneously). How come? The
option disables recording, right?

 and if you've some time possibly help debugging this!

Sure. I'll try to build the kernel with the debugging options you
suggested earlier, if that helps.

Thanks!



Re: Audio problems on OpenBSD 5.7

2015-05-15 Thread Alexandre Ratchov
On Fri, May 15, 2015 at 09:22:04AM -0400, Bryan Pimmler wrote:
 On Thu, May 14, 2015 at 2:39 PM, Alexandre Ratchov a...@caoua.org wrote:
  Clearly a driver problem. Try using -mplay option, until this
  gets fixed,
 
 Yes, adding -mplay to sndiod appears to fix the problem entirely (i.e.
 now several programs can play audio simultaneously). How come? The
 option disables recording, right?

yes, exactly.



Re: Audio problems on OpenBSD 5.7

2015-05-15 Thread Stan Gammons

On 05/15/15 13:34, Mihai Popescu wrote:

For thread subject's sake, just stay on FreeBSD


No worries, I will.

Thanks for your help with resolving the audio problem.



Re: Audio problems on OpenBSD 5.7

2015-05-15 Thread Mihai Popescu
Stan Gammons wrote:
 Sounds similar to the problems I had.  I was using KDE and the
 notifications type sounds worked but no sound card was recognized by
 Kmix.  I gave up trying to figure out what the problem was and went back
 to FreeBSD. FreeBSD recognizes the sound chip as a Realtek ALC887 and
 the audio playback device under the music category is OSS.

For thread subject's sake, just stay on FreeBSD and don't polute the
discussion with your stupid unrelated problems, please. I hate to see
somebody unrelated to subject jumping in the middle of an interesting
thread.
As far as I know Alexandre Ratchov is a main developer on OpenBSD's
sound infrastructure, so I preffer to read his remarks not yours. Not
to mention that you didn't seem to report your problem back then.

Thank you.



Re: Audio problems on OpenBSD 5.7

2015-05-14 Thread Bryan Pimmler
On Thu, May 14, 2015 at 2:55 AM, Jan Stary h...@stare.cz wrote:
 On May 14 08:51:02, h...@stare.cz wrote:
 That sounds like a sndiod problem then.
 Please launch sndiod again in a script(1)
 as sndiod -d -d -d, play an audio file
 (with aucat or play or whatever) and post the log.

# sndiod -d -d -d
snd0 pst=cfg.default: rec=0:1 play=0:1 vol=23170 dup
listen(/tmp/aucat/aucat0|ini): created

From another shell:
$ aucat -i test.wav
default: audio device gone, stopping
(aucat process exits)

The rest of the output from sndioid -d -d -d:
sock(sock|ini): created
sock,rmsg,widl: AUTH message
sock,rmsg,widl: HELLO message
sock,rmsg,widl: hello from aucat, mode = 1, ver 7
sock,rmsg,widl: using snd0 pst=cfg.default, mode = 1
aucat0: overwritten slot 0
snd0 pst=cfg: device requested
sio(rsnd/0|ini): created
snd0 pst=ini: 48000Hz, s16le, play 0:1, rec 0:1, 9 blocks of 960 frames
aucat0 vol=127,pst=ini,mmc=off,rmsg,widl: SETPAR message
aucat0 vol=127,pst=ini,mmc=off,rmsg,widl: playback channels 0:0 - 0:1
aucat0 vol=127,pst=ini,mmc=off,rmsg,widl: 2880 frame buffer
aucat0 vol=127,pst=ini,mmc=off,rmsg,widl: GETPAR message
aucat0 vol=127,pst=ini,mmc=off,rmsg,widl: GETPAR message
aucat0 vol=127,pst=ini,mmc=off,rmsg,widl: START message
aucat0 vol=127,pst=ini,mmc=off: playing s16le - s16le
aucat0 vol=127,pst=ini,mmc=off: allocated 2880/11520 fr buffers
aucat0 vol=127,pst=sta,mmc=off: 48000Hz, s16le, play 0:0, 3 blocks of 960 frames
aucat0 vol=127,pst=sta,mmc=off,rmsg,widl: building SETVOL message, vol = 127
snd0 pst=ini: device started
snd0 pst=run: started
aucat0 vol=127,pst=run,mmc=off: attached at -8640, delta = 0
cmap: nch = 1, ostart = 0, onext = 1, istart = 0, inext = 0
aucat0 vol=127,pst=run,mmc=off: set weight: 23170/23170
snd0 pst=run: watchdog timeout
snd0 pst=run: closing
aucat0 vol=127,pst=run,mmc=off,rmsg,widl: exit
aucat0 vol=127,pst=run,mmc=off,rmsg,widl: closing
aucat0 vol=127,pst=run,mmc=off: stopping
snd0 pst=cfg: device released
sock(sock|zom): destroyed
snd0 pst=cfg: closed
sio(rsnd/0|zom): destroyed

Perhaps the watchdog timeout can give a clue.

I also noticed the following: When running sndiod without any -d
flag, not only does the process go into the background (as expected),
but also the behaviour of aucat -i test.wav changes. Instead of
giving an error and exiting (as shown above) aucat just hangs without
any output.

Thanks for your help.



Re: Audio problems on OpenBSD 5.7

2015-05-14 Thread Alexandre Ratchov
On Thu, May 14, 2015 at 06:20:07AM -0500, Stan Gammons wrote:

 Ok. Let's start over. When the system starts it doesn't automatically start
 KDE. When I login I'm able to get the sound to play noise with cat
 /dev/urandom  /dev/audio.  Audioctl and mixerctl both display the various
 settings when I run them. When I run startkde4, the sound icon is in the
 lower right on the screen, the volume control slider is present and the
 notification sounds play. But, there is no audio device shown in kmix and
 when I click on the drop down to select the audio device, it's empty. As I
 said before, I don't have this problem with FreeBSD. So, if the azalia
 driver is the same, why do I have this problem on OpenBSD?

FWIW, neither the azalia driver, nor the audio API are the same in
freebsd and openbsd. If openbsd native tools work, but kmix
doesn't, most probably openbsd-specific bits in kmix are incomplete
(kmix itself or whatever audio framework it uses).

If you don't have multiple audio cards and you don't need to switch
between them, you don't have to worry, just ignore kmix. Audio is
supposed to somewhat work by default in audio programs fully ported
to openbsd.



Re: Audio problems on OpenBSD 5.7

2015-05-14 Thread Alexandre Ratchov
On Thu, May 14, 2015 at 08:38:58AM -0400, Bryan Pimmler wrote:
 On Thu, May 14, 2015 at 2:55 AM, Jan Stary h...@stare.cz wrote:
  On May 14 08:51:02, h...@stare.cz wrote:
  That sounds like a sndiod problem then.
  Please launch sndiod again in a script(1)
  as sndiod -d -d -d, play an audio file
  (with aucat or play or whatever) and post the log.
 
 # sndiod -d -d -d
 snd0 pst=cfg.default: rec=0:1 play=0:1 vol=23170 dup
 listen(/tmp/aucat/aucat0|ini): created
 
 From another shell:
 $ aucat -i test.wav
 default: audio device gone, stopping
 (aucat process exits)
 
 The rest of the output from sndioid -d -d -d:
 sock(sock|ini): created
 sock,rmsg,widl: AUTH message
 sock,rmsg,widl: HELLO message
 sock,rmsg,widl: hello from aucat, mode = 1, ver 7
 sock,rmsg,widl: using snd0 pst=cfg.default, mode = 1
 aucat0: overwritten slot 0
 snd0 pst=cfg: device requested
 sio(rsnd/0|ini): created
 snd0 pst=ini: 48000Hz, s16le, play 0:1, rec 0:1, 9 blocks of 960 frames
 aucat0 vol=127,pst=ini,mmc=off,rmsg,widl: SETPAR message
 aucat0 vol=127,pst=ini,mmc=off,rmsg,widl: playback channels 0:0 - 0:1
 aucat0 vol=127,pst=ini,mmc=off,rmsg,widl: 2880 frame buffer
 aucat0 vol=127,pst=ini,mmc=off,rmsg,widl: GETPAR message
 aucat0 vol=127,pst=ini,mmc=off,rmsg,widl: GETPAR message
 aucat0 vol=127,pst=ini,mmc=off,rmsg,widl: START message
 aucat0 vol=127,pst=ini,mmc=off: playing s16le - s16le
 aucat0 vol=127,pst=ini,mmc=off: allocated 2880/11520 fr buffers
 aucat0 vol=127,pst=sta,mmc=off: 48000Hz, s16le, play 0:0, 3 blocks of 960 
 frames
 aucat0 vol=127,pst=sta,mmc=off,rmsg,widl: building SETVOL message, vol = 127
 snd0 pst=ini: device started
 snd0 pst=run: started
 aucat0 vol=127,pst=run,mmc=off: attached at -8640, delta = 0
 cmap: nch = 1, ostart = 0, onext = 1, istart = 0, inext = 0
 aucat0 vol=127,pst=run,mmc=off: set weight: 23170/23170
 snd0 pst=run: watchdog timeout
 snd0 pst=run: closing
 aucat0 vol=127,pst=run,mmc=off,rmsg,widl: exit
 aucat0 vol=127,pst=run,mmc=off,rmsg,widl: closing
 aucat0 vol=127,pst=run,mmc=off: stopping
 snd0 pst=cfg: device released
 sock(sock|zom): destroyed
 snd0 pst=cfg: closed
 sio(rsnd/0|zom): destroyed
 
 Perhaps the watchdog timeout can give a clue.

Clearly a driver problem. Try using -mplay option, until this
gets fixed, and if you've some time possibly help debugging this!



Re: Audio problems on OpenBSD 5.7

2015-05-14 Thread Stan Gammons

On 05/14/15 13:35, Alexandre Ratchov wrote:

On Thu, May 14, 2015 at 06:20:07AM -0500, Stan Gammons wrote:

Ok. Let's start over. When the system starts it doesn't automatically start
KDE. When I login I'm able to get the sound to play noise with cat
/dev/urandom  /dev/audio.  Audioctl and mixerctl both display the various
settings when I run them. When I run startkde4, the sound icon is in the
lower right on the screen, the volume control slider is present and the
notification sounds play. But, there is no audio device shown in kmix and
when I click on the drop down to select the audio device, it's empty. As I
said before, I don't have this problem with FreeBSD. So, if the azalia
driver is the same, why do I have this problem on OpenBSD?

FWIW, neither the azalia driver, nor the audio API are the same in
freebsd and openbsd. If openbsd native tools work, but kmix
doesn't, most probably openbsd-specific bits in kmix are incomplete
(kmix itself or whatever audio framework it uses).

If you don't have multiple audio cards and you don't need to switch
between them, you don't have to worry, just ignore kmix. Audio is
supposed to somewhat work by default in audio programs fully ported
to openbsd.


Ignore kmix?  You're kidding, right?   I need to be able to just the 
microphone input level, so I need a mixer.  I guess one could adjust it 
manually with mixerctl. Thanks, but no thanks.



Stan



Re: Audio problems on OpenBSD 5.7

2015-05-14 Thread Stan Gammons
On May 14, 2015 1:52 AM, Jan Stary h...@stare.cz wrote:

 On May 13 20:08:45, bryan.pimm...@gmail.com wrote:
  In fact, after killing sndiod things work fine, *except* for that
  afterwards only one program can play sound simultaneously.

 That sounds like a sndiod problem then.
 Please launch sndiod again in a script(1)
 as sndiod -d -d -d, play an audio file
 (with aucat or play or whatever) and post the log.

 On May 13 19:53:20, sg063...@gmail.com wrote:
  Same here.
  The mixer doesn't recognize the sound chip is the problem I have.

 Depending on what exactly you mean by that,
 that's probably not the same problem.

 Jan


Ok. Let's start over. When the system starts it doesn't automatically start
KDE. When I login I'm able to get the sound to play noise with cat
/dev/urandom  /dev/audio.  Audioctl and mixerctl both display the various
settings when I run them. When I run startkde4, the sound icon is in the
lower right on the screen, the volume control slider is present and the
notification sounds play. But, there is no audio device shown in kmix and
when I click on the drop down to select the audio device, it's empty. As I
said before, I don't have this problem with FreeBSD. So, if the azalia
driver is the same, why do I have this problem on OpenBSD?

Stan



Re: Audio problems on OpenBSD 5.7

2015-05-14 Thread Jan Stary
On May 13 20:08:45, bryan.pimm...@gmail.com wrote:
 In fact, after killing sndiod things work fine, *except* for that
 afterwards only one program can play sound simultaneously.

That sounds like a sndiod problem then.
Please launch sndiod again in a script(1)
as sndiod -d -d -d, play an audio file
(with aucat or play or whatever) and post the log.

On May 13 19:53:20, sg063...@gmail.com wrote:
 Same here.
 The mixer doesn't recognize the sound chip is the problem I have.

Depending on what exactly you mean by that,
that's probably not the same problem.

Jan

 Audioctl
 and mixerctl both output  the various settings when run in a terminal from
 KDE, but no sound device is listed in the setup dialog.



Re: Audio problems on OpenBSD 5.7

2015-05-14 Thread Jan Stary
On May 14 08:51:02, h...@stare.cz wrote:
 On May 13 20:08:45, bryan.pimm...@gmail.com wrote:
  In fact, after killing sndiod things work fine, *except* for that
  afterwards only one program can play sound simultaneously.
 
 That sounds like a sndiod problem then.
 Please launch sndiod again in a script(1)
 as sndiod -d -d -d, play an audio file
 (with aucat or play or whatever) and post the log.

For example, this is what sndiod -d -d -d says
on a current/amd64 when mplayer play a song.
See wherr yours differs.


Script started on Thu May 14 08:53:25 2015
root@box:hans$ sndi
root@box:hans$ sndiod  
 
root@box:hans$ sndiod  -d -d -d 
snd0 pst=cfg.default: rec=0:1 play=0:1 vol=23170 dup
listen(/tmp/aucat/aucat0|ini): created

sock(sock|ini): created
sock,rmsg,widl: AUTH message
sock,rmsg,widl: HELLO message
sock,rmsg,widl: hello from mplayer, mode = 1, ver 7
sock,rmsg,widl: using snd0 pst=cfg.default, mode = 1
mplayer0: overwritten slot 0
snd0 pst=cfg: device requested
sio(rsnd/0|ini): created
snd0 pst=ini: 48000Hz, s16le, play 0:1, rec 0:1, 9 blocks of 960 frames
mplayer0 vol=127,pst=ini,mmc=off,rmsg,widl: SETPAR message
mplayer0 vol=127,pst=ini,mmc=off,rmsg,widl: playback channels 0:1 - 0:1
mplayer0 vol=127,pst=ini,mmc=off,rmsg,widl: 44100Hz sample rate, 882 frame 
blocks
mplayer0 vol=127,pst=ini,mmc=off,rmsg,widl: 11466 frame buffer
mplayer0 vol=127,pst=ini,mmc=off,rmsg,widl: GETPAR message
mplayer0 vol=127,pst=ini,mmc=off,rmsg,widl: GETPAR message
mplayer0 vol=127,pst=ini,mmc=off,rmsg,widl: START message
mplayer0 vol=127,pst=ini,mmc=off: playing s16le - s16le
mplayer0 vol=127,pst=ini,mmc=off: allocated 11466/19404 fr buffers
mplayer0 vol=127,pst=sta,mmc=off: 44100Hz, s16le, play 0:1, 13 blocks of 882 
frames
mplayer0 vol=127,pst=sta,mmc=off,rmsg,widl: building SETVOL message, vol = 127
snd0 pst=ini: device started
snd0 pst=run: started
mplayer0 vol=127,pst=run,mmc=off: attached at -7938, delta = 0
cmap: nch = 2, ostart = 0, onext = 0, istart = 0, inext = 0
resamp: 882/960
mplayer0 vol=127,pst=run,mmc=off: set weight: 23170/23170

mplayer0 vol=127,pst=run,mmc=off,rmsg,widl: STOP message
mplayer0 vol=127,pst=run,mmc=off: stopping
mplayer0 vol=127,pst=ini,mmc=off,rmsg,widl: stopped
mplayer0 vol=127,pst=ini,mmc=off,rmsg,widl: building STOP message
mplayer0 vol=127,pst=ini,mmc=off,rmsg,widl: BYE message
mplayer0 vol=127,pst=ini,mmc=off,rmsg,widl: closing
snd0 pst=run: device released
sock(sock|zom): destroyed
snd0 pst=run: device stopped
snd0 pst=run: stopped, load avg = 49467 / 7294210
snd0 pst=ini: closing
snd0 pst=cfg: closed
sio(rsnd/0|zom): destroyed
^Clisten(/tmp/aucat/aucat0|zom): destroyed
snd0 pst=cfg: draining
nothing to do...
snd0 pst=cfg: deleting
root@box:hans$ ^D

Script done on Thu May 14 08:53:42 2015



Re: Audio problems on OpenBSD 5.7

2015-05-14 Thread Alexandre Ratchov
On Wed, May 13, 2015 at 08:41:45AM -0400, Bryan Pimmler wrote:
 On Wed, May 13, 2015 at 7:27 AM, Alexandre Ratchov a...@caoua.org wrote:
  Does cat /dev/audio0 /tmp/foo works (produces non-zero length
  file)?
 
 No. However, the type of error depends on what state the system is in
 (before or after aucat has been tried).
 
 Immediately after reboot:
 
 $ cat /dev/audio0  /tmp/foo
 cat: /dev/audio0: Device not configured
 

Something is wrong here, could you build a kernel with the
AUDIO_DEBUG and AZALIA_DEBUG options, reboot, run the same command,
and send me the resulting dmesg, please? Drop me a e-mail if you
need more details on how to proceed.

Until this gets fixed, you could add:

sndiod_flags=-mplay

in /etc/rc.conf.local to get sound working (play-only).

 $ cat /dev/urandom  /dev/audio # Results in the expected noise played
 on the speakers.
 ^C
 
 $ aucat -i test.wav # No sound, it just hangs.
 ^C^C
 
 After the 'aucat' invocation the system appears to be in a different state:
 
 $ cat /dev/audio0 /tmp/foo # Different error message:
 cat: /dev/audio0: Device busy
 
 $ cat /dev/urandom  /dev/audio # No noise this time.
 -bash: /dev/audio: Device busy
 

this is normal, as sndiod is stuck somewhere because of the
device problem.

thanks.

-- Alexandre



Re: Audio problems on OpenBSD 5.7

2015-05-13 Thread Alexandre Ratchov
On Wed, May 13, 2015 at 07:19:31AM -0400, Bryan Pimmler wrote:
 On Wed, May 13, 2015 at 2:08 AM, Alexandre Ratchov a...@caoua.org wrote:
  Do you have a disable microphone or disable recording setting
  in the BIOS SETUP? If so, make sure that the
  microphone/recording/whatever is enabled.
 
 The audio device is enabled in the BIOS. Note that cat /dev/urandom 
 /dev/audio initially works and that system bell always works (if the
 device was disabled I suppose they wouldn't).

I was talking about the recording end; by default we use both play
and record if the device supports both.

But, with certain BIOSes the recording end is disabled in a way the
azalia driver keeps detecting recording capability, in turn it
attempts to use it and fails.

Does cat /dev/audio0 /tmp/foo works (produces non-zero length
file)?

Do you have a disable the microphone feature in the BIOS? maybe
in some security section?



Re: Audio problems on OpenBSD 5.7

2015-05-13 Thread Bryan Pimmler
On Wed, May 13, 2015 at 2:08 AM, Alexandre Ratchov a...@caoua.org wrote:
 Do you have a disable microphone or disable recording setting
 in the BIOS SETUP? If so, make sure that the
 microphone/recording/whatever is enabled.

The audio device is enabled in the BIOS. Note that cat /dev/urandom 
/dev/audio initially works and that system bell always works (if the
device was disabled I suppose they wouldn't).



Re: Audio problems on OpenBSD 5.7

2015-05-13 Thread Bryan Pimmler
On Wed, May 13, 2015 at 7:27 AM, Alexandre Ratchov a...@caoua.org wrote:
 Does cat /dev/audio0 /tmp/foo works (produces non-zero length
 file)?

No. However, the type of error depends on what state the system is in
(before or after aucat has been tried).

Immediately after reboot:

$ cat /dev/audio0  /tmp/foo
cat: /dev/audio0: Device not configured

$ cat /dev/urandom  /dev/audio # Results in the expected noise played
on the speakers.
^C

$ aucat -i test.wav # No sound, it just hangs.
^C^C

After the 'aucat' invocation the system appears to be in a different state:

$ cat /dev/audio0 /tmp/foo # Different error message:
cat: /dev/audio0: Device busy

$ cat /dev/urandom  /dev/audio # No noise this time.
-bash: /dev/audio: Device busy

 $ fuser /dev/audio*
/dev/audioctl2:
/dev/audioctl1:
/dev/audioctl0:
/dev/audioctl:
/dev/audio2:
/dev/audio1:
/dev/audio0: 31156
/dev/audio: 31156

$ ps ax | grep 31156
31156 ??  Is 0:00.01 /usr/bin/sndiod
18289 p4  R+  0:00.00 grep 31156

This sequence is perfectly reproducible (after rebooting).

 Do you have a disable the microphone feature in the BIOS? maybe
 in some security section?

There is only one setting to enable/disable the audio device and it is
enabled. (I searched the menus exhaustively, including the security
section.)

In case it matters, the machine is a GB-BXi7-4770R.



Re: Audio problems on OpenBSD 5.7

2015-05-13 Thread Bryan Pimmler
On Wed, May 13, 2015 at 7:19 PM, L.R. D.S. arrowscr...@mail.com wrote:

 I had same problem on old builds of 5.7 . I reinstalled and it works...

Strange. In fact I had installed OpenBSD on a different box and then
moved the hard drive to this one. But this shouldn't cause any
problems of this sort, should it?

 You are checking others audio sources? Maybe your wav are corrupted, try some 
 flac
 and run flac123 from packages.

Yes, I tried xmms and rhythmbox as well with identical results.

 Your output is 0db? Set it using outputs.master=255,255 on 
 /etc/mixerctl.conf
 The faq have a section about this, your tried?
 http://www.openbsd.org/faq/faq13.html#audioprob

Yes, I tried all that before posting here.

 Also your report:
 After the 'aucat' invocation the system appears to be in a different state:
 $ cat /dev/audio0 /tmp/foo # Different error message:
 cat: /dev/audio0: Device busy
 $ cat /dev/urandom  /dev/audio # No noise this time.
 -bash: /dev/audio: Device busy

 Seems the process keep running, you kill it before these commands?

Yes. The one holding on to /dev/audio is sndiod. After killing it I
can make noise with cat /dev/urandom  /dev/audio again.



Re: Audio problems on OpenBSD 5.7

2015-05-13 Thread L.R. D.S.
I had same problem on old builds of 5.7 . I reinstalled and it works...
You are checking others audio sources? Maybe your wav are corrupted, try some 
flac 
and run flac123 from packages.
Your output is 0db? Set it using outputs.master=255,255 on /etc/mixerctl.conf
The faq have a section about this, your tried? 
http://www.openbsd.org/faq/faq13.html#audioprob

Also your report:
After the 'aucat' invocation the system appears to be in a different state:
$ cat /dev/audio0 /tmp/foo # Different error message:
cat: /dev/audio0: Device busy
$ cat /dev/urandom  /dev/audio # No noise this time.
-bash: /dev/audio: Device busy

Seems the process keep running, you kill it before these commands?



Re: Audio problems on OpenBSD 5.7

2015-05-13 Thread Bryan Pimmler
In fact, after killing sndiod things work fine, *except* for that
afterwards only one program can play sound simultaneously.



Re: Audio problems on OpenBSD 5.7

2015-05-13 Thread Stan Gammons
On May 13, 2015 7:09 PM, Bryan Pimmler bryan.pimm...@gmail.com wrote:

 In fact, after killing sndiod things work fine, *except* for that
 afterwards only one program can play sound simultaneously.


Same here.

The mixer doesn't recognize the sound chip is the problem I have.  Audioctl
and mixerctl both output  the various settings when run in a terminal from
KDE, but no sound device is listed in the setup dialog.

Stan



Re: Audio problems on OpenBSD 5.7

2015-05-13 Thread Maurits Fennis
 I gave up trying to figure out what the problem was and went back
 to FreeBSD.

Great advice. If that also doesn't work he could get rid of his system and
pick up guttural singing.

-- 
Maurits Fennis



Re: Audio problems on OpenBSD 5.7

2015-05-13 Thread Alexandre Ratchov
On Tue, May 12, 2015 at 10:22:17PM -0400, Bryan Pimmler wrote:
 Hello!
 
 I can't seem to get audio to work on OpenBSD 5.7:
 
 After booting, cat /dev/urandom  /dev/audio makes the expected noise.
 
 But any sort of audio player (be it aucat, xmms, or rhythmbox) doesn't
 work. For example aucat -i test.wav just hangs without playing
 anything. Furthermore, it seems to put the system in a different
 state, even after killed. Now trying cat /dev/urandom  /dev/audio
 again just fails with /dev/audio: Device busy. On the other hand,
 the system bell still works: echo -ne '\007' gives a beep on the
 speaker.
 

hi,

Do you have a disable microphone or disable recording setting
in the BIOS SETUP? If so, make sure that the
microphone/recording/whatever is enabled.

-- Alexandre



Audio problems on OpenBSD 5.7

2015-05-12 Thread Bryan Pimmler
Hello!

I can't seem to get audio to work on OpenBSD 5.7:

After booting, cat /dev/urandom  /dev/audio makes the expected noise.

But any sort of audio player (be it aucat, xmms, or rhythmbox) doesn't
work. For example aucat -i test.wav just hangs without playing
anything. Furthermore, it seems to put the system in a different
state, even after killed. Now trying cat /dev/urandom  /dev/audio
again just fails with /dev/audio: Device busy. On the other hand,
the system bell still works: echo -ne '\007' gives a beep on the
speaker.

More details below.

Thanks

Bryan


$ audioctl
name=HD-Audio
encodings=slinear_le:16:2:1,slinear_le:20:4:1,slinear_le:24:4:1
properties=full_duplex,independent
hiwat=9
lowat=8
mode=play,record
play.rate=48000
play.channels=2
play.precision=16
play.bps=2
play.msb=1
play.encoding=slinear_le
play.samples=30720
play.pause=0
play.active=1
play.block_size=3840
play.errors=56791680
record.rate=48000
record.channels=2
record.precision=16
record.bps=2
record.msb=1
record.encoding=slinear_le
record.samples=0
record.pause=0
record.active=0
record.block_size=3840
record.errors=0

$ mixerctl
inputs.dac-0:1=174,174
inputs.dac-2:3=126,126
inputs.mix_source=beep
inputs.mix_beep=120,120
inputs.mix2_source=dac-0:1,mix
inputs.mix3_source=dac-2:3,mix
outputs.hp_source=mix2
outputs.hp_mute=off
outputs.hp_boost=off
outputs.hp_eapd=on
outputs.SPDIF_source=dig-dac-0:1
inputs.mix5_source=beep,mix
inputs.mix6_source=beep,mix
outputs.hp_sense=plugged
outputs.master=255,255
outputs.master.mute=off
outputs.master.slaves=dac-0:1,hp
outputs.mode=analog

$ dmesg
OpenBSD 5.7 (GENERIC.MP) #881: Sun Mar  8 11:04:17 MDT 2015
dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 8471965696 (8079MB)
avail mem = 8242524160 (7860MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.8 @ 0xec3b0 (78 entries)
bios0: vendor American Megatrends Inc. version F5 date 06/23/2014
bios0: GIGABYTE M4HM87P-00
acpi0 at bios0: rev 2
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP APIC FPDT LPIT SSDT SSDT SSDT SSDT MCFG HPET
SSDT SSDT ASF! DMAR
acpi0: wakeup devices PXSX(S4) RP01(S4) PXSX(S4) RP02(S4) PXSX(S4)
RP03(S4) PXSX(S4) RP04(S4) PXSX(S4) RP05(S4) PXSX(S4) RP06(S4)
PXSX(S4) RP07(S4) PXSX(S4) RP08(S4) [...]
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Core(TM) i7-4770R CPU @ 3.20GHz, 3591.96 MHz
cpu0: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,FMA3,CX16,xT
PR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,LONG,LAHF,ABM,PERF,ITSC,FSGSBASE,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID
cpu0: 256KB 64b/line 8-way L2 cache
cpu0: smt 0, core 0, package 0
mtrr: Pentium Pro MTRR support, 10 var ranges, 88 fixed ranges
cpu0: apic clock running at 99MHz
cpu0: mwait min=64, max=64, C-substates=0.2.1.2.0, IBE
cpu1 at mainbus0: apid 2 (application processor)
cpu1: Intel(R) Core(TM) i7-4770R CPU @ 3.20GHz, 3588.64 MHz
cpu1: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,FMA3,CX16,xT
PR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,LONG,LAHF,ABM,PERF,ITSC,FSGSBASE,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID
cpu1: 256KB 64b/line 8-way L2 cache
cpu1: smt 0, core 1, package 0
cpu2 at mainbus0: apid 4 (application processor)
cpu2: Intel(R) Core(TM) i7-4770R CPU @ 3.20GHz, 3536.38 MHz
cpu2: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,FMA3,CX16,xT
PR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,LONG,LAHF,ABM,PERF,ITSC,FSGSBASE,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID
cpu2: 256KB 64b/line 8-way L2 cache
cpu2: smt 0, core 2, package 0
cpu3 at mainbus0: apid 6 (application processor)
cpu3: Intel(R) Core(TM) i7-4770R CPU @ 3.20GHz, 3526.16 MHz
cpu3: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,FMA3,CX16,xT
PR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,LONG,LAHF,ABM,PERF,ITSC,FSGSBASE,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID
cpu3: 256KB 64b/line 8-way L2 cache
cpu3: smt 0, core 3, package 0
cpu4 at mainbus0: apid 1 (application processor)
cpu4: Intel(R) Core(TM) i7-4770R CPU @ 3.20GHz, 3546.63 MHz
cpu4: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,FMA3,CX16,xT

Re: Audio problems on OpenBSD 5.7

2015-05-12 Thread Stan Gammons

On 05/12/15 21:22, Bryan Pimmler wrote:

Hello!

I can't seem to get audio to work on OpenBSD 5.7:

After booting, cat /dev/urandom  /dev/audio makes the expected noise.

But any sort of audio player (be it aucat, xmms, or rhythmbox) doesn't
work. For example aucat -i test.wav just hangs without playing
anything. Furthermore, it seems to put the system in a different
state, even after killed. Now trying cat /dev/urandom  /dev/audio
again just fails with /dev/audio: Device busy. On the other hand,
the system bell still works: echo -ne '\007' gives a beep on the
speaker.

More details below.

Thanks

Bryan





Sounds similar to the problems I had.  I was using KDE and the 
notifications type sounds worked but no sound card was recognized by 
Kmix.  I gave up trying to figure out what the problem was and went back 
to FreeBSD. FreeBSD recognizes the sound chip as a Realtek ALC887 and 
the audio playback device under the music category is OSS.



Stan



Radeon 4200 and azalia audio problems

2012-01-28 Thread Scott McEachern
I recently upgraded to the most recent (Jan. 26) snapshot from a system 
built from source on Jan. 24th, with mixed results: (dmesg follows)


- Jan. 24th: using the xf86-video-ati-6.14.3.tar.gz driver from x.org, 
mplayer video output was jittery, like the driver couldn't keep up, but 
audio was fine[*1].  I got the your computer is too slow! message from 
mplayer (no, it isn't).


- Jan. 26th: Not using the 6.14.3 driver, mplayer output was the same as 
above.  With the x.org driver, mplayer video output is now fine, but 
there is a noticeable crackling/distortion during playback of some (not 
all) movie/TV files.  It sounds like the audio levels of the media files 
is too high, but audio was fine on these same files the other day.


[*1] - I'm not sure exactly when this popped up, only in the last week 
maybe, but now I can hear interference on the computer speakers during 
some (usually intense) HDD activity.  The connections are solid (no 
recent changes/moves), but now when there is no background noise in the 
room, the HDD squealing sounds are quite noticeable.


I just thought I'd let people know.  Any suggestions would be 
appreciated, and I'll keep trying new snaps as they are released.


- Scott

dmesg:

OpenBSD 5.1-beta (GENERIC.MP) #188: Thu Jan 26 15:00:02 MST 2012
dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 4023975936 (3837MB)
avail mem = 3902701568 (3721MB)
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.5 @ 0x9f000 (68 entries)
bios0: vendor American Megatrends Inc. version 2103 date 06/18/2010
bios0: ASUSTeK Computer INC. M4A785TD-V EVO
acpi0 at bios0: rev 2
acpi0: sleep states S0 S1 S3 S4 S5
acpi0: tables DSDT FACP APIC MCFG OEMB SRAT HPET SSDT
acpi0: wakeup devices PCE2(S4) PCE3(S4) PCE4(S4) PCE5(S4) PCE6(S4) 
PCE7(S4) PCE9(S4) PCEA(S4) PCEB(S4) PCEC(S4) SBAZ(S4) PS2M(S4) PS2K(S4) 
UAR1(S4) P0PC(S4) UHC1(S4) UHC2(S4) UHC3(S4) USB4(S4) UHC5(S4) UHC6(S4) 
UHC7(S4)

acpitimer0 at acpi0: 3579545 Hz, 32 bits
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: AMD Phenom(tm) II X6 1100T Processor, 3315.23 MHz
cpu0: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,MWAIT,CX16,POPCNT,NXE,MMXX,FFXSR,LONG,3DNOW2,3DNOW,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,SKINIT
cpu0: 64KB 64b/line 2-way I-cache, 64KB 64b/line 2-way D-cache, 512KB 
64b/line 16-way L2 cache
cpu0: ITLB 32 4KB entries fully associative, 16 4MB entries fully 
associative
cpu0: DTLB 48 4KB entries fully associative, 48 4MB entries fully 
associative

cpu0: apic clock running at 200MHz
cpu1 at mainbus0: apid 1 (application processor)
cpu1: AMD Phenom(tm) II X6 1100T Processor, 3314.79 MHz
cpu1: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,MWAIT,CX16,POPCNT,NXE,MMXX,FFXSR,LONG,3DNOW2,3DNOW,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,SKINIT
cpu1: 64KB 64b/line 2-way I-cache, 64KB 64b/line 2-way D-cache, 512KB 
64b/line 16-way L2 cache
cpu1: ITLB 32 4KB entries fully associative, 16 4MB entries fully 
associative
cpu1: DTLB 48 4KB entries fully associative, 48 4MB entries fully 
associative

cpu2 at mainbus0: apid 2 (application processor)
cpu2: AMD Phenom(tm) II X6 1100T Processor, 3314.79 MHz
cpu2: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,MWAIT,CX16,POPCNT,NXE,MMXX,FFXSR,LONG,3DNOW2,3DNOW,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,SKINIT
cpu2: 64KB 64b/line 2-way I-cache, 64KB 64b/line 2-way D-cache, 512KB 
64b/line 16-way L2 cache
cpu2: ITLB 32 4KB entries fully associative, 16 4MB entries fully 
associative
cpu2: DTLB 48 4KB entries fully associative, 48 4MB entries fully 
associative

cpu3 at mainbus0: apid 3 (application processor)
cpu3: AMD Phenom(tm) II X6 1100T Processor, 3314.79 MHz
cpu3: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,MWAIT,CX16,POPCNT,NXE,MMXX,FFXSR,LONG,3DNOW2,3DNOW,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,SKINIT
cpu3: 64KB 64b/line 2-way I-cache, 64KB 64b/line 2-way D-cache, 512KB 
64b/line 16-way L2 cache
cpu3: ITLB 32 4KB entries fully associative, 16 4MB entries fully 
associative
cpu3: DTLB 48 4KB entries fully associative, 48 4MB entries fully 
associative

cpu4 at mainbus0: apid 4 (application processor)
cpu4: AMD Phenom(tm) II X6 1100T Processor, 3314.79 MHz
cpu4: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,MWAIT,CX16,POPCNT,NXE,MMXX,FFXSR,LONG,3DNOW2,3DNOW,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,SKINIT
cpu4: 64KB 64b/line 2-way I-cache, 64KB 64b/line 2-way D-cache, 512KB 
64b/line 16-way L2 cache
cpu4: ITLB 32 4KB entries fully associative, 16 4MB entries fully 
associative
cpu4: DTLB 48 4KB entries fully 

Re: Radeon 4200 and azalia audio problems

2012-01-28 Thread roberth
On Sat, 28 Jan 2012 15:20:27 -0500
Scott McEachern sc...@blackstaff.ca wrote:

 [*1] - I'm not sure exactly when this popped up

matthieu@ updated the ati driver recently. (yesterday? check the
source-changes@ archives, http://www.openbsd.org/faq/current.html )
ati cards are now all attached to the opensource ati x driver.
sorry to hear (...) that caused some hdmi-audio regressions for you.
you might want to look for similar reports upstream.

Cheers,
- Robert



Audio problems on Lenovo Thinkpad T61 with 4.5

2009-05-13 Thread Samuel Baldwin
For some reason, I can play audio through the speakers, but not
through my headphones. If my headphones are plugged in, no sound comes
out the speakers (but I think this is handled at the hardware level),
which is the proper behaviour.

I've tried unmuting everything with mixerctl (although nothing was
muted by default), to no avail. I've got the sound up all the way on
my headphones, but nothing comes out.

Here's my dmesg and mixerctl:

outputs.dig-dac_source=
inputs.dac2=126,126
inputs.dac=204,204
inputs.hp_source=sel6,sel5
inputs.spkr_source=dac,sel5
record.adc_source=mic
record.adc_mute=off
record.adc=124,124
record.adc2_source=mic
record.adc2_mute=off
record.adc2=124,124
inputs.sel3_source=dac2
inputs.sel4_source=dac2
inputs.beep_mute=off
inputs.beep=119
outputs.hp_mute=off
outputs.hp_boost=off
outputs.spkr_mute=off
outputs.spkr_boost=off
outputs.spkr_eapd=on
inputs.mic=0,0
outputs.mic_dir=input-vr80
inputs.mic2=85,85
outputs.mic2_dir=input-vr80
outputs.SPDIF_source=dig-dac
outputs.SPDIF_mute=off
outputs.SPDIF=126,126
outputs.mic3_mute=off
outputs.mic3_dir=input-vr80
outputs.vendor_source=hp
inputs.mix4_source=sel3,sel5
inputs.mix6_source=mic,mic2
inputs.mix6_mic=120,120
inputs.mix6_mic2=120,120
inputs.sel5_source=mix6
outputs.sel5_mute=off
outputs.sel5=120,120
inputs.sel6_source=dac2
inputs.sel7_source=dac2
inputs.mic3_source=sel7,sel5
inputs.mic3=85,85
outputs.vendor2_source=mic
outputs.hp_sense=plugged
outputs.mic_sense=plugged
outputs.mic3_sense=unplugged
outputs.spkr_muters=mic,mic3
outputs.master=204,204
outputs.master.mute=off
outputs.master.slaves=dac,spkr
record.volume=124,124
record.volume.mute=off
record.volume.slaves=adc,adc2
inputs.usingdac=0403

OpenBSD 4.5 (GENERIC) #2052: Sat Feb 28 14:55:24 MST 2009
dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC
real mem = 2111504384 (2013MB)
avail mem = 2038304768 (1943MB)
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.4 @ 0xe0010 (73 entries)
bios0: vendor LENOVO version 7LETC4WW (2.24 ) date 08/15/2008
bios0: LENOVO 6459CTO
acpi0 at bios0: rev 2
acpi0: tables DSDT FACP SSDT ECDT TCPA APIC MCFG HPET SLIC BOOT ASF!
SSDT SSDT SSDT SSDT SSDT
acpi0: wakeup devices LID_(S3) SLPB(S3) LURT(S3) DURT(S3) IGBE(S4)
EXP0(S4) EXP1(S4) EXP2(S4) EXP3(S4) EXP4(S4) PCI1(S4) USB0(S3)
USB1(S3) USB2(S3) USB3(S3) USB4(S3) EHC0(S3) EHC1(S3) HDEF(S4)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Core(TM)2 Duo CPU T9300 @ 2.50GHz, 2494.21 MHz
cpu0: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,VMX,EST,TM2,CX16,xTPR,NXE,LONG
cpu0: 6MB 64b/line 16-way L2 cache
cpu0: apic clock running at 199MHz
cpu at mainbus0: not configured
ioapic0 at mainbus0 apid 1 pa 0xfec0, version 20, 24 pins
ioapic0: misconfigured as apic 2, remapped to apid 1
acpihpet0 at acpi0: 14318179 Hz
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 1 (AGP_)
acpiprt2 at acpi0: bus 2 (EXP0)
acpiprt3 at acpi0: bus 3 (EXP1)
acpiprt4 at acpi0: bus 4 (EXP2)
acpiprt5 at acpi0: bus 5 (EXP3)
acpiprt6 at acpi0: bus 13 (EXP4)
acpiprt7 at acpi0: bus 21 (PCI1)
acpiec0 at acpi0
acpicpu0 at acpi0: C3, C2
acpitz0 at acpi0: critical temperature 127 degC
acpitz1 at acpi0: critical temperature 100 degC
acpibtn0 at acpi0: LID_
acpibtn1 at acpi0: SLPB
acpibat0 at acpi0: BAT0 model 42T4621 serial  1186 type LION oem SANYO
acpibat1 at acpi0: BAT1 not present
acpiac0 at acpi0: AC unit online
acpithinkpad0 at acpi0
acpidock at acpi0 not configured
acpivideo at acpi0 not configured
acpivideo at acpi0 not configured
cpu0: unknown Enhanced SpeedStep CPU, msr 0x06174d2806004d28
cpu0: using only highest and lowest power states
cpu0: Enhanced SpeedStep 15400 MHz (1340 mV): speeds: 15400, 1200 MHz
pci0 at mainbus0 bus 0: configuration mode 1
pchb0 at pci0 dev 0 function 0 Intel GM965 Host rev 0x0c
ppb0 at pci0 dev 1 function 0 Intel GM965 PCIE rev 0x0c: apic 1 int
16 (irq 10)
pci1 at ppb0 bus 1
vga1 at pci1 dev 0 function 0 vendor NVIDIA, unknown product 0x0429 rev 0xa1
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
em0 at pci0 dev 25 function 0 Intel ICH8 IGP M AMT rev 0x03: apic 1
int 20 (irq 11), address 00:1f:e2:1c:0f:4e
uhci0 at pci0 dev 26 function 0 Intel 82801H USB rev 0x03: apic 1
int 20 (irq 11)
uhci1 at pci0 dev 26 function 1 Intel 82801H USB rev 0x03: apic 1
int 21 (irq 11)
ehci0 at pci0 dev 26 function 7 Intel 82801H USB rev 0x03: apic 1
int 22 (irq 11)
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 Intel EHCI root hub rev 2.00/1.00 addr 1
azalia0 at pci0 dev 27 function 0 Intel 82801H HD Audio rev 0x03:
apic 1 int 17 (irq 11)
azalia0: RIRB time out
azalia0: codecs: Analog Devices AD1984, Conexant/0x2bfa, using Analog
Devices AD1984
audio0 at azalia0
ppb1 at pci0 dev 28 function 0 Intel 82801H PCIE rev 0x03: apic 1
int 20 (irq 11)
pci2 

Re: Audio problems on Lenovo Thinkpad T61 with 4.5

2009-05-13 Thread Jacob Meuser
On Wed, May 13, 2009 at 07:04:53PM +0800, Samuel Baldwin wrote:
 For some reason, I can play audio through the speakers, but not
 through my headphones. If my headphones are plugged in, no sound comes
 out the speakers (but I think this is handled at the hardware level),
 which is the proper behaviour.
 
 I've tried unmuting everything with mixerctl (although nothing was
 muted by default), to no avail. I've got the sound up all the way on
 my headphones, but nothing comes out.
 
 Here's my dmesg and mixerctl:

please send `mixerctl -v`.  probably one of the _source controls needs
to be changed, but need to know the available choices ...

alternatively, there's a good chance this is fixed in -current ...

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



Re: Audio problems on Lenovo Thinkpad T61 with 4.5

2009-05-13 Thread Ryan Flannery
On Wed, May 13, 2009 at 7:04 AM, Samuel Baldwin shardz4...@gmail.com wrote:
 For some reason, I can play audio through the speakers, but not
 through my headphones. If my headphones are plugged in, no sound comes
 out the speakers (but I think this is handled at the hardware level),
 which is the proper behaviour.

 I've tried unmuting everything with mixerctl (although nothing was
 muted by default), to no avail. I've got the sound up all the way on
 my headphones, but nothing comes out.

 Here's my dmesg and mixerctl:


I have a Lenovo T61 also, and experienced this problem some time ago.
I see from your mixerctl output you have
 inputs.sel6_source=dac2

Jacob suggested I try setting the following:
 mixerctl inputs.sel6_source=dac

and with that the headphones/speakers work as expected.

Hope it helps.



Re: Audio problems on Lenovo Thinkpad T61 with 4.5

2009-05-13 Thread Samuel Baldwin
 please send `mixerctl -v`. B probably one of the _source controls needs
 to be changed, but need to know the available choices ...

outputs.dig-dac_source=  [ adc adc2 ]
inputs.dac2=126,126
inputs.dac=198,198
inputs.hp_source=sel6,sel5  { sel6 sel5 }
inputs.spkr_source=dac,sel5  { dac sel5 }
record.adc_source=mic  [ mic mic2 ]
record.adc_mute=off  [ off on ]
record.adc=124,124
record.adc2_source=mic  [ mic mic2 ]
record.adc2_mute=off  [ off on ]
record.adc2=124,124
inputs.sel3_source=dac2  [ dac2 dac ]
inputs.sel4_source=dac2  [ dac2 dac ]
inputs.beep_mute=off  [ off on ]
inputs.beep=119
outputs.hp_mute=off  [ off on ]
outputs.hp_boost=off  [ off on ]
outputs.spkr_mute=off  [ off on ]
outputs.spkr_boost=off  [ off on ]
outputs.spkr_eapd=on  [ off on ]
inputs.mic=85,85
outputs.mic_dir=input-vr80  [ none input input-vr0 input-vr50
input-vr80 input-vr100 ]
inputs.mic2=85,85
outputs.mic2_dir=input-vr80  [ none input input-vr0 input-vr50
input-vr80 input-vr100 ]
outputs.SPDIF_source=dig-dac  [ dig-dac ]
outputs.SPDIF_mute=off  [ off on ]
outputs.SPDIF=126,126
outputs.mic3_mute=off  [ off on ]
outputs.mic3_dir=input-vr80  [ none output input input-vr0 input-vr50
input-vr80 input-vr100 ]
outputs.vendor_source=hp  [ hp spkr adc adc2 sel3 sel4 beep hp ]
inputs.mix4_source=sel3,sel5  { sel3 sel5 }
inputs.mix6_source=mic,mic2  { mic mic2 }
inputs.mix6_mic=120,120
inputs.mix6_mic2=120,120
inputs.sel5_source=mix6  [ mix6 ]
outputs.sel5_mute=off  [ off on ]
outputs.sel5=120,120
inputs.sel6_source=dac2  [ dac2 dac ]
inputs.sel7_source=dac2  [ dac2 dac ]
inputs.mic3_source=sel7,sel5  { sel7 sel5 }
inputs.mic3=85,85
outputs.vendor2_source=mic  [ mic mic2 mic3 ]
outputs.hp_sense=unplugged  [ unplugged plugged ]
outputs.mic_sense=unplugged  [ unplugged plugged ]
outputs.mic3_sense=unplugged  [ unplugged plugged ]
outputs.spkr_muters=hp,mic,mic3  { hp mic mic3 }
outputs.master=200,200
outputs.master.mute=off  [ off on ]
outputs.master.slaves=dac,spkr  { dac2 dac beep hp spkr SPDIF mic3 sel5 mic3
}
record.volume=124,124
record.volume.mute=off  [ off on ]
record.volume.slaves=adc,adc2  { adc adc2 mic mic2 }
inputs.usingdac=0403  [ 0403 02 ]



--
Samuel 'Shardz' Baldwin - staticfree.info/~samuel



Re: Audio problems on Lenovo Thinkpad T61 with 4.5

2009-05-13 Thread Samuel Baldwin
2009/5/13 Ryan Flannery ryan.flann...@gmail.com:
 I have a Lenovo T61 also, and experienced this problem some time ago.
 I see from your mixerctl output you have
 B  B  inputs.sel6_source=dac2

 Jacob suggested I try setting the following:
 B  B  mixerctl inputs.sel6_source=dac

I nearly went deaf; I had everything up all the way, midway through a
brutal death metal song...

Anyways, works great now, thank you!
--
Samuel 'Shardz' Baldwin - staticfree.info/~samuel



Re: audio problems

2006-11-05 Thread Alexandre Ratchov
On Sat, Nov 04, 2006 at 09:45:14PM +0100, thomas wrote:
 hello
 
 i try to set up an openbsd4.0 workstation and ran into problems with
 the audio/sound setup.
 i followed the 'multimedia-faq' but the audio-output is in case of
 *.au files somehow 'crippeld' and in the case of 
 audio-cds (playing with cdio) there is no output at all.
 

hi

is the cd reader's audio output properly wired to the sound
card's cd in?

does your device properly work with stereo/slinear_le/16bit/48000Hz
samples? For instance:

mplayer -af format=s16le,channels=2,resample=48000 yourfile.mp3

-- Alexandre



audio problems

2006-11-04 Thread thomas
hello

i try to set up an openbsd4.0 workstation and ran into problems with
the audio/sound setup.
i followed the 'multimedia-faq' but the audio-output is in case of
*.au files somehow 'crippeld' and in the case of 
audio-cds (playing with cdio) there is no output at all.

can you give me a hint?

thanks
thomas 


stripped down dmesg
Intel 82801CA/CAM AC97 rev 0x01 at pci0 dev 31 function 5 not configured
auich0 at pci0 dev 31 function 5 Intel 82801CA/CAM AC97 rev 0x01: irq 9, 
ICH3 AC97
ac97: codec id 0x41445348 (Analog Devices AD1881A)
ac97: codec features headphone, Analog Devices Phat Stereo
audio0 at auich0
auich0: measured ac97 link rate at 47994 Hz, will use 48000 Hz
auich0 at pci0 dev 31 function 5 Intel 82801CA/CAM AC97 rev 0x01: irq 9, 
ICH3 AC97
ac97: codec id 0x41445348 (Analog Devices AD1881A)
ac97: codec features headphone, Analog Devices Phat Stereo
audio0 at auich0
auich0: measured ac97 link rate at 48002 Hz, will use 48000 Hz

audioctl:
name=ICH3 AC97
version=0x01
config=auich0
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=4096
hiwat=10
lowat=1
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=40960
play.samples=4616192
play.eof=0
play.pause=0
play.error=0
play.waiting=0
play.open=0
play.active=0
play.buffer_size=65536
record.rate=44100
record.channels=2
record.precision=16
record.encoding=slinear_le
record.gain=191
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.errors=0



mixerctl:
outputs.master=103,103
outputs.master.mute=off
outputs.mono=255
outputs.mono.mute=off
outputs.mono.source=mixerout
outputs.headphones=255,255
outputs.headphones.mute=off
outputs.bass=255
outputs.treble=255
inputs.speaker=255
inputs.speaker.mute=off
inputs.phone=191
inputs.phone.mute=off
inputs.mic=191
inputs.mic.mute=off
inputs.mic.preamp=off
inputs.mic.source=mic0
inputs.line=191,191
inputs.line.mute=off
inputs.cd=191,191
inputs.cd.mute=off
inputs.video=191,191
inputs.video.mute=off
inputs.aux=191,191
inputs.aux.mute=off
inputs.dac=191,191
inputs.dac.mute=off
record.source=mic
record.volume=255,255
record.volume.mute=off
record.mic=0
record.mic.mute=off
outputs.loudness=off
outputs.spatial=off
outputs.spatial.center=0
outputs.spatial.depth=0
outputs.surround=255,255
outputs.surround.mute=off
outputs.center=255
outputs.center.mute=off
outputs.lfe=255
outputs.lfe.mute=off
outputs.extamp=off

attachment:
full dmesg 
OpenBSD 4.0 (RAMDISK_CD) #39: Sat Sep 16 19:34:26 MDT 2006
[EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/RAMDISK_CD
cpu0: Intel(R) Pentium(R) III Mobile CPU 933MHz (GenuineIntel 686-class) 929 
MHz
cpu0: 
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE
real mem  = 401629184 (392216K)
avail mem = 359628800 (351200K)
using 4256 buffers containing 20185088 bytes (19712K) of memory
mainbus0 (root)
bios0 at mainbus0: AT/286+(35) BIOS, date 08/09/01, BIOS32 rev. 0 @ 0xfd870, 
SMBIOS rev. 2.31 @ 0xd8010 (16 entries)
bios0: Sony Corporation PCG-GR114MK(DE)
apm0 at bios0: Power Management spec V1.2
apm0: flags 30102 dobusy 0 doidle 1
pcibios0 at bios0: rev 2.1 @ 0xfd870/0x790
pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xfdf30/176 (9 entries)
pcibios0: PCI Interrupt Router at 000:31:0 (Intel 82371FB ISA rev 0x00)
pcibios0: PCI bus #4 is the last bus
bios0: ROM list: 0xc/0xf000 0xd8000/0x4000! 0xdc000/0x4000!
cpu0 at mainbus0
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
pchb0 at pci0 dev 0 function 0 Intel 82830MP CPU-I/O-1 rev 0x02
ppb0 at pci0 dev 1 function 0 Intel 82830MP CPU-AGP rev 0x02
pci1 at ppb0 bus 1
vga1 at pci1 dev 0 function 0 ATI Radeon Mobility M6 LY rev 0x00
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
uhci0 at pci0 dev 29 function 0 Intel 82801CA/CAM USB rev 0x01: irq 9
usb0 at uhci0: USB revision 1.0
uhub0 at usb0
uhub0: Intel UHCI root hub, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
uhci1 at pci0 dev 29 function 1 Intel 82801CA/CAM USB rev 0x01: irq 9
usb1 at uhci1: USB revision 1.0
uhub1 at usb1
uhub1: Intel UHCI root hub, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
uhci2 at pci0 dev 29 function 2 Intel 82801CA/CAM USB rev 0x01pci_intr_map: 
no mapping for pin C
: couldn't map interrupt
ppb1 at pci0 dev 30 function 0 Intel 82801BAM Hub-to-PCI rev 0x41
pci2 at ppb1 bus 2
TI TSB43AA22 FireWire rev 0x02 at pci2 dev 2 function 0 not configured
cbb0 at pci2 dev 5 function 0 Ricoh 5C476 CardBus rev 0x80: irq 3
cbb1 at pci2 dev 5 function 1 Ricoh 5C476 CardBus rev 0x80pci_intr_map: no 
mapping for pin B
: couldn't map interrupt
fxp0 at pci2 dev 8 function 0 Intel