Commit Graph

12449 Commits

Author SHA1 Message Date
Alexander von Gluck IV
8fe5054828 intel_extreme: Extend DDI port probing to A-E
* The Linux code made this a bit hard to figure out via
  complex define functions, however there can be up to
  5 DDI ports (A-E)
2016-05-08 15:40:57 -05:00
Augustin Cavalier
685e5cbd2e virtualkeyboard: Delete some of the copied classes and use the originals.
The keyboard view class has too many modifications to be trivially merged.
2016-05-07 18:21:02 -04:00
Dario Casalinuovo
17078f9997 MixerCore: Use a normal acquire_sem call
* Make the thread really wake up only when requested.
2016-05-07 22:22:55 +02:00
Dario Casalinuovo
30456a328a media_reader/media_writer: Fix build issue and cleanup
* Remove references to the old project name.
2016-05-07 22:22:55 +02:00
Jérôme Duval
571a4030ea net_socket: check underflow condition happening on x86_64.
* move the test for the availability of the add_anillary_data function in the
protocol out of the loop, as suggested by Axel.
* fix #12737.
2016-04-29 17:34:48 +02:00
Jérôme Duval
29fa68b21c unix: fix x86_64 build with trace. 2016-04-29 17:34:48 +02:00
Alexander von Gluck IV
9503c26b5d intel_gart: Add SkyLake bridge ID's to match accelerant 2016-04-28 21:10:20 -05:00
Alexander von Gluck IV
1b9ee9d382 intel_gart: Add Atom DMI bridge ID's to match accelerant 2016-04-28 20:49:37 -05:00
Alexander von Gluck IV
dee0f365e1 intel_extreme: Improve LVDS panel detection robustness
* If older generation, check for mobile. If mobile GPU
  is found, make an assumption that a LVDS panel exists
  and attempt to leverage the vbios or VESA EDID.
2016-04-28 10:45:31 -05:00
Alexander von Gluck IV
00c9b19b31 intel_extrme: Add more Atom gpu PCI id's 2016-04-27 22:44:27 -05:00
Alexander von Gluck IV
3218cf3b36 ohci: Fix x86_64 usb tracing 2016-04-23 14:26:22 -05:00
Alexander von Gluck IV
78fc8fe7a0 xhci: 1.1 spec actually specifies 1023 maximum scratch pads.
* While my test XHCI machine only requested 36, the spec for 1.1
  actually states the controller can now "request up to 1023"
2016-04-23 13:03:43 -05:00
Alexander von Gluck IV
cf9e522172 xhci: 1.1 spec bumped scratchpads to 36. Set to sane 48 max 2016-04-23 12:49:10 -05:00
Alexander von Gluck IV
1b6e91d3b9 xhci: Tab cleanup of hw defines. No functional change 2016-04-23 12:47:59 -05:00
Alexander von Gluck IV
23cd7065bd intel_extreme: Disable register dumps
* Could cause instability in rare cases.
2016-04-23 09:13:23 -05:00
Alexander von Gluck IV
8d1cb54aac intel_extreme: Add in some code for the lakes (unused) 2016-04-22 22:41:52 -05:00
Alexander von Gluck IV
3b0f09dbfd intel_extreme: Fix blurry native LVDS mode
* Intel panel scaling was making native mode blury
* Resolutions < native result in a non-scaled screen for now.
* We should look into using the hardware scaler vs
  doing fake scaling.
* Resolves #12716
2016-04-15 18:05:04 -05:00
John Scipione
e9208b6876 ScreenSaver: Rename BuildScreenSaverDefaultSettingsView
...to just DefaultSettingsView

It is just as obvious what it does in context, but shorter.

