lkml.org 
[lkml]   [2021]   [Jul]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 5.12 195/700] ACPI: video: use native backlight for GA401/GA502/GA503
    Date
    From: Luke D Jones <luke@ljones.dev>

    [ Upstream commit 2dfbacc65d1d2eae587ccb6b93f6280542641858 ]

    Force backlight control in these models to use the native interface
    at /sys/class/backlight/amdgpu_bl0.

    Signed-off-by: Luke D. Jones <luke@ljones.dev>
    Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
    Signed-off-by: Sasha Levin <sashal@kernel.org>
    ---
    drivers/acpi/video_detect.c | 24 ++++++++++++++++++++++++
    1 file changed, 24 insertions(+)

    diff --git a/drivers/acpi/video_detect.c b/drivers/acpi/video_detect.c
    index 83cd4c95faf0..33474fd96991 100644
    --- a/drivers/acpi/video_detect.c
    +++ b/drivers/acpi/video_detect.c
    @@ -385,6 +385,30 @@ static const struct dmi_system_id video_detect_dmi_table[] = {
    DMI_MATCH(DMI_BOARD_NAME, "BA51_MV"),
    },
    },
    + {
    + .callback = video_detect_force_native,
    + .ident = "ASUSTeK COMPUTER INC. GA401",
    + .matches = {
    + DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."),
    + DMI_MATCH(DMI_PRODUCT_NAME, "GA401"),
    + },
    + },
    + {
    + .callback = video_detect_force_native,
    + .ident = "ASUSTeK COMPUTER INC. GA502",
    + .matches = {
    + DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."),
    + DMI_MATCH(DMI_PRODUCT_NAME, "GA502"),
    + },
    + },
    + {
    + .callback = video_detect_force_native,
    + .ident = "ASUSTeK COMPUTER INC. GA503",
    + .matches = {
    + DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."),
    + DMI_MATCH(DMI_PRODUCT_NAME, "GA503"),
    + },
    + },

    /*
    * Desktops which falsely report a backlight and which our heuristics
    --
    2.30.2


    \
     
     \ /
      Last update: 2021-07-12 09:40    [W:2.980 / U:0.372 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site