ASoC: Intel: boards: harden codec property handling
[ Upstream commit c50f126b ] In current ACPI-based devices, the DSDT does not include any of the properties required by the codec driver. This is not an ACPI limitation proper since the _DSD method could be used, as done for Camera and SoundWire in newer platforms. For legacy devices, there is unfortunately no other option than using a work-around: we add properties to the codec device from the machine driver. To avoid any issues with the codec driver being unbound, we need to keep a reference to the codec device until the card is removed. Reviewed-by:Andy Shevchenko <andriy.shevchenko@linux.intel.com> Co-developed-by:
Hans de Goede <hdegoede@redhat.com> Signed-off-by:
Hans de Goede <hdegoede@redhat.com> Signed-off-by:
Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> Link: https://lore.kernel.org/r/20210813151116.23931-2-pierre-louis.bossart@linux.intel.com Signed-off-by:
Mark Brown <broonie@kernel.org> Stable-dep-of: 72185882 ("ASoC: Intel: bytcr_rt5651: Drop reference count of ACPI device after use") Signed-off-by:
Sasha Levin <sashal@kernel.org>
Showing
- sound/soc/intel/boards/bytcht_es8316.c 9 additions, 3 deletionssound/soc/intel/boards/bytcht_es8316.c
- sound/soc/intel/boards/bytcr_rt5640.c 31 additions, 16 deletionssound/soc/intel/boards/bytcr_rt5640.c
- sound/soc/intel/boards/bytcr_rt5651.c 24 additions, 13 deletionssound/soc/intel/boards/bytcr_rt5651.c
Loading