Rename the function it contains from
BuildDefaultScreenSaverSettingsView to
BuildDefaultSettingsView
2016-04-13 15:50:30 -07:00
John Scipione
63d59e1081 Nebula: Use default insets
Simplify layout
2016-04-13 15:50:11 -07:00
John Scipione
523f450de0 Nebula: Pass view Bounds() instead of Frame() into SettingsView
This was why the view was not where it should be.
2016-04-13 15:41:40 -07:00
John Scipione
e5147b1d89 Nebula: Set View color in constructor
We don't need to wait for AttachedToWindow for view color
unlike high and low color.
2016-04-13 15:40:23 -07:00
John Scipione
a6ab3387c7 Nebula: Style fixes
80 char limit
add/update some pragmas
2016-04-13 15:40:22 -07:00
John Scipione
ebfc2fc68e Gravity: Use LayoutBuilder directly on view 2016-04-13 14:22:47 -07:00
John Scipione
263e936e87 Gravity: Fixup scroll bar range 2016-04-13 14:13:23 -07:00
John Scipione
3456c51030 Gravity: remove extra spaces 2016-04-13 14:13:23 -07:00
John Scipione
a80db836bf Appearance: Backport changes from Gravity back to Appearance
Make the square a rectangle with Golden Ratio
Use Set*UIColor() instead of Set*Color(ui_color())
Use B_CONTROL_BORDER_COLOR instead of hardcoding
Sort out copyright -- Haiku, Inc. didn't exist before 2003
Use variable width spacing based on font size from ControlLook
Removed unnecessary #includes

Did a little pixel pushing to make sure that everything is spaced
nicely and to ensure everything lies on integer pixel boundries.
2016-04-12 20:54:43 -07:00
John Scipione
d1d1535a73 Gravity: Use Set*UIColor() instead of Set*Color(ui_color())
Thanks jessicah!
2016-04-12 20:14:29 -07:00
John Scipione
ad5c346a3f Gravity: Remove copy pasta in copyright 2016-04-12 20:07:22 -07:00
John Scipione
cd91a71562 Gravity: update copyright
This was meant to go in the last commit
2016-04-12 19:36:36 -07:00
John Scipione
4b83455774 Gravity: Add ColorItem and RainbowItem
instead of using boring StringItems

