Commit Graph

252 Commits

Author SHA1 Message Date
Konsta
b4409695e6 external camera: update ignored video devices
* These have changed on 6.6 kernel.

console:/ # v4l2-ctl --list-devices
pispbe (platform:1000880000.pisp_be):
        /dev/video20
        /dev/video21
        /dev/video22
        /dev/video23
        /dev/video24
        /dev/video25
        /dev/video26
        /dev/video27
        /dev/video28
        /dev/video29
        /dev/video30
        /dev/video31
        /dev/video32
        /dev/video33
        /dev/video34
        /dev/video35
        /dev/media0
        /dev/media1

rp1-cfe (platform:1f00110000.csi):
        /dev/video0
        /dev/video1
        /dev/video2
        /dev/video3
        /dev/video4
        /dev/video5
        /dev/video6
        /dev/video7
        /dev/media3

rpivid (platform:rpivid):
        /dev/video19
        /dev/media2
2025-06-08 12:30:07 +03:00
Konsta
305b81cdf5 light: support more backlight paths
* I2C address for the panel regulator driver depends on the device and
  DSI port the display is connected on. Add more backlight paths to support
  different hardware configurations. Also add path for legacy rpi_backlight
  driver to make testing easier.
2025-05-02 14:13:42 +03:00
Konsta
14b993ba1e increase system partition size
* Make room for unspecified add-ons.
2025-04-17 13:06:42 +03:00
Konsta
8709904958 car: add exceptions for non-existing targets 2025-04-17 13:06:03 +03:00
Konsta
45fad47629 enforce product packages exist 2025-04-17 13:05:48 +03:00
Konsta
4ce5bf57b6 add empty product manifest
* Needed with enforce-product-packages-exist.
* c38cec789c
2025-04-17 13:05:40 +03:00
Konsta
02b1412be8 wifi: remove hostapd_cli and wpa_cli
* These are mostly useful for debugging purposes so I've added them
  in the project's utilities wiki page.
2025-04-12 18:19:36 +03:00
Konsta
17821d6cb2 audio: remove tinyalsa utils
* These are mostly useful for debugging purposes so I've added them
  in the project's utilities wiki page.
2025-04-12 18:19:36 +03:00
Konsta
e2ac9269f4 audio: remove alsa-utils
* These are mostly useful for debugging purposes so I've added them
  in the project's utilities wiki page.
* alsa-utils have been renamed to use their original names if there's no
  conflict with other packages in AOSP.
2025-04-12 18:19:28 +03:00
Konsta
8b53a5a790 camera: remove unneeded media profiles property
* This hasn't been needed in years.
  72ad8cb0ae
2025-04-12 18:16:11 +03:00
Konsta
e9e4222534 ffmpeg: move media codecs config & seccomp policy to device
* 71ac744017
2025-04-09 12:54:04 +03:00
Konsta
7120a38fea ffmpeg: switch to apex 2025-04-09 12:28:47 +03:00
Konsta
d7a91d0681 ffmpeg: switch to aidl
* Also switch codec2 framework to use AIDL.
  cc7adc6936
2025-04-09 12:27:35 +03:00
Konsta
426c50ad5a wrimg: add script to write partition images
* Can be used to write partition images to a storage device that has the
  correct partition structure after flashing an image created by mkimg.sh.
* Poor man's alternative to
  fastboot flash boot boot.img
  fastboot flash system system.img
  fastboot flash vendor vendor.img
  fastboot erase userdata
2025-04-04 10:26:37 +03:00
Konsta
a7c86cf925 mkimg: improve error message 2025-04-04 10:26:25 +03:00
Konsta
cd4f885fe2 wifi: overlay: enable background scan 2025-04-04 10:25:00 +03:00
Konsta
38780decd0 wifi: enable 5GHz hotspot 2025-04-04 10:24:36 +03:00
Konsta
90e9be8f36 wifi: overlay: set default name for hotspot 2025-04-04 10:24:28 +03:00
Konsta
1ac59c93f7 bluetooth: set default device name
* Set default device name for bluetooth.
* I still prefer this displayed as 'Raspberry Pi 5' after commit
  acfacd0969.
2025-04-04 10:24:19 +03:00
Konsta
bfd873f4aa overlay: set default device name
* Set default device name displayed in settings menu.
* I still prefer this displayed as 'Raspberry Pi 5' after commit
  acfacd0969.
2025-04-04 10:24:10 +03:00
Konsta
6ff636f6ba ramdisk: remove ion 2025-04-02 13:59:14 +03:00
Konsta
91aa0a3e83 sepolicy: allow keymint to read serialno property 2025-04-02 13:48:21 +03:00
Konsta
e31b63ccc8 sepolicy: allow vendor_init to set cec property 2025-04-02 13:48:07 +03:00
Konsta
6f57d4d8af ffmpeg: use vendor properties 2025-04-02 13:47:35 +03:00
Konsta
87e473d8ff audio: use vendor properties 2025-04-02 13:46:45 +03:00
Konsta
ff19fe9878 audio: auto probe pcm card for jack & dac
* When 'jack' is selected using the property, first PCM card that has name
  'Headphones' is used.
  When 'dac' is selected, first PCM card that is not named 'Headphones',
  'vc4hdmi0', or 'vc4hdmi1' is used.
2025-04-02 13:40:23 +03:00
Konsta
66f0ae7d82 audio: cache pcm card and device
* It's always been intended that changing audio output devices requires
  a reboot. Get the PCM card and device once when the HAL is initialized.
  Might save a few ms on start_output_stream.
2025-04-02 13:39:14 +03:00
Konsta
a6ff435674 hdmi audio: cache alsa device
* It's always been intended that changing audio output devices requires
  a reboot. Get the ALSA device once when the HAL is initialized.
  Might save a few ms on start_output_stream.
