]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: hda: cs35l41: Remove suspend/resume hda hooks
authorStefan Binding <sbinding@opensource.cirrus.com>
Tue, 11 Oct 2022 14:35:51 +0000 (15:35 +0100)
committerTakashi Iwai <tiwai@suse.de>
Wed, 12 Oct 2022 06:02:48 +0000 (08:02 +0200)
commit1be6c276e07e23655c5e3036c8e76d2a1878d7dc
tree5390018d08f8526e98adc24df7c9d12262f1f604
parent67a1c7f4d15d60f9982169f0293c00b5eab44769
ALSA: hda: cs35l41: Remove suspend/resume hda hooks

The current code uses calls from the HDA Codec driver to
determine when to suspend/resume by calling hooks via the
hda_component binding.
However, this means the cs35l41 driver relies on the HDA
Codec driver to tell it when to suspend or resume,
creating an additional external dependency, and potentially
creating race conditions in the future. It is better for
the cs35l41 hda driver to decide for itself when the part
should be suspended or resumed.
This makes supporting system suspend easier.

Signed-off-by: Stefan Binding <sbinding@opensource.cirrus.com>
Link: https://lore.kernel.org/r/20221011143552.621792-5-sbinding@opensource.cirrus.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/cs35l41_hda.c
sound/pci/hda/hda_component.h
sound/pci/hda/patch_realtek.c