ColorItem draws a small colored rectangle left of the string
RainbowItem draws a rainbow colored rectangle left of the string
2016-04-12 19:31:00 -07:00
John Scipione
89972206d8 Gravity: spaces => tabs in Jamfile 2016-04-12 19:17:10 -07:00
Dario Casalinuovo
598880fc30 MixerCore: Remove wrong flag 2016-04-12 02:54:36 +02:00
Dario Casalinuovo
b0dd37b7a0 AudioMixer: Review and rework synchronization
* The event time is managed through the main node control
loop.
* Make the mix thread to activate only when needed.
* Make the locking more simple and remove a race condition,
this will make the thread to be more silent too.
2016-04-12 02:33:48 +02:00
Dario Casalinuovo
ec2c5619c1 AVFormatWriter: Add more error checking
* Check before to write chunks if the header was correctly
written, the same happens for track infos, even if the code
doesn't support it.
2016-04-12 02:26:15 +02:00
Alexander von Gluck IV
05e1165520 h2generic: Stop using btDebug + style fixes 2016-04-10 01:01:07 -05:00
Alexander von Gluck IV
c58e1d7feb l2cap: Fix x86_64 build and refactor trace 2016-04-10 00:49:32 -05:00
Alexander von Gluck IV
e1e291b063 bluetooth: Drop vanity trace colors 2016-04-10 00:49:31 -05:00
Alexander von Gluck IV
1f2fa6cd09 bluetooth: Refactor debugging and trace calls
* The old debug system was too complex and made
  troubleshooring difficult. (it also was unique
  like a snowflake... which we don't want)
* Move to the classic TRACE / ERROR a large majority
  of the code has changed to.
* I like trace statements, but drop some obvious ones
* Fix style issues along the way
2016-04-09 23:40:54 -05:00
Alexander von Gluck IV
837845c53d bluetooth/hci: Add missing api_version 2016-04-09 21:35:55 -05:00
Alexander von Gluck IV
ebffd5b138 bluetooth/btCoreData: Add missing api_version 2016-04-09 21:34:29 -05:00
Alexander von Gluck IV
13afb4fb37 bluetooth/hci: x86_64 build fixes 2016-04-09 21:19:16 -05:00
Alexander von Gluck IV
73e3d8d20c bluetooth/btCoreData: x86_64 build fixes 2016-04-09 21:09:19 -05:00
Alexander von Gluck IV
f29863944e h2generic: Fix x86_64 build 2016-04-09 20:57:34 -05:00
Jérôme Duval
d3c8f2b271 dvb: update build with ffmpeg 3.0. 2016-04-09 23:32:08 +02:00
Alexander von Gluck IV
03b9db1a1a Merge branch 'intel-extreme'
Rework of the intel-extreme driver. Don't expect anything special yet.
2016-04-09 14:12:52 -05:00
Alexander von Gluck IV
debb71f548 intel_extreme: Disable 'experimental' GPUs SNB or higher
* VESA under Intel GPU's is generally native resolution
* These never worked well pre-rewrite, so lets disable
  them for now.
* I'd like testers to enable them slowly and report
  problems as enhancements.
2016-04-09 14:08:27 -05:00
Alexander von Gluck IV
10f2e843a6 intel_extreme: Power up DDI 2016-04-09 14:02:09 -05:00
Alexander von Gluck IV
037ecca315 ahci: Reduce aggressiveness of port reset
* While no removeable media is present, ahci
  ports continuously reset.
* hrev49665 made the port resets slightly more
  agressive resulting in strange removeable media
  behaviour.
* Lots of red herrings made this one take a while
  to figure out.
* Resolves #12415
2016-04-08 22:09:12 -05:00
Alexander von Gluck IV
fb75d9606c ahci: Simplification of reset code
* This simplifies the reset process again while keeping
  my original cleanups.
* I think trying a software reset before a hardware
  reset is desireable, however lets work on base
  functionality first.
2016-04-08 22:09:12 -05:00
Alexander von Gluck IV
f8df3953f4 radeon_hd: Fix build. Port missed macros in AtomBIOS parser 2016-04-08 11:33:41 -05:00
Alexander von Gluck IV
190b33c4b0 radeon_hd: Add updated / missing atombios opcodes
* Newer cards introduce two new opcodes mul32 and div32
* Add completely missing processds opcode
2016-04-08 09:36:18 -05:00
Dario Casalinuovo
6266cf35de AVFormatWriter: Fix bad error checking
* Review by Markus Overhagen, Thanks!
* Renamed fHeaderWritten variable to fCodecOpened too
2016-04-07 20:00:25 +02:00
John Scipione
cc067f16d4 SpiderSaver: Use DefaultItemSpacing 2016-04-06 13:39:29 -07:00
John Scipione
197c60bf3e SpiderSaver: Style fixes, move SpiderView into own files
Fixes after rebase to make the thing work, along with some style
fixes that got mixed in.
2016-04-06 13:39:29 -07:00
Dario Casalinuovo
cbada661c3 AVFormatWriter: Safeness after avformat_write_header fails
* The ffmpeg documentation explicit forbid to write the trailer
when the header write failed.
* Fixes #12678.
2016-04-06 00:35:44 +02:00
Dario Casalinuovo
16732ae7a4 VideoWindow consumer: Fix connection
* The integer overflowed for some reason.
* Fixes #9439.
2016-04-05 00:30:38 +02:00
John Scipione
abfb31b6d0 WebPTranslator: style fixes only 2016-03-30 14:41:51 -07:00
John Scipione
e465dcb609 WebPTranslator: Make menu fields variable width 2016-03-30 14:41:51 -07:00
John Scipione
d9975fafd8 WebPTranslator: Remove leading spaces 2016-03-30 14:41:51 -07:00
John Scipione
d712965dd0 PSDTranslator: Make menu fields variable width 2016-03-30 14:41:51 -07:00
John Scipione
613b939283 GIFTranslator: Make menu fields variable width 2016-03-30 14:41:51 -07:00
Axel Dörfler
6f7fc2204b NodeMonitor: Added B_WATCH_CHILDREN flag.
* Added a directory argument for notify_{stat/attribute}_changed().
* This allows to watch only a directory, and get the notifications for
  all of its files, not just add/remove entry notifications.
2016-03-28 14:31:27 +02:00
Dario Casalinuovo
8c7679851f Move MediaIO in it's own header 2016-03-25 22:44:56 +01:00
Dario Casalinuovo
a6b34a8c45 ffmpeg: Initial switch to BMediaIO 2016-03-25 21:54:54 +01:00
Alexander von Gluck IV
ca95e9dad9 intel_extreme: Add initial work for DDI ports 2016-03-15 18:12:28 -05:00
Michael Lotz
91ea4fb48a usb_ecm: Use the current configuration instead of a fixed one.
This allows usb_ecm to work in case it is part of a device using
different configurations for different types of interfaces and ECM is
not the first configuration.
2016-03-12 13:15:49 +01:00
Michael Lotz
b62bb24fe4 USB: Force spec mandated control pipe max packet sizes.
While the USB descriptors are specifically built in such a way that it's
always possible to correctly query the max packet size, some devices
unfortunatley use bogus values in their descriptors and rely on the
stack to use the mandated values.

This fixes USB devices in VirtualBox when EHCI emulation is used. This
really is a bug in their descriptor emulation though.
2016-03-12 13:13:04 +01:00
Michael Lotz
3da7be22fb EHCI: Current qtd field in qh overlay has no terminate bit.
Don't initialize the current qtd field with the terminate bit as it does
not exist in this field. While the lower 5 bits are documented as being
ignored anyway, this is more correct. Should cause no functional change.
2016-03-12 13:12:35 +01:00
Michael Lotz
ad72f4caed EHCI: Fix alignment check, the mask wasn't wide enough.
As this is only an assert that shouldn't ever be triggered, this doesn't
change anything in normal operation.
2016-03-12 13:12:11 +01:00
Michael Lotz
3648dc8709 EHCI: Style cleanup only, no functional change.
Change < B_OK to != B_OK for status_t results and to < 0 for ids.
2016-03-12 13:11:54 +01:00
Alexander von Gluck IV
3d1bd895ad intel_extreme: Properly use VBIOS panel mode
* Move current_mode into the accelerant as the
  driver doesn't care.
* Record panel_mode in driver and present to accelerant
* eDP, if no EDID and mobile, leave edid incomplete.
  Mode set should notice that and fall back to panel_mode
2016-03-11 18:20:28 -06:00
Alexander von Gluck IV
a81f65eae5 Merge branch 'master' into intel-extreme 2016-03-09 17:11:08 -06:00
Alexander von Gluck IV
be587ecfe0 radeon_hd: Clean up PCI ID names and add a few missing 2016-03-04 17:12:08 -06:00
Adrien Destugues
93ea83e53d Allow custom baud rates for FTDI serial ports
- Termios: cf{get,set}{i,o}speed can handle arbitrary speed values.
- The value is stored in the appropriate fields of the termios structure
  in this case. The old constants (stored in the flags) are preserved
  for BeOS binary compatibility.
- Adjust the FTDI FT232* driver to accept custom rates, by replacing the
  hardcoded regster values with a function that will compute it
  according to FTDI documentation (confirmed giving the same values for
  the existing baudrates).
2016-02-27 19:08:53 +01:00
Adrien Destugues
44547a899c usb_serial: add PID for FTDI FT231X.
- Same driver as other FTDI chips, but less IO pins.
2016-02-27 15:56:33 +01:00
Alexander von Gluck IV
236a3e937a intel_extrme: Better tracing, note when dp no-link 2016-02-23 17:50:39 -06:00
Alexander von Gluck IV
721ba9af43 intel_extreme: Clean up DisplayPort Port class
* DisplayPort != DigitalPort
* i2c needs wrapped in DP AUX transaction code
* Mode-setting comes with DP link training as well
* We need to try and share DP code with radeon_hd
2016-02-23 14:10:14 -06:00
Alexander von Gluck IV
9975620612 intel_extreme: Prepare for DisplayPort AUX comms 2016-02-23 13:39:10 -06:00
Jérôme Duval
269796df9d ffmpeg: add TODO on reimplementing deinterlace for ffmpeg 3. 2016-02-21 14:52:31 +01:00
Jérôme Duval
f97f2394ca ffmpeg: update build with version 3.0.
* untested.
2016-02-19 21:44:36 +01:00
Jérôme Duval
0d6b5d2667 via.accelerant: fix x86_64 build.
* untested.
2016-02-19 21:44:35 +01:00
Alexander von Gluck IV
bab64f65bb Merge remote-tracking branch 'upstream/master' into intel-extreme 2016-02-19 10:17:42 -06:00
Alexander von Gluck IV
c9c61669ea intel_extreme: Add general pipe configuration and adjust color space 2016-02-19 00:09:43 -06:00
Adrien Destugues
da455572ed AVCodecDecoder: fix timing problems
A combination of two problems made things go wrong with the timestamp of
decoded audio.

1) The output buffer size is too small to hold the complete input.
swresample handles this by buffering the input for use the next time it
is called, however repeatedly doing this results in lots of buffering,
and our way to compute the output timestamp from the input does not take
it into account so it does weird things. Moreover, we would need to
empty the buffer by calling swr_convert with NULL input in that case.