2025-04-02 13:39:00 +03:00
Konsta
291b0d0e44 bump shipping api level
* HIDL services are not included on API level 35. Add the services since
  we're still using few HIDL HALs.
  4ce8327a8f
* FCM level can't be bumped to 202404 until all HALs have been updated to
  AIDL i.e. at least following HALs reported by 'make check-vintf-all'.

All HALs in device manifest are declared in FCM <= level 202404
ERROR: files are incompatible:
...
android.hardware.camera.provider@2.5::ICameraProvider/legacy/0 is deprecated in compatibility matrix at FCM Version 202404; it should not be served.
    because it matches android.hardware.camera.provider@2.4::ICameraProvider/[^/]+/[0-9]+ from /system/etc/vintf/compatibility_matrix.7.xml
android.hardware.audio@7.1::IDevicesFactory/default is deprecated in compatibility matrix at FCM Version 202404; it should not be served.
    because it matches android.hardware.audio@7.0::IDevicesFactory/default from /system/etc/vintf/compatibility_matrix.8.xml
android.hardware.audio.effect@7.0::IEffectsFactory/default is deprecated in compatibility matrix at FCM Version 202404; it should not be served.
    because it matches android.hardware.audio.effect@7.0::IEffectsFactory/default from /system/etc/vintf/compatibility_matrix.8.xml: Success
INCOMPATIBLE
2025-03-31 19:30:45 +03:00
Konsta
9f07c74401 camera: add to framework compatibility matrix
* Picked up by 'make check-vintf-all'.

The following instances are in the device manifest but not specified in framework compatibility matrix:
    android.hardware.camera.provider@2.5::ICameraProvider/legacy/0
2025-03-31 19:29:58 +03:00
Konsta
74b3908af7 remove device compatibility matrix
* Use default device compatibility matrix from
  system/libhidl/vintfdata/device_compatibility_matrix.default.xml.
* 282994a8a2
2025-03-31 19:29:48 +03:00
Konsta
608f723562 sepolicy: 64-bit only 2025-03-31 19:28:57 +03:00
Konsta
fea8235247 switch to 64-bit only target 2025-03-31 19:28:49 +03:00
Konsta
f9917417c1 boot: remove start_x
* On Pi 5 firmware is self-contained in the bootloader EEPROM. There's no
  extended firmware files.
2025-03-28 23:44:25 +02:00
Konsta
17fce4b6a0 sepolicy: indent file_context and service_contexts by section 2025-03-28 23:43:52 +02:00
Konsta
b26a4d8c30 sepolicy: move sysfs entries to genfs_contexts
* rfkill nodes are already labeled by default.
2025-03-28 23:42:52 +02:00
Konsta
37863d4b4f sepolicy: label wakeup node 2025-03-28 23:42:42 +02:00
Konsta
22a75c85a4 sepolicy: various fixes for graphics 2025-03-28 23:42:34 +02:00
Konsta
4596a7546d sepolicy: fix label type for hdmi connection nodes
* Gets cought with neverallow rules.
* Fixes 39a71902e0.
2025-03-27 12:40:18 +02:00
Konsta
4dc3e0f0d8 hdmi: connection: convert to apex 2025-03-25 18:05:43 +02:00
Konsta
59af7f93eb hdmi: cec: convert to apex 2025-03-25 18:05:35 +02:00
Konsta
39a71902e0 hdmi: connection: add rpi specific aidl hal
* Needed for AIDL HDMI-CEC HAL to work. Some functions that were in the
  HIDL HDMI-CEC HAL have been moved to separate HDMI connection HAL in the
  AIDL versions. Only returns connection status of HDMI ports on Pi.
  onHotplugEvent is not implemented.
* Use hardware/interfaces/tv/hdmi/connection/aidl/ as reference.
2025-03-25 18:05:16 +02:00
Konsta
24aa53a993 hdmi: cec: remove onHotplugEvent
* HDMI connection HAL should manage this.
2025-03-25 18:04:48 +02:00
Konsta
f75f3f933b hdmi: cec: move to subdir 2025-03-25 18:04:41 +02:00
Konsta
32cf720294 cec: add device type property
* e2b6b1cfe2
  e7a511f911
2025-03-25 18:04:32 +02:00
Konsta
e248cd4d77 cec: use vendor property for device & remove unneeded properties
* Use vendor property to allow labeling it for SELinux.
* Remove unneeded properties to set version and vendor id. Using the
  default values in any case.
2025-03-25 18:04:22 +02:00
Konsta
f200aca4ce cec: convert to aidl
* Use hardware/interfaces/tv/hdmi/cec/aidl/ as reference.
2025-03-25 18:04:13 +02:00
Konsta
e1d92d2183 suspend_blocker: convert to apex
* Start the service later at 'class hal' to avoid making this into bootstrap
  APEX. 'class early_hal' is started on trigger 'on late-fs' which is too
  early for vendor APEX.
2025-03-20 13:37:44 +02:00
Konsta
c692c4354c add chipset properties
* This became needed for CTS some years ago.
  faa63a37c0
2025-03-20 13:36:16 +02:00
Konsta
61e83a2939 sepolicy: add more drm devices
* Pi 5 has independent cards for DSI-0, DSI-1, DPI, and VEC.
  In theory we could have two DSI displays so add two more entries.

avc:  denied  { ioctl } for  path="/dev/dri/card2" dev="tmpfs" ino=749 ioctlcmd=0x64bc scontext=u:r:hal_graphics_composer_default:s0 tcontext=u:object_r:device:s0 tclass=chr_file permissive=1
2025-03-20 13:36:06 +02:00