ALSA: hda: Expose codec organization functions
Status from this message: I merged all patches now to for-next branch.
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest4 patches 2 repliesApplied
- v14 patches 14 repliesSuperseded
Changes in v2 from the cover letter
- snd_hda_codec_new() now calls snd_hda_codec_device_new() with 'snddev_managed' param set to 'true', reported by Kai
Patches in v2 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/4 | ALSA: hda: Add snd_hdac_ext_bus_link_at() helperinclude/ sound/ | +22 | 0 replies | |
| 2/4 | ALSA: hda: Update and expose snd_hda_codec_device_init()include/ sound/ | +32 | 0 replies | |
| 3/4 | ALSA: hda: Update and expose codec register proceduresinclude/ sound/ sound/ +1 more | +31 | 0 replies | |
| 4/4 | ALSA: hda: Expose codec cleanup and power-save functionsinclude/ sound/ sound/ | +15 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.
Cover letter [PATCH v2 0/4] ALSA: hda: Expose codec organization functions
Changes expose several function that are currently unavailable for HDA-DSP drivers for use. Those functions are:
snd_hda_codec_cleanup_for_unbind()snd_hda_codec_set_power_save()snd_hda_codec_register()snd_hda_codec_unregister()snd_hda_codec_device_init()
This allows upcoming AVS driver [1] to re-use even mode of HDA related code that is currently available in sound/pci/hda and sound/hda and prevent any code duplication within avs-driver that would otherwise had to happen.
Last patch in the series provides snd_hdac_ext_bus_link_at() - a helper function which allows for retrieval of HDA segment (link) based on codec address directly. This is simpler than parsing codec-name first to extract the address what is the case for snd_hdac_ext_bus_get_link(). The latter function is updated to re-use newly added one so core logic is not duplicated after the addition.
Changes v1 -> v2:
- snd_hda_codec_new() now calls snd_hda_codec_device_new() with 'snddev_managed' param set to 'true', reported by Kai
[1]: https://lore.kernel.org/all/[email protected]/
Cezary Rojewski (4):
ALSA: hda: Add snd_hdac_ext_bus_link_at() helper
ALSA: hda: Update and expose snd_hda_codec_device_init()
ALSA: hda: Update and expose codec register procedures
ALSA: hda: Expose codec cleanup and power-save functions
include/sound/hda_codec.h | 11 +++- include/sound/hdaudio_ext.h | 1 + sound/hda/ext/hdac_ext_controller.c | 31 +++++++--- sound/pci/hda/hda_codec.c | 94 ++++++++++++++++++++--------- sound/pci/hda/hda_local.h | 2 - sound/soc/codecs/hdac_hda.c | 2 +- 6 files changed, 100 insertions(+), 41 deletions(-)
Signature · 1 line
2.25.1