Re: make usb audio device always rsnd/1 - not rsnd/2

2024-06-28 Thread Crystal Kolipe
On Fri, Jun 28, 2024 at 11:56:11AM +0200, Divan Santana wrote:
> Thanks to all for the suggestions!
> 
> >> How can one make "Creative Creative BT-W5" device always rsnd/1 and not
> > A -workaround- is:
> >    Don't explicitly name an audio device in your commands.
> >    Use the environment variable AUDIODEVICE instead.
> > You would -source- a shell script which looked at (for instance) dmesg
> > and deduced the correct setting. There may be a library call which
> > returns something useful like a serial number, manufacturer, etcThat 
> > script would only have to be run once a session. 
> 
> I think this may do it :)

If all you want to do is discover the current u.* device number that has
been assigned to a particular textual device ID, and you're happy with
parsing dmesg to do that, a starting point using sed would be:

dmesg | sed -n -E 's/^u[a-z]*(.) .*ID_STRING.*/\1/p' | tail -1

Obviously refine as required for your particular use-case, but in
principle it can be done fairly easily from the shell.



Re: make usb audio device always rsnd/1 - not rsnd/2

2024-06-28 Thread Divan Santana
>> How can one make "Creative Creative BT-W5" device always rsnd/1 and not
>> sometimes rsnd/2?
>
> I don't have a perfect solution for this, but being in a similar
> situation with my hardware, I've grown accustomed to keeping the
> USB audio plugged, and only plugging in the camera when I need it;
> therefore generally *after* the audio-only device. This way the USB
> audio device is always rsnd/1 here. This may not be what you're looking
> for... there are also USB hubs with physical on-off switches that I've
> used for my USB camera this way. YMMV

Sometimes simple solutions like this will work.  Thanks.



Re: make usb audio device always rsnd/1 - not rsnd/2

2024-06-28 Thread Divan Santana
Thanks to all for the suggestions!

>> How can one make "Creative Creative BT-W5" device always rsnd/1 and not
> A -workaround- is:
>    Don't explicitly name an audio device in your commands.
>    Use the environment variable AUDIODEVICE instead.
> You would -source- a shell script which looked at (for instance) dmesg
> and deduced the correct setting. There may be a library call which
> returns something useful like a serial number, manufacturer, etcThat 
> script would only have to be run once a session. 

I think this may do it :)



Re: make usb audio device always rsnd/1 - not rsnd/2

2024-06-20 Thread Geoff Steckel

On 6/19/24 07:25, Divan Santana wrote:

Greetings All,

I have a USB audio bluetooth dongle plugged in.

azalia0 at pci0 dev 31 function 3 "Intel 600 Series HD Audio" rev 0x01: msi
audio0 at azalia0
uaudio0 at uhub5 port 1 configuration 1 interface 3 "Creative Creative BT-W5" 
rev 2.00/10.00 addr 7
uaudio0: class v1, full-speed, sync, channels: 2 play, 1 rec, 3 ctls
audio1 at uaudio0

I also have a usb camera plugged in.

uaudio1 at uhub1 port 6 configuration 1 interface 3 "Logitech C270 HD WEBCAM" 
rev 2.00/0.21 addr 9
uaudio1: class v1, high-speed, sync, channels: 0 play, 1 rec, 2 ctls
audio2 at uaudio1

To use this bluetooth audio device I do:

doas rcctl set sndiod flags -f rsnd/0 -F rsnd/1

Sometimes upon rebooting these devices switch device numbers.  This
makes the above sndiod flags no longer valid.

How can one make "Creative Creative BT-W5" device always rsnd/1 and not

A -workaround- is:
  Don't explicitly name an audio device in your commands.
  Use the environment variable AUDIODEVICE instead.
You would -source- a shell script which looked at (for instance) dmesg
and deduced the correct setting. There may be a library call which
returns something useful like a serial number, manufacturer, etcThat 
script would only have to be run once a session. hth Geoff Steckel

Re: make usb audio device always rsnd/1 - not rsnd/2

2024-06-19 Thread Alexandre Ratchov
On Wed, Jun 19, 2024 at 01:25:44PM +0200, Divan Santana wrote:
> Greetings All,
> 
> I have a USB audio bluetooth dongle plugged in.
> 
> azalia0 at pci0 dev 31 function 3 "Intel 600 Series HD Audio" rev 0x01: msi
> audio0 at azalia0
> uaudio0 at uhub5 port 1 configuration 1 interface 3 "Creative Creative BT-W5" 
> rev 2.00/10.00 addr 7
> uaudio0: class v1, full-speed, sync, channels: 2 play, 1 rec, 3 ctls
> audio1 at uaudio0
> 
> I also have a usb camera plugged in.
> 
> uaudio1 at uhub1 port 6 configuration 1 interface 3 "Logitech C270 HD WEBCAM" 
> rev 2.00/0.21 addr 9
> uaudio1: class v1, high-speed, sync, channels: 0 play, 1 rec, 2 ctls
> audio2 at uaudio1
> 
> To use this bluetooth audio device I do:
> 
> doas rcctl set sndiod flags -f rsnd/0 -F rsnd/1
> 
> Sometimes upon rebooting these devices switch device numbers.  This
> makes the above sndiod flags no longer valid.
> 
> How can one make "Creative Creative BT-W5" device always rsnd/1 and not
> sometimes rsnd/2?
> 

Not yet.

Not exactly what you asked for, but you could try the audio/sndiokeys
port. It allows you to circulate through your audio devices with X
hot-keys. For instance, start "sndiokeys -D" and hit Ctrl-Alt-0 util
you hear a short "beep" on the desired device. Not perfect, but less
painful than running sndioctl(1) or restarting sndiod(8).

HTH



Re: make usb audio device always rsnd/1 - not rsnd/2

2024-06-19 Thread Thomas Frohwein
On Wed, Jun 19, 2024 at 01:25:44PM +0200, Divan Santana wrote:
> Greetings All,
> 
> I have a USB audio bluetooth dongle plugged in.
> 
> azalia0 at pci0 dev 31 function 3 "Intel 600 Series HD Audio" rev 0x01: msi
> audio0 at azalia0
> uaudio0 at uhub5 port 1 configuration 1 interface 3 "Creative Creative BT-W5" 
> rev 2.00/10.00 addr 7
> uaudio0: class v1, full-speed, sync, channels: 2 play, 1 rec, 3 ctls
> audio1 at uaudio0
> 
> I also have a usb camera plugged in.
> 
> uaudio1 at uhub1 port 6 configuration 1 interface 3 "Logitech C270 HD WEBCAM" 
> rev 2.00/0.21 addr 9
> uaudio1: class v1, high-speed, sync, channels: 0 play, 1 rec, 2 ctls
> audio2 at uaudio1
> 
> To use this bluetooth audio device I do:
> 
> doas rcctl set sndiod flags -f rsnd/0 -F rsnd/1
> 
> Sometimes upon rebooting these devices switch device numbers.  This
> makes the above sndiod flags no longer valid.
> 
> How can one make "Creative Creative BT-W5" device always rsnd/1 and not
> sometimes rsnd/2?

I don't have a perfect solution for this, but being in a similar
situation with my hardware, I've grown accustomed to keeping the
USB audio plugged, and only plugging in the camera when I need it;
therefore generally *after* the audio-only device. This way the USB
audio device is always rsnd/1 here. This may not be what you're looking
for... there are also USB hubs with physical on-off switches that I've
used for my USB camera this way. YMMV



make usb audio device always rsnd/1 - not rsnd/2

2024-06-19 Thread Divan Santana
Greetings All,

I have a USB audio bluetooth dongle plugged in.

azalia0 at pci0 dev 31 function 3 "Intel 600 Series HD Audio" rev 0x01: msi
audio0 at azalia0
uaudio0 at uhub5 port 1 configuration 1 interface 3 "Creative Creative BT-W5" 
rev 2.00/10.00 addr 7
uaudio0: class v1, full-speed, sync, channels: 2 play, 1 rec, 3 ctls
audio1 at uaudio0

I also have a usb camera plugged in.

uaudio1 at uhub1 port 6 configuration 1 interface 3 "Logitech C270 HD WEBCAM" 
rev 2.00/0.21 addr 9
uaudio1: class v1, high-speed, sync, channels: 0 play, 1 rec, 2 ctls
audio2 at uaudio1

To use this bluetooth audio device I do:

doas rcctl set sndiod flags -f rsnd/0 -F rsnd/1

Sometimes upon rebooting these devices switch device numbers.  This
makes the above sndiod flags no longer valid.

How can one make "Creative Creative BT-W5" device always rsnd/1 and not
sometimes rsnd/2?







Re: Firefox and stuttering USB audio

2022-08-09 Thread Courtney
THANK YOU!! This seems to have solved the issue. Thankfully I had 
already set

/tmp to be an in-memory filesystem so this will do wonders. I'm assuming
you haven't had any issues with the firefox cache being blown away every
reboot? Doesn't really matter anyway, I prefer good audio over firefox 
having

a clean cache every time. Now I can listen to my music while I work and not
have to cringe ;)

On 8/7/22 14:44, Mihai Popescu wrote:

Courtney, I will try to suggest something.

First, I was having problems in the past with Firefox. I use to let
mpv play in the background ( a stream of internet radio) and the sound
has stuttering and pauses whenever Firefox loaded some pages. I was
told to use sndio for mpv as an option with ao=sndio in the mpv.conf.
I did this and the problem was gone.

Next, you could try something just to check. It is a shoot in the
dark, but I use it for something else.
I have an old computer, and the browsing was very slow. The disk (
mechanical) was spinning like hell whenever a page was loaded, both
Firefox and Chromium. Looking on internet, I found that browsers are
using caching on the disk a lot. I see you are using SSD, but here it
is anyway;

Do a backup:
# cp /etc/fstab /etc/fstab.install

Change the entry for the /tmp partition to look like this:
swap /tmp mfs rw,nodev,nosuid,-s=1g 0 0

Reboot in single user mode, using -s at boot prompt and do this on the shell:
# mount -uw /
#chmod 1777 /tmp
# reboot

Let it boot normally and issue this inside a terminal:
$ XDG_CACHE_HOME=/tmp firefox

Then do your job with sound and check for stuttering. If it is fine
now, use it like this. If not, just reverse the fstab backup and try
something else. Please report here, too :).





Re: Firefox and stuttering USB audio

2022-08-07 Thread Mihai Popescu
Courtney, I will try to suggest something.

First, I was having problems in the past with Firefox. I use to let
mpv play in the background ( a stream of internet radio) and the sound
has stuttering and pauses whenever Firefox loaded some pages. I was
told to use sndio for mpv as an option with ao=sndio in the mpv.conf.
I did this and the problem was gone.

Next, you could try something just to check. It is a shoot in the
dark, but I use it for something else.
I have an old computer, and the browsing was very slow. The disk (
mechanical) was spinning like hell whenever a page was loaded, both
Firefox and Chromium. Looking on internet, I found that browsers are
using caching on the disk a lot. I see you are using SSD, but here it
is anyway;

Do a backup:
# cp /etc/fstab /etc/fstab.install

Change the entry for the /tmp partition to look like this:
swap /tmp mfs rw,nodev,nosuid,-s=1g 0 0

Reboot in single user mode, using -s at boot prompt and do this on the shell:
# mount -uw /
#chmod 1777 /tmp
# reboot

Let it boot normally and issue this inside a terminal:
$ XDG_CACHE_HOME=/tmp firefox

Then do your job with sound and check for stuttering. If it is fine
now, use it like this. If not, just reverse the fstab backup and try
something else. Please report here, too :).



Re: Firefox and stuttering USB audio

2022-08-02 Thread Courtney

Hi Alexandre,

I did your test, I don't see a pause cycle when I have firefox play a video.
I do get those messages every time there is an audio glitch. At some times
with chromium open I will get far fewer of these messages but no interrupt.
When I say far fewer, I mean I could maybe get 1 of those messages at any
given time but no interruption. With Firefox, all these outputs are from me
opening sites in a couple tabs. This is the output I get when I run audio in
firefox from start to stop:


snd1 pst=ini: device started
snd1 pst=run: started
firefox0 vol=127,pst=rdy: attached at -7680 + 0/480
firefox0 vol=127,pst=rdy: set weight: 8388608/8388608
snd1 pst=run: play hw xrun, pused = 6240/7680
snd1 pst=run: play hw xrun, pused = 6720/7680
snd1 pst=run: play hw xrun, pused = 7200/7680
snd1 pst=run: play hw xrun, pused = 7200/7680
snd1 pst=run: play hw xrun, pused = 6240/7680
snd1 pst=run: play hw xrun, pused = 6720/7680
snd1 pst=run: play hw xrun, pused = 7200/7680
snd1 pst=run: play hw xrun, pused = 6720/7680
snd1 pst=run: play hw xrun, pused = 7200/7680
snd1 pst=run: play hw xrun, pused = 6240/7680
snd1 pst=run: play hw xrun, pused = 6720/7680
snd1 pst=run: play hw xrun, pused = 7200/7680
snd1 pst=run: play hw xrun, pused = 7200/7680
snd1 pst=run: play hw xrun, pused = 6240/7680
snd1 pst=run: play hw xrun, pused = 6720/7680
snd1 pst=run: play hw xrun, pused = 7200/7680
snd1 pst=run: play hw xrun, pused = 6720/7680
snd1 pst=run: play hw xrun, pused = 7200/7680
snd1 pst=run: play hw xrun, pused = 6240/7680
snd1 pst=run: play hw xrun, pused = 6720/7680
snd1 pst=run: play hw xrun, pused = 7200/7680
snd1 pst=run: play hw xrun, pused = 6720/7680
snd1 pst=run: play hw xrun, pused = 7200/7680
firefox0 vol=127,pst=run,rmsg,widl: STOP message
firefox0 vol=127,pst=run: stopping
firefox0 vol=127,pst=ini,rmsg,widl: stopped

So the behavior is the same whether I play audio IN Firefox or
outside of Firefox. any opening of tabs or doing something from within
a website that may require loading data will cause any audio
to stutter. Sometimes even simply having firefox running in the background
will create these messages. Like now, I have Clementine running
but from time to time I will get a glitch and get 2-3 of those messages.
The interval is pretty inconsistent.

On 7/31/22 00:34, Alexandre Ratchov wrote:

On Sat, Jul 30, 2022 at 02:39:08PM -0700, Courtney wrote:

I hope it isn't in bad etiquette to resurrect an old piece of mail.


OK for me, your mail is attached to the thread.


Since May I mitigated the stuttering audio issue with Firefox running
by using Firefox ESR 91. Clearly something beyond 91 added something
that doesn't jive well with OpenBSD. Now that 91 ESR is gone and it is 102
the issue has returned.

I have been playing around with a different issue, but in the process
of messing with that issue I came across something. I ran sndiod in
debug mode with these flags:

sndiod -dd -f rsnd/0 -F rsnd/1

I then went to try out opening tabs in firefox which then triggered
a whole bunch of this getting spat out

