Commit Graph

6640 Commits

Author SHA1 Message Date
David McPaul
6608bd7c78 sync with ffmpeg 0.5 release
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29534 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-15 01:34:21 +00:00
Jérôme Duval
85db3c9778 * cleanup
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29529 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-14 18:40:52 +00:00
Jérôme Duval
b06fce1203 * remove ac97 code
* style clean up


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29528 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-14 18:34:40 +00:00
Jérôme Duval
0db1930895 * update codec list
* move codec dump in ac97


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29527 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-14 18:28:09 +00:00
Jérôme Duval
18f6b63cd2 fix the build with ac97 code
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29524 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-14 17:18:19 +00:00
Jérôme Duval
7979b1cf49 * factorized ac97 code for auich auvia geode drivers
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29523 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-14 16:52:11 +00:00
Michael Lotz
e83cf52aa7 Ensure that our stat buffer is available when opening. Otherwise reads could
fail and the O_TRUNC might be overwritten as well.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29520 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-14 16:06:49 +00:00
Axel Dörfler
21faca8429 * Of course I messed it up; now ext2 doesn't crash anymore when I mount
something it does support.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29511 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-14 12:53:30 +00:00
Axel Dörfler
431a51cc91 * Added the new incompatible features of ext4.
* Now correctly only check for the incompatible features we do understand,
  not for the ones we don't. Ie. we won't mount ext4 partitions anymore that
  are using extents.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29510 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-14 11:04:12 +00:00
François Revol
2c4e929f54 - force 320x240 for now
- fixed uninitialized fields in CamDeframer, it works also in Haiku now :)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29507 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-14 03:51:39 +00:00
Ingo Weinhold
d6c6d091ef Forgot to add.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29506 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-14 02:32:59 +00:00
Ingo Weinhold
7c1ffcb9ec * The nature of asynchronous I/O is to be asynchronous. So we can't store
an on-stack structure for the request in a hash table when forwarding the
  io() hook. Create a new object (HaikuKernelIORequest) instead and store it
  in a hash table in HaikuKernelFileSystem.
* Some work on the userland side of do_iterative_fd_io().
* Added some missing requests in UserlandFSUtil::is_{kernel,userland}_request().


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29505 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-14 02:32:25 +00:00
Ryan Leavengood
cb6a084f20 Fixed a bug in the screen saver code that could cause someone to get locked out
of their machine: if the password check is turned on, and the password window
is shown but times out (when the screen saver starts again after the standard
delay), the input filter never knew about this and would never try to end the
screen saver again.

The solution is to take the logic for turning off the screen saver out of the
input filter and put it in the screen blanker itself.

Also while working in the input filter I removed some debugging and a TODO that
I think cannot be fixed.

In the screen_blanker the exit after loading the settings file was removed
since the default settings now work for the screen_blanker.

Plus obviously code was added to handle exit upon user input as well as the
timing out of the password window.

If anyone has a better solution for the 250ms timeout to ignore initial mouse
moves, let me know.

Also I think the new calls should be nothrow, but I am not sure what the rule
is for that.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29488 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-13 04:51:52 +00:00
Axel Dörfler
41a6cf82b3 * The InodeAllocator must remove the inode from the transaction before deleting
it, otherwise the transaction would access already freed memory when trying
  to release its write lock of the inode.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29481 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-12 14:24:36 +00:00
Axel Dörfler
31cb93ad43 * Minor cleanup.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29479 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-12 13:55:23 +00:00
Michael Lotz
5b9d5a2ec9 * Add has_debugger_command() so whether or not a debugger command is available
can be checked.
* Make the usb_keyboard module check the presence of the needed debugger
  commands to avoid the error messages in case of them being unavailable.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29472 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-11 12:17:23 +00:00
Ingo Weinhold
f1c6ce08f2 * Implemented the userland side for propagating the io() and cancel_io() hooks.
* Implemented io_request_is_write().


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29469 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-11 02:00:23 +00:00
Ingo Weinhold
98697fac69 The private IORequest.h header isn't used anymore.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29461 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-09 01:36:13 +00:00
Ingo Weinhold
d26a6e8007 Added stubs for some FS interface and disk device manager functions.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29459 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-09 01:28:51 +00:00
Michael Lotz
f4041343e6 * This should mostly complete the write_overlay.
* Fix memory leaks here and there.
* Virtualize the dirent list.
* Handle "." and ".." ourselfs as at least iso9660 cannot really know them in
  the readdir call and therefore returns different values than on lookup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29458 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-09 01:26:45 +00:00
Ingo Weinhold
42e53f97a2 * Added kernelland_emu vm.cpp (for user_{strlcpy,memcpy}()).
* Added dummy entry cache functions.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29457 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-09 01:11:18 +00:00
Ingo Weinhold
daa674789c Removed the khash, condition variable, lock, block cache, and slab
implementations and instead use the kernel sources directly or the
libkernelland_emu sources.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29456 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-09 00:55:55 +00:00
Ingo Weinhold
aa4ba93e25 * Renamed src/system/kernel/device_manager/io_requests.{h,cpp} to
IORequest.{h,cpp}.
* Introduced public <io_requests.h> header. Currently it only declares the
  single function BFS uses.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29446 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-08 17:30:37 +00:00
Axel Dörfler
afe5aa6692 * Since JMicron generously send me one of their ethernet cards to add support
to Haiku for them, I finally got around taking a look at their FreeBSD
  drivers, and imported them into our repository.
* They don't compile yet -- looks like our FreeBSD compatibility layer needs
  some further improvements.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29445 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-08 16:46:12 +00:00
Ingo Weinhold
4e5971527e Completed file cache support.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29442 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-08 15:56:07 +00:00
Jérôme Duval
81201a4349 * switch to PCI register IO
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29440 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-08 14:29:45 +00:00
Stephan Aßmus
5994d47ab4 Since there are problems with VMWare, ioctl()ing at fixed intervals seems like
the better idea after all. The snoozing won't add an additional delay, if the
polling was already slow. Have not tested in VMWare myself, as I don't have a
working installation.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29436 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-08 01:01:06 +00:00
Ingo Weinhold
6880c19362 We do now store a VNode object per node in a hash table. This allowed us to get
rid of the vnode count hash map and the mount vnode maps. Furthermore it will
allows us to easily associate a file cache with each node.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29435 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-08 00:50:51 +00:00
Ingo Weinhold
0f41393732 Removed left-over.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29433 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-07 22:28:49 +00:00
Ingo Weinhold
f94ca8783a Don't auto-delete FileSystemInitializer objects when unreferenced. They live
in a map and we remove and delete them explicitly.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29432 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-07 22:28:10 +00:00
Ingo Weinhold
0f90efc3bf Detach the AutoLocker before deleting the locked object.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29431 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-07 22:26:53 +00:00
Ingo Weinhold
484708d5d6 Removed the OpenHashTable implementation the UserlandFS used. Adjusted the
HashMap and HashSet classes to use the kernel utils OpenHashTable instead.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29429 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-07 21:21:10 +00:00
Stephan Aßmus
0bd93b7def * Use a default buffer frame count that is adapted to the sample rate
of the audio group. This is supposed to keep the latency about the same
  regardless of sample rate and lessen the requirements on the system
  performance when using higher sample rates. Currently the multi-audio
  addon uses the highest available rate.
* Added TODO about the highest sample rate seemingly being forgotten in one
  place.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29421 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-07 10:23:52 +00:00
Stephan Aßmus
7d1d70339a Limit the number for ioctl()s per second to about 125 for mouse transfers. This
fixes the high CPU usage when using USB mice. I experimented with transfers
scheduled at fixed intervals, and with using a fixed pause between transfers.
The fixed pauses, though much less sophisticated, give the smoothest drawing
in WonderBrush. ;-)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29413 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-06 11:11:58 +00:00
Ingo Weinhold
aa085ffef9 * Removed UserlandFS shared Locker class. Instead use BLocker in userland and
RecursiveLock in the kernel.
* Several adjustments according to UserlandFS header changes.
* Re-added reiserfs to image.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29410 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-05 23:27:35 +00:00
Ingo Weinhold
8dcef9a6ad * Made ASSERT definition conditional to avoid clashes.
* Automatic whitespace cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29408 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-05 23:17:18 +00:00
Ingo Weinhold
c0509ccc29 Removed several shared userlandfs classes that exist as Haiku shared or kernel
util classes as well.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29404 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-05 22:02:59 +00:00
Ingo Weinhold
97b7c9a091 Handle file cache related requests in the kernel. The actual calls to the
file cache are missing yet -- requires some refactoring in Volume.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29402 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-05 21:10:43 +00:00
Ingo Weinhold
0dcccb4986 Implemented the client side of the file cache operations.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29401 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-05 00:43:06 +00:00
Stephan Aßmus
6acf774d2d Patch by JiSheng Zhang:
* Combine the many small areas created by the Firewire bus manager
  into one larger one. Needs further testing. Supposed to fix #1519.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29396 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-04 12:41:05 +00:00
Ingo Weinhold
497681ca81 Added requests for file cache operations. Not used yet.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29394 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-04 01:27:32 +00:00
Ingo Weinhold
02f7a2f4cb Implemented vfs_get_file_map() and vfs_lookup_vnode().
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29393 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-04 00:53:57 +00:00
Ingo Weinhold
c74777f3d3 Finished node management.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29392 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-04 00:44:13 +00:00
Ingo Weinhold
0234794770 Implemented acquire_vnode() forwarding.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29391 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-04 00:01:27 +00:00
Ingo Weinhold
fac733d2f6 Removed the remnants of the dispatcher mechanism.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29390 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-03 23:42:20 +00:00
Axel Dörfler
b82ed10b05 * Minor cleanup.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29387 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-03 14:13:23 +00:00
Axel Dörfler
26153d0f67 * The net_domain's lock is now a recursive lock.
* Fixed all route locking problems, of which there were numerous
  ({add|remove}_route(), and list_routes() did not lock at all). Added
  lock assertions in functions that don't do the locking themselves.
* A route will now be removed from the list in remove_route(), not in
  put_route_internal(). Before, a route could easily be removed twice, causing
  remove_route() to release references it did not own. This fixes bug #2706.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29386 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-03 14:04:57 +00:00
Axel Dörfler
b11680b741 * Cleanup.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29384 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-03 10:39:55 +00:00
Stephan Aßmus
61252f516c * Fixed the build and ticket #3515 (multi-line string).
* Automatic white space cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29383 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-03 08:53:47 +00:00
Oliver Ruiz Dorantes
11d36ea03d - Add bluetooth kernel addons to build
- keep alphabetic order in network protocols



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29382 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-02 21:24:37 +00:00