Fix: make sure to not feed more data to swr_convert than it can output
in our buffer. This way, no buffering occurs, only the matrixing
conversion.

2) When using planar audio, the "frame size" is a bit different. Instead
of adding sample size * channel count to 1 pointer, we need to add
sample size * 1 to each channel buffer.

Fix: add the "fInputFrameSize" which takes this into account, instead of
misusing fOutputFrameSize for the input.

Fixes #12460.
2016-02-14 11:45:13 +01:00
Dario Casalinuovo
18e199bd7b video_mixer: Better to use array syntax 2016-02-13 16:52:59 +01:00
Dario Casalinuovo
127a93c293 video_mixer: Fix build
* Unfortunately it's crashing the media_addon_server
at startup.
2016-02-13 16:00:14 +01:00
Dario Casalinuovo
44200efd5d media_reader/media_writer: Fix build 2016-02-12 23:00:52 +01:00
Dario Casalinuovo
b1d006d7f8 ToneProducer: Try to don't force a framerate if possible 2016-02-11 19:17:20 +01:00
Axel Dörfler
f429e4f442 IMAP: Fixed stream vs. parse exception handling.
* Protocol::HandleNextResponse() will now exit when a stream exception
  occurs.
* This should fix bug #12601.
2016-02-10 13:55:56 +01:00
Axel Dörfler
15216b261a IMAP: Retrieve on-disk folder state async.
* Messages that we don't have info for during synchronization are now
  collected, and synchronized once the folder state is available,
  instead of waiting for that particular entry to become available
  (without proper means to wait).
