OpenCloudOS-Kernel/sound/soc/intel/atom/sst
Stephan Gerhold fee1571455
ASoC: Intel: sst: Fallback to BYT-CR if IRQ 5 is missing
Some devices detected as BYT-T by the PMIC-type based detection
have only a single IRQ listed in the 80860F28 ACPI device. This
causes -ENXIO later when attempting to get the IRQ at index 5.
It turns out these devices behave more like BYT-CR devices,
and using the IRQ at index 0 makes sound work correctly.

This patch adds a fallback for these devices to is_byt_cr():
If there is no IRQ resource at index 5, treating the device
as BYT-T is guaranteed to fail later, so we can safely treat
these devices as BYT-CR without breaking any working device.

Link: http://mailman.alsa-project.org/pipermail/alsa-devel/2018-December/143176.html
Signed-off-by: Stephan Gerhold <stephan@gerhold.net>
Acked-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
2019-01-04 15:15:55 +00:00
..
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
sst.c ASoC: Intel: sst: Free streams on suspend, re-alloc on resume 2018-03-01 16:22:48 +00:00
sst.h ASoC: Intel: sst: Free streams on suspend, re-alloc on resume 2018-03-01 16:22:48 +00:00
sst_acpi.c ASoC: Intel: sst: Fallback to BYT-CR if IRQ 5 is missing 2019-01-04 15:15:55 +00:00
sst_drv_interface.c ASoC: Intel: Atom: simplify boolean tests 2019-01-03 16:34:12 +00:00
sst_ipc.c ASoC: intel: Don't print FW version repeatedly 2017-03-27 12:30:55 +01:00
sst_loader.c ASoC: Intel: Atom: simplify boolean tests 2019-01-03 16:34:12 +00:00
sst_pci.c ASoC: Intel: constify pci_device_id. 2017-08-04 11:18:55 +01:00
sst_pvt.c ASoC: Intel: remove GFP_ATOMIC, use GFP_KERNEL 2018-11-06 17:24:36 +00:00
sst_stream.c ASoC: Intel: sst: Free streams on suspend, re-alloc on resume 2018-03-01 16:22:48 +00:00