On Sat, 19 Sep 2015 at 18:37 Remco <re...@dpub.nl> wrote:

> You've got 3 separate audio devices, azalia0, azalia1 and uaudio0.
> azalia0: probably HDMI audio which isn't supported yet AFAICT
> azalia1: on-board audio detected as audio0, sndiod normally attaches to
> this
>          device so all audio played on your systems is played through that.
> uaudio0: your USB "Tiny-in-One 23" device, sndiod doesn't attach to this by
>          default.
>
> To make sndiod use both devices you can add a line to your rc.conf.local:
> sndiod_flags="-f rsnd/0 -f rsnd/1"
> where rsnd/0 represents audio0, exposed as snd/0 by sndiod, and rsnd/1
> represents audio/1, exposed as snd/1.
>
> Specifying either snd/0 or snd/1 in your application determines which
> device
> the audio is played on.
>
> If you want the USB device to be your default device you could try swapping
> the parameters:
> sndiod_flags="-f rsnd/1 -f rsnd/0"
> If that doesn't work, try:
> sndiod_flags="-f rsnd/0 -f rsnd/1 -s default"
>
> I hope this helps.
>

Hi, and thanks for your reply!

With:

    sndiod_flags="-f rsnd/1 -f rsnd/0"

in /etc/rc.conf.local sndiod does indeed appear to try to make the uaudio0
device the
default, however when I try to play audio (vlc, chrome) I now see the
following in /var/log/messages:

    Sep 20 14:07:40 obsd /bsd: uaudio_chan_open: error creating pipe:
err=INVAL endpt=0x01

I happened to have on hand another USB DAC so tried something similar with
it and saw almost the same error:

    Sep 20 14:32:32 obsd /bsd: uaudio_chan_open: error creating pipe:
err=INVAL endpt=0x02

I've included output of `usbdevs` and `audioctl` below.  Might this be an
issue with USB audio and USB 2.0 hubs?

Output of `audioctl -f /dev/audio1`:

    name=USB audio
    encodings=slinear_le:16:2:1
    properties=full_duplex,independent
    hiwat=7
    lowat=5
    mode=play
    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

Output of usbdevs:

    addr 1: xHCI root hub, Intel
     addr 2: Lenovo USB Multi Device, JMicron
     addr 3: SCRx31 USB Smart Card Reader, SCM Microsystems Inc.
     addr 4: product 0x030c, TrulyErgonomic.com
     addr 5: USB2.0 Hub, GenesysLogic
      addr 9: USB Audio DAC, Burr-Brown from TI
      addr 6: USB2.0 Hub, Genesys Logic
       addr 7: Tiny-in-One 23, CONEXANT
     addr 0 should never happen!
     addr 0 should never happen!
     addr 0 should never happen!
     addr 0 should never happen!
     addr 0 should never happen!
    addr 8: USB3.0 Hub, GenesysLogic
    addr 1: EHCI root hub, Intel
      addr 2: Rate Matching Hub, Intel
    addr 1: EHCI root hub, Intel
     addr 2: Rate Matching Hub, Intel
      addr 3: CST Laser Trackball, Clearly Superior Technologies.

Additional dmesg when TI DAC board is plugged in:

    uaudio1 at uhub3 port 2 configuration 1 interface 0 "Burr-Brown from TI
USB Audio DAC" rev 1.10/1.00 addr 9
    uaudio1: audio rev 1.00, 2 mixer controls
    audio2 at uaudio1
    uhidev4 at uhub3 port 2 configuration 1 interface 2 "Burr-Brown from TI
USB Audio DAC" rev 1.10/1.00 addr 9
    uhidev4: iclass 3/0
    uhid12 at uhidev4: input=1, output=0, feature=0

Reply via email to