Ignore:
Timestamp:
Apr 14, 2017, 9:41:36 PM (6 weeks ago)
Author:
brainslayer
Message:

kernel update

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/linux/universal/linux-4.9/sound/soc/intel/atom/sst/sst_acpi.c

    r31574 r31859  
    401401
    402402#define CHT_SURFACE_MACH 1
     403#define BYT_THINKPAD_10  2
    403404
    404405static int cht_surface_quirk_cb(const struct dmi_system_id *id)
     
    408409}
    409410
     411static int byt_thinkpad10_quirk_cb(const struct dmi_system_id *id)
     412{
     413        cht_machine_id = BYT_THINKPAD_10;
     414        return 1;
     415}
     416
     417
     418static const struct dmi_system_id byt_table[] = {
     419        {
     420                .callback = byt_thinkpad10_quirk_cb,
     421                .matches = {
     422                        DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
     423                        DMI_MATCH(DMI_PRODUCT_NAME, "20C3001VHH"),
     424                },
     425        },
     426        { }
     427};
    410428
    411429static const struct dmi_system_id cht_table[] = {
     
    425443                                                                &chv_platform_data };
    426444
     445static struct sst_acpi_mach byt_thinkpad_10 = {
     446        "10EC5640", "cht-bsw-rt5672", "intel/fw_sst_0f28.bin", "cht-bsw", NULL,
     447                                                                &byt_rvp_platform_data };
     448
    427449static struct sst_acpi_mach *cht_quirk(void *arg)
    428450{
     
    437459}
    438460
     461static struct sst_acpi_mach *byt_quirk(void *arg)
     462{
     463        struct sst_acpi_mach *mach = arg;
     464
     465        dmi_check_system(byt_table);
     466
     467        if (cht_machine_id == BYT_THINKPAD_10)
     468                return &byt_thinkpad_10;
     469        else
     470                return mach;
     471}
     472
     473
    439474static struct sst_acpi_mach sst_acpi_bytcr[] = {
    440         {"10EC5640", "bytcr_rt5640", "intel/fw_sst_0f28.bin", "bytcr_rt5640", NULL,
     475        {"10EC5640", "bytcr_rt5640", "intel/fw_sst_0f28.bin", "bytcr_rt5640", byt_quirk,
    441476                                                &byt_rvp_platform_data },
    442477        {"10EC5642", "bytcr_rt5640", "intel/fw_sst_0f28.bin", "bytcr_rt5640", NULL,
Note: See TracChangeset for help on using the changeset viewer.