31080 Commits

Author SHA1 Message Date
Michael Lotz
7f5799140f Enlarge the timeout for data transfers. It was 2 seconds before and under a bit
of load, when using large enough block sizes or when simply having a slow device
this is by far not enough. It is now at 15 seconds, which should reduce timeout
problems to those cases where the device actually get's stuck (because of us
doing something wrong).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32615 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev32615
2009-08-22 16:12:36 +00:00
Ryan Leavengood
b0586d610a Remove useless BRect* version of CenterIn, make remaining version take a const
BRect reference.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32614 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev32614
2009-08-22 16:10:18 +00:00
Stefano Ceccherini
467c2e8cb5 Moved DirectWindow support classes into a separate DirectWindowSupport.h/cpp.
No functional change.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32613 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev32613
2009-08-22 16:00:28 +00:00
Ryan Leavengood
2ff62714d0 Finally implemented BWindow::CenterOnScreen, with associated CenterIn(BRect)
methods as well as Size(). To avoid the problem of centering the window before
it has been resized by the layout system, I force the resizing early. If there
is a better way to do this or some way to avoid doing it repeatedly, let me
know. But I figure the Center* methods should not be called that often.

Updated Screenshot and DiskProbe to use this new method as a test. It certainly
cleaned up DiskProbe. I will update other code over the next few days (if
anyone wants to help, please do :)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32612 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev32612
2009-08-22 14:17:29 +00:00
Stefano Ceccherini
f277acc9cd Don't crash the app server if the user calls BScreen(BWindow *) supplying
an offscreen window (Magnify does that, and that's the cause of ticket #4304).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32611 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev32611
2009-08-22 14:14:17 +00:00
Jérôme Duval
a078b74cab added application/x-xz mime type for xz files.
added a sniff rule on ac3 mime type


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32610 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev32610
2009-08-22 14:13:30 +00:00
Alexandre Deckner
abd3d52b5d * Forgot to save that file.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32605 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev32605
2009-08-22 13:46:01 +00:00
Alexandre Deckner
8e43b9e35e * A mouse shake detecting BMessageFilter that's easily integrated in any app.
* A test app for it. I added a src/test/kits/shared folder as i found it was the
 most logical place for it. Shake it up.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32602 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev32602
2009-08-22 13:43:21 +00:00
Fredrik Modeen
eb47b26534 Added Todo from #575 and fixed some code guidelines issues.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32601 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev32601
2009-08-22 13:40:24 +00:00
Jérôme Duval
99e369b76e add libswscale arch files, needed when INCLUDE_GPL_ADDONS is activated on x86
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32600 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev32600
2009-08-22 13:25:38 +00:00
Jérôme Duval
9a5d35d09d obviously forgot these
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32599 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev32599
2009-08-22 12:44:13 +00:00
Jérôme Duval
d44c1412ce * the ac3 frames detection doesn't work nice with big frames (1792) and buffer size of 2048
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32598 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev32598
2009-08-22 12:24:19 +00:00
Jérôme Duval
f0bdc7699c * synced with ffmpeg-r19678, keeping gcc2 compiler #ifdef we introduced, build only tested on Haiku gcc2
* activated ac3 audio file format support
* uses format metadata to keep the codec context extra data (now needed for flac)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32597 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev32597
2009-08-22 12:16:20 +00:00
Jérôme Duval
e0818886cf when using the = operator with media_format, check the area with B_BAD_VALUE.
Previously metadata weren't copied over the new format.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32596 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev32596
2009-08-22 09:42:38 +00:00
Michael Lotz
f1a7a3752f * Use the locked version of inherit_parent_user_and_group() by moving the call
into the scope of the lock. Saves an InterruptsSpinLocker.
* Use an InterruptsSpinLocker() as in other places.
* When creating/forking a team fails because the kernel thread cannot be spawned
  balance the already sent TEAM_ADDED notification by sending a TEAM_REMOVED one.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32595 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev32595
2009-08-22 03:07:11 +00:00
Jonas Sundström
8e8130d1f0 Adding routerboard_mipsel platform stubs and linker script.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32594 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev32594
2009-08-22 01:48:18 +00:00
Michael Lotz
b5172954bb Better watch your bools in C code. In C99, the bool type of the argument to
send_bit() causes a type conversion from the value handed in to 0 or 1. This
clashed with the usage in send_byte(), that hands over a shifted byte. The
argument was converted to true when it had any value other than 0, whereas
before (where a bool simply was an int) it would have just handed over the value
directly. Therefore the logic in send_bit() that simply masked off the lowest
bit of the value would now not work anymore.
This fixes EDID failing on GCC4 and therefore fixes #2275, the last issue of
#4084 and may also affect #2780.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32593 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev32593
2009-08-22 01:03:10 +00:00
Rene Gollent
c3350a57ff Squashed a TODO: When delivering signals, check if a) any threads were in fact enqueued, and b) if the scheduler's preemption hint indicates that a reschedule is desired. This prevents unnecessarily invoking the scheduler every single time a signal is delivered, regardless of result.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32592 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev32592
2009-08-21 23:48:42 +00:00
Bryce Groff
93134c5eb2 * Added parameter parsing to the userland side.
* Added support for logical partition headers in partitioning info.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32591 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev32591
2009-08-21 22:22:48 +00:00
Bryce Groff
d0f743e740 * Added parameter passing to/from the kernel to userland.
* Removed dependency on deprecated ep_validate_create_child()
* Removed hard coded sector size.
* Style cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32590 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev32590
2009-08-21 22:19:47 +00:00
Jérôme Duval
1f5d96afb8 we now print a warning message in the log when the interrupt comes in the second half of a buffer: this should mean the interrupt comes earlier than expected.
Please report such warnings, they can help to investigate timing issues with some hda codecs.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32589 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev32589
2009-08-21 21:55:40 +00:00
Philippe Houdoin
4271a1354c Style cleanup.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32588 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev32588
2009-08-21 21:50:30 +00:00
Jérôme Duval
e535c8c017 updated libpng to 1.2.39
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32587 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev32587
2009-08-21 21:38:50 +00:00
Jérôme Duval
dd0edf1f7c updated fluidsynth to 1.0.9
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32586 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev32586
2009-08-21 21:27:45 +00:00
Jérôme Duval
1a7d0f796b update pci ids
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32585 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev32585
2009-08-21 20:51:16 +00:00
Philippe Houdoin
6059eef66a Better use user_memcpy() to return battery [extended] info to userland caller.
Also add some paranoid checks: ACPI BIOSes implementation can be... wild.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32584 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev32584
2009-08-21 20:29:00 +00:00
Axel Dörfler
7c26f9d16d * Rewrote Buffer.h, and BufferConsumer.h, that's enough for a day :-)
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32583 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev32583
2009-08-21 20:21:45 +00:00
Jérôme Duval
3580aefbfe update to tzdata2009l
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32582 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev32582
2009-08-21 20:08:21 +00:00
Axel Dörfler
d587e0fbfe * Not sure why we are that generous (copying BView behaviour), but pressing
Alt, Option, or Control while scrolling the menu via the mouse wheel now
  scrolls page wise.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32581 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev32581
