* Android Automotive configurations rely on hardcoded port ids.
These are used on EVS camera configuration and configuring instrument
cluster on secondary display.
* On Pi 5 the reverted commit changed the port ids for HDMI-A-1 and HDMI-A-2
from 0 and 1 to 32 and 33, respectively.
* Doesn't produce stable ids between rpi4 and rpi5 where there are different
number of drm cards and in different order.
* Lets keep running number from 0 for now vs. what 3/5 bit split would
produce on rpi4 and rpi5.
rpi4:
card0 - HDMI-A-1, HDMI-A-2, DSI-0 & DSI-1
000 00000 -> 0
000 00001 -> 1
000 00010 -> 2
000 00011 -> 3
rpi5:
card1 - HDMI-A-1 & HDMI-A-2
001 00000 -> 32
001 00001 -> 33
card2 - DSI-0
010 00000 -> 64
card3 - DSI-1
011 00000 -> 96
* Only revert the relevant part to avoid merge conflicts.
This partially reverts commit
|
||
|---|---|---|
| .ci | ||
| backend | ||
| bufferinfo | ||
| compositor | ||
| drm | ||
| hwc | ||
| hwc2_device | ||
| hwc3 | ||
| stats | ||
| tests | ||
| utils | ||
| .clang-format | ||
| .clang-tidy | ||
| .gitignore | ||
| .gitlab-ci.yml | ||
| Android.bp | ||
| Makefile | ||
| meson.build | ||
| meson.options | ||
| MODULE_LICENSE_APACHE2 | ||
| NOTICE | ||
| README.md | ||
drm_hwcomposer
Patches to drm_hwcomposer are very much welcome, we really want this to be the universal HW composer implementation for Android and similar platforms. So please bring on porting patches, bugfixes, improvements for documentation and new features.
A short list of contribution guidelines:
-
Submit changes via gitlab merge requests on gitlab.freedesktop.org.
-
drm_hwcomposer is Apache 2.0 Licensed and we require contributions to follow the developer's certificate of origin: http://developercertificate.org/.
-
When submitting new code please follow the naming conventions documented in the generated documentation. Also please make full use of all the helpers and convenience macros provided by drm_hwcomposer. The below command can help you with formatting of your patches:
git diff | clang-format-diff-19 -p 1 -style=file -
Hardware specific changes should be tested on relevant platforms before committing.
If you need inspiration, please checkout our TODO issues.
Happy hacking!