2016-02-10 13:55:55 +01:00
Axel Dörfler
1870a4b1f9 IMAP: Fixed sync command handling.
* The counter did not take continuation commands into account, so that
  it would never reach zero again.
* Optimized IMAPConnectionWorker::_WaitForCommands() such that it will
  always acquire all available "slots".
2016-02-10 13:55:55 +01:00
Axel Dörfler
7d6cefeb50 IMAP: Ignore \Noselect mailboxes.
* They aren't selectable, so we can just hide them from the user.
* This should fix #12369.
2016-02-10 13:55:31 +01:00
Dario Casalinuovo
730d0700f5 MultiAudioNode: Remove custom lateness code 2016-02-07 23:16:24 +01:00
Rudolf Cornelissen
2e3e1a5902 VIA gfx driver: fixed overlay on DDR166 and DDR200 memory. v0.19, updated docs. 2016-02-07 22:46:49 +01:00
Alexander von Gluck IV
6eae8422d1 intel_extreme: Drop out of FDI autotrain after success 2016-02-04 21:03:57 -06:00
Rudolf Cornelissen
d6d5874afe VIA gfx driver: bumped version to 0.18, updated docs. 2016-01-28 11:09:48 +01:00
Rudolf Cornelissen
656b3130c3 VIA gfx driver: K8M800 overlay engine is now up and running OK :-) 2016-01-28 10:34:56 +01:00
Rudolf Cornelissen
193416abaf VIA driver: block overlay hooks if mode not supported! 2016-01-28 10:04:43 +01:00
Axel Dörfler
de4b1dede1 BMailProtocol: Removed delete/append methods.
* The mail system is file based which makes these methods pretty much
  superfluous.
2016-01-26 16:01:03 +01:00
Rudolf Cornelissen
0fa7d5c4df VIA gfx driver: overlay engine on K8M800 responds now, wip. 2016-01-23 23:46:22 +01:00