#
a9be51ac |
| 02-Apr-2007 |
Ariff Abdullah <ariff@FreeBSD.org> |
Provide hint / tunable for possible asynchronous USB execution. Async execution should help us avoiding potential deadlock and illegal locking while sleeping in various mixer -> usb calls. To enable
Provide hint / tunable for possible asynchronous USB execution. Async execution should help us avoiding potential deadlock and illegal locking while sleeping in various mixer -> usb calls. To enable it, use hint.uaudio.%d.async="1" or sysctl dev.uaudio.%d.async=1. Default is disable, to remain compatible with old behaviour (with slight risk of potential deadlock).
show more ...
|
#
c2bb6a54 |
| 31-Mar-2007 |
Alexander Leidinger <netchild@FreeBSD.org> |
Tell interested readers of the source that the return value is not checked by intend.
Found by: Coverity Prevent (tm) CID: 55 Reviewed by: ariff
|
#
7ab4fa8e |
| 16-Mar-2007 |
Ariff Abdullah <ariff@FreeBSD.org> |
[stage: 9/9]
- SWAPLR quirk for (unknown, luckily it is mine) broken uaudio stick. Fixing by rewiring is impossible without damaging it. Luckily, we can fix it using "other" methods :) . - Add u
[stage: 9/9]
- SWAPLR quirk for (unknown, luckily it is mine) broken uaudio stick. Fixing by rewiring is impossible without damaging it. Luckily, we can fix it using "other" methods :) . - Add uaudio_get_vendor(), _product() and _release() in uaudio.c (currently used by uaudio_pcm quirk). - Implement CHANNEL_SETFRAGMENTS(). - Drop channel locking in few places where it is about to sleep somewhere. This should help eliminating illegal locking acquisition where the current thread is about to sleep, and also few deadlock cases. Dropping it right here is quite safe since it is already protected by CHN_F_BUSY flag and other threads won't bother to touch it. Solving other illegal locking issues are quite tricky without converting most usbd_do_request() calls to its equivalent _async() calls, which I intend to do it later after getting full test report from other people with different uaudio hardwares. - Fix memory leak issues during detach. This seems common to any drivers (notably emu10kx, csapcm?) with bridge functions.
show more ...
|
#
3ad47bdd |
| 26-Jan-2007 |
Ariff Abdullah <ariff@FreeBSD.org> |
Sync uaudio_sndstat_prepare_pcm() output with sndstat_prepare_pcm() to get simmilar (debugging) output.
|
Revision tags: release/6.2.0_cvs, release/6.2.0 |
|
#
cea9c751 |
| 06-Jan-2007 |
Alexander Leidinger <netchild@FreeBSD.org> |
Sync with NetBSD: revision 1.98 is NOT merged, because FreeBSD does not support this syntax. revision 1.99 is NOT merged, "const poisoning" part is not applicable to FreeBSD. There is no va
Sync with NetBSD: revision 1.98 is NOT merged, because FreeBSD does not support this syntax. revision 1.99 is NOT merged, "const poisoning" part is not applicable to FreeBSD. There is no variable shadowing, GCC can't find this one (but there are others) revision 1.100 is NOT merged, because it was null patch (no changes) revision 1.101 is NOT merged, there is no BIT() macro in FreeBSD revision 1.102 is merged revision 1.103 is partially merged. There is no ai.ifaceh in FreeBSD revision 1.104 is NOT merged revision 1.105 is merged revision 1.106 is not merged, because of rev. 1.107 revision 1.107 is a backuout of 1.106
Submitted by: Yuriy Tsibizov <Yuriy.Tsibizov@gfk.ru>
show more ...
|
#
a580b31a |
| 26-Nov-2006 |
Ariff Abdullah <ariff@FreeBSD.org> |
Welcome to Once-a-year Sound Mega-Commit. Enjoy numerous updates and fixes in every sense.
General -------
- Multichannel safe, endian safe, format safe * Large part of critical pcm filters such
Welcome to Once-a-year Sound Mega-Commit. Enjoy numerous updates and fixes in every sense.
General -------
- Multichannel safe, endian safe, format safe * Large part of critical pcm filters such as vchan.c, feeder_rate.c, feeder_volume.c, feeder_fmt.c and feeder.c has been rewritten so that using them does not cause the pcm data to be converted to 16bit little endian. * Macrosses for accessing pcm data safely are defined within sound.h in the form of PCM_READ_* / PCM_WRITE_* * Currently, most of them are probably limited for mono/stereo handling, but the future addition of true multichannel will be much easier.
- Low latency operation * Well, this require lot more works to do not just within sound driver, but we're heading towards right direction. Buffer/block sizing within channel.c is rewritten to calculate precise allocation for various combination of sample/data/rate size. As a result, applying correct SNDCTL_DSP_POLICY value will achive expected latency behaviour simmilar to what commercial 4front driver do. * Signal handling fix. ctrl+c of "cat /dev/zero > /dev/dsp" does not result long delay. * Eliminate sound truncation if the sound data is too small. DIY: 1) Download / extract http://people.freebsd.org/~ariff/lowlatency/shortfiles.tar.gz 2) Do a comparison between "cat state*.au > /dev/dsp" and "for x in state*.au ; do cat $x > /dev/dsp ; done" - there should be no "perceivable" differences. Double close for PR kern/31445.
CAVEAT: Low latency come with (unbearable) price especially for poorly written applications. Applications that trying to act smarter by requesting (wrong) blocksize/blockcount will suffer the most. Fixup samples/patches can be found at: http://people.freebsd.org/~ariff/ports/
- Switch minimum/maximum sampling rate limit to "1" and "2016000" (48k * 42) due to closer compatibility with 4front driver. Discussed with: marcus@ (long time ago?)
- All driver specific sysctls in the form of "hw.snd.pcm%d.*" have been moved to their own dev sysctl nodes, notably: hw.snd.pcm%d.vchans -> dev.pcm.%d.vchans Bump __FreeBSD_version.
Driver specific ---------------
- Ditto for sysctls.
- snd_atiixp, snd_es137x, snd_via8233, snd_hda * Numerous cleanups and fixes. * _EXPERIMENTAL_ polling mode support using simple callout_* mechanisme. This was intended for pure debugging and latency measurement, but proven good enough in few unexpected and rare cases (such as problematic shared IRQ with GIANT devices - USB). Polling can be enabled/disabled through dev.pcm.0.polling. Disabled by default.
- snd_ich * Fix possible overflow during speed calibration. Delay final initialization (pcm_setstatus) after calibration finished. PR: kern/100169 Tested by: Kevin Overman <oberman@es.net> * Inverted EAPD for few Nec VersaPro. PR: kern/104715 Submitted by: KAWATA Masahiko <kawata@mta.biglobe.ne.jp>
Thanks to various people, notably Joel Dahl, Yuriy Tsibizov, Kevin Oberman, those at #freebsd-azalia @ freenode and others for testing.
Joel Dahl will do the manpage update.
show more ...
|
#
f3ed5ebb |
| 09-Sep-2006 |
Alexander Leidinger <netchild@FreeBSD.org> |
Fix the check where we want to use the end of the supported range if the value is out of the supported range.
Noticed by: Ed Schouten <ed@fxq.nl> Reviewed by: Kazuhito HONDA <kazuhito@ph.noda.tus.ac
Fix the check where we want to use the end of the supported range if the value is out of the supported range.
Noticed by: Ed Schouten <ed@fxq.nl> Reviewed by: Kazuhito HONDA <kazuhito@ph.noda.tus.ac.jp>
show more ...
|
#
448ddd74 |
| 07-Sep-2006 |
Scott Long <scottl@FreeBSD.org> |
Catch up to USB changes.
|
Revision tags: release/5.5.0_cvs, release/5.5.0, release/6.1.0_cvs, release/6.1.0 |
|
#
9d978cc7 |
| 05-Feb-2006 |
Alexander Leidinger <netchild@FreeBSD.org> |
Convert NULL checks into KASSERT (and move them before the first dereferencing) since a NULL value would be a bug here.
Note: Both affected functions look very similar. A refactoring may be benefici
Convert NULL checks into KASSERT (and move them before the first dereferencing) since a NULL value would be a bug here.
Note: Both affected functions look very similar. A refactoring may be beneficial.
CID: 483, 485 Found with: Coverity Prevent(tm) Discussed with: ariff MFC after: 5 days
show more ...
|
#
293b843c |
| 29-Dec-2005 |
Alexander Leidinger <netchild@FreeBSD.org> |
Fix some kind of "off by one"-error: the min or max sample rate the device is able to reproduce should be usable too instead of failing in such a case.
PR: 89269 Submitted by: Don L. Belcher <don@s
Fix some kind of "off by one"-error: the min or max sample rate the device is able to reproduce should be usable too instead of failing in such a case.
PR: 89269 Submitted by: Don L. Belcher <don@siad.net>
show more ...
|
#
1e558b7e |
| 18-Dec-2005 |
Ariff Abdullah <ariff@FreeBSD.org> |
Precision for AFMT_x24_yE and AFMT_x32_yE should be 24 and 32, respectively.
Submitted by: Kazuhito HONDA <kazuhito@ph.noda.tus.ac.jp>
|
#
f9dff1f9 |
| 13-Nov-2005 |
Alexander Leidinger <netchild@FreeBSD.org> |
Add support for 24/32 bit audio formats/conversion.
It may be the case that you may hear some unwanted noise while playing back with 24/32 bit. This is a problem in the USB system. Explanation from
Add support for 24/32 bit audio formats/conversion.
It may be the case that you may hear some unwanted noise while playing back with 24/32 bit. This is a problem in the USB system. Explanation from Hans Petter Selasky: ---snip--- The current USB sound driver only uses one isochronous buffer, that is restarted when it is completed. This will lead to a short period of time, +1ms, where no sound data is sent to the external USB device. Depending on the load of your computer, this can be as much as 50ms. So the USB sound driver must use 2 isochronous transfers. At the beginning one will queue both. Then these are restarted on completion. This will result in a constant-rate data stream to the external sound device, a minimum sound buffer equal to the size of the isochronous buffer, and possibly the sound will reach your ears with less delay. Little delay is a result of constant data rate. Currently only my USB driver will support that. If one tries that with the USB driver in *BSD, then it will crash at the first moment one gets a buffer underrun. ---snip---
Submitted by: Kazuhito HONDA <kazuhito@ph.noda.tus.ac.jp> Mono-recording still not tested by: julian
show more ...
|
Revision tags: release/6.0.0_cvs, release/6.0.0 |
|
#
c61957b5 |
| 18-Sep-2005 |
Alexander Leidinger <netchild@FreeBSD.org> |
Merge NetBSD fixes (except for 1.97 there should be no functional change): 1.94: ansify and KNF (NetBSD KNF). 1.95: Fix DPRINTF (bug from change in 1.94). 1.96: NetBSD specific. 1.97: Fix memory
Merge NetBSD fixes (except for 1.97 there should be no functional change): 1.94: ansify and KNF (NetBSD KNF). 1.95: Fix DPRINTF (bug from change in 1.94). 1.96: NetBSD specific. 1.97: Fix memory leak reported by Ted Unangst as bug #3 on tech-kern.
Obtained from: NetBSD
show more ...
|
#
caad7408 |
| 11-Sep-2005 |
Alexander Leidinger <netchild@FreeBSD.org> |
Fix a bug in volume calculation, this sometimes gives a USB audio device an unexpected value (when the volume is high).
Submitted by: Kazuhito HONDA <kazuhito@ph.noda.tus.ac.jp>
|
Revision tags: release/5.4.0_cvs, release/5.4.0 |
|
#
7f05203a |
| 27-Apr-2005 |
Julian Elischer <julian@FreeBSD.org> |
Add code from Kazuhito HONDA that allows the user to see the available modes in /dev/sndstat. e.g. pcm1: <USB Audio> at addr ? (0p/1r/0v channels duplex) mode 1:(input) 1ch, 16/16bit, pcm, 44
Add code from Kazuhito HONDA that allows the user to see the available modes in /dev/sndstat. e.g. pcm1: <USB Audio> at addr ? (0p/1r/0v channels duplex) mode 1:(input) 1ch, 16/16bit, pcm, 44100Hz mode 2:(input) 1ch, 16/16bit, pcm, 22050Hz mode 3:(input) 1ch, 16/16bit, pcm, 11025Hz mode 4:(input) 1ch, 16/16bit, pcm, 8000Hz
show more ...
|
Revision tags: release/4.11.0_cvs, release/4.11.0 |
|
#
098ca2bd |
| 06-Jan-2005 |
Warner Losh <imp@FreeBSD.org> |
Start each of the license/copyright comments with /*-, minor shuffle of lines
|
#
587161d9 |
| 25-Dec-2004 |
Julian Elischer <julian@FreeBSD.org> |
Allow selection of a recording source on USB audio devices.
PR: 75316 Submitted by: Kazuhito HONDA <kazuhito at ph dot noda dot tus dot ac dot jp> Obtained from: NetBSD plus changes MFC after: 2 we
Allow selection of a recording source on USB audio devices.
PR: 75316 Submitted by: Kazuhito HONDA <kazuhito at ph dot noda dot tus dot ac dot jp> Obtained from: NetBSD plus changes MFC after: 2 weeks
show more ...
|
#
65046f86 |
| 25-Dec-2004 |
Julian Elischer <julian@FreeBSD.org> |
Allow recording on at least some USB audio devices.
PR: 75311 Submitted by: Kazuhito HONDA <kazuhito at ph dot noda dot tus dot ac dot jp> Obtained from: NetBSD plus changes MFC after: 2 weeks
|
#
2baaf9c2 |
| 25-Dec-2004 |
Julian Elischer <julian@FreeBSD.org> |
Allow volume control on more channels/inputs
PR: 75276 Submitted by: Kazuhito HONDA <kazuhito at ph dot noda dot tus dot ac dot jp> Obtained from: NetBSD with changes MFC after: 2 weeks
|
#
d28a8145 |
| 25-Dec-2004 |
Julian Elischer <julian@FreeBSD.org> |
MFNetBSD: One of a set of patches submitted by Kazuhito HONDA to make the usb audio driver a lot more capable.
PR: 75274 Submitted by: Kazuhito HONDA (kazuhito at ph dot noda dot tus dot ac dot j
MFNetBSD: One of a set of patches submitted by Kazuhito HONDA to make the usb audio driver a lot more capable.
PR: 75274 Submitted by: Kazuhito HONDA (kazuhito at ph dot noda dot tus dot ac dot jp) Obtained from: NetBSD (indirectly) MFC after: 2 weeks
show more ...
|
#
ba7cd7b6 |
| 22-Dec-2004 |
Poul-Henning Kamp <phk@FreeBSD.org> |
Don't include vnode.h
|
Revision tags: release/5.3.0_cvs, release/5.3.0, release/4.10.0_cvs, release/4.10.0, release/5.2.1_cvs, release/5.2.1, release/5.2.0_cvs, release/5.2.0, release/4.9.0_cvs, release/4.9.0, release/5.1.0_cvs, release/5.1.0, release/4.8.0_cvs, release/4.8.0, release/5.0.0_cvs, release/5.0.0, release/4.7.0_cvs |
|
#
760e2cb0 |
| 25-Aug-2002 |
Bruce Evans <bde@FreeBSD.org> |
Fixed editing errors in rev.1.4 which manifested as printf format errors at compile time and probably as panics at runtime.
|
Revision tags: release/4.6.2_cvs, release/4.6.2 |
|
#
3b7efc56 |
| 08-Aug-2002 |
Josef Karthauser <joe@FreeBSD.org> |
Use the hw.usb sysctl tree instead of debug.usb.
Requested by: imp
|
#
528d1a7f |
| 31-Jul-2002 |
Josef Karthauser <joe@FreeBSD.org> |
Replace the FOO_DEBUG definitions with USB_DEBUG, and switch the debugging levels to off by default. Now that debug levels can be tweaked by sysctl we don't need to go through hoops to get the diffe
Replace the FOO_DEBUG definitions with USB_DEBUG, and switch the debugging levels to off by default. Now that debug levels can be tweaked by sysctl we don't need to go through hoops to get the different usb parts to produce debug data.
show more ...
|
#
6ada40b0 |
| 31-Jul-2002 |
Josef Karthauser <joe@FreeBSD.org> |
Make this compile with the debugging options switched on.
|