2009-08-21 19:36:07 +00:00
Michael Lotz
c9c3b32d3b Rework incoming report handling. We need to notify all reports when one comes in
because all reports schedule transfers on the same endpoint and therefore need
to possibly reschedule. Previously if we got a report that we didn't listen on
all further reports would stop, because noone would schedule a new transfer.
This fixes extra keys not working on my natural keyboard.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32580 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev32580
2009-08-21 18:46:24 +00:00
Axel Dörfler
feff9eba4a * Added minor missing pieces to the user guide that might otherwise not get
noticed.
* Humdinger, the GUI image does not have item 5) for the resize knob!


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32579 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev32579
2009-08-21 18:44:04 +00:00
Axel Dörfler
91d5822a7c * The code to handle AS_GET_SCREEN_ID_FROM_WINDOW did not lock the desktop,
which got unnoticed since the former Desktop::ActiveScreen() never changed.
  This fixes bug #4301.
* Also fixed a possible deadlock on application crash with a kWindowScreenFeel
  window; the locking order of the Desktop's and the ServerApp's window lock was
  reversed.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32578 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev32578
2009-08-21 18:08:04 +00:00
Axel Dörfler
67838392dc * Applied stippi's no-patents patch, but without the ffmpeg part, as that one
is obviously already configured not to use patented code.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32577 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev32577
2009-08-21 17:20:23 +00:00
Axel Dörfler
c53744492d * Fixed the output directory of the haiku-netboot.tgz.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32576 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev32576
2009-08-21 16:22:56 +00:00
Stefano Ceccherini
3b33d6307b Fixed B_READ_WRITE -> B_READ_AREA | B_WRITE_AREA problem.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32575 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev32575
2009-08-21 16:21:39 +00:00
Michael Lotz
29bd9bfd7d Remove SMP_MSG_RESCHEDULE_IF_IDLE as it is not used anymore.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32574 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev32574
2009-08-21 16:14:18 +00:00
Michael Lotz
861b223cf2 * Strip down scheduler_simple. Anything related to multiple CPU handling has
been removed. That includes CPU disabling and thread pinning, as that becomes
  pointless with only one CPU.