snd1: rec hw xrun, rused = 1440/7680
snd1: play hw xrun, pused = 6240/7680
snd1: rec hw xrun, rused = 960/7680
snd1: play hw xrun, pused = 6720/7680
snd1: rec hw xrun, rused = 480/7680
snd1: play hw xrun, pused = 7200/7680
snd1: rec hw xrun, rused = 960/7680
snd1: play hw xrun, pused = 6720/7680
snd1: rec hw xrun, rused = 480/7680
snd1: play hw xrun, pused = 7200/7680
snd1: rec hw xrun, rused = 1440/7680
snd1: play hw xrun, pused = 6240/7680
snd1: rec hw xrun, rused = 960/7680
snd1: play hw xrun, pused = 6720/7680
snd1: rec hw xrun, rused = 480/7680
snd1: play hw xrun, pused = 7200/7680
snd1: rec hw xrun, rused = 960/7680
snd1: play hw xrun, pused = 6720/7680
snd1: rec hw xrun, rused = 480/7680
snd1: play hw xrun, pused = 7200/7680
snd1: rec hw xrun, rused = 1440/7680
snd1: play hw xrun, pused = 6240/7680
snd1: rec hw xrun, rused = 960/7680
snd1: play hw xrun, pused = 6720/7680
snd1: rec hw xrun, rused = 480/7680
snd1: play hw xrun, pused = 7200/7680
snd1: rec hw xrun, rused = 960/7680
snd1: play hw xrun, pused = 6720/7680
snd1: rec hw xrun, rused = 480/7680
snd1: play hw xrun, pused = 7200/7680

I'm wondering if someone has more of a clue as to what all
this means.

This confirms that sndiod woke up too late, probably because another
process is using the CPU. The fraction is the portion of the buffer
containing samples. For the play direction, we see that the buffer is
not entierly full, but there are enough samples to continue playing
smoothly. So these are just warnings, there are no underruns at sndiod
level.

I'd suggest you quickly check if there are underruns at firefox level:
Use "-ddd" sndiod options. Whenever firefox underruns, sndiod will
log:

firefox0 vol=127,pst=run: xrun, pause cycle

Is there a new message every time you hear a glitch?

(note that certain programs just stop providing data to sndiod in
order to pause, which will flood you with above messages, but it is
not a problem)




Re: Firefox and stuttering USB audio

2022-07-31 Thread Alexandre Ratchov
On Sat, Jul 30, 2022 at 02:39:08PM -0700, Courtney wrote:
> I hope it isn't in bad etiquette to resurrect an old piece of mail.
> 

OK for me, your mail is attached to the thread.

> Since May I mitigated the stuttering audio issue with Firefox running
> by using Firefox ESR 91. Clearly something beyond 91 added something
> that doesn't jive well with OpenBSD. Now that 91 ESR is gone and it is 102
> the issue has returned.
> 
> I have been playing around with a different issue, but in the process
> of messing with that issue I came across something. I ran sndiod in
> debug mode with these flags:
> 
> sndiod -dd -f rsnd/0 -F rsnd/1
> 
> I then went to try out opening tabs in firefox which then triggered
> a whole bunch of this getting spat out
> 
> snd1: rec hw xrun, rused = 1440/7680
> snd1: play hw xrun, pused = 6240/7680
> snd1: rec hw xrun, rused = 960/7680
> snd1: play hw xrun, pused = 6720/7680
> snd1: rec hw xrun, rused = 480/7680
> snd1: play hw xrun, pused = 7200/7680
> snd1: rec hw xrun, rused = 960/7680
> snd1: play hw xrun, pused = 6720/7680
> snd1: rec hw xrun, rused = 480/7680
> snd1: play hw xrun, pused = 7200/7680
> snd1: rec hw xrun, rused = 1440/7680
> snd1: play hw xrun, pused = 6240/7680
> snd1: rec hw xrun, rused = 960/7680
> snd1: play hw xrun, pused = 6720/7680
> snd1: rec hw xrun, rused = 480/7680
> snd1: play hw xrun, pused = 7200/7680
> snd1: rec hw xrun, rused = 960/7680
> snd1: play hw xrun, pused = 6720/7680
> snd1: rec hw xrun, rused = 480/7680
> snd1: play hw xrun, pused = 7200/7680
> snd1: rec hw xrun, rused = 1440/7680
> snd1: play hw xrun, pused = 6240/7680
> snd1: rec hw xrun, rused = 960/7680
> snd1: play hw xrun, pused = 6720/7680
> snd1: rec hw xrun, rused = 480/7680
> snd1: play hw xrun, pused = 7200/7680
> snd1: rec hw xrun, rused = 960/7680
> snd1: play hw xrun, pused = 6720/7680
> snd1: rec hw xrun, rused = 480/7680
> snd1: play hw xrun, pused = 7200/7680
> 
> I'm wondering if someone has more of a clue as to what all
> this means.

This confirms that sndiod woke up too late, probably because another
process is using the CPU. The fraction is the portion of the buffer
containing samples. For the play direction, we see that the buffer is
not entierly full, but there are enough samples to continue playing
smoothly. So these are just warnings, there are no underruns at sndiod
level.

I'd suggest you quickly check if there are underruns at firefox level:
Use "-ddd" sndiod options. Whenever firefox underruns, sndiod will
log:

firefox0 vol=127,pst=run: xrun, pause cycle

Is there a new message every time you hear a glitch?

(note that certain programs just stop providing data to sndiod in
order to pause, which will flood you with above messages, but it is
not a problem)



Re: Firefox and stuttering USB audio

2022-07-30 Thread Courtney
re 10G Host" rev 0x05
ppb0 at pci0 dev 1 function 0 "Intel Core 6G PCIE" rev 0x05: msi
pci1 at ppb0 bus 1
ppb1 at pci1 dev 0 function 0 "ATI PCIE" rev 0xc5
pci2 at ppb1 bus 2
ppb2 at pci2 dev 0 function 0 "ATI PCIE" rev 0x00
pci3 at ppb2 bus 3
amdgpu0 at pci3 dev 0 function 0 "ATI Navi 22" rev 0xc5
drm0 at amdgpu0
amdgpu0: msi
azalia0 at pci3 dev 0 function 1 "ATI Navi 2x HD Audio" rev 0x00: msi
azalia0: no supported codecs
"Intel Core GMM" rev 0x00 at pci0 dev 8 function 0 not configured
pchtemp0 at pci0 dev 18 function 0 "Intel 400 Series Thermal" rev 0x00
xhci0 at pci0 dev 20 function 0 "Intel 400 Series xHCI" rev 0x00: msi,
xHCI 1.10
usb0 at xhci0: USB revision 3.0
uhub0 at usb0 configuration 1 interface 0 "Intel xHCI root hub" rev
3.00/1.00 addr 1
"Intel 400 Series Shared SRAM" rev 0x00 at pci0 dev 20 function 2 not
configured
"Intel 400 Series HECI" rev 0x00 at pci0 dev 22 function 0 not configured
ahci0 at pci0 dev 23 function 0 "Intel 400 Series AHCI" rev 0x00: msi,
AHCI 1.3.1
ahci0: PHY offline on port 0
ahci0: port 1: 6.0Gb/s
ahci0: PHY offline on port 2
ahci0: port 3: 6.0Gb/s
ahci0: PHY offline on port 4
ahci0: PHY offline on port 5
scsibus1 at ahci0: 32 targets
sd0 at scsibus1 targ 1 lun 0:  naa.5000c5002ff04c94
sd0: 457862MB, 512 bytes/sector, 937703088 sectors, thin
sd1 at scsibus1 targ 3 lun 0: 
naa.5000c500b5ff7d07
sd1: 1907729MB, 512 bytes/sector, 3907029168 sectors, thin
ppb3 at pci0 dev 28 function 0 "Intel 400 Series PCIE" rev 0xf0
pci4 at ppb3 bus 4
ppb4 at pci0 dev 28 function 4 "Intel 400 Series PCIE" rev 0xf0: msi
pci5 at ppb4 bus 5
rge0 at pci5 dev 0 function 0 "Realtek RTL8125" rev 0x04: msi, address
2c:f0:5d:cc:4e:d7
ppb5 at pci0 dev 29 function 0 "Intel 400 Series PCIE" rev 0xf0: msi
pci6 at ppb5 bus 6
nvme0 at pci6 dev 0 function 0 "SanDisk WD Black NVMe" rev 0x00: msix,
NVMe 1.3
nvme0: WDBRPG5000ANC-WRSN, firmware 102000WD, serial 19190D800346
scsibus2 at nvme0: 2 targets, initiator 0
sd2 at scsibus2 targ 1 lun 0: 
sd2: 476940MB, 512 bytes/sector, 976773168 sectors
pcib0 at pci0 dev 31 function 0 "Intel Z490 LPC" rev 0x00
azalia1 at pci0 dev 31 function 3 "Intel 400 Series cAVS" rev 0x00: msi
azalia1: codecs: Realtek ALC1200
audio0 at azalia1
ichiic0 at pci0 dev 31 function 4 "Intel 400 Series SMBus" rev 0x00:
apic 2 int 16
iic0 at ichiic0
spdmem0 at iic0 addr 0x51: 16GB DDR4 SDRAM PC4-21300
spdmem1 at iic0 addr 0x53: 16GB DDR4 SDRAM PC4-21300
"Intel 400 Series SPI" rev 0x00 at pci0 dev 31 function 5 not configured
isa0 at pcib0
isadma0 at isa0
pckbc0 at isa0 port 0x60/5 irq 1 irq 12
pckbd0 at pckbc0 (kbd slot)
wskbd0 at pckbd0: console keyboard
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
vmm0 at mainbus0: VMX/EPT
efifb at mainbus0 not configured
uhidev0 at uhub0 port 1 configuration 1 interface 0 "Logitech Gaming
Mouse G502" rev 2.00/88.02 addr 2
uhidev0: iclass 3/1
ums0 at uhidev0: 16 buttons, Z and W dir
wsmouse0 at ums0 mux 0
uhidev1 at uhub0 port 1 configuration 1 interface 1 "Logitech Gaming
Mouse G502" rev 2.00/88.02 addr 2
uhidev1: iclass 3/0, 17 report ids
uhidpp0 at uhidev1
ukbd0 at uhidev1 reportid 1: 8 variable keys, 6 key codes
wskbd1 at ukbd0 mux 1
ucc0 at uhidev1 reportid 3: 652 usages, 18 keys, array
wskbd2 at ucc0 mux 1
uhid0 at uhidev1 reportid 4: input=1, output=0, feature=0
uhidev2 at uhub0 port 3 configuration 1 interface 0 "FiiO DigiHug USB
Audio" rev 1.10/0.01 addr 3
uhidev2: iclass 3/0
ucc1 at uhidev2: 25 usages, 7 keys, enum
wskbd3 at ucc1 mux 1
uaudio0 at uhub0 port 3 configuration 1 interface 2 "FiiO DigiHug USB
Audio" rev 1.10/0.01 addr 3
uaudio0: class v1, full-speed, sync, channels: 2 play, 2 rec, 3 ctls
audio1 at uaudio0
uaudio1 at uhub0 port 5 configuration 1 interface 1 "AudioPro X5
Microphone AudioPro X5 Microphone" rev 1.10/0.01 addr 4
uaudio1: class v1, full-speed, sync, channels: 2 play, 1 rec, 6 ctls
audio2 at uaudio1
uhidev3 at uhub0 port 5 configuration 1 interface 3 "AudioPro X5
Microphone AudioPro X5 Microphone" rev 1.10/0.01 addr 4
uhidev3: iclass 3/0, 81 report ids
ucc2 at uhidev3 reportid 3: 8 usages, 6 keys, enum
wskbd4 at ucc2 mux 1
uhid1 at uhidev3 reportid 17: input=63, output=0, feature=0
uhid2 at uhidev3 reportid 81: input=0, output=63, feature=0
uhidev4 at uhub0 port 6 configuration 1 interface 0 "Yubico YubiKey
FIDO" rev 2.00/5.43 addr 5
uhidev4: iclass 3/0
fido0 at uhidev4: input=64, output=64, feature=0
uhidev5 at uhub0 port 9 configuration 1 interface 0 "ELECOM TrackBall
Mouse HUGE TrackBall" rev 2.00/1.10 addr 6
uhidev5: iclass 3/1, 6 report ids
ums1 at uhidev5 reportid 1ums1: fixing Elecom report descriptor (buttons: 8)
: 8 buttons, Z and W dir
wsmouse1 at ums1 mux 0
uhid3 at uhidev5 reportid 2: input=7, output=0, feature=0

Re: USB audio garbled over time

2022-07-12 Thread Courtney
I solved my issue. I started having this issue on Linux too, again very 
randomly. Tried a different USB port and everything works. Whatever is 
happening with the controller on these ports, it doesn't play nicely 
with audio hardware but the other one does. Pretty sure I went from USB 
2.0 to USB 3.0, or 3.1 or whatever number of the 3 or 4 different 
versions I wound up with on this board.


Courtney


On 7/1/22 11:09, Courtney wrote:

Sure enough, looks like it pauses.

Before:

name=uaudio0
mode=play,record
pause=0
active=1
nblks=16
blksz=480
rate=48000
encoding=s16le
play.channels=2
play.bytes=839040
play.errors=0
record.channels=2
record.bytes=839040
record.errors=0

After:

name=uaudio0
mode=play,record
pause=0
active=1
nblks=16
blksz=480
rate=48000
encoding=s16le
play.channels=2
play.bytes=1827840
play.errors=0
record.channels=2
record.bytes=1827840
record.errors=0

How do you unpause it then?


Courtney

On 6/30/22 21:54, Alexandre Ratchov wrote:

On Thu, Jun 30, 2022 at 03:11:18PM -0700, Courtney wrote:

Hello everyone,

I am running OpenBSD -current branch right now. I have a FiiO E10k 
plugged

into my board. Here is the part of the dmesg when it is connected

Jun 30 15:02:48 towerDefense /bsd: uaudio0 at uhub0 port 14 
configuration 1

interface 2 "FiiO DigiHug USB Audio" rev 1.10/0.01 addr 6
Jun 30 15:02:48 towerDefense /bsd: uaudio0: class v1, full-speed, sync,
channels: 2 play, 2 rec, 3 ctls
Jun 30 15:02:48 towerDefense /bsd: audio1 at uaudio0

I have been trying to pinpoint an issue where after a time of being 
away

from my computer,
when I come back my audio isn't behaving. I'm not an audio guy so I 
will

probably mess
up some terms, sorry. The pitch sounds right but the audio has a lot of
static in it. Normally
this happens after I walk away from my computer and come back maybe 
an hour

later. It
doesn't go into any sleep state, only power efficiency mode that the
monitors handle on their
own. An rcctl restart sndiod doesn't solve the issue, I have to 
physically

unplug and plug it,
then run rcctl restart sndiod and all is back to normal. Nothing 
appears in

the logs for me
to report. What can I look at when I encounter this again to see 
what is

being changed
(if anything)? Or, maybe my hardware is just progressively giving up 
the

ghost? This has been
happening for a while now.

When you walk away is it playing? you can run:

audioctl -f /dev/audioctl1

to check device state before and after the walk (empty "mode" means
it's closed, "pause=0" means it's playing or recording)




Re: USB audio garbled over time

2022-07-01 Thread Courtney

Sure enough, looks like it pauses.

Before:

name=uaudio0
mode=play,record
pause=0
active=1
nblks=16
blksz=480
rate=48000
encoding=s16le
play.channels=2
play.bytes=839040
play.errors=0
record.channels=2
record.bytes=839040
record.errors=0

After:

name=uaudio0
mode=play,record
pause=0
active=1
nblks=16
blksz=480
rate=48000
encoding=s16le
play.channels=2
play.bytes=1827840
play.errors=0
record.channels=2
record.bytes=1827840
record.errors=0

How do you unpause it then?


Courtney

On 6/30/22 21:54, Alexandre Ratchov wrote:

On Thu, Jun 30, 2022 at 03:11:18PM -0700, Courtney wrote:

Hello everyone,

I am running OpenBSD -current branch right now. I have a FiiO E10k plugged
into my board. Here is the part of the dmesg when it is connected

Jun 30 15:02:48 towerDefense /bsd: uaudio0 at uhub0 port 14 configuration 1
interface 2 "FiiO DigiHug USB Audio" rev 1.10/0.01 addr 6
Jun 30 15:02:48 towerDefense /bsd: uaudio0: class v1, full-speed, sync,
channels: 2 play, 2 rec, 3 ctls
Jun 30 15:02:48 towerDefense /bsd: audio1 at uaudio0

