Commit Graph
66022 Commits
Author SHA1 Message Date
PulkoMandy d3503944f0 echo: actually fix warnings and enable -Werror
The driver Jamfile had a "-w" added to the compiler command line to
disable all warnings.

Use the generic util.c/h instead of having a separate copy.

Change-Id: I74e325850d573e75d652658748426c9ae353c6e7
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7617
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: Alexander von Gluck <[email protected]>
2024-04-15 16:02:49 +00:00
PulkoMandy beb5d39776 audio drivers: move util.{c,h} to generic directory
Change-Id: Ied0afa5ad9f66ee6f2249715d66fb62e6206d137
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7607
Reviewed-by: Alexander von Gluck <[email protected]>
Tested-by: Commit checker robot <[email protected]>
2024-04-15 16:02:49 +00:00
PulkoMandy 8a3e82a04d ich, ichaudio: remove
These have never been included in the Haiku build as far as I can see.
All the soundcards they support are already handled in the auich dirver.
All the IDE driver that ichaudio claims to support, I'm not sure why they
are in an audio driver.

One of them was written for BeOS and never updated for Haiku
multi_audio, and the other was apparently some experiment that didn't
get anywhere in the end. To avoid confusion, let's keep only one driver.

Change-Id: I5bf48e7dd2c5340e84a1ab4eb3e3b079103b7988
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7604
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: waddlesplash <[email protected]>
2024-04-15 16:02:49 +00:00
PulkoMandy f5e5891bbb es1370: enable -Werror
- use shared (updated) util.c for memory allocation
- disable functions that are currently not used (ac97 suopport)

Untested, I don't have the hardware.

Change-Id: I9c406e46af94dfc213cfa258c5f375da3c0c719d
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7603
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: Alexander von Gluck <[email protected]>
2024-04-15 16:02:49 +00:00
Muhamed Emad 464efaf403 auvia: enable -Werror, style fixes
Move util.c from auich (the most up to date version) to the parent
directory of ac97. Use it also for auvia. This means changing several
physical addresses to use phys_addr_t instead of pointers, and declaring
buffers allocated by alloc_mem to be user-accessible or not.

Untested, I don't have the hardware.

Change-Id: I2ababc713384cbf34174fbcecfb3595547a1fd97
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7602
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: Alexander von Gluck <[email protected]>
2024-04-15 16:02:49 +00:00
PulkoMandy d6e543c388 emuxki: enable Werror
Change-Id: I6ed7bfbe157bee86a8ce1dabc5829b8825e43f99
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7609
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: waddlesplash <[email protected]>
2024-04-15 16:02:49 +00:00
Muhamed Emad af8ec5e1b4 echo: enable Werror
Part of #9460

* If there is an operation between signed and unsigned int, the unsigned is changed to signed one,
  except for some operations (if before the operation the signed one is checked to be less than
  zero or not, then the signed one get cast to be unsigned (errors due to sign error when casting
  are impossible))
* When doing operations on pointers, integers get cast to uintptr_t type

Untested: I don't have the hardware.

Change-Id: I6a959c004862e055ee99f6f2ad5ca3397b32cdd2
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7484
Reviewed-by: waddlesplash <[email protected]>
Tested-by: Commit checker robot <[email protected]>
2024-04-15 16:02:49 +00:00
PulkoMandy fe640d9339 pcmcia: fix compilation warnings and errors
Needed for the echo indigo soundcard driver build.

IRQ is used as a field name in pmcia/cs.h. The IRQ() macro should only
be used with parameters. So we can avoid the use of IRQ in cs.h being
accidentally replaced by the macro.

Change-Id: Ib10f3c5148cfb7c87a0b258a95a590778b6e5cb4
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7608
Reviewed-by: waddlesplash <[email protected]>
Tested-by: Commit checker robot <[email protected]>
2024-04-15 16:02:49 +00:00
Muhamed Emad 6f52406a73 auich: Fix warnings, enable -Werror
Change-Id: I03a686d124444d60b92b34c1b7a10d73c872c21d
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7606
Reviewed-by: Adrien Destugues <[email protected]>
Tested-by: Commit checker robot <[email protected]>
2024-04-15 16:02:49 +00:00
Alexander von Gluck c237c4ce59 finddir: Add SYSTEM_DESKBAR_DIRECTORY
* Resolves #18883

