diff options
author | Stefan Binding <sbinding@opensource.cirrus.com> | 2022-10-11 17:35:51 +0300 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2022-10-12 09:02:48 +0300 |
commit | 23904f7b2518e9b6bbfe2ac7bbe9e284bcdda18e (patch) | |
tree | 5390018d08f8526e98adc24df7c9d12262f1f604 /sound/pci/hda/hda_component.h | |
parent | 2176c6b599dba55a640cffec0182c0b6bab680d1 (diff) | |
download | linux-23904f7b2518e9b6bbfe2ac7bbe9e284bcdda18e.tar.xz |
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>
Diffstat (limited to 'sound/pci/hda/hda_component.h')
-rw-r--r-- | sound/pci/hda/hda_component.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/sound/pci/hda/hda_component.h b/sound/pci/hda/hda_component.h index 1223621bd62c..534e845b9cd1 100644 --- a/sound/pci/hda/hda_component.h +++ b/sound/pci/hda/hda_component.h @@ -16,6 +16,4 @@ struct hda_component { char name[HDA_MAX_NAME_SIZE]; struct hda_codec *codec; void (*playback_hook)(struct device *dev, int action); - int (*suspend_hook)(struct device *dev); - int (*resume_hook)(struct device *dev); }; |