Skip to content
Snippets Groups Projects
  1. Jan 06, 2023
  2. Nov 17, 2022
  3. Nov 16, 2022
  4. Nov 11, 2022
  5. Nov 09, 2022
    • Pekka Paalanen's avatar
      ci: install hwdata · 3c675db0
      Pekka Paalanen authored
      
      This is needed for the following patch to find pnp.ids.
      
      This is not available in the Alpine release we are using right now.
      
      That --disable-blacklist works around the error:
      install: unrecognized option: T
      BusyBox v1.35.0 (2022-08-01 15:14:44 UTC) multi-call binary.
      
      Signed-off-by: default avatarPekka Paalanen <pekka.paalanen@collabora.com>
      3c675db0
    • Pekka Paalanen's avatar
      editorconfig: add python rules · 89f8eecc
      Pekka Paalanen authored
      
      This seems to be what the existing python file uses, and trying to write
      python when your editor is constantly resetting its settings according
      to the previous "incorrect" editorconfig was infuriating.
      
      Signed-off-by: default avatarPekka Paalanen <pekka.paalanen@collabora.com>
      89f8eecc
    • Pekka Paalanen's avatar
      test: make edid-decode-diff.sh easier to run · 00b446d5
      Pekka Paalanen authored
      
      Having to define just DI_EDID_DECODE was tolerable when REF_EDID_DECODE
      does not need setting, but now that there are two built tools, it is
      getting inconvenient.
      
      Change the defaults to match the build directory structure and add a new
      overridable for the build directory.
      
      Now I only need to set BUILDDIR for this to work. My build dirs are
      completely elsewhere, but if someone uses the usual 'meson build'
      incantation, the default value for BUILDDIR should be fine.
      
      Signed-off-by: default avatarPekka Paalanen <pekka.paalanen@collabora.com>
      00b446d5
    • Pekka Paalanen's avatar
      test: add high-level API test · f70fa584
      Pekka Paalanen authored
      
      This new test exercises all existing high-level API to make sure the
      output does not change unexpectedly.
      
      Unlike with edid-decode tests, these new print tests do not have an
      externally defined groundtruth. They are only to detect changes and
      exercise code paths.
      
      Signed-off-by: default avatarPekka Paalanen <pekka.paalanen@collabora.com>
      f70fa584
    • Pekka Paalanen's avatar
      info: add getters for make, model and serial · b3231b85
      Pekka Paalanen authored
      
      The functionality of these new high-level functions as implemented here
      follows what Weston 11.0's ad hoc EDID parser extracted. There are
      differences to Weston though:
      - get_model() falls back to the numeric model field
      - unusual characters are escaped as hex rather than replaced with dash
      
      The documentation of the new functions allows to change the behavior of
      get_model and get_make to e.g. convert PNP ID to a company name. The
      notes about UTF-8 allow us to make use of UTF-8 fields if such appear
      useful in the future.
      
      Weston's ad hoc parser shall be replaced with this. After another API
      addition, the high-level API semantics will match what Weston expects.
      
      The memory_stream stuff is for convenience and will see more complex
      use in the future.
      
      Signed-off-by: default avatarPekka Paalanen <pekka.paalanen@collabora.com>
      b3231b85
  6. Oct 20, 2022
  7. Oct 15, 2022
  8. Oct 14, 2022
  9. Oct 13, 2022
    • Pekka Paalanen's avatar
      edid: fix uint16_t conversion warning · 56be915e
      Pekka Paalanen authored
      
      ../../git/weston/subprojects/display-info/edid.c: In function ‘decode_chromaticity_coord’:
      ../../git/weston/subprojects/display-info/edid.c:250:8: warning: conversion from ‘int’ to ‘uint16_t’ {aka ‘short unsigned int’} may change value [-Wconversion]
        250 |  raw = (uint16_t) (hi << 2) | lo;
            |        ^
      
      Apparently the cast applies to (hi << 2), then bitwise-or implicitly
      promotes to signed int, and that gets assigned to uint16_t raw. At least
      gcc 10.2.1 from Debian seems to think so.
      
      Fix it by forcing the cast on the complete result.
      
      Signed-off-by: default avatarPekka Paalanen <pekka.paalanen@collabora.com>
      56be915e
  10. Oct 11, 2022
  11. Oct 07, 2022
  12. Oct 05, 2022
  13. Oct 04, 2022
  14. Oct 03, 2022
  15. Sep 29, 2022
Loading