Change-Id: Ib971272319d55b37fa06d6874f257c8080bdab8f
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7611
Reviewed-by: waddlesplash <[email protected]>
Reviewed-by: nephele nephele <[email protected]>
Reviewed-by: Alexander von Gluck <[email protected]>
Reviewed-by: Fredrik Holmqvist <[email protected]>
Tested-by: Commit checker robot <[email protected]>
2024-04-13 14:03:35 +00:00
Autocomitter 1778920aff Update translations from Pootle 2024-04-13 08:19:37 +00:00
Jérôme Duval 51bce128f7 tcp: don't allow read on listening sockets
fix #18884

Change-Id: If4e337316ea4faa2f00fa73295c57e93de0a2cbc
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7616
Reviewed-by: waddlesplash <[email protected]>
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: Rene Gollent <[email protected]>
2024-04-12 20:09:31 +00:00
Augustin Cavalier 979a0bc487 Appearance: Hide most colors by default and compute them automatically.
In the new "automatic" mode, the number of displayed colors
is just 3, as opposed to the full 38. Much more manageable!

The HSL routines added in this commit were derived from
https://gist.github.com/ciembor/1494530 which is itself derived
from the Wikipedia page describing HSL/HSV.

Part of #15543 and #11636.

Change-Id: I230a358d18c379fb0673162e0b3cbdb8d1b8d84e
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7479
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: waddlesplash <[email protected]>
2024-04-11 17:38:45 +00:00
Muhamed Emad 9b655000bc hda audio: Enable -Werror
There seem to be a gcc2 bug resulting in bitfields of uint32 type being cast to int.
The bitfield is mostly not needed here, since the fields are 8, 16 or 32
bits, so just use the appropriate types.

Change-Id: Ie4297db8bcda8ca0937c7f55915b318a1f4f6e55
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7599
Reviewed-by: waddlesplash <[email protected]>
2024-04-06 20:35:18 +00:00
Adrien Destugues 4d058c90a6 null_audio: fix warnings, enable -Werror
Change-Id: I83630f697cfb3d12bf8bea35b24dbdfd93b38ef1
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7595
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: waddlesplash <[email protected]>
2024-04-06 20:35:18 +00:00
Adrien Destugues fa2e76a142 audio drivers: enable Werror for drivers that have no warnings
Change-Id: I8b1721da5337e5368e1ecb19285ac29869c9d41f
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7594
Haiku-Format: Haiku-format Bot <[email protected]>
Reviewed-by: Adrien Destugues <[email protected]>
Tested-by: Commit checker robot <[email protected]>
2024-04-06 20:35:18 +00:00
Adrien Destugues aa9d729ebf virtio_audio: add to build, enable Werror, fix build
Change-Id: I52f1ed9cd2a967d7fecf866aec7cd390ae4885b8
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7593
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: waddlesplash <[email protected]>
Haiku-Format: Haiku-format Bot <[email protected]>
2024-04-06 20:35:18 +00:00
Máximo Castañeda 11ec18db9c ffmpeg: return AVERROR_EOF instead of 0 on stream end
Fixes: #18877
Change-Id: I1ce8b14089570fa42526819b8cb961a45998020b
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7601
Haiku-Format: Haiku-format Bot <[email protected]>
Reviewed-by: Jérôme Duval <[email protected]>
2024-04-06 11:28:12 +00:00
Autocomitter fb07166f52 Update translations from Pootle 2024-04-06 08:14:19 +00:00
InfiniteVerma 44e09f07ce fs_shell: Fix cat on symlink file
Changes mirror those in kernel VFS.

