diff options
author | Kai Vehmanen <kai.vehmanen@linux.intel.com> | 2021-02-05 19:46:28 +0100 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2021-02-08 15:56:35 +0100 |
commit | f9e5fd1b666e9d34c94b91808bda02c2d4d00776 (patch) | |
tree | ae397987c95a1098e4bee6e6f77b6c6a897dc6e6 /kernel/rseq.c | |
parent | ALSA: azt3328: Assign boolean values to a bool variable (diff) | |
download | linux-f9e5fd1b666e9d34c94b91808bda02c2d4d00776.tar.xz linux-f9e5fd1b666e9d34c94b91808bda02c2d4d00776.zip |
ALSA: hda: add link_power op to hdac_bus_ops
The extended HDA bus (hdac_ext) provides interfaces for more
fine-grained control of individual links than what plain HDA
provides for. Links can be powered off when they are not used and if
all links are released, controller can shut down the command DMA.
These interfaces are currently not used by common HDA codec drivers.
When a HDA codec is runtime suspended, it calls snd_hdac_codec_link_down(),
but there is no link to the HDA extended bus, and on controller side
the links are shut down only when all codecs are suspended.
This patch adds link_power() to hdac_bus ops. Controllers using the HDA
extended core, can use this to plug in snd_hdac_ext_bus_link_power() to
implement more fine-grained control of link power.
No change is needed for plain HDA controllers nor to existing HDA
codec drivers.
Co-developed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
Acked-by: Mark Brown <broonie@kernel.org>
Link: https://lore.kernel.org/r/20210205184630.1938761-2-kai.vehmanen@linux.intel.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'kernel/rseq.c')
0 files changed, 0 insertions, 0 deletions