I tried NetBSD and FreeBSD also. Same problem on NetBSD, but works on FreeBSD.

Is it hard to port FreeBSD's uaudio (/src/sys/dev/sound/usb/uaudio.c)
to OpenBSD?
Could anyone port it or fix this?


2012/1/26, Gregor Pintar <[email protected]>:
> More info with UAUDIO_DEBUG enabled.
>
> dmesg:
> uaudio0 at uhub2 port 2 configuration 1 interface 0 "Creative
> Technology USB Sound Blaster HD" rev 1.10/1.00 addr 2
> id 1: AC_INPUT type=UAT_STREAM
>       input0: UAT_STREAM
>       output: UATO_SPEAKER
> id 2: AC_FEATURE src=1
>       input0: UAT_STREAM
>       output: UATO_SPEAKER
> id 3: AC_OUTPUT type=UATO_SPEAKER src=2
>       input0: UAT_STREAM
>       output: UATO_SPEAKER
> id 4: AC_INPUT type=UAT_STREAM
>       input0: UAT_STREAM
>       output: UATE_DIGITALAUIFC
> id 6: AC_OUTPUT type=UATE_DIGITALAUIFC src=4
>       input0: UAT_STREAM
>       output: UATE_DIGITALAUIFC
> id 7: AC_INPUT type=UATE_SPDIF
>       input0: UATE_SPDIF
>       output: UAT_STREAM
> id 9: AC_OUTPUT type=UAT_STREAM src=7
>       input0: UATE_SPDIF
>       output: UAT_STREAM
> id 10:        AC_INPUT type=UATI_MICROPHONE
>       input0: UATI_MICROPHONE
>       output: UAT_STREAM
> id 12:        AC_INPUT type=UATE_LINECONN
>       input0: UATE_LINECONN
>       output: UAT_STREAM
> id 14:        AC_INPUT type=UATF_PHONOGRAPH
>       input0: UATF_PHONOGRAPH
>       output: UAT_STREAM
> id 16:        AC_SELECTOR src=10 12 14
>       input0: UATI_MICROPHONE
>       input1: UATE_LINECONN
>       input2: UATF_PHONOGRAPH
>       output: UAT_STREAM
> id 17:        AC_OUTPUT type=UAT_STREAM src=16
>       input0: UATI_MICROPHONE UATE_LINECONN UATF_PHONOGRAPH
>       output: UAT_STREAM
> uaudio0: sync ep address mismatch
> uaudio0: sync ep address mismatch
> uaudio0: sync ep address mismatch
> uaudio0: sync ep address mismatch
> uaudio0: sync ep address mismatch
> uaudio0: sync ep address mismatch
> uaudio0: sync ep address mismatch
> uaudio0: sync ep address mismatch
> uaudio0: sync ep address mismatch
> uaudio0: sync ep address mismatch
> uaudio0: ignored setting with type 8193 format
> uaudio0: ignored setting with type 8193 format
> uaudio0: recording: 2-ch 16-bit 2-byte pcm, 48000Hz
> uaudio0: recording: 2-ch 24-bit 3-byte pcm, 48000Hz
> uaudio0: recording: 2-ch 16-bit 2-byte pcm, 96000Hz
> uaudio0: recording: 2-ch 24-bit 3-byte pcm, 96000Hz
> uaudio0: recording: 2-ch 16-bit 2-byte pcm, 44100Hz
> uaudio0: recording: 2-ch 24-bit 3-byte pcm, 44100Hz
> uaudio0: recording: 2-ch 16-bit 2-byte pcm, 48000Hz
> uaudio0: recording: 2-ch 24-bit 3-byte pcm, 48000Hz
> uaudio0: recording: 2-ch 16-bit 2-byte pcm, 96000Hz
> uaudio0: recording: 2-ch 24-bit 3-byte pcm, 96000Hz
> uaudio0: audio rev 1.00, 3 mixer controls
> audio0 at uaudio0
> uhidev0 at uhub2 port 2 configuration 1 interface 5 "Creative
> Technology USB Sound Blaster HD" rev 1.10/1.00 addr 2
> uhidev0: iclass 3/0, 1 report id
> uhid0 at uhidev0 reportid 1: input=1, output=0, feature=0
> ugen0 at uhub2 port 2 configuration 1 "Creative Technology USB Sound
> Blaster HD" rev 1.10/1.00 addr 2
>
> 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.sample_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.sample_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
>
> mixerctl:
> outputs.spkr.mute=off
> outputs.spkr=255,255
> record.sel16-i10i12i14=2

Reply via email to