ASoC: cs35l56: Use PCI SSID to select specific
authorMark Brown <broonie@kernel.org>
Wed, 13 Sep 2023 20:48:57 +0000 (21:48 +0100)
committerMark Brown <broonie@kernel.org>
Wed, 13 Sep 2023 20:48:57 +0000 (21:48 +0100)
commitbc51fbeea39e34b9a01820fea5b6092fcc5b48f2
tree05511dd8413ff4dcb2e69671f0121379825b9122
parent8885ab34201c5c34a82539ba2753e8e743b38f38
parent1a1c3d794ef65ef2978c5e65e1aed3fe6f014e90
ASoC: cs35l56: Use PCI SSID to select specific

Merge series from Richard Fitzgerald <rf@opensource.cirrus.com>:

The PCI device registers contain a subsystem ID (SSID), that is
separate from the silicon ID. The PCI specification defines it thus:

"They provide a mechanism for board vendors to distiguish their
 boards from one another even thought the boards may have the same
 PCI controller on them."

This allows the driver for the silicon part to apply board-speficic
settings based on this SSID.

The CS35L56 driver uses this to select the correct firmware file for
the board. The actual ID is part of the PCI register set of the
host audio interface so this set of patches includes extracting the
SSID from the Intel audio controller and passing it to the machine
driver and then to ASoC components. Other PCI audio controllers
will have the same SSID registers, so can use the same mechanism to
pass the SSID.
sound/soc/codecs/cs35l56.c