The Linux Kernel Mailing List
 help / color / mirror / Atom feed
* [PATCH 0/3] ALSA: hda: Separate codec read status from response
@ 2026-12-03 17:04 Sreeraj S Kurup
  2026-12-03 17:05 ` [PATCH 1/3] ALSA: hda: core: Fix command creation error handling Sreeraj S Kurup
                   ` (3 more replies)
  0 siblings, 4 replies; 11+ messages in thread
From: Sreeraj S Kurup @ 2026-12-03 17:04 UTC (permalink / raw)
  To: perex, tiwai, lgirdwood, broonie
  Cc: linux-sound, linux-kernel, Sreeraj S Kurup

Hi,

This series improves error handling in the HDA codec command and read
APIs.

Currently, snd_hdac_make_cmd() returns an unsigned int and uses -1 to
indicate an invalid command. Since -1 is converted to 0xffffffff,
which can also represent a valid encoded HDA command, callers cannot
reliably distinguish an error from a valid command.

This series changes snd_hdac_make_cmd() to return an integer status
and provide the encoded command through an output parameter. It also
updates snd_hdac_codec_read() to return an integer status and provide
the codec response through an output parameter.

The affected callers in the HDA core and ASoC HDMI codec driver are
updated to use the new API and handle errors appropriately.

Patch overview:

1. ALSA: hda: core: Fix command creation error handling
2. ALSA: hda: hdmi_chmap: Update HDMI channel map codec read callers
3. ASoC: codecs: hdac_hdmi: Update codec read API callers

Patches 2 and 3 depend on the API changes introduced in patch 1.

Please let me know if any changes are needed.

Thanks,
Sreeraj

Sreeraj S Kurup (3):
  ALSA: hda: core: Fix command creation error handling
  ALSA: hda: hdmi_chmap: Update HDMI channel map codec read callers
  ASoC: codecs: hdac_hdmi: Update codec read API callers

 include/sound/hdaudio.h      |  2 +-
 sound/hda/core/device.c      | 69 ++++++++++++++++++++++++----------
 sound/hda/core/hdmi_chmap.c  | 30 ++++++++++++---
 sound/soc/codecs/hdac_hdmi.c | 72 +++++++++++++++++++++++-------------
 4 files changed, 123 insertions(+), 50 deletions(-)

-- 
2.55.0


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2026-12-04  8:25 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-03 17:04 [PATCH 0/3] ALSA: hda: Separate codec read status from response Sreeraj S Kurup
2026-12-03 17:05 ` [PATCH 1/3] ALSA: hda: core: Fix command creation error handling Sreeraj S Kurup
2026-12-03 17:05 ` [PATCH 2/3] ALSA: hda: hdmi_chmap: Update HDMI channel map codec read callers Sreeraj S Kurup
2026-12-04  4:32   ` kernel test robot
2026-12-04  4:54   ` kernel test robot
2026-12-04  4:54   ` kernel test robot
2026-12-03 17:05 ` [PATCH 3/3] ASoC: codecs: hdac_hdmi: Update codec read API callers Sreeraj S Kurup
2026-12-03 17:33 ` [PATCH 0/3] ALSA: hda: Separate codec read status from response Takashi Iwai
2026-12-03 18:10   ` Sreeraj S Kurup
2026-12-03 18:31   ` Sreeraj S Kurup
2026-12-04  8:25     ` Takashi Iwai

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox