• Gergo Koteles's avatar
    ALSA: hda/tas2781: add TAS2563 support for 14ARB7 · c3ca4458
    Gergo Koteles authored
    The INT8866 belongs to the Lenovo Yoga 7 Gen 7 AMD 14ARB7
    laptop. It has two TAS2563 amplifier. Add the PNP ID
    and calibration functions to handle them.
    
    ACPI excerpt:
    
    Scope (_SB.I2CD)
    {
        Device (TAS)
        {
            Name (_HID, "INT8866")  // _HID: Hardware ID
            Name (_UID, Zero)  // _UID: Unique ID
            Method (_CRS, 0, NotSerialized)  // _CRS: Current Resource Settings
            {
                Name (RBUF, ResourceTemplate ()
                {
                    I2cSerialBusV2 (0x004C, ControllerInitiated, 0x00061A80,
                        AddressingMode7Bit, "\\_SB.I2CD",
                        0x00, ResourceConsumer, , Exclusive,
                        )
                    I2cSerialBusV2 (0x004D, ControllerInitiated, 0x00061A80,
                        AddressingMode7Bit, "\\_SB.I2CD",
                        0x00, ResourceConsumer, , Exclusive,
                        )
                    GpioInt (Edge, ActiveLow, SharedAndWake, PullNone, 0x0000,
                        "\\_SB.GPIO", 0x00, ResourceConsumer, ,
                        )
                        {   // Pin list
                            0x0020
                        }
                 })
                 Return (RBUF) /* \_SB_.I2CD.TAS_._CRS.RBUF */
            }
    
            Method (_STA, 0, NotSerialized)  // _STA: Status
            {
                Return (0x0F)
            }
        }
    }
    Signed-off-by: default avatarGergo Koteles <soyer@irl.hu>
    Link: https://lore.kernel.org/r/3b8d4c602e1a46922f53bc9afc8b705d55aa4872.1703891777.git.soyer@irl.huSigned-off-by: default avatarTakashi Iwai <tiwai@suse.de>
    c3ca4458
tas2781_hda_i2c.c 25.4 KB