Change-Id: I47edf548d460d3932857254ac9730fb2161f3250
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7584
Reviewed-by: waddlesplash <[email protected]>
Tested-by: Commit checker robot <[email protected]>
2024-04-05 19:30:18 +00:00
Augustin Cavalier 2d8b193455 quicktour: Fix syntax error.
Fixes #18871.
2024-04-05 15:27:32 -04:00
Augustin Cavalier d919c744b2 src/tools: Remove duplicate copy of MsgSpy.
There is another (and more recently updated) one
in src/tests, which is also wired in to the build
system (which this one was not.)
2024-04-05 15:25:21 -04:00
Augustin Cavalier c92708ab72 Tracker: Lock the menu looper before getting its font.
Most of the time when this function is invoked,
the menu is not yet attached to a window, and so
there is no looper to lock. But some of the time,
there is, leading to a crash if we don't lock it.

Fixes #18875.
2024-04-05 15:22:49 -04:00
Augustin Cavalier aa977a0227 ffmpeg: Fix fCodecContext initialization and usage.
* Don't allocate a context up front if we're
   just going to free it anyway.

 * Actually set the various flags originally set
   in the constructor in the place where the context
   is actually allocated.

 * Remove now-duplicate thread_count assignment.
2024-04-05 15:07:22 -04:00
Diego Roux 96e8469863 [GSoC '24]: wip: virtio_audio: initial basic driver.
This commit in no form is intended to provide a working/functional
driver, but rather as a starting base and minimal code contribution
for GSoC.

This driver can only identify if the current device is a Sound
VirtIO device.

Change-Id: I718bb87c768dd84ff2be77a14e839f94955671fc
Signed-off-by: Diego Roux <[email protected]>
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7557
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: Jérôme Duval <[email protected]>
2024-04-05 09:04:51 +00:00
Daniel Martin 28d2323a4b screen: use B_COUNT_OF(), no functional changes
Change-Id: I827da35d9c04ed3d4884d477a1904f1ff4a4aad1
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7588
Haiku-Format: Haiku-format Bot <[email protected]>
Reviewed-by: waddlesplash <[email protected]>
2024-04-03 23:43:11 +00:00
Sylvain78 ad441271c5 Network test : unit test for receiving from unbound unix socket.
Change-Id: If5c77feedf71161be00833711bda6ba41b0b4357
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7549
Reviewed-by: Jérôme Duval <[email protected]>
Haiku-Format: Haiku-format Bot <[email protected]>
Tested-by: Commit checker robot <[email protected]>
2024-04-03 10:53:18 +00:00
PulkoMandy 57ad6e6f34 BFilePanel: fix items from favorites menu not working
Regression from hrev57294.

The code introduced there relies on the state of the "open" button being
updated from a previous selection in the file panel. But that is no the
case if the B_REFS_RECEIVED message does not come from the file panel
(in this case it comes directly from the favorites menu).

Fixes #18627.

Change-Id: Ic12b1989a4fbd631ce048aa6286d4d7c60ab1d99
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7577
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: waddlesplash <[email protected]>
Haiku-Format: Haiku-format Bot <[email protected]>
2024-04-02 19:44:53 +00:00
PulkoMandy 1f09e28c68 ffmpeg: enable multi-threaded decoding
Fixes #18874.

Change-Id: I24c74080fcc8280796af64624e0cdbf96cd57dc7
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7586
Haiku-Format: Haiku-format Bot <[email protected]>
Reviewed-by: waddlesplash <[email protected]>
2024-04-02 18:55:22 +00:00
priyanshu-gupta07 641b9f704b xfs: Inode Structure updated
background: Inodes structure needs to be updated in the same on Disk format for uniforming the code.

Inode structure is Updated to the OnDisk format same as that of Extent Header and the relative Changes are made to Inode class.

Change-Id: I1e89c514a7abe29479b152c6b038ff8b7c94abce
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7552
Tested-by: Commit checker robot <[email protected]>
Haiku-Format: Haiku-format Bot <[email protected]>
Reviewed-by: Adrien Destugues <[email protected]>
2024-04-02 17:39:58 +00:00
PulkoMandy b0674032b5 AVCodecDecoder: remove legacy ffmpeg support
Change-Id: I103ab2d7063dca33f2ef9c04202dd1699f871196
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7564
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: waddlesplash <[email protected]>
Haiku-Format: Haiku-format Bot <[email protected]>
2024-04-02 14:58:48 +00:00
PulkoMandy 3281146c1f ffmpeg: implement equivalent of avcodec_guess_frame_rate
The frame rate in the codec context isn't always a frame frate in the
video sense. It may be a smaller time unit used as a base for the frame
presentation timestamps.

I did not initially notice this because we set it to a default value
from the AVFormat passed input encoded_video format, but it is erased
after reading the first frame.

Fixes #18797.

Change-Id: I6157ae9942f6d5ca32aad7bac012df0822659a21
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7563
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: waddlesplash <[email protected]>
Haiku-Format: Haiku-format Bot <[email protected]>
2024-04-02 14:58:48 +00:00
PulkoMandy 43f35014f0 AVCodecDecoder: fix build with tracing enabled
Change-Id: Id1f79faf218a589d68c81258e4a88ee2d3b001be
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7562
Reviewed-by: waddlesplash <[email protected]>
Tested-by: Commit checker robot <[email protected]>
2024-04-02 11:14:23 +00:00
SED4906 1cdb3beb26 sdhci: add ACPI-enumerated device support
Change-Id: I5c42344b2499bd22581d6b564192decbce937645
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7456
Reviewed-by: Adrien Destugues <[email protected]>
Tested-by: Commit checker robot <[email protected]>
2024-04-02 11:10:56 +00:00
PulkoMandy b140858b8c ioapic: more useful logging
Back when this log was introduced, it could not be tested because no
hardware hitting that limit was known. Now there is some.

Add the actual number of IOAPIC redirection entries to the log, so we
can know how many redirection entries we need, and also add a missing
newline.

Change-Id: I00fa0c21628fc336c364cd975dd48801add75302
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7579
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: waddlesplash <[email protected]>
2024-04-01 20:38:50 +00:00
PulkoMandy 723c4270dd es1370: initialize the log only if the hardware is detected
Otherwise the logfile always exists on all Haiku installs. There is
nothing useful logged to it if no hardware is found.

Change-Id: I290cb0ac070256dbd2647d5fe36ab71f825600e8
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7578
Reviewed-by: waddlesplash <[email protected]>
Tested-by: Commit checker robot <[email protected]>
2024-04-01 20:38:30 +00:00
PulkoMandy 5c6e17e773 PCI: try harder to fixup broken resource ranges in ACPI tables
Try to handle two cases mentionned here: https://github.com/xCuri0/ReBarUEFI/wiki/DSDT-Patching

- Min/Max/Length/Gran are all zero, but no resource tag (ignore the range)
- Length is larger than Min/Max window (recompute the length)

Should fix #18454

Change-Id: I536dc06fcfbfc9aacf5eb6b9563cf03f9d09178a
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7581
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: waddlesplash <[email protected]>
2024-04-01 20:37:55 +00:00
Emir SARI dae087ed53 ShowImage: Apply i18n to number values
Also use multiplication sign for a nicer look

Change-Id: I526204832d4826f44a326f44037173418d8e2885
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7556
Haiku-Format: Haiku-format Bot <[email protected]>
Reviewed-by: Niels Sascha Reedijk <[email protected]>
Tested-by: Commit checker robot <[email protected]>
2024-04-01 07:45:33 +00:00
PulkoMandy 48cd211d71 usb_hid: add quirk to enable 6th button on Elecom M-XT4DR trackball
Linux implementation: https://www.spinics.net/lists/kernel/msg2665216.html

In our case it is not possible to read the original descriptor from
quirk handlers, so, I had to hardcode it all. The descriptor is the same
as the original one with just 3 bytes changed (detailed in comments).

Other Elecom hardware requires similar quirks, but can have different
number of buttons, so I did not add it for now.

Change-Id: Ie24c8535f3b4535eb414a4e35a62696ea1f9056d
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7580
Reviewed-by: waddlesplash <[email protected]>
Tested-by: Commit checker robot <[email protected]>
2024-03-31 18:22:39 +00:00
PulkoMandy c98ea724b9 WebPositive: allow to select "full and half fixed" monospace fonts
The same fix was done some time ago in Appearance preferences, but the
version in WebPositive had not been updated.

Allows to select the current version of Noto Sans Mono as the monospace font.

Change-Id: I829f80cab3ea224c9963147cc333877edafdeebe
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7576
Haiku-Format: Haiku-format Bot <[email protected]>
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: Jérôme Duval <[email protected]>
2024-03-31 16:07:20 +00:00
Emir SARI bc6674c89e pkgman: Use BNumberFormat for i18n
Change-Id: I2441f1d37bfccd5f5dbc9b763aeb87d017e628bc
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7508
Haiku-Format: Haiku-format Bot <[email protected]>
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: Adrien Destugues <[email protected]>
2024-03-31 08:33:21 +00:00
Emir SARI 058be77bec BColumnListView: use automatic formatting for i18n
Use BDateTimeFormat, BDateFormat, and BNumberFormat for
various date, time, decimal, and percent formatting.

Change-Id: I994563d207db8bd28342ca6543b69a356ced38af
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7505
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: Adrien Destugues <[email protected]>
2024-03-31 08:33:21 +00:00
InfiniteVerma f42b1cb118 fs_shell: Fix error message of cat command.
The fd was passed to strerror instead of the error code.

Also add CALLED() macro to trace function calls in the btrfs code and in
fs_shell (disabled by default but enabled by TRACE defines as usual).

Change-Id: I3b8958679412132349b33d5cd686ddbafc120f1c
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7494
Reviewed-by: Adrien Destugues <[email protected]>
Tested-by: Commit checker robot <[email protected]>
2024-03-30 15:05:28 +00:00
Adrien Destugues 1bebd5340b ping: use AI_ADDRCONFIG to filter resolved addresses
On IPv4-only configurations, there is no need to try to ping an IPv6
address. This flag tells getaddrinfo to filter out these addresses (or
likewise for IPv6 only).

Fixes #18867

Change-Id: I22295b0f33cf7c01d5cfacc562594c936cf97ee3
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7560
Haiku-Format: Haiku-format Bot <[email protected]>
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: waddlesplash <[email protected]>
2024-03-30 15:04:08 +00:00
David Karoly 92d226c2a9 headers/os: Bump max gcc to 14.x
Change-Id: Ia5601dae1c2d70f148df5dfde97bbba841af0b17
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7561
Haiku-Format: Haiku-format Bot <[email protected]>
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: Adrien Destugues <[email protected]>
2024-03-30 15:01:16 +00:00
Autocomitter 4a7de3f10a Update translations from Pootle 2024-03-30 08:17:54 +00:00
Autocomitter e56ee47f06 Update translations from Pootle 2024-03-30 08:17:54 +00:00
Emir SARI 1f5daef0bf ActivityMonitor: use BNumberFormat for i18n
Change-Id: I3179f84cbaee25624c2f4a7b092a28b5281a5f16
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7480
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: Niels Sascha Reedijk <[email protected]>
2024-03-29 10:39:34 +00:00
Oscar Lesta 1ee3891ab8 gutenprint: update from gutenprint8-5.3.1 to gutenprint9-5.3.4
Requires HaikuPorts#7573 to be merged.

Closes #17836.

Smoke-tested on beta4 32 bits:

Gutenprint printer addon loads libgutenprint.so.9.5.0, shows new
printer models from where to choose from at "install new printer"
time, and "prints something" when using the Print-To-File transport.

Change-Id: Ia40dfd3c2163795e83c2cc173fd510d64c4bf6c9
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5969
Haiku-Format: Haiku-format Bot <[email protected]>
Reviewed-by: Alex von Gluck IV <[email protected]>
2024-03-28 15:56:15 +00:00
X512 8b5f785b6a kits/package: allow to set BPackageResolvable to parsed string
Change-Id: I8ebb46b12a8af229d05994eb3cdd2d8180edc903
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7555
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: waddlesplash <[email protected]>
2024-03-28 14:37:49 +00:00