I have been trying to pinpoint an issue where after a time of being away
from my computer,
when I come back my audio isn't behaving. I'm not an audio guy so I will
probably mess
up some terms, sorry. The pitch sounds right but the audio has a lot of
static in it. Normally
this happens after I walk away from my computer and come back maybe an hour
later. It
doesn't go into any sleep state, only power efficiency mode that the
monitors handle on their
own. An rcctl restart sndiod doesn't solve the issue, I have to physically
unplug and plug it,
then run rcctl restart sndiod and all is back to normal. Nothing appears in
the logs for me
to report. What can I look at when I encounter this again to see what is
being changed
(if anything)? Or, maybe my hardware is just progressively giving up the
ghost? This has been
happening for a while now.

When you walk away is it playing? you can run:

audioctl -f /dev/audioctl1

to check device state before and after the walk (empty "mode" means
it's closed, "pause=0" means it's playing or recording)




Re: USB audio garbled over time

2022-06-30 Thread Alexandre Ratchov
On Thu, Jun 30, 2022 at 03:11:18PM -0700, Courtney wrote:
> Hello everyone,
> 
> I am running OpenBSD -current branch right now. I have a FiiO E10k plugged
> into my board. Here is the part of the dmesg when it is connected
> 
> Jun 30 15:02:48 towerDefense /bsd: uaudio0 at uhub0 port 14 configuration 1
> interface 2 "FiiO DigiHug USB Audio" rev 1.10/0.01 addr 6
> Jun 30 15:02:48 towerDefense /bsd: uaudio0: class v1, full-speed, sync,
> channels: 2 play, 2 rec, 3 ctls
> Jun 30 15:02:48 towerDefense /bsd: audio1 at uaudio0
> 
> I have been trying to pinpoint an issue where after a time of being away
> from my computer,
> when I come back my audio isn't behaving. I'm not an audio guy so I will
> probably mess
> up some terms, sorry. The pitch sounds right but the audio has a lot of
> static in it. Normally
> this happens after I walk away from my computer and come back maybe an hour
> later. It
> doesn't go into any sleep state, only power efficiency mode that the
> monitors handle on their
> own. An rcctl restart sndiod doesn't solve the issue, I have to physically
> unplug and plug it,
> then run rcctl restart sndiod and all is back to normal. Nothing appears in
> the logs for me
> to report. What can I look at when I encounter this again to see what is
> being changed
> (if anything)? Or, maybe my hardware is just progressively giving up the
> ghost? This has been
> happening for a while now.

When you walk away is it playing? you can run:

audioctl -f /dev/audioctl1

to check device state before and after the walk (empty "mode" means
it's closed, "pause=0" means it's playing or recording)



USB audio garbled over time

2022-06-30 Thread Courtney

Hello everyone,

I am running OpenBSD -current branch right now. I have a FiiO E10k plugged
into my board. Here is the part of the dmesg when it is connected

Jun 30 15:02:48 towerDefense /bsd: uaudio0 at uhub0 port 14 
configuration 1 interface 2 "FiiO DigiHug USB Audio" rev 1.10/0.01 addr 6
Jun 30 15:02:48 towerDefense /bsd: uaudio0: class v1, full-speed, sync, 
channels: 2 play, 2 rec, 3 ctls

Jun 30 15:02:48 towerDefense /bsd: audio1 at uaudio0

I have been trying to pinpoint an issue where after a time of being away 
from my computer,
when I come back my audio isn't behaving. I'm not an audio guy so I will 
probably mess
up some terms, sorry. The pitch sounds right but the audio has a lot of 
static in it. Normally
this happens after I walk away from my computer and come back maybe an 
hour later. It
doesn't go into any sleep state, only power efficiency mode that the 
monitors handle on their
own. An rcctl restart sndiod doesn't solve the issue, I have to 
physically unplug and plug it,
then run rcctl restart sndiod and all is back to normal. Nothing appears 
in the logs for me
to report. What can I look at when I encounter this again to see what is 
being changed
(if anything)? Or, maybe my hardware is just progressively giving up the 
ghost? This has been

happening for a while now.

Courtney



Re: Firefox and stuttering USB audio

2022-06-04 Thread Courtney

TFW your software is so complicated it might as well be proprietary.
I'll be sticking with Firefox ESR for now and hope by the time the time
the ESR version bumps this will be resolved. Otherwise I'll have to
play the worlds smallest violin. ESR doesn't have the issue.

On 6/1/22 16:02, Raul Miller wrote:

On Wed, Jun 1, 2022 at 6:13 PM Mihai Popescu  wrote:

I am not able to understand why a simple application like mpv for
example is able to play videos and streams at high resolutions with
good performance, but a "browser" needs 10 times the CPU cores and
memory and it still does it wrong enough to annoy users.

If you look at the build details for chromium:

It's layers and layers of indirection where no one really understands
how the browser works.





Re: Firefox and stuttering USB audio

2022-06-01 Thread Raul Miller
On Wed, Jun 1, 2022 at 6:13 PM Mihai Popescu  wrote:
> I am not able to understand why a simple application like mpv for
> example is able to play videos and streams at high resolutions with
> good performance, but a "browser" needs 10 times the CPU cores and
> memory and it still does it wrong enough to annoy users.

If you look at the build details for chromium:

It's layers and layers of indirection where no one really understands
how the browser works.

-- 
Raul



Re: Firefox and stuttering USB audio

2022-06-01 Thread Mihai Popescu
The idea of changing the OS implementation in order to suit an
internet browser is hilarious at least. The browsers developers are
not interested in proper implementation and inbreed of browser with OS
internals, no! All that matters is to make something work for the
browser itself.

I am not able to understand why a simple application like mpv for
example is able to play videos and streams at high resolutions with
good performance, but a "browser" needs 10 times the CPU cores and
memory and it still does it wrong enough to annoy users.

So use what you have. I enabled mfs file system. See the list for details.



Re: Firefox and stuttering USB audio

2022-06-01 Thread Geoff Steckel




On 6/1/22 4:34 PM, Courtney wrote:

I have not found it to be an issue with the number of tabs being
open, but rather anything that spikes the processor causing these
interruptions. Oddly, even on my 8 core box, just having 1 or 2
cores spiking to 100% (which FF does on demanding sites) causes
these interruptions the most. I have also simply had firefox idling
with one tab open on the new tab page causing these interruptions
sometimes even. I have a buddy using Arch Linux and said even now
with newer versions of ff he's been having some strange behavior
too.


When audio stutters on my machines I can hear the disk drive rattling.
All machines have at least 4 CPUs and sufficient memory.

Adding nice(1) to the program playing helps but
doesn't eliminate the problem.
When sndiod gets in the way things are worse.
Adding nice to it helps but again doesn't eliminate the problem.

Moving the mouse on a slower system causes stuttering.
I haven't paid attention when X isn't running.

Firefox, Chrome, Thunderbird etc. constantly execute syscalls
and very frequently do disk I/O.

I -suspect- that some lock blocks the CPU playing the audio
when other programs execute syscalls.
dt/bt probably could test this but I haven't studied them yet
nor have I studied kernel locking in any detail (big and subtle area).

I have also seen pretty certain disk I/O delays when audio is
playing and other programs compete.
The BSDs have CPU priority scheduling.
I don't think any have I/O priority scheduling.
That problem isn't simple.

Ubuntu linux successfully runs mixxx which plays & records
multichannel audio in real time with no stutteron a 1.6 GHz Celeron.
even through [adjectives deleted] pulseaudio.
This is while OBS Studio is webcasting USB video.
Keystroke/mouseclick to audio start/stop is always well under 100ms,
probably 30 ms or less

Getting that to work probably requires significant
twisty kernel & program optimization.

Geoff Steckel



Re: Firefox and stuttering USB audio

2022-06-01 Thread Courtney

I have not found it to be an issue with the number of tabs being
open, but rather anything that spikes the processor causing these
interruptions. Oddly, even on my 8 core box, just having 1 or 2
cores spiking to 100% (which FF does on demanding sites) causes
these interruptions the most. I have also simply had firefox idling
with one tab open on the new tab page causing these interruptions
sometimes even. I have a buddy using Arch Linux and said even now
with newer versions of ff he's been having some strange behavior
too.

On 5/29/22 05:24, Alexandre Ratchov wrote:

On Thu, May 26, 2022 at 02:25:16PM +0200, Peter Fröhlich wrote:

Just FYI, when I updated from a smooth 7.0 to 7.1 about a week ago, I
started experiencing audio/video stuttering that I did not before. I
am unclear on what exactly the problem is, whether it's the kernel, a
driver, Firefox, etc. I just know that I went from a "no audio/video
issues whatsoever" X230 to a "I get about 20 seconds before the next
stutter will happen" X230. :-/


How many tabs/windows do you have? With -current firefox:

$ ps ax | grep firefox | wc -l
   40

which might increase the probability of stuttering.




Re: Firefox and stuttering USB audio

2022-06-01 Thread Courtney
 
naa.5000c500b5ff7d07
sd1: 1907729MB, 512 bytes/sector, 3907029168 sectors, thin
ppb3 at pci0 dev 28 function 0 "Intel 400 Series PCIE" rev 0xf0
pci4 at ppb3 bus 4
ppb4 at pci0 dev 28 function 4 "Intel 400 Series PCIE" rev 0xf0: msi
pci5 at ppb4 bus 5
rge0 at pci5 dev 0 function 0 "Realtek RTL8125" rev 0x04: msi, address
2c:f0:5d:cc:4e:d7
ppb5 at pci0 dev 29 function 0 "Intel 400 Series PCIE" rev 0xf0: msi
pci6 at ppb5 bus 6
nvme0 at pci6 dev 0 function 0 "SanDisk WD Black NVMe" rev 0x00: msix,
NVMe 1.3
nvme0: WDBRPG5000ANC-WRSN, firmware 102000WD, serial 19190D800346
scsibus2 at nvme0: 2 targets, initiator 0
sd2 at scsibus2 targ 1 lun 0: 
sd2: 476940MB, 512 bytes/sector, 976773168 sectors
pcib0 at pci0 dev 31 function 0 "Intel Z490 LPC" rev 0x00
azalia1 at pci0 dev 31 function 3 "Intel 400 Series cAVS" rev 0x00: msi
azalia1: codecs: Realtek ALC1200
audio0 at azalia1
ichiic0 at pci0 dev 31 function 4 "Intel 400 Series SMBus" rev 0x00:
apic 2 int 16
iic0 at ichiic0
spdmem0 at iic0 addr 0x51: 16GB DDR4 SDRAM PC4-21300
spdmem1 at iic0 addr 0x53: 16GB DDR4 SDRAM PC4-21300
"Intel 400 Series SPI" rev 0x00 at pci0 dev 31 function 5 not configured
isa0 at pcib0
isadma0 at isa0
pckbc0 at isa0 port 0x60/5 irq 1 irq 12
pckbd0 at pckbc0 (kbd slot)
wskbd0 at pckbd0: console keyboard
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
vmm0 at mainbus0: VMX/EPT
efifb at mainbus0 not configured
uhidev0 at uhub0 port 1 configuration 1 interface 0 "Logitech Gaming
Mouse G502" rev 2.00/88.02 addr 2
uhidev0: iclass 3/1
ums0 at uhidev0: 16 buttons, Z and W dir
wsmouse0 at ums0 mux 0
uhidev1 at uhub0 port 1 configuration 1 interface 1 "Logitech Gaming
Mouse G502" rev 2.00/88.02 addr 2
uhidev1: iclass 3/0, 17 report ids
uhidpp0 at uhidev1
ukbd0 at uhidev1 reportid 1: 8 variable keys, 6 key codes
wskbd1 at ukbd0 mux 1
ucc0 at uhidev1 reportid 3: 652 usages, 18 keys, array
wskbd2 at ucc0 mux 1
uhid0 at uhidev1 reportid 4: input=1, output=0, feature=0
uhidev2 at uhub0 port 3 configuration 1 interface 0 "FiiO DigiHug USB
Audio" rev 1.10/0.01 addr 3
uhidev2: iclass 3/0
ucc1 at uhidev2: 25 usages, 7 keys, enum
wskbd3 at ucc1 mux 1
uaudio0 at uhub0 port 3 configuration 1 interface 2 "FiiO DigiHug USB
Audio" rev 1.10/0.01 addr 3
uaudio0: class v1, full-speed, sync, channels: 2 play, 2 rec, 3 ctls
audio1 at uaudio0
uaudio1 at uhub0 port 5 configuration 1 interface 1 "AudioPro X5
Microphone AudioPro X5 Microphone" rev 1.10/0.01 addr 4
uaudio1: class v1, full-speed, sync, channels: 2 play, 1 rec, 6 ctls
audio2 at uaudio1
uhidev3 at uhub0 port 5 configuration 1 interface 3 "AudioPro X5
Microphone AudioPro X5 Microphone" rev 1.10/0.01 addr 4
uhidev3: iclass 3/0, 81 report ids
ucc2 at uhidev3 reportid 3: 8 usages, 6 keys, enum
wskbd4 at ucc2 mux 1
uhid1 at uhidev3 reportid 17: input=63, output=0, feature=0
uhid2 at uhidev3 reportid 81: input=0, output=63, feature=0
uhidev4 at uhub0 port 6 configuration 1 interface 0 "Yubico YubiKey
FIDO" rev 2.00/5.43 addr 5
uhidev4: iclass 3/0
fido0 at uhidev4: input=64, output=64, feature=0
uhidev5 at uhub0 port 9 configuration 1 interface 0 "ELECOM TrackBall
Mouse HUGE TrackBall" rev 2.00/1.10 addr 6
uhidev5: iclass 3/1, 6 report ids
ums1 at uhidev5 reportid 1ums1: fixing Elecom report descriptor (buttons: 8)
: 8 buttons, Z and W dir
wsmouse1 at ums1 mux 0
uhid3 at uhidev5 reportid 2: input=7, output=0, feature=0
uhid4 at uhidev5 reportid 3: input=1, output=0, feature=0
uhid5 at uhidev5 reportid 4: input=1, output=0, feature=0
ucc3 at uhidev5 reportid 5: 573 usages, 18 keys, array
wskbd5 at ucc3 mux 1
uhid6 at uhidev5 reportid 6: input=0, output=0, feature=7
uhidev6 at uhub0 port 10 configuration 1 interface 0 "ZSA Technology
Labs Inc ErgoDox EZ" rev 1.10/0.01 addr 7
uhidev6: iclass 3/1
ukbd1 at uhidev6: 8 variable keys, 6 key codes
wskbd6 at ukbd1 mux 1
uhidev7 at uhub0 port 10 configuration 1 interface 1 "ZSA Technology
Labs Inc ErgoDox EZ" rev 1.10/0.01 addr 7
uhidev7: iclass 3/0, 5 report ids
uhid7 at uhidev7 reportid 3: input=2, output=0, feature=0
ucc4 at uhidev7 reportid 4: 672 usages, 18 keys, array
wskbd7 at ucc4 mux 1
ukbd2 at uhidev7 reportid 5: 128 variable keys, 0 key codes
wskbd8 at ukbd2 mux 1
uhub1 at uhub0 port 11 configuration 1 interface 0 "Genesys Logic USB2.0
Hub" rev 2.00/60.70 addr 8
uhidev8 at uhub0 port 12 configuration 1 interface 0 "MSI MYSTIC LIGHT"
rev 1.10/0.01 addr 9
uhidev8: iclass 3/0, 252 report ids
uhid8 at uhidev8 reportid 1: input=63, output=63, feature=0
uhid9 at uhidev8 reportid 2: input=63, output=63, feature=0
uhid10 at uhidev8 reportid 82: input=0, output=0, feature=184
uhid11 at uhidev8 reportid 83: input=0, output=0, feature=255
uhid12 at uhidev8 reportid 208: input=63, output=63, feature=0
uhid13 at uhidev8 reportid 250: input=63, output=63, feature=0
uhid14 at uhi

