linux/sound/soc/amd
Andy Shevchenko d784fc8be6
ASoC: amd: acp-es8336: Drop reference count of ACPI device after use
Theoretically the device might gone if its reference count drops to 0.
This might be the case when we try to find the first physical node of
the ACPI device. We need to keep reference to it until we get a result
of the above mentioned call. Refactor the code to drop the reference
count at the correct place.

While at it, move to acpi_dev_put() as symmetrical call to the
acpi_dev_get_first_match_dev().

Fixes: 02527c3f23 ("ASoC: amd: add Machine driver for Jadeite platform")
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Acked-by: Vijendar Mukunda <Vijendar.Mukunda@amd.com>
Link: https://lore.kernel.org/r/20230112112356.67643-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
2023-01-12 12:23:32 +00:00
..
acp ASoC: amd: acp: Fix possible UAF in acp_dma_open 2022-11-18 11:50:29 +00:00
include
ps ASoC: amd: ps: Move acp63_dev_data strcture from PCI driver 2022-11-16 13:29:12 +00:00
raven ASoC: amd: Migrate to new style legacy DAI naming flag 2022-06-27 13:16:30 +01:00
renoir ASoC: amd: Migrate to new style legacy DAI naming flag 2022-06-27 13:16:30 +01:00
rpl ASoC: amd: enable RPL Platform acp drivers build 2022-07-21 23:25:19 +01:00
vangogh ASoC: soc.h: remove num_cpus/codecs 2022-09-20 12:19:30 +01:00
yc ASoC: amd: yc: Add DMI support for new acer/emdoor platforms 2023-01-11 15:31:19 +00:00
acp3x-rt5682-max9836.c ASoC: soc-card: Create jack kcontrol without pins 2022-04-14 17:37:21 +01:00
acp-config.c ASoC: amd: acp: Add support for rt5682s and rt1019 card with hs instance 2022-06-06 12:35:01 +01:00
acp-da7219-max98357a.c ASoC: amd: Drop da7219_aad_jack_det() usage 2022-11-07 13:58:17 +00:00
acp-es8336.c ASoC: amd: acp-es8336: Drop reference count of ACPI device after use 2023-01-12 12:23:32 +00:00
acp-pcm-dma.c ASoC: amd: add I2S MICSP instance support 2022-07-05 13:00:44 +01:00
acp-rt5645.c ASoC: soc-card: Create jack kcontrol without pins 2022-04-14 17:37:21 +01:00
acp.h ASoC: amd: add I2S MICSP instance support 2022-07-05 13:00:44 +01:00
Kconfig ASoC: amd: fix ACP version typo mistake 2022-11-04 12:25:08 +00:00
mach-config.h ASoC: amd: acp: Add support for nau8825 and max98360 card 2022-06-06 12:35:00 +01:00
Makefile ASoC: amd: enable Pink Sardine acp6.2 drivers build 2022-08-29 23:14:14 +01:00