* Return a proper reschedule hint on enqueing a thread, based on the priority
  of the current thread vs. the enqueued one.
* Enable dynamic scheduler selection. With one CPU the simple scheduler will
  be used, otherwise affine is selected.
* Removed the scheduler type define as we now always auto-select it.
* Some cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32573 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev32573
2009-08-21 16:10:27 +00:00
Stefano Ceccherini
d3ae6ef65b use DIRECT_BUFFER_INFO_AREA_SIZE instead of B_PAGE_SIZE, even if they
are the same, but it's more correct. Also memset the buffer_info struct.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32572 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev32572
2009-08-21 15:40:53 +00:00
Stefano Ceccherini
7d9dfe90a5 fixed style violations
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32571 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev32571
2009-08-21 15:24:37 +00:00
Stefano Ceccherini
f1400a3199 More refactoring of the DirectWindow server code. No new bugs introduced
(hopefully), and now I could enable the B_SCREEN_CHANGED notification since 
it works a bit differently


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32570 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev32570
2009-08-21 15:07:40 +00:00
Michael Lotz
38516368ea Switching to the ATA stack for the @alpha targets. We need more widespread
testing to determine where we are at sooner than later now.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32569 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev32569
2009-08-21 14:34:16 +00:00
Axel Dörfler
8759c47161 * We need to cast to BFile instead of BNode, as BNode is not a subclass of
BPositionIO. This fixes ticket #4299.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32568 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev32568
2009-08-21 14:05:45 +00:00
Ryan Leavengood
7f0af426b2 Fix the build. Sorry for the breakage.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32567 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev32567
2009-08-21 13:39:42 +00:00
Axel Dörfler
fe7f167df1 * Resolved a TODO and got rid of Desktop::ActiveScreen().
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32566 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev32566
2009-08-21 13:34:33 +00:00
Axel Dörfler
cc93fbbba8 * Shuffled methods around to match their location in the header.
* Made ScreenChanged() private, and renamed it to _ScreenChanged().


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32565 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev32565
2009-08-21 13:19:53 +00:00
Axel Dörfler
5e3f4c41a6 * ServerApp now maintains a mask of workspaces with temporary mode settings,
and reverts the modes if the app goes away (ie. if it crashes).
* Desktop::SetScreenMode() also set the mode on the current screen, even if
  it should have been set on another screen.
* Cleaned up the Desktop.h header.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32564 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev32564
2009-08-21 12:57:24 +00:00
Stefano Ceccherini
c1df12d278 fixed / removed comments
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32563 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev32563
2009-08-21 11:50:21 +00:00
Stefano Ceccherini
1f3bec8961 removed resolved TODO comment
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32562 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev32562
2009-08-21 11:49:15 +00:00
Axel Dörfler
90ac66553e * Fixed computation of the screen frame in case of multiple screens.
* Removed debug output.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32561 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev32561
2009-08-21 10:30:30 +00:00
Axel Dörfler
5ce919497d * The changed settings format (display mode instead of composed fields) actually
broke Desktop::WorkspaceFrame(), which I didn't notice before; Workspaces now
  shows everything in the right dimensions, even if resolutions differ.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32560 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev32560
2009-08-21 10:28:46 +00:00