Re: Firefox and stuttering USB audio

2022-05-29 Thread Alexandre Ratchov
On Thu, May 26, 2022 at 02:25:16PM +0200, Peter Fröhlich wrote:
> Just FYI, when I updated from a smooth 7.0 to 7.1 about a week ago, I
> started experiencing audio/video stuttering that I did not before. I
> am unclear on what exactly the problem is, whether it's the kernel, a
> driver, Firefox, etc. I just know that I went from a "no audio/video
> issues whatsoever" X230 to a "I get about 20 seconds before the next
> stutter will happen" X230. :-/
> 

How many tabs/windows do you have? With -current firefox:

$ ps ax | grep firefox | wc -l
  40

which might increase the probability of stuttering.



Re: Firefox and stuttering USB audio

2022-05-26 Thread Peter Fröhlich
el Core GMM" rev 0x00 at pci0 dev 8 function 0 not configured
> pchtemp0 at pci0 dev 18 function 0 "Intel 400 Series Thermal" rev 0x00
> xhci0 at pci0 dev 20 function 0 "Intel 400 Series xHCI" rev 0x00: msi,
> xHCI 1.10
> usb0 at xhci0: USB revision 3.0
> uhub0 at usb0 configuration 1 interface 0 "Intel xHCI root hub" rev
> 3.00/1.00 addr 1
> "Intel 400 Series Shared SRAM" rev 0x00 at pci0 dev 20 function 2 not
> configured
> "Intel 400 Series HECI" rev 0x00 at pci0 dev 22 function 0 not configured
> ahci0 at pci0 dev 23 function 0 "Intel 400 Series AHCI" rev 0x00: msi,
> AHCI 1.3.1
> ahci0: PHY offline on port 0
> ahci0: port 1: 6.0Gb/s
> ahci0: PHY offline on port 2
> ahci0: port 3: 6.0Gb/s
> ahci0: PHY offline on port 4
> ahci0: PHY offline on port 5
> scsibus1 at ahci0: 32 targets
> sd0 at scsibus1 targ 1 lun 0:  naa.5000c5002ff04c94
> sd0: 457862MB, 512 bytes/sector, 937703088 sectors, thin
> sd1 at scsibus1 targ 3 lun 0: 
> naa.5000c500b5ff7d07
> sd1: 1907729MB, 512 bytes/sector, 3907029168 sectors, thin
> ppb3 at pci0 dev 28 function 0 "Intel 400 Series PCIE" rev 0xf0
> pci4 at ppb3 bus 4
> ppb4 at pci0 dev 28 function 4 "Intel 400 Series PCIE" rev 0xf0: msi
> pci5 at ppb4 bus 5
> rge0 at pci5 dev 0 function 0 "Realtek RTL8125" rev 0x04: msi, address
> 2c:f0:5d:cc:4e:d7
> ppb5 at pci0 dev 29 function 0 "Intel 400 Series PCIE" rev 0xf0: msi
> pci6 at ppb5 bus 6
> nvme0 at pci6 dev 0 function 0 "SanDisk WD Black NVMe" rev 0x00: msix,
> NVMe 1.3
> nvme0: WDBRPG5000ANC-WRSN, firmware 102000WD, serial 19190D800346
> scsibus2 at nvme0: 2 targets, initiator 0
> sd2 at scsibus2 targ 1 lun 0: 
> sd2: 476940MB, 512 bytes/sector, 976773168 sectors
> pcib0 at pci0 dev 31 function 0 "Intel Z490 LPC" rev 0x00
> azalia1 at pci0 dev 31 function 3 "Intel 400 Series cAVS" rev 0x00: msi
> azalia1: codecs: Realtek ALC1200
> audio0 at azalia1
> ichiic0 at pci0 dev 31 function 4 "Intel 400 Series SMBus" rev 0x00:
> apic 2 int 16
> iic0 at ichiic0
> spdmem0 at iic0 addr 0x51: 16GB DDR4 SDRAM PC4-21300
> spdmem1 at iic0 addr 0x53: 16GB DDR4 SDRAM PC4-21300
> "Intel 400 Series SPI" rev 0x00 at pci0 dev 31 function 5 not configured
> isa0 at pcib0
> isadma0 at isa0
> pckbc0 at isa0 port 0x60/5 irq 1 irq 12
> pckbd0 at pckbc0 (kbd slot)
> wskbd0 at pckbd0: console keyboard
> pcppi0 at isa0 port 0x61
> spkr0 at pcppi0
> vmm0 at mainbus0: VMX/EPT
> efifb at mainbus0 not configured
> uhidev0 at uhub0 port 1 configuration 1 interface 0 "Logitech Gaming
> Mouse G502" rev 2.00/88.02 addr 2
> uhidev0: iclass 3/1
> ums0 at uhidev0: 16 buttons, Z and W dir
> wsmouse0 at ums0 mux 0
> uhidev1 at uhub0 port 1 configuration 1 interface 1 "Logitech Gaming
> Mouse G502" rev 2.00/88.02 addr 2
> uhidev1: iclass 3/0, 17 report ids
> uhidpp0 at uhidev1
> ukbd0 at uhidev1 reportid 1: 8 variable keys, 6 key codes
> wskbd1 at ukbd0 mux 1
> ucc0 at uhidev1 reportid 3: 652 usages, 18 keys, array
> wskbd2 at ucc0 mux 1
> uhid0 at uhidev1 reportid 4: input=1, output=0, feature=0
> uhidev2 at uhub0 port 3 configuration 1 interface 0 "FiiO DigiHug USB
> Audio" rev 1.10/0.01 addr 3
> uhidev2: iclass 3/0
> ucc1 at uhidev2: 25 usages, 7 keys, enum
> wskbd3 at ucc1 mux 1
> uaudio0 at uhub0 port 3 configuration 1 interface 2 "FiiO DigiHug USB
> Audio" rev 1.10/0.01 addr 3
> uaudio0: class v1, full-speed, sync, channels: 2 play, 2 rec, 3 ctls
> audio1 at uaudio0
> uaudio1 at uhub0 port 5 configuration 1 interface 1 "AudioPro X5
> Microphone AudioPro X5 Microphone" rev 1.10/0.01 addr 4
> uaudio1: class v1, full-speed, sync, channels: 2 play, 1 rec, 6 ctls
> audio2 at uaudio1
> uhidev3 at uhub0 port 5 configuration 1 interface 3 "AudioPro X5
> Microphone AudioPro X5 Microphone" rev 1.10/0.01 addr 4
> uhidev3: iclass 3/0, 81 report ids
> ucc2 at uhidev3 reportid 3: 8 usages, 6 keys, enum
> wskbd4 at ucc2 mux 1
> uhid1 at uhidev3 reportid 17: input=63, output=0, feature=0
> uhid2 at uhidev3 reportid 81: input=0, output=63, feature=0
> uhidev4 at uhub0 port 6 configuration 1 interface 0 "Yubico YubiKey
> FIDO" rev 2.00/5.43 addr 5
> uhidev4: iclass 3/0
> fido0 at uhidev4: input=64, output=64, feature=0
> uhidev5 at uhub0 port 9 configuration 1 interface 0 "ELECOM TrackBall
> Mouse HUGE TrackBall" rev 2.00/1.10 addr 6
> uhidev5: iclass 3/1, 6 report ids
> ums1 at uhidev5 reportid 1ums1: fixing Elecom report descriptor (buttons: 8)
> : 8 buttons, Z and W dir
> wsmouse1 at ums1 mux 0
> uhid3 at uhidev5 reportid 2: input=7, output=

Re: Firefox and stuttering USB audio

2022-05-09 Thread Michael Stolovitzsky



On 5/6/22 10:29, Courtney wrote:

Hello all,

[snip]

* Setting dom.ipc.processCount to a lower number in about:config
* Muddled with sndiod -b and -z flags
* Set softdep,noatime for my different partitions in fstab (NVMe drive)
* Tried with/without SMT (Intel 10700k)
* Set some sysctl flags:


[snip]

uaudio0: play xfer, err = 6

This may be a driver bug, but before anything else, check the output of 
apm(1) for your performance mode.




Firefox and stuttering USB audio

2022-05-06 Thread Courtney
"Intel Z490 LPC" rev 0x00
azalia1 at pci0 dev 31 function 3 "Intel 400 Series cAVS" rev 0x00: msi
azalia1: codecs: Realtek ALC1200
audio0 at azalia1
ichiic0 at pci0 dev 31 function 4 "Intel 400 Series SMBus" rev 0x00: 
apic 2 int 16

iic0 at ichiic0
spdmem0 at iic0 addr 0x51: 16GB DDR4 SDRAM PC4-21300
spdmem1 at iic0 addr 0x53: 16GB DDR4 SDRAM PC4-21300
"Intel 400 Series SPI" rev 0x00 at pci0 dev 31 function 5 not configured
isa0 at pcib0
isadma0 at isa0
pckbc0 at isa0 port 0x60/5 irq 1 irq 12
pckbd0 at pckbc0 (kbd slot)
wskbd0 at pckbd0: console keyboard
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
vmm0 at mainbus0: VMX/EPT
efifb at mainbus0 not configured
uhidev0 at uhub0 port 1 configuration 1 interface 0 "Logitech Gaming 
Mouse G502" rev 2.00/88.02 addr 2

uhidev0: iclass 3/1
ums0 at uhidev0: 16 buttons, Z and W dir
wsmouse0 at ums0 mux 0
uhidev1 at uhub0 port 1 configuration 1 interface 1 "Logitech Gaming 
Mouse G502" rev 2.00/88.02 addr 2

uhidev1: iclass 3/0, 17 report ids
uhidpp0 at uhidev1
ukbd0 at uhidev1 reportid 1: 8 variable keys, 6 key codes
wskbd1 at ukbd0 mux 1
ucc0 at uhidev1 reportid 3: 652 usages, 18 keys, array
wskbd2 at ucc0 mux 1
uhid0 at uhidev1 reportid 4: input=1, output=0, feature=0
uhidev2 at uhub0 port 3 configuration 1 interface 0 "FiiO DigiHug USB 
Audio" rev 1.10/0.01 addr 3

uhidev2: iclass 3/0
ucc1 at uhidev2: 25 usages, 7 keys, enum
wskbd3 at ucc1 mux 1
uaudio0 at uhub0 port 3 configuration 1 interface 2 "FiiO DigiHug USB 
Audio" rev 1.10/0.01 addr 3

uaudio0: class v1, full-speed, sync, channels: 2 play, 2 rec, 3 ctls
audio1 at uaudio0
uaudio1 at uhub0 port 5 configuration 1 interface 1 "AudioPro X5 
Microphone AudioPro X5 Microphone" rev 1.10/0.01 addr 4

uaudio1: class v1, full-speed, sync, channels: 2 play, 1 rec, 6 ctls
audio2 at uaudio1
uhidev3 at uhub0 port 5 configuration 1 interface 3 "AudioPro X5 
Microphone AudioPro X5 Microphone" rev 1.10/0.01 addr 4

uhidev3: iclass 3/0, 81 report ids
ucc2 at uhidev3 reportid 3: 8 usages, 6 keys, enum
wskbd4 at ucc2 mux 1
uhid1 at uhidev3 reportid 17: input=63, output=0, feature=0
uhid2 at uhidev3 reportid 81: input=0, output=63, feature=0
uhidev4 at uhub0 port 6 configuration 1 interface 0 "Yubico YubiKey 
FIDO" rev 2.00/5.43 addr 5

uhidev4: iclass 3/0
fido0 at uhidev4: input=64, output=64, feature=0
uhidev5 at uhub0 port 9 configuration 1 interface 0 "ELECOM TrackBall 
Mouse HUGE TrackBall" rev 2.00/1.10 addr 6

uhidev5: iclass 3/1, 6 report ids
ums1 at uhidev5 reportid 1ums1: fixing Elecom report descriptor (buttons: 8)
: 8 buttons, Z and W dir
wsmouse1 at ums1 mux 0
uhid3 at uhidev5 reportid 2: input=7, output=0, feature=0
uhid4 at uhidev5 reportid 3: input=1, output=0, feature=0
uhid5 at uhidev5 reportid 4: input=1, output=0, feature=0
ucc3 at uhidev5 reportid 5: 573 usages, 18 keys, array
wskbd5 at ucc3 mux 1
uhid6 at uhidev5 reportid 6: input=0, output=0, feature=7
uhidev6 at uhub0 port 10 configuration 1 interface 0 "ZSA Technology 
Labs Inc ErgoDox EZ" rev 1.10/0.01 addr 7

uhidev6: iclass 3/1
ukbd1 at uhidev6: 8 variable keys, 6 key codes
wskbd6 at ukbd1 mux 1
uhidev7 at uhub0 port 10 configuration 1 interface 1 "ZSA Technology 
Labs Inc ErgoDox EZ" rev 1.10/0.01 addr 7

uhidev7: iclass 3/0, 5 report ids
uhid7 at uhidev7 reportid 3: input=2, output=0, feature=0
ucc4 at uhidev7 reportid 4: 672 usages, 18 keys, array
wskbd7 at ucc4 mux 1
ukbd2 at uhidev7 reportid 5: 128 variable keys, 0 key codes
wskbd8 at ukbd2 mux 1
uhub1 at uhub0 port 11 configuration 1 interface 0 "Genesys Logic USB2.0 
Hub" rev 2.00/60.70 addr 8
uhidev8 at uhub0 port 12 configuration 1 interface 0 "MSI MYSTIC LIGHT" 
rev 1.10/0.01 addr 9

uhidev8: iclass 3/0, 252 report ids
uhid8 at uhidev8 reportid 1: input=63, output=63, feature=0
uhid9 at uhidev8 reportid 2: input=63, output=63, feature=0
uhid10 at uhidev8 reportid 82: input=0, output=0, feature=184
uhid11 at uhidev8 reportid 83: input=0, output=0, feature=255
uhid12 at uhidev8 reportid 208: input=63, output=63, feature=0
uhid13 at uhidev8 reportid 250: input=63, output=63, feature=0
uhid14 at uhidev8 reportid 252: input=63, output=63, feature=0
vscsi0 at root
scsibus3 at vscsi0: 256 targets
softraid0 at root
scsibus4 at softraid0: 256 targets
root on sd2a (4ecdd5c9b68fa0c9.a) swap on sd2b dump on sd2b
drm:pid0:smu_v11_0_check_fw_version *WARNING* SMU driver if version not 
matched

[drm] REG_WAIT timeout 1us * 10 tries - mpc2_assert_idle_mpcc line:481
amdgpu0: NAVY_FLOUNDER 40 CU rev 0x00
[drm] REG_WAIT timeout 1us * 10 tries - mpc2_assert_idle_mpcc line:481
amdgpu0: 2560x1440, 32bpp
wsdisplay0 at amdgpu0 mux 1: console (std, vt100 emulation), using wskbd0
wskbd1: connecting to wsdisplay0
wskbd2: connecting to wsdisplay0
wskbd3: connecting to wsdisplay0
wskbd4: connecting to wsdisplay0
wskbd5: connecting to wsdisplay0
wskbd6: 

How to control multiple line channels in USB audio

2019-01-18 Thread Henrik Friedrichsen
Hey,

I have an ESI MAYA44 USB+
(https://www.esi-audio.com/products/maya44usb+/) with 8 channels (2
stereo input + 2 stereo output) and a headphone jack:

