linux/sound/soc/intel/common
Pierre-Louis Bossart 1fdb7c14a2 ASoC: Intel: common: add translation from HID to codec-name
BIOS vendors sometimes declare multiple devices in the DSDT
table that all refer to the same HID. This is not very smart
but not illegal as long as only one device reports present with
the _STA method. The ACPI subsystem tracks each device with an
extension, e.g. 10EC5640:00 and 10EC5640:01

In the ASoC machine driver, the DAI codec name needs to refer to the
ACPI device that reported present, e.g. "i2c-10EC5640:01". The
extension will vary depending on how the BIOS is written and which
ACPI device is activated.

This patch adds a translation function that provides the codec
name from the ACPI HID to avoid any hard-coded values in the
machine driver.

Suggested-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
2016-03-05 13:05:18 +09:00
..
Makefile ASoC: Intel: fix ACPI probe regression with Atom DPCM driver 2016-01-05 12:43:54 +00:00
sst-acpi.c ASoC: Intel: Atom: move atom driver to common acpi match 2015-11-16 10:08:09 +00:00
sst-acpi.h ASoC: Intel: common: add translation from HID to codec-name 2016-03-05 13:05:18 +09:00
sst-dsp-priv.h ASoC: Intel: constify sst_block_ops structures 2015-11-16 17:38:54 +00:00
sst-dsp.c ASoC: Intel: sst: only select sst-firmware when DW DMAC is built-in 2015-11-25 11:57:05 +00:00
sst-dsp.h ASoC: Intel: sst: only select sst-firmware when DW DMAC is built-in 2015-11-25 11:57:05 +00:00
sst-firmware.c ASoC: Intel: sst: fix sst_memcpy32 wrong with non-4x bytes issue 2015-12-16 12:28:04 +00:00
sst-ipc.c ASoC: Intel: Allocate for the mailbox with max size 2015-06-02 20:48:08 +01:00
sst-ipc.h ASoC: Intel: Allocate for the mailbox with max size 2015-06-02 20:48:08 +01:00
sst-match-acpi.c ASoC: Intel: common: add translation from HID to codec-name 2016-03-05 13:05:18 +09:00