[DragonFlyBSD - Bug #2682] Fix for uaudio driver, so it can be used on DragonFly

bugtracker-admin at leaf.dragonflybsd.org bugtracker-admin at leaf.dragonflybsd.org
Mon Jun 9 10:02:29 PDT 2014


Issue #2682 has been updated by shamaz.

File uaudio.patch added

Here is the new patch. It fixes mixer problem (so you can control volume of both channels). Please note, that it affects both pcm (sound) and uaudio drivers. Also, MIXER_UNINIT is called with mixer lock released now, as it is in FreeBSD. Is it ok? Or maybe do I need to release/unsetup usb transfer/acquire mixer lock in mixer_uninit method explicitly?

----------------------------------------
Bug #2682: Fix for uaudio driver, so it can be used on DragonFly
http://bugs.dragonflybsd.org/issues/2682#change-12064

* Author: shamaz
* Status: New
* Priority: Normal
* Assignee: profmakx
* Category: 
* Target version: 
----------------------------------------
Hello. A new uaudio driver for usb4bsd (sys/bus/u4b/audio) needs some care
and love. Currently it can only probe audio devices, that is all. So I
propose a patch which makes this driver useful.

What works: playback with different audio formats and sample rates (8/16
bit pcm, 44.1kHz, 8kHz and so on). Up to 2 channels (what most people need
;). Module loading/unloading.
What does not: multichannel environments, mixer master output level ("vol")
affects only left channel, I really do not know why.
What was not tested: recording

Is it good enough to be committed?

                   With best regards, Vasily.

---Files--------------------------------
uaudio.patch (3.47 KB)
uaudio.patch (7.07 KB)


-- 
You have received this notification because you have either subscribed to it, or are involved in it.
To change your notification preferences, please click here: http://bugs.dragonflybsd.org/my/account



More information about the Bugs mailing list