uaudio0 at uhub0 port 3 configuration 1 interface 0 "ESI Audiotechnik GmbH 
MAYA44 USB+" rev 1.00/3.01 addr 2
uaudio0: audio rev 1.00, 8 mixer controls
audio0 at uaudio0
uhidev0 at uhub0 port 3 configuration 1 interface 3 "ESI Audiotechnik GmbH 
MAYA44 USB+" rev 1.00/3.01 addr 2
uhidev0: iclass 3/0
uhid0 at uhidev0: input=8, output=8, feature=0

I would like to unmute the two stereo input channels to have them play
at the same time via one of the output channels. However, I'm
struggling a little.

It seems that mixerctl has given both line channels the same
identifier, so I can only unmute one of them. Also, only one output is
listed although this card has two:

inputs.line.mute=on
inputs.line=191,191
inputs.line.mute=on
inputs.line=191,191
outputs.spkr.mute=off
outputs.spkr=255,255
record.line.mute=off
record.line=0,0
record.enable=sysctl

audioctl output:
name=uaudio0
mode=
pause=0
active=0
nblks=2
blksz=960
rate=48000
encoding=s16le
play.channels=2
play.bytes=0
play.errors=0
record.channels=2
record.bytes=0
record.errors=0

Any idea what I'm missing?



Re: USB Audio, Serial Terminal

