linux/sound/soc/intel
Pierre-Louis Bossart 64e84305cb ASoC: Intel: detect audio routing with CHAN package
Baytrail-CR devices usually expose information in the DSDT
which can be used to auto-detect AIF1/AIF2 connections.
The CHAN package contains two integers, the first one describes
the AIF number (1: AIF1, 2: AIF2) and the second the MCLK
value (ignored in this patch)

For example the following information is found in Lenovo 100s:

Device (RTEK) {
[...]
    Name (CHAN, Package (0x02)
    {
        One,
        0x017D7840
    })

While on Asus T100TAF the package values are:

    Name (CHAN, Package (0x02)
    {
        0x02,
        0x017D7840
    })

This patch relies on the new common routine to extract
a package exposed by a device indexed with the HID value.
The CHAN package contents are queried from the machine driver
and stored in a structure.

If this auto-detection fails (missing or bad package in the
BIOS), the routing falls back to SSP0-AIF2.

Note that quirks may still be needed to support mono speakers
or microphone, but this should reduce the number of issues with
Baytrail significantly.

Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
2016-11-13 09:19:54 +00:00
..
atom ASoC: Intel: atom: Add debug information related to FW version 2016-10-28 18:20:04 +01:00
baytrail kthread: kthread worker API cleanup 2016-10-11 15:06:33 -07:00
boards ASoC: Intel: detect audio routing with CHAN package 2016-11-13 09:19:54 +00:00
common ASoC: Intel: common: add ACPI package extraction utility 2016-11-13 09:19:51 +00:00
haswell kthread: kthread worker API cleanup 2016-10-11 15:06:33 -07:00
skylake ASoC: Intel: Skylake: Flush pending D0i3 request on suspend 2016-11-09 15:22:48 +00:00
Kconfig ASoC: Intel: boards: Add bdw-rt5677 machine driver 2016-09-24 20:02:03 +01:00
Makefile ASoC: Intel: Add makefile support for SKL driver 2015-07-09 11:54:26 +01:00