2018-10-08 Thread Stuart Henderson
On 2018-10-08, Katherine Rohl  wrote:
> The first is using my USB headphones. I’ve tried following the instructions 
> in the FAQ (making sure that the audio device is set to the correct uaudio) 
> but to no avail. I’ve disabled my system’s onboard AC’97 audio to make sure 
> that there is only one audio device (confirmed with dmesg, my headphones show 
> up as uaudio0). Which configuration stuff do I need to post for y’all to help 
> me? :(

The output from "dmesg" would help (the whole thing please, don't trim it).
"usbdevs -v" would also be good to have.

If they are connected to a controller attached as XHCI (USB-3), as Stefan
mentioned, they won't work. Sometimes there might be a BIOS setting to disable
USB-3 and use USB-2 instead, which may help. Or you can disable the xhci
driver in the kernel, sometimes the controller will attach as USB-2 instead,
sometimes it won't attach at all (which can be a problem if your keyboard needs
it). Anyway that's worth a try - at the "boot>" prompt type "boot -c", then
type "disable xhci" and "quit" if you can still type at that point.

> The second is that I have a VT420 serial terminal I’d like to use with 
> OpenBSD. I have it connected to a PL2303 USB-to-serial adapter. I’ve 
> successfully connected it to other systems using the USB-to-serial adapter, 
> but I’m having some problems with connecting it to OpenBSD. I’ve added 
> entries to ttys for the USB-to-serial adapter and I’ve set it up to use the 
> regular 9600bps gettytab entry. The terminal is configured for 9600 8N1, no 
> XON/XOFF, no RTS/CTS handshaking. 

This would normally look something like

ttyU0   "/usr/libexec/getty std.9600"   vt420 on  secure

But you could maybe try "cuaU0" instead of "ttyU0" if you are having
problems with hardware control lines (read the tty(4) manual for an
explanation of the differences).




Re: USB Audio, Serial Terminal

2018-10-08 Thread Stefan Sperling
On Mon, Oct 08, 2018 at 03:10:58AM -0400, Katherine Rohl wrote:
> Hi,
> 
> I’ve been using OpenBSD 6.3 for a few weeks and I really like it! There are 
> only two major things left that I haven’t been able to figure out.
> 
> The first is using my USB headphones. I’ve tried following the instructions 
> in the FAQ (making sure that the audio device is set to the correct uaudio) 
> but to no avail. I’ve disabled my system’s onboard AC’97 audio to make sure 
> that there is only one audio device (confirmed with dmesg, my headphones show 
> up as uaudio0). Which configuration stuff do I need to post for y’all to help 
> me? :(
> 

If this machine is using a USB3 controller driven by the xhci(4) driver,
then USB audio devices won't work. Support for the data transfer mode
these devices use (called "isochronous transfers") is not yet finished.
Progress has been slow mostly because developers with the necessary
expertise have been busy in areas other than USB.

This problem also affects USB video devices.

> The second is that I have a VT420 serial terminal I’d like to use with 
> OpenBSD. I have it connected to a PL2303 USB-to-serial adapter. I’ve 
> successfully connected it to other systems using the USB-to-serial adapter, 
> but I’m having some problems with connecting it to OpenBSD. I’ve added 
> entries to ttys for the USB-to-serial adapter and I’ve set it up to use the 
> regular 9600bps gettytab entry. The terminal is configured for 9600 8N1, no 
> XON/XOFF, no RTS/CTS handshaking. 
> 
> It connects to my system and I’m able to log in but after 15 seconds or so, 
> the terminal loses its DSR signal and the connection resets, sending me back 
> to a new login screen. Anyone have one of these terminals that may be able to 
> advise me on gettytab settings?

Not sure, I have never added an entry to gettytab.
For USB serial devices I just run cu(1) like this: cu -l /dev/cuaU0 -s 9600
In fact, 9600 is the default speed so I could omit the -s option in this
case, but the -s option is required for other baud rates.
Does that work for you?

> Other than that, I’m very pleased with the OS, especially with how quiet my 
> computer is when idle compared to running, say, Windows 10 ;)
> 

That's great :) Glad to hear it is working well for you!

> Thank you for your assistance!
> 
> - Katherine
> 



Re: USB Audio, Serial Terminal

2018-10-08 Thread Alexandre Ratchov
On Mon, Oct 08, 2018 at 03:10:58AM -0400, Katherine Rohl wrote:
>
>  The first is using my USB headphones. I’ve tried following the
> instructions in the FAQ (making sure that the audio device is set to
> the correct uaudio) but to no avail. I’ve disabled my system’s
> onboard AC’97 audio to make sure that there is only one audio device
> (confirmed with dmesg, my headphones show up as uaudio0). Which
> configuration stuff do I need to post for y’all to help me? :(

What's the symptom? no sound at all? distorted sound?

You don't need to disable the onboard device; if the usb devices
shows as audio1 in dmesg, just add:

sndiod_flags='-f rsnd/1'

to /etc/rc.conf.local and restard sndiod as:

doas rcctl restart sndiod

Then play any file, ex. "aucat -i /foo/bar.wav" to see it it works. If
it doesn't, first send dmesg (after the test).



USB Audio, Serial Terminal

2018-10-08 Thread Katherine Rohl
Hi,

I’ve been using OpenBSD 6.3 for a few weeks and I really like it! There are 
only two major things left that I haven’t been able to figure out.

The first is using my USB headphones. I’ve tried following the instructions in 
the FAQ (making sure that the audio device is set to the correct uaudio) but to 
no avail. I’ve disabled my system’s onboard AC’97 audio to make sure that there 
is only one audio device (confirmed with dmesg, my headphones show up as 
uaudio0). Which configuration stuff do I need to post for y’all to help me? :(

The second is that I have a VT420 serial terminal I’d like to use with OpenBSD. 
I have it connected to a PL2303 USB-to-serial adapter. I’ve successfully 
connected it to other systems using the USB-to-serial adapter, but I’m having 
some problems with connecting it to OpenBSD. I’ve added entries to ttys for the 
USB-to-serial adapter and I’ve set it up to use the regular 9600bps gettytab 
entry. The terminal is configured for 9600 8N1, no XON/XOFF, no RTS/CTS 
handshaking. 

It connects to my system and I’m able to log in but after 15 seconds or so, the 
terminal loses its DSR signal and the connection resets, sending me back to a 
new login screen. Anyone have one of these terminals that may be able to advise 
me on gettytab settings?

Other than that, I’m very pleased with the OS, especially with how quiet my 
computer is when idle compared to running, say, Windows 10 ;)

Thank you for your assistance!

- Katherine



Re: Burr-Brown USB Audio Support

2018-09-15 Thread Mikko Laine
Stuart Henderson  wrote:

> In that case, modify the kernel on-disk with config -ef (and keep a copy
> of the standard kernel that you can boot in case of problems). Usually
> a USB2 driver will attach instead. The problem is that OpenBSD doesn't
> support isochronous transfers on XHCI yet.

Thanks, unfortunately the modified kernel renders my input devices
useless.



Re: Burr-Brown USB Audio Support

2018-09-15 Thread Stuart Henderson
On 2018-09-15, Mikko Laine  wrote:
> Stuart Henderson  wrote:
>
>> To have a chance of working, you will need to use a kernel with xhci
>> disabled. It might need more than that as well. To test, "boot -c" at
>> the boot prompt, "disable xhci", "quit", You can modify an on-disk
>> kernel with "config -ef /bsd", or build your own with this diff.
>
> Upon entering the UKC with boot -c, my input devices stop working and I
> cannot try disabling xhci this way.
>
> I have a way to disable xhci once and for all in the BIOS, but this will
> affect my input devices (USB) and make the box useless for my purposes.
>
> Thanks for your reply.

In that case, modify the kernel on-disk with config -ef (and keep a copy
of the standard kernel that you can boot in case of problems). Usually
a USB2 driver will attach instead. The problem is that OpenBSD doesn't
support isochronous transfers on XHCI yet.



Re: Burr-Brown USB Audio Support

2018-09-15 Thread Mikko Laine
Stuart Henderson  wrote:

> To have a chance of working, you will need to use a kernel with xhci
> disabled. It might need more than that as well. To test, "boot -c" at
> the boot prompt, "disable xhci", "quit", You can modify an on-disk
> kernel with "config -ef /bsd", or build your own with this diff.

Upon entering the UKC with boot -c, my input devices stop working and I
cannot try disabling xhci this way.

I have a way to disable xhci once and for all in the BIOS, but this will
affect my input devices (USB) and make the box useless for my purposes.

Thanks for your reply.
-- 
  Mikko Laine
  PGP: E39927E377E85036
  http://mlaine.sdfeu.org/



Re: Burr-Brown USB Audio Support

2018-09-14 Thread Stuart Henderson
On 2018-09-14, Mikko Laine  wrote:
> Greetings misc@,
>
> I have troubles getting my speakers with built-in DAC to work.
>
> After doing
>
> # rcctl set sndiod flags -f rsnd/1
> # rcctl restart sndiod
>
> I get
>
> uaudio_chan_open: error creating pipe: err=INVAL endpt=0x02
> audio1: failed to start playback
> uaudio_chan_open: error creating pipe: err=INVAL endpt=0x84
> audio1: failed to start recording
>
> in the dmesg and no sound. Thank you for any assistance.

To have a chance of working, you will need to use a kernel with xhci
disabled. It might need more than that as well. To test, "boot -c" at
the boot prompt, "disable xhci", "quit", You can modify an on-disk
kernel with "config -ef /bsd", or build your own with this diff.

Index: arch/amd64/conf/GENERIC
===
RCS file: /cvs/src/sys/arch/amd64/conf/GENERIC,v
retrieving revision 1.463
diff -u -p -r1.463 GENERIC
--- arch/amd64/conf/GENERIC 31 Aug 2018 00:09:13 -  1.463
+++ arch/amd64/conf/GENERIC 14 Sep 2018 23:07:51 -
@@ -195,7 +195,7 @@ cardbus*at cardslot?
 pcmcia*at cardslot?
 
 # USB Controllers
-xhci*  at pci? # eXtensible Host Controller
+xhci*  at pci? disable # eXtensible Host Controller
 ehci*  at pci? # Enhanced Host Controller
 ehci*  at cardbus? # Enhanced Host Controller
 uhci*  at pci? # Universal Host Controller (Intel)



Burr-Brown USB Audio Support

2018-09-14 Thread Mikko Laine
ahci0: port 0: 3.0Gb/s
ahci0: PHY offline on port 1
scsibus1 at ahci0: 32 targets
sd0 at scsibus1 targ 0 lun 0:  SCSI3
0/direct fixed naa.500a0751e10a6600
sd0: 476940MB, 512 bytes/sector, 976773168 sectors, thin
xhci0 at pci0 dev 20 function 0 "Intel Braswell xHCI" rev 0x35: msi,
xHCI 1.0
usb0 at xhci0: USB revision 3.0
uhub0 at usb0 configuration 1 interface 0 "Intel xHCI root hub" rev
3.00/1.00 addr 1
"Intel Braswell TXE" rev 0x35 at pci0 dev 26 function 0 not
configured
azalia0 at pci0 dev 27 function 0 "Intel Braswell HD Audio" rev
0x35: msi
azalia0: codecs: Realtek ALC662, Intel/0x2883, using Realtek ALC662
audio0 at azalia0
ppb0 at pci0 dev 28 function 0 "Intel Braswell PCIE" rev 0x35: msi
pci1 at ppb0 bus 1
em0 at pci1 dev 0 function 0 "Intel I211" rev 0x03: msi, address
00:18:7d:b0:19:8d
ppb1 at pci0 dev 28 function 1 "Intel Braswell PCIE" rev 0x35: msi
pci2 at ppb1 bus 2
em1 at pci2 dev 0 function 0 "Intel I211" rev 0x03: msi, address
00:18:7d:b0:19:8e
pcib0 at pci0 dev 31 function 0 "Intel Braswell PCU LPC" rev 0x35
ichiic0 at pci0 dev 31 function 3 "Intel Braswell SMBus" rev 0x35:
apic 1 int 18
iic0 at ichiic0
iic0: addr 0x2d 01=03 02=00 03=01 04=00 08=4c 09=00 0a=20 0b=00
0c=55 0d=00 0f=20 10=00 11=00 12=06 14=00 15=00 16=00 17=00 20=c4
21=aa 22=b6 23=ba 24=9f 25=cf 26=c8 27=cf 2d=a9 2e=c0 2f=c2 30=89
31=f2 36=e2 37=e1 38=83 39=96 3f=00 40=44 41=00 42=00 43=00 44=00
45=00 46=00 47=00 48=00 49=00 4a=00 4b=00 4c=00 4d=00 4e=00 4f=00
50=00 51=47 53=00 54=00 55=1a 56=01 60=00 61=44 62=00 63=00 64=00
66=02 67=00 68=00 69=00 6b=00 6c=44 6d=04 6f=00 70=36 72=c4 74=35
7a=00 7b=00 7c=00 7d=00 7e=00 7f=00 80=46 81=3c 82=64 83=55 84=64
85=55 8e=aa 90=00 91=07 92=07 93=00 94=05 96=15 97=00 98=44 99=02
9a=00 9b=15 9c=55 9d=05 9e=66 9f=0a a0=0f a2=00 a3=80 a4=03 a6=3c
a7=32 a8=28 a9=1e ab=d9 ac=b2 ad=99 ae=80 af=1d b0=0f b2=00 b3=c0
b4=03 b6=3c b7=32 b8=28 b9=1e bb=d9 bc=b2 bd=99 be=80 bf=1e c0=0f
c2=00 c3=c2 c4=03 c6=3c c7=32 c8=28 c9=1e cb=d9 cc=b2 cd=99 ce=80
cf=1f e0=00 e1=00 e2=00 e3=00 e4=00 e5=00 e6=00 e7=00 e8=00 ec=00
ed=00 ee=81 ef=00 f0=00 f1=00 f2=00 f3=00 f4=00 f5=00 f6=37 f7=45
f8=02 f9=00 fb=00 fc=35 fd=00 ff=00 words 00=ff08 01=0399 02=002d
03=0141 04=0050 05=ffc8 06=ff75 07=ff1e
spdmem0 at iic0 addr 0x50: 2GB DDR3 SDRAM PC3-12800 SO-DIMM
isa0 at pcib0
isadma0 at isa0
com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
com0: probed fifo depth: 15 bytes
com1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo
com1: probed fifo depth: 15 bytes
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
uhidev0 at uhub0 port 1 configuration 1 interface 0 "Kensington
Kensington Expert Mouse" rev 1.10/1.00 addr 2
uhidev0: iclass 3/1
ums0 at uhidev0: 4 buttons, Z dir
wsmouse0 at ums0 mux 0
uhidev1 at uhub0 port 2 configuration 1 interface 0
"TrulyErgonomic.com Truly Ergonomic Computer Keyboard" rev 1.11/1.30
addr 3
uhidev1: iclass 3/1
ukbd0 at uhidev1: 8 variable keys, 6 key codes
wskbd0 at ukbd0: console keyboard, using wsdisplay0
uhidev2 at uhub0 port 2 configuration 1 interface 1
"TrulyErgonomic.com Truly Ergonomic Computer Keyboard" rev 1.11/1.30
addr 3
uhidev2: iclass 3/0, 1 report id
uhid0 at uhidev2 reportid 1: input=1, output=0, feature=0
vscsi0 at root
scsibus2 at vscsi0: 256 targets
softraid0 at root
scsibus3 at softraid0: 256 targets
root on sd0a (a2d215b46dd4daee.a) swap on sd0b dump on sd0b
uaudio0 at uhub0 port 3 configuration 1 interface 0 "Burr-Brown from
TI USB Audio CODEC" rev 1.10/1.00 addr 4
uaudio0: audio rev 1.00, 2 mixer controls
audio1 at uaudio0
uhidev3 at uhub0 port 3 configuration 1 interface 3 "Burr-Brown from
TI USB Audio CODEC" rev 1.10/1.00 addr 4
uhidev3: iclass 3/0
uhid1 at uhidev3: input=1, output=0, feature=0
uaudio_chan_open: error creating pipe: err=INVAL endpt=0x02
audio1: failed to start playback
uaudio_chan_open: error creating pipe: err=INVAL endpt=0x84
audio1: failed to start recording



Burr-Brown USB Audio Support

2018-09-14 Thread Mikko Laine
Greetings misc@,

I have troubles getting my speakers with built-in DAC to work.

After doing

# rcctl set sndiod flags -f rsnd/1
# rcctl restart sndiod

I get

uaudio_chan_open: error creating pipe: err=INVAL endpt=0x02
audio1: failed to start playback
uaudio_chan_open: error creating pipe: err=INVAL endpt=0x84
audio1: failed to start recording

in the dmesg and no sound. Thank you for any assistance.
-- 
  Mikko Laine
  http://mlaine.sdfeu.org/



Problem using usb audio device

2018-05-31 Thread Lars


Hello misc,

I am currently trying to get an usb audio device to work on my system
which fails. My motherboard has an onboard audio interface that gets
detected as azalia device and works without issues.

Additionally I have a Griffin iMic usb audio adapter that I would like
to use instead of the onboard audio device. It gets detected as uaudio0.
Disabling the onboard audio in BIOS lets sndiod automatically connect
the usb device but audio playback results in not working at all and
repeating the following errors in dmesg:

uaudio_chan_open: error creating pipe: err=INVAL endpt=0x01
audio1: failed to start playback
uaudio_chan_open: error creating pipe: err=INVAL endpt=0x84
audio1: failed to start recording

With both audio devices present I also tried to switch the default
device for sndiod to the usb device according to
https://www.openbsd.org/faq/faq13.html which results in the same errors
appearing in dmesg.

rc.conf.local:
sndiod_flags=-f rsnd/1

My audio application (quodlibet) freezes and crashes after a while with
a core dump. Video playback in Firefox also freezes but firefox isn't
crashing.

Has anybody tried this and probably seen this before? Is there more I
can do to debug the issue? Using different usb ports on the system
makes no difference.

Any hint is highly apprechiated

Thanks and regards

Lars


OpenBSD 6.3-current (GENERIC.MP) #55: Thu May 31 07:21:36 MDT 2018
dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 8438255616 (8047MB)
avail mem = 8174370816 (7795MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.7 @ 0xd939b018 (75 entries)
bios0: vendor American Megatrends Inc. version "2501" date 07/22/2015
bios0: ASUS All Series
acpi0 at bios0: rev 2
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP APIC FPDT LPIT SSDT SSDT MCFG HPET SSDT SSDT
BGRT acpi0: wakeup devices UAR1(S4) PXSX(S4) RP01(S4) PXSX(S4) PXSX(S4)
RP03(S4) PXSX(S4) PXSX(S4) PXSX(S4) GLAN(S4) EHC1(S4) EHC2(S4) XHC_(S4)
HDEF(S4) PEG0(S4) PEGP(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) i3-4360 CPU @ 3.70GHz,
3691.89 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,SDBG,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,RDTSCP,LONG,LAHF,ABM,PERF,ITSC,FSGSBASE,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID,IBRS,IBPB,STIBP,SENSOR,ARAT,MELTDOWN
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
using xsaveopt
cpu0: apic clock running at 99MHz
cpu0: mwait min=64, max=64, C-substates=0.2.1.2.4, IBE
cpu1 at mainbus0: apid 2 (application processor)
cpu1: Intel(R) Core(TM) i3-4360 CPU @ 3.70GHz, 3691.46 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,SDBG,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,RDTSCP,LONG,LAHF,ABM,PERF,ITSC,FSGSBASE,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID,IBRS,IBPB,STIBP,SENSOR,ARAT,MELTDOWN
cpu1: 256KB 64b/line 8-way L2 cache cpu1: smt 0, core 1, package 0
cpu2 at mainbus0: apid 1 (application processor)
cpu2: Intel(R) Core(TM) i3-4360 CPU @ 3.70GHz, 3691.46 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,SDBG,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,RDTSCP,LONG,LAHF,ABM,PERF,ITSC,FSGSBASE,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID,IBRS,IBPB,STIBP,SENSOR,ARAT,MELTDOWN
cpu2: 256KB 64b/line 8-way L2 cache cpu2: smt 1, core 0, package 0
cpu3 at mainbus0: apid 3 (application processor)
cpu3: Intel(R) Core(TM) i3-4360 CPU @ 3.70GHz, 3691.46 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,SDBG,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,RDTSCP,LONG,LAHF,ABM,PERF,ITSC,FSGSBASE,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID,IBRS,IBPB,STIBP,SENSOR,ARAT,MELTDOWN
cpu3: 256KB 64b/line 8-way L2 cache cpu3: smt 1, core 1, package 0
ioapic0 at mainbus0: apid 8 pa 0xfec0, version 20, 24 pins
acpimcfg0 at acpi0 addr 0xf800, bus 0-63
acpihpet0 at acpi0: 14318179 Hz
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 2 (RP01)
acpiprt2 at acpi0: bus 3 (RP03)
acpiprt3 at acpi0: bus 1 (PEG0)
acpiprt4 at acpi0: bus -1 (PEG1)
acpiprt5 at acpi0: bus -1 (PEG2)
acpiec0 at acpi0: not present
acpicpu0 at acpi0: C2(200@148 mwait.1@0x33), C1(1000@1 mwa

usb audio stutters during inteldrm scrolling

2015-11-08 Thread gwes
scsibus2 targ 4 lun 0: <ATA, WDC WD30EZRX-00D, 80.0> SCSI3 
0/direct fixed naa.50014ee0590e804b

sd2: 2861588MB, 512 bytes/sector, 5860533168 sectors
sd3 at scsibus2 targ 5 lun 0: <ATA, WDC WD30EZRX-00D, 80.0> SCSI3 
0/direct fixed naa.50014ee0590e892f

sd3: 2861588MB, 512 bytes/sector, 5860533168 sectors
ichiic0 at pci0 dev 31 function 3 "Intel 7 Series SMBus" rev 0x04: apic 
2 int 18

iic0 at ichiic0
spdmem0 at iic0 addr 0x50: 4GB DDR3 SDRAM isadma0 at isa0spdmem1 at iic0 
addr 0x52: 4GB DDR3 SDRAM PC3-12800

isa0 at pcib0
isadma0 at isa0
com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
pckbc0 at isa0 port 0x60/5 irq 1 irq 12
pckbd0 at pckbc0 (kbd slot)
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
lpt0 at isa0 port 0x378/4 irq 7
it0 at isa0 port 0x2e/2: IT8728F rev 1, EC port 0xa30
uhub2 at uhub0 port 1 "Intel Rate Matching Hub" rev 2.00/0.00 addr 2
uhub3 at uhub2 port 3 "NEC hub" rev 2.00/1.00 addr 3
uhub4 at uhub3 port 3 "ATEN International product 0x8021" rev 1.10/1.00 
addr 4
uhidev0 at uhub4 port 1 configuration 1 interface 0 "IOGEAR GCS1804 
V1.5.141" rev 1.10/1.00 addr 5

uhidev0: iclass 3/1
ukbd0 at uhidev0: 8 variable keys, 6 key codes
wskbd1 at ukbd0 mux 1
wskbd1: connecting to wsdisplay0
uhidev1 at uhub4 port 1 configuration 1 interface 1 "IOGEAR GCS1804 
V1.5.141" rev 1.10/1.00 addr 5uhidev1: iclass 3/1

ums0 at uhidev1: 5 buttons, Z dir
wsmouse0 at ums0 mux 0
uhub5 at uhub1 port 1 "Intel Rate Matching Hub" rev 2.00/0.00 addr 2
vscsi0 at root
scsibus3 at vscsi0: 256 targets
softraid0 at root
scsibus4 at softraid0: 256 targets
sd4 at scsibus4 targ 1 lun 0: <OPENBSD, SR RAID 1, 005> SCSI2 0/direct fixed
sd4: 2759181MB, 512 bytes/sector, 5650803952 sectors
softraid0: volume sd4 is roaming, it used to be sd3, updating metadata
softraid0: roaming device sd2d -> sd3d
softraid0: roaming device sd1d -> sd2d
root on sd0a (2a081791fe686cf5.a) swap on sd0b dump on sd0b
umass0 at uhub5 port 2 configuration 1 interface 0 "JMicron JM20336 
SATA, USB Combo" rev 2.00/1.00 addr 3

umass0: using SCSI over Bulk-Only
scsibus5 at umass0: 2 targets, initiator 0
sd5 at scsibus5 targ 1 lun 0: <TOSHIBA, MQ01ABD100, > SCSI2 0/direct 
fixed serial.152d2336388C

sd5: 953869MB, 512 bytes/sector, 1953525168 sectors
uaudio0 at uhub5 port 1 configuration 1 interface 0 "Burr-Brown from TI 
USB Audio CODEC" rev 1.10/1.00 addr 4

uaudio0: audio rev 1.00, 2 mixer controls
audio1 at uaudio0
uhidev2 at uhub5 port 1 configuration 1 interface 3 "Burr-Brown from TI 
USB Audio CODEC" rev 1.10/1.00 addr 4

uhidev2: iclass 3/0
uhid0 at uhidev2: input=1, output=0, feature=0



Re: Usb-audio not working

2015-04-18 Thread Max Fillinger
On Fri, Apr 17, 2015 at 10:04:32PM +, Stuart Henderson wrote:
 On 2015-04-17, Timo Myyra timo.my...@wickedbsd.net wrote:
  After setting the sdiod_flags I get sound from headset but its distorted.
 
 This code isn't fully working yet.
 

FWIW, it works for me when the USB DAC is the only device on a hub.



Usb-audio not working

2015-04-17 Thread Timo Myyra

Hi,

I saw recent commit which should have enabled uaudio support for 
ehci-only systems.

It doesn't seem to work for desktop with my USB DAC.

So far I've changed the following symlinks to point to my USB DAC.

zmyrgel:2202$ ls -la /dev/{audio,sound,audioctl,mixer}
lrwxr-xr-x  1 root  wheel  11 Apr 17 15:57 /dev/audio@ - /dev/audio1
lrwxr-xr-x  1 root  wheel  14 Apr 17 15:57 /dev/audioctl@ - /dev/audioctl1
lrwxr-xr-x  1 root  wheel  11 Apr 17 15:57 /dev/mixer@ - /dev/mixer1
lrwxr-xr-x  1 root  wheel  11 Apr 17 15:57 /dev/sound@ - /dev/sound1

It seems to work as per audioctl and mixerctl output:

zmyrgel:2204$ mixerctl
outputs.spkr.mute=off
outputs.spkr=255,255
zmyrgel:2205$ audioctl
name=USB audio
encodings=slinear_le:16:2:1,slinear_le:24:3:1
properties=independent
hiwat=7
lowat=5
mode=
play.rate=44100
play.channels=2
play.precision=16
play.bps=2
play.msb=1
play.encoding=slinear_le
play.samples=0
play.pause=0
play.active=0
play.block_size=8816
play.errors=0
record.rate=44100
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=8816
record.errors=0

When I use mplayer or audacious, both seem to playback just fine except 
I can't hear anything from my headset. Am I missing something here?


zmyrgel:2204$ dmesg
OpenBSD 5.7-current (GENERIC.MP) #912: Sat Apr 11 13:12:26 MDT 2015
dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 8481976320 (8089MB)
avail mem = 8221065216 (7840MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.6 @ 0xeb0f0 (28 entries)
bios0: vendor American Megatrends Inc. version P1.60 date 07/13/2011
bios0: ASRock Z68 Pro3
acpi0 at bios0: rev 2
acpi0: sleep states S0 S1 S3 S4 S5
acpi0: tables DSDT FACP APIC SSDT MCFG AAFT HPET SLIC
acpi0: wakeup devices CIR_(S3) PS2K(S4) PS2M(S4) UAR1(S4) BR20(S4) 
EUSB(S4) USBE(S4) PEX0(S4) PEX1(S4) PEX2(S4) PEX3(S4) PEX4(S4) PE2P(S4) 
PEX5(S4) PEX6(S4) PEX7(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) i5-2500K CPU @ 3.30GHz, 3293.06 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,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,POPCNT,DEADLINE,AES,XSAVE,AVX,NXE,LONG,LAHF,PERF,ITSC

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.1.0, IBE
cpu1 at mainbus0: apid 2 (application processor)
cpu1: Intel(R) Core(TM) i5-2500K CPU @ 3.30GHz, 3292.53 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,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,POPCNT,DEADLINE,AES,XSAVE,AVX,NXE,LONG,LAHF,PERF,ITSC

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) i5-2500K CPU @ 3.30GHz, 3292.53 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,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,POPCNT,DEADLINE,AES,XSAVE,AVX,NXE,LONG,LAHF,PERF,ITSC

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) i5-2500K CPU @ 3.30GHz, 3292.53 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,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,POPCNT,DEADLINE,AES,XSAVE,AVX,NXE,LONG,LAHF,PERF,ITSC

cpu3: 256KB 64b/line 8-way L2 cache
cpu3: smt 0, core 3, package 0
ioapic0 at mainbus0: apid 0 pa 0xfec0, version 20, 24 pins
acpimcfg0 at acpi0 addr 0xe000, bus 0-255
acpihpet0 at acpi0: 14318179 Hz
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus -1 (BR20)
acpiprt2 at acpi0: bus 2 (PEX0)
acpiprt3 at acpi0: bus -1 (PEX1)
acpiprt4 at acpi0: bus -1 (PEX2)
acpiprt5 at acpi0: bus 3 (PEX4)
acpiprt6 at acpi0: bus 4 (PE2P)
acpiprt7 at acpi0: bus 5 (PEX5)
acpiprt8 at acpi0: bus 6 (PEX6)
acpiprt9 at acpi0: bus 7 (PEX7)
acpiprt10 at acpi0: bus 1 (P0P1)
acpiprt11 at acpi0: bus -1 (P0P2)
acpiprt12 at acpi0: bus -1 (P0P3)
acpiprt13 at acpi0: bus -1 (P0P4)
acpicpu0 at acpi0: C3, C3, C1, PSS
acpicpu1 at acpi0: C3, C3, C1, PSS
acpicpu2 at acpi0: C3, C3, C1, PSS
acpicpu3 at acpi0: C3, C3, C1, PSS
acpibtn0 at acpi0: SLPB
acpibtn1 at acpi0: PWRB
cpu0: Enhanced SpeedStep 3293 MHz: speeds: 3301, 3300, 3100, 2900, 2700, 
2500, 2300, 2100, 1900, 1700, 1600 MHz

pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 Intel

Re: Usb-audio not working

2015-04-17 Thread Timo Myyra

On 04/17/15 18:28, Alexandre Ratchov wrote:

On Fri, Apr 17, 2015 at 04:11:16PM +0300, Timo Myyra wrote:

Hi,

I saw recent commit which should have enabled uaudio support for ehci-only
systems.
It doesn't seem to work for desktop with my USB DAC.

So far I've changed the following symlinks to point to my USB DAC.

zmyrgel:2202$ ls -la /dev/{audio,sound,audioctl,mixer}
lrwxr-xr-x  1 root  wheel  11 Apr 17 15:57 /dev/audio@ - /dev/audio1
lrwxr-xr-x  1 root  wheel  14 Apr 17 15:57 /dev/audioctl@ - /dev/audioctl1
lrwxr-xr-x  1 root  wheel  11 Apr 17 15:57 /dev/mixer@ - /dev/mixer1
lrwxr-xr-x  1 root  wheel  11 Apr 17 15:57 /dev/sound@ - /dev/sound1


programs don't use the symlinks any longer, try to set sndiod_flags
to -f rsnd/1 and restart sndiod


It seems to work as per audioctl and mixerctl output:

zmyrgel:2204$ mixerctl
outputs.spkr.mute=off
outputs.spkr=255,255
zmyrgel:2205$ audioctl
name=USB audio
encodings=slinear_le:16:2:1,slinear_le:24:3:1
properties=independent
hiwat=7
lowat=5
mode=
play.rate=44100
play.channels=2
play.precision=16
play.bps=2
play.msb=1
play.encoding=slinear_le
play.samples=0
play.pause=0
play.active=0
play.block_size=8816
play.errors=0
record.rate=44100
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=8816
record.errors=0

When I use mplayer or audacious, both seem to playback just fine except I
can't hear anything from my headset. Am I missing something here?

probably programs are still using the first device.



Thanks, but there seems to be more to this.
After setting the sdiod_flags I get sound from headset but its distorted.
I tried to play around with audioctl but couldn't make any difference.

The DAC and headset works fine on windows/linux side so hardware-wise 
everything is ok.


timo



Re: Usb-audio not working

2015-04-17 Thread Stuart Henderson
On 2015-04-17, Timo Myyra timo.my...@wickedbsd.net wrote:
 After setting the sdiod_flags I get sound from headset but its distorted.

This code isn't fully working yet.



Re: Usb-audio not working

2015-04-17 Thread Alexandre Ratchov
On Fri, Apr 17, 2015 at 04:11:16PM +0300, Timo Myyra wrote:
 Hi,
 
 I saw recent commit which should have enabled uaudio support for ehci-only
 systems.
 It doesn't seem to work for desktop with my USB DAC.
 
 So far I've changed the following symlinks to point to my USB DAC.
 
 zmyrgel:2202$ ls -la /dev/{audio,sound,audioctl,mixer}
 lrwxr-xr-x  1 root  wheel  11 Apr 17 15:57 /dev/audio@ - /dev/audio1
 lrwxr-xr-x  1 root  wheel  14 Apr 17 15:57 /dev/audioctl@ - /dev/audioctl1
 lrwxr-xr-x  1 root  wheel  11 Apr 17 15:57 /dev/mixer@ - /dev/mixer1
 lrwxr-xr-x  1 root  wheel  11 Apr 17 15:57 /dev/sound@ - /dev/sound1
 

programs don't use the symlinks any longer, try to set sndiod_flags
to -f rsnd/1 and restart sndiod

 It seems to work as per audioctl and mixerctl output:
 
 zmyrgel:2204$ mixerctl
 outputs.spkr.mute=off
 outputs.spkr=255,255
 zmyrgel:2205$ audioctl
 name=USB audio
 encodings=slinear_le:16:2:1,slinear_le:24:3:1
 properties=independent
 hiwat=7
 lowat=5
 mode=
 play.rate=44100
 play.channels=2
 play.precision=16
 play.bps=2
 play.msb=1
 play.encoding=slinear_le
 play.samples=0
 play.pause=0
 play.active=0
 play.block_size=8816
 play.errors=0
 record.rate=44100
 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=8816
 record.errors=0
 
 When I use mplayer or audacious, both seem to playback just fine except I
 can't hear anything from my headset. Am I missing something here?

probably programs are still using the first device.



Re: usb audio interfaces

2014-08-30 Thread Erwin Geerdink
 at ums0 mux 0

uaudio0 at uhub5 port 1 configuration 1 interface 0 Alesis io|2 rev
1.10/1.01 addr 2 uaudio0: audio rev 1.00, 0 mixer controls
audio1 at uaudio0
umidi0 at uhub5 port 1 configuration 1 interface 3 Alesis io|2 rev
1.10/1.01 addr 2 umidi0: (genuine USB-MIDI)
umidi0: out=1, in=1
midi0 at umidi0: USB MIDI I/F

vscsi0 at root
scsibus3 at vscsi0: 256 targets
softraid0 at root
scsibus4 at softraid0: 256 targets
root on sd0a (90576285432bdc4e.a) swap on sd0b dump on sd0b
drm: initializing kernel modesetting (RS780 0x1002:0x9616
0x1458:0xD000). radeondrm0: VRAM: 512M 0xC000 -
0xDFFF (512M used) radeondrm0: GTT: 512M 0xA000
- 0xBFFF drm: PCIE GART of 512M enabled (table at
0xC004). radeondrm0: 1024x768
wsdisplay0 at radeondrm0 mux 1: console (std, vt100 emulation), using
wskbd0 wsdisplay0: screen 1-5 added (std, vt100 emulation)


$ audioctl -f /dev/audioctl1 
name=USB audio
version=
config=uaudio
encodings=slinear_le:24:3:1
properties=full_duplex,independent
full_duplex=0
fullduplex=0
blocksize=5760
hiwat=9
lowat=8
output_muted=0
monitor_gain=0
mode=
play.rate=48000
play.channels=2
play.precision=24
play.bps=3
play.msb=1
play.encoding=slinear_le
play.gain=127
play.balance=32
play.port=0x0
play.avail_ports=0x0
play.seek=0
play.samples=0
play.eof=0
play.pause=1
play.error=0
play.waiting=0
play.open=0
play.active=0
play.buffer_size=65536
play.block_size=5760
play.errors=0
record.rate=48000
record.channels=2
record.precision=24
record.bps=3
record.msb=1
record.encoding=slinear_le
record.gain=127
record.balance=32
record.port=0x0
record.avail_ports=0x0
record.seek=0
record.samples=0
record.eof=0
record.pause=1
record.error=0
record.waiting=0
record.open=0
record.active=0
record.buffer_size=65536
record.block_size=5760
record.errors=0


$ mixerctl -f /dev/mixer1 
$


-- 
Erwin Geerdink



Re: usb audio interfaces

2014-08-02 Thread Erwin Geerdink
Thanks, the Presonus and Alesis interfaces are class compliant devices
according to their user manuals. So I ordered the Alesis IO|2;
the Presonus appears to lack line-level inputs.

The interface will be connected to an older notebook with USB1.1
hubs, which should be fine. Will try it with some USB2.0 hubs as well. 

Best,
-- 
Erwin



On Thu, 31 Jul 2014 12:55:47 +0200
Alexandre Ratchov a...@caoua.org wrote:

 On Thu, Jul 31, 2014 at 12:48:35AM +0200, Erwin Geerdink wrote:
  Hi,
  
  I'm considering the following usb interfaces for my audio setup:
  
  E-MU 0204 usb
  E-MU Tracker Pre
  Presonus Audiobox usb
  Alesis IO|2 Express
  
  Recording will be done on a Windows machine, however it would be
  nice if I can use it for audio playback from an OpenBSD machine as
  well. I found the envy(4) and emu(4) man pages but I'm still not
  sure whether playback would work with any of these devices.
  
  Anyone experiences or suggestions?
  
 
 Hi,
 
 These devices are handled by the uaudio driver, assuming they are
 USB class compliant (driverless ones are likely to be).
 
 Unfortunately, on OpenBSD, USB1.1 devices using isochronous
 transfers don't work behind USB 2.0 hubs yet. In other words USB1.1
 audio cards are unlikely work on modern machines. I'd suggest you
 to test the cards if possible (just plug it try to play a simple
 .wav file).
 
 Another option, would be to get a old USB1.1 adapter and attach the
 USB1.1 card on it.



Re: usb audio interfaces

2014-07-31 Thread Alexandre Ratchov
On Thu, Jul 31, 2014 at 12:48:35AM +0200, Erwin Geerdink wrote:
 Hi,
 
 I'm considering the following usb interfaces for my audio setup:
 
 E-MU 0204 usb
 E-MU Tracker Pre
 Presonus Audiobox usb
 Alesis IO|2 Express
 
 Recording will be done on a Windows machine, however it would be
 nice if I can use it for audio playback from an OpenBSD machine as
 well. I found the envy(4) and emu(4) man pages but I'm still not sure
 whether playback would work with any of these devices.
 
 Anyone experiences or suggestions?
 

Hi,

These devices are handled by the uaudio driver, assuming they are
USB class compliant (driverless ones are likely to be).

Unfortunately, on OpenBSD, USB1.1 devices using isochronous
transfers don't work behind USB 2.0 hubs yet. In other words USB1.1
audio cards are unlikely work on modern machines. I'd suggest you
to test the cards if possible (just plug it try to play a simple
.wav file).

Another option, would be to get a old USB1.1 adapter and attach the
USB1.1 card on it.



usb audio interfaces

2014-07-30 Thread Erwin Geerdink
Hi,

I'm considering the following usb interfaces for my audio setup:

E-MU 0204 usb
E-MU Tracker Pre
Presonus Audiobox usb
Alesis IO|2 Express

Recording will be done on a Windows machine, however it would be
nice if I can use it for audio playback from an OpenBSD machine as
well. I found the envy(4) and emu(4) man pages but I'm still not sure
whether playback would work with any of these devices.

Anyone experiences or suggestions?

Best,
-- 
Erwin



USB Audio

2013-08-08 Thread Greg Thomas
I ditched my Mac for good am trying to get everything running that was
connected to it.  Working on the SoundSticks now.

Full dmesg down below.

I linked the audio1 devices to audio.

$ ls -l /dev/audio*
lrwxr-xr-x  1 root  wheel11 Aug  7 14:47 /dev/audio - /dev/audio1
lrwxr-xr-x  1 root  wheel14 Aug  7 14:48 /dev/audioctl -
/dev/audioctl1
lrwxr-xr-x  1 root  wheel11 Aug  7 14:48 /dev/mixer - /dev/mixer1
lrwxr-xr-x  1 root  wheel11 Aug  7 14:48 /dev/sound - /dev/sound1

audio0 at uhub5 port 1 configuration 1 interface 0 harman/kardon
SoundSticks rev 1.10/0.01 addr 8
uaudio0: audio rev 1.00, 6 mixer controls
audio1 at uaudio0

$ cat /projects/Music/scream.aif  /dev/sound

cat: stdout: Input/output error

But my apps like vlc play through internal speakers still just fine.

I know the SoundSticks work with OpenBSD so obviously I'm an idiot and
missing something.

$ audioctl
name=USB audio
version=
config=uaudio
encodings=slinear_le:16:2:1,slinear_le:24:3:1
properties=independent
full_duplex=0
fullduplex=0
blocksize=8816
hiwat=7
lowat=5
output_muted=0
monitor_gain=0
mode=
play.rate=44100
play.channels=2
play.precision=16
play.bps=2
play.msb=1
play.encoding=slinear_le
play.gain=127
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=8816
play.errors=0
record.rate=44100
record.channels=2
record.precision=16
record.bps=2
record.msb=1
record.encoding=slinear_le
record.gain=127
record.balance=32
record.port=0x0
record.avail_ports=0x0
record.seek=0
record.samples=0
record.eof=0
record.pause=0
record.error=0
record.waiting=0
record.open=0
record.active=0
record.buffer_size=65536
record.block_size=8816
record.errors=0


OpenBSD 5.3-stable (GENERIC) #0: Wed Jul 10 23:31:39 PDT 2013
r...@wheeler.lodesertprotosites.org:
/usr/src/sys/arch/amd64/compile/GENERIC
real mem = 8466853888 (8074MB)
avail mem = 8219004928 (7838MB)
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.6 @ 0xdae9c000 (68 entries)
bios0: vendor LENOVO version 8DET61WW (1.31 ) date 04/25/2012
bios0: LENOVO 4291X04
acpi0 at bios0: rev 2
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP SLIC SSDT SSDT SSDT HPET APIC MCFG ECDT ASF! TCPA
SSDT SSDT UEFI UEFI UEFI
acpi0: wakeup devices LID_(S3) SLPB(S3) IGBE(S4) EXP4(S4) EXP7(S4) EHC1(S3)
EHC2(S3) HDEF(S4)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpihpet0 at acpi0: 14318179 Hz
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Core(TM) i7-2640M CPU @ 2.80GHz, 2791.35 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
,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,DEADLINE,A
ES,XSAVE,AVX,NXE,LONG,LAHF,PERF,ITSC
cpu0: 256KB 64b/line 8-way L2 cache
cpu0: apic clock running at 99MHz
cpu at mainbus0: not configured
cpu at mainbus0: not configured
cpu at mainbus0: not configured
ioapic0 at mainbus0: apid 2 pa 0xfec0, version 20, 24 pins
acpimcfg0 at acpi0 addr 0xf800, bus 0-63
acpiec0 at acpi0
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus -1 (PEG_)
acpiprt2 at acpi0: bus 2 (EXP1)
acpiprt3 at acpi0: bus 3 (EXP2)
acpiprt4 at acpi0: bus 5 (EXP4)
acpiprt5 at acpi0: bus 13 (EXP5)
acpiprt6 at acpi0: bus 14 (EXP7)
acpicpu0 at acpi0: C3, C1, PSS
acpipwrres0 at acpi0: PUBS
acpitz0 at acpi0: critical temperature is 99 degC
acpibtn0 at acpi0: LID_
acpibtn1 at acpi0: SLPB
acpibat0 at acpi0: BAT0 model 45N1025 serial   910 type LION oem LGC
acpibat1 at acpi0: BAT1 not present
acpiac0 at acpi0: AC unit online
acpithinkpad0 at acpi0
acpidock0 at acpi0: GDCK docked (15)
cpu0: Enhanced SpeedStep 2791 MHz: speeds: 2801, 2800, 2600, 2400, 2200,
2000, 1800, 1600, 1400, 1200, 1000, 800 MHz
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 Intel Core 2G Host rev 0x09
vga1 at pci0 dev 2 function 0 Intel HD Graphics 3000 rev 0x09
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
intagp0 at vga1
agp0 at intagp0: aperture at 0xe000, size 0x1000
inteldrm0 at vga1: apic 2 int 16
drm0 at inteldrm0
Intel 6 Series MEI rev 0x04 at pci0 dev 22 function 0 not configured
puc0 at pci0 dev 22 function 3 Intel 6 Series KT rev 0x04: ports: 1 com
com2 at puc0 port 0 apic 2 int 19: ns16550a, 16 byte fifo
com2: probed fifo depth: 0 bytes
em0 at pci0 dev 25 function 0 Intel 82579LM rev 0x04: msi, address
3c:97:0e:08:67:59
ehci0 at pci0 dev 26 function 0 Intel 6 Series USB rev 0x04: apic 2 int 16
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 6 Series HD Audio rev 0x04: msi
azalia0: codecs: Conexant/0x506e, Intel/0x2805, using Conexant/0x506e
audio0 at azalia0
ppb0 at pci0 dev 28 function 0 Intel 6 Series PCIE rev 0xb4

Re: USB Audio

2013-08-08 Thread Jan Stary
On Aug 08 13:16:56, get...@dslextreme.com wrote:
 I ditched my Mac for good am trying to get everything running that was
 connected to it.  Working on the SoundSticks now.
 
 Full dmesg down below.
 
 I linked the audio1 devices to audio.
 
 $ ls -l /dev/audio*
 lrwxr-xr-x  1 root  wheel11 Aug  7 14:47 /dev/audio - /dev/audio1
 lrwxr-xr-x  1 root  wheel14 Aug  7 14:48 /dev/audioctl -
 /dev/audioctl1
 lrwxr-xr-x  1 root  wheel11 Aug  7 14:48 /dev/mixer - /dev/mixer1
 lrwxr-xr-x  1 root  wheel11 Aug  7 14:48 /dev/sound - /dev/sound1
 
 audio0 at uhub5 port 1 configuration 1 interface 0 harman/kardon
 SoundSticks rev 1.10/0.01 addr 8
 uaudio0: audio rev 1.00, 6 mixer controls
 audio1 at uaudio0

This does not correspond with the dmesg below.
Why don't you (temporarily) disable azalia in the UKC
so that your USB audio device becomes the default?


 $ cat /projects/Music/scream.aif  /dev/sound
 
 cat: stdout: Input/output error
 
 But my apps like vlc play through internal speakers still just fine.
 
 I know the SoundSticks work with OpenBSD so obviously I'm an idiot and
 missing something.
 
 $ audioctl
 name=USB audio
 version=
 config=uaudio
 encodings=slinear_le:16:2:1,slinear_le:24:3:1
 properties=independent
 full_duplex=0
 fullduplex=0
 blocksize=8816
 hiwat=7
 lowat=5
 output_muted=0
 monitor_gain=0
 mode=
 play.rate=44100
 play.channels=2
 play.precision=16
 play.bps=2
 play.msb=1
 play.encoding=slinear_le
 play.gain=127
 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=8816
 play.errors=0
 record.rate=44100
 record.channels=2
 record.precision=16
 record.bps=2
 record.msb=1
 record.encoding=slinear_le
 record.gain=127
 record.balance=32
 record.port=0x0
 record.avail_ports=0x0
 record.seek=0
 record.samples=0
 record.eof=0
 record.pause=0
 record.error=0
 record.waiting=0
 record.open=0
 record.active=0
 record.buffer_size=65536
 record.block_size=8816
 record.errors=0
 
 
 OpenBSD 5.3-stable (GENERIC) #0: Wed Jul 10 23:31:39 PDT 2013
 r...@wheeler.lodesertprotosites.org:
 /usr/src/sys/arch/amd64/compile/GENERIC
 real mem = 8466853888 (8074MB)
 avail mem = 8219004928 (7838MB)
 mainbus0 at root
 bios0 at mainbus0: SMBIOS rev. 2.6 @ 0xdae9c000 (68 entries)
 bios0: vendor LENOVO version 8DET61WW (1.31 ) date 04/25/2012
 bios0: LENOVO 4291X04
 acpi0 at bios0: rev 2
 acpi0: sleep states S0 S3 S4 S5
 acpi0: tables DSDT FACP SLIC SSDT SSDT SSDT HPET APIC MCFG ECDT ASF! TCPA
 SSDT SSDT UEFI UEFI UEFI
 acpi0: wakeup devices LID_(S3) SLPB(S3) IGBE(S4) EXP4(S4) EXP7(S4) EHC1(S3)
 EHC2(S3) HDEF(S4)
 acpitimer0 at acpi0: 3579545 Hz, 24 bits
 acpihpet0 at acpi0: 14318179 Hz
 acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
 cpu0 at mainbus0: apid 0 (boot processor)
 cpu0: Intel(R) Core(TM) i7-2640M CPU @ 2.80GHz, 2791.35 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
 ,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,DEADLINE,A
 ES,XSAVE,AVX,NXE,LONG,LAHF,PERF,ITSC
 cpu0: 256KB 64b/line 8-way L2 cache
 cpu0: apic clock running at 99MHz
 cpu at mainbus0: not configured
 cpu at mainbus0: not configured
 cpu at mainbus0: not configured
 ioapic0 at mainbus0: apid 2 pa 0xfec0, version 20, 24 pins
 acpimcfg0 at acpi0 addr 0xf800, bus 0-63
 acpiec0 at acpi0
 acpiprt0 at acpi0: bus 0 (PCI0)
 acpiprt1 at acpi0: bus -1 (PEG_)
 acpiprt2 at acpi0: bus 2 (EXP1)
 acpiprt3 at acpi0: bus 3 (EXP2)
 acpiprt4 at acpi0: bus 5 (EXP4)
 acpiprt5 at acpi0: bus 13 (EXP5)
 acpiprt6 at acpi0: bus 14 (EXP7)
 acpicpu0 at acpi0: C3, C1, PSS
 acpipwrres0 at acpi0: PUBS
 acpitz0 at acpi0: critical temperature is 99 degC
 acpibtn0 at acpi0: LID_
 acpibtn1 at acpi0: SLPB
 acpibat0 at acpi0: BAT0 model 45N1025 serial   910 type LION oem LGC
 acpibat1 at acpi0: BAT1 not present
 acpiac0 at acpi0: AC unit online
 acpithinkpad0 at acpi0
 acpidock0 at acpi0: GDCK docked (15)
 cpu0: Enhanced SpeedStep 2791 MHz: speeds: 2801, 2800, 2600, 2400, 2200,
 2000, 1800, 1600, 1400, 1200, 1000, 800 MHz
 pci0 at mainbus0 bus 0
 pchb0 at pci0 dev 0 function 0 Intel Core 2G Host rev 0x09
 vga1 at pci0 dev 2 function 0 Intel HD Graphics 3000 rev 0x09
 wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
 wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
 intagp0 at vga1
 agp0 at intagp0: aperture at 0xe000, size 0x1000
 inteldrm0 at vga1: apic 2 int 16
 drm0 at inteldrm0
 Intel 6 Series MEI rev 0x04 at pci0 dev 22 function 0 not configured
 puc0 at pci0 dev 22 function 3 Intel 6 Series KT rev 0x04: ports: 1 com
 com2 at puc0 port 0 apic 2 int 19: ns16550a, 16 byte fifo
 com2: probed fifo depth: 0 bytes
 em0 at pci0 dev 25 function 0 Intel 82579LM rev 0x04: msi, address
 3c:97:0e:08:67:59
 ehci0 at pci0 dev 26

3.8 Snap with MiniVox MV100 USB audio

2005-10-04 Thread Will H. Backman
Playing with unsupported hardware, but thought I would give a report in case
anyone else was thinking of going down this road:

Purchased a MiniVox MV100 USB audio speakerphone.  dmesg picks up the
following:

OpenBSD 3.8-beta (GENERIC) #119: Wed Aug 24 01:47:37 MDT 2005
[EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC
--SNIP-- (i hope this editing of the dmesg doesn't get me killed!)
uaudio0 at uhub1 port 1 configuration 1 interface 0: FORTEMEDIA FM1083, rev
1.10/0.01, addr 2
uaudio_add_selector: NOT IMPLEMENTED
uaudio0: audio rev 1.00, 8 mixer controls
audio0 at uaudio0

audioctl -a output:

name=USB audio
version=
config=uaudio
encodings=ulinear:8*,mulaw:8*,alaw:8*,slinear:8*,slinear_le:16,ulinear_le:16*
,slinear_be:16*,ulinear_be:16*
properties=full_duplex,independent
full_duplex=0
fullduplex=0
blocksize=1088
hiwat=60
lowat=1
monitor_gain=0
mode=
play.rate=8000
play.channels=1
play.precision=8
play.encoding=mulaw
play.gain=127
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
record.rate=8000
record.channels=1
record.precision=16
record.encoding=slinear_le
record.gain=127
record.balance=32
record.port=0x0
record.avail_ports=0x0
record.seek=0
record.samples=0
record.eof=0
record.pause=0
record.error=0
record.waiting=0
record.open=0
record.active=0
record.buffer_size=65536
record.errors=0

Attmpting to access /dev/audio or /dev/sound gives a permission denied error
even when logged in as root.

# ls -l /dev/audio* /dev/sound*
lrwx--  1 root  wheel 6 Aug 26 17:55 /dev/audio - audio0
crw-rw-rw-  1 root  wheel   42, 128 Oct  4 20:29 /dev/audio0
lrwx--  1 root  wheel 9 Aug 26 17:55 /dev/audioctl - audioctl0
crw-rw-rw-  1 root  wheel   42, 192 Aug 26 17:55 /dev/audioctl0
lrwx--  1 root  wheel 6 Aug 26 17:55 /dev/sound - sound0
crw-rw-rw-  1 root  wheel   42,   0 Oct  4 21:09 /dev/sound0

I'm not very experienced at messing aroung with audio on openbsd, and I can't
seem to find much information on how to start helping.  This device seemed
interesting because it claims driverless use on Mac OS9, OSX, Windows ME,
etc.



Problem usb audio (uaudio) /dev/audio1: Permission denied Creative SB Audigy 2

2005-09-01 Thread Andreas Bihlmaier
 channel 1 drive 1
scsibus1 at atapiscsi1: 2 targets
cd1 at scsibus1 targ 0 lun 0: HL-DT-ST, DVDRAM GSA-4082B, A201 SCSI0 5/cdrom 
removable
cd0(pciide0:1:0): using PIO mode 4, Ultra-DMA mode 2
cd1(pciide0:1:1): using PIO mode 4, Ultra-DMA mode 2
eap0 at pci0 dev 19 function 0 Ensoniq AudioPCI97 rev 0x08: irq 9
ac97: codec id 0x43525913 (Cirrus Logic CS4297A rev 3)
ac97: codec features headphone, 20 bit DAC, 18 bit ADC, Crystal Semi 3D
audio0 at eap0
midi0 at eap0: AudioPCI MIDI UART
isa0 at pcib0
isadma0 at isa0
pckbc0 at isa0 port 0x60/5
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pcppi0 at isa0 port 0x61
midi1 at pcppi0: PC speaker
spkr0 at pcppi0
sysbeep0 at pcppi0
lpt0 at isa0 port 0x378/4 irq 7
it0 at isa0 port 0x290/8: IT87
npx0 at isa0 port 0xf0/16: using exception 16
pccom0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
fdc0 at isa0 port 0x3f0/6 irq 6 drq 2
fd0 at fdc0 drive 0: 1.44MB 80 cyl, 2 head, 18 sec
biomask fd6d netmask ff6d ttymask ffef
pctr: user-level cycle counter enabled
mtrr: Pentium Pro MTRR support
uhub4 at uhub3 port 2
uhub4: Standard Microsystems product 0xa700, class 9/0, rev 2.00/0.00, addr 2
uhub4: 3 ports with 3 removable, bus powered, multiple transaction translators
uhub5 at uhub0 port 1
uhub5: Lite-On Technology USB 1.1 2port downstream low power hub, class 9/0, 
rev 1.10/1.00, addr 2
uhub5: 3 ports with 2 removable, bus powered
uhidev0 at uhub5 port 1 configuration 1 interface 0
uhidev0: Lite-On Technology USB Productivity Option Keyboard( has the hub in # 
1 ), rev 1.10/1.00, addr 3, iclass 3/1
ukbd0 at uhidev0: 8 modifier keys, 6 key codes
wskbd1 at ukbd0 mux 1
wskbd1: connecting to wsdisplay0
uhidev1 at uhub5 port 1 configuration 1 interface 1
uhidev1: Lite-On Technology USB Productivity Option Keyboard( has the hub in # 
1 ), rev 1.10/1.00, addr 3, iclass 3/0
uhidev1: 3 report ids
uhid0 at uhidev1 reportid 3: input=3, output=0, feature=0
umass0 at uhub3 port 4 configuration 1 interface 0
umass0: Generic USB Storage Device, rev 2.00/1.00, addr 3
umass0: using SCSI over Bulk-Only
scsibus2 at umass0: 2 targets
sd0 at scsibus2 targ 1 lun 0: GENERIC, USB Storage-CFC, 010K SCSI0 0/direct 
removable
sd0: drive offline
sd1 at scsibus2 targ 1 lun 1: GENERIC, USB Storage-CFC, 010K SCSI0 0/direct 
removable
sd1: drive offline
sd2 at scsibus2 targ 1 lun 2: GENERIC, USB Storage-MMC, 010K SCSI0 0/direct 
removable
sd2: drive offline
sd3 at scsibus2 targ 1 lun 3: GENERIC, USB Storage-MSC, 010K SCSI0 0/direct 
removable
sd3: drive offline
uhidev2 at uhub1 port 1 configuration 1 interface 0
uhidev2: Logitech USB-PS/2 Optical Mouse, rev 2.00/13.20, addr 2, iclass 3/1
ums0 at uhidev2: 4 buttons and Z dir.
wsmouse0 at ums0 mux 0
wd0: no disk label
dkcsum: wd0 matched BIOS disk 80
dkcsum: wd1 matched BIOS disk 81
dkcsum: read of sd0 failed (0)
dkcsum: read of sd1 failed (0)
dkcsum: read of sd2 failed (0)
dkcsum: read of sd3 failed (0)
root on wd1a
rootdev=0x10 rrootdev=0x310 rawdev=0x312
uaudio0 at uhub2 port 1 configuration 1 interface 0: Creative Technology Ltd SB 
Audigy 2 NX, rev 1.10/1.00, addr 2
uaudio_add_selector: NOT IMPLEMENTED
uaudio_add_selector: NOT IMPLEMENTED
uaudio_add_selector: NOT IMPLEMENTED
uaudio0: audio rev 1.00, 28 mixer controls
audio1 at uaudio0
wsdisplay0: screen 1 deleted
wsdisplay0: screen 1 added (80x50, vt100 emulation)
wsdisplay0: screen 2 deleted
wsdisplay0: screen 2 added (80x50, vt100 emulation)
wsdisplay0: screen 3 deleted
wsdisplay0: screen 3 added (80x50, vt100 emulation)
wsdisplay0: screen 5 deleted
wsdisplay0: screen 5 added (80x50, vt100 emulation)




audioctl -f /dev/audioctl1 -a

name=USB audio
version=
config=uaudio
encodings=ulinear:8*,mulaw:8*,alaw:8*,slinear:8*,slinear_le:16,ulinear_le:16*,slinear_be:16*,ulinear_be:16*
properties=full_duplex,independent
full_duplex=1
fullduplex=1
blocksize=8400
hiwat=7
lowat=1
monitor_gain=0
mode=
play.rate=8000
play.channels=2
play.precision=8
play.encoding=mulaw
play.gain=127
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
record.rate=32000
record.channels=2
record.precision=16
record.encoding=slinear_le
record.gain=127
record.balance=32
record.port=0x0
record.avail_ports=0x0
record.seek=0
record.samples=0
record.eof=0
record.pause=0
record.error=0
record.waiting=0
record.open=0
record.active=0
record.buffer_size=65536
record.errors=0


mixerctl -f /dev/mixer1 -a 



outputs.mute=on
outputs.fea6-i4-mute=on
outputs.master=255,255
outputs.fea6-i4-master=255,255
outputs.mute=on
outputs.fea8-i7-mute