regressions.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
* [PATCH] ASoC: hdac_hdmi: use set_stream() instead of set_tdm_slots()
@ 2023-03-24 17:07 Jason Montleon
  2023-03-24 19:05 ` Pierre-Louis Bossart
  2023-03-27 13:22 ` Mark Brown
  0 siblings, 2 replies; 3+ messages in thread
From: Jason Montleon @ 2023-03-24 17:07 UTC (permalink / raw)
  To: alsa-devel, regressions, yung-chuan.liao, broonie, tiwai,
	bagasdotme, pierre-louis.bossart
  Cc: Jason Montleon, stable

hdac_hdmi was not updated to use set_stream() instead of set_tdm_slots()
in the original commit so HDMI no longer produces audio.

Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/regressions/CAJD_bPKQdtaExvVEKxhQ47G-ZXDA=k+gzhMJRHLBe=mysPnuKA@mail.gmail.com/
Fixes: 636110411ca7 ("ASoC: Intel/SOF: use set_stream() instead of set_tdm_slots() for HDAudio")
Signed-off-by: Jason Montleon <jmontleo@redhat.com>
---
 sound/soc/codecs/hdac_hdmi.c | 17 +++++++++++------
 1 file changed, 11 insertions(+), 6 deletions(-)

diff --git a/sound/soc/codecs/hdac_hdmi.c b/sound/soc/codecs/hdac_hdmi.c
index ed4f7cdda04f..8b6b76029694 100644
--- a/sound/soc/codecs/hdac_hdmi.c
+++ b/sound/soc/codecs/hdac_hdmi.c
@@ -436,23 +436,28 @@ static int hdac_hdmi_setup_audio_infoframe(struct hdac_device *hdev,
 	return 0;
 }
 
-static int hdac_hdmi_set_tdm_slot(struct snd_soc_dai *dai,
-		unsigned int tx_mask, unsigned int rx_mask,
-		int slots, int slot_width)
+static int hdac_hdmi_set_stream(struct snd_soc_dai *dai,
+				void *stream, int direction)
 {
 	struct hdac_hdmi_priv *hdmi = snd_soc_dai_get_drvdata(dai);
 	struct hdac_device *hdev = hdmi->hdev;
 	struct hdac_hdmi_dai_port_map *dai_map;
 	struct hdac_hdmi_pcm *pcm;
+	struct hdac_stream *hstream;
 
-	dev_dbg(&hdev->dev, "%s: strm_tag: %d\n", __func__, tx_mask);
+	if (!stream)
+		return -EINVAL;
+
+	hstream = (struct hdac_stream *)stream;
+
+	dev_dbg(&hdev->dev, "%s: strm_tag: %d\n", __func__, hstream->stream_tag);
 
 	dai_map = &hdmi->dai_map[dai->id];
 
 	pcm = hdac_hdmi_get_pcm_from_cvt(hdmi, dai_map->cvt);
 
 	if (pcm)
-		pcm->stream_tag = (tx_mask << 4);
+		pcm->stream_tag = (hstream->stream_tag << 4);
 
 	return 0;
 }
@@ -1544,7 +1549,7 @@ static const struct snd_soc_dai_ops hdmi_dai_ops = {
 	.startup = hdac_hdmi_pcm_open,
 	.shutdown = hdac_hdmi_pcm_close,
 	.hw_params = hdac_hdmi_set_hw_params,
-	.set_tdm_slot = hdac_hdmi_set_tdm_slot,
+	.set_stream = hdac_hdmi_set_stream,
 };
 
 /*
-- 
2.40.0


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

* Re: [PATCH] ASoC: hdac_hdmi: use set_stream() instead of set_tdm_slots()
  2023-03-24 17:07 [PATCH] ASoC: hdac_hdmi: use set_stream() instead of set_tdm_slots() Jason Montleon
@ 2023-03-24 19:05 ` Pierre-Louis Bossart
  2023-03-27 13:22 ` Mark Brown
  1 sibling, 0 replies; 3+ messages in thread
From: Pierre-Louis Bossart @ 2023-03-24 19:05 UTC (permalink / raw)
  To: Jason Montleon, alsa-devel, regressions, yung-chuan.liao,
	broonie, tiwai, bagasdotme
  Cc: stable



On 3/24/23 12:07, Jason Montleon wrote:
> hdac_hdmi was not updated to use set_stream() instead of set_tdm_slots()
> in the original commit so HDMI no longer produces audio.
> 
> Cc: stable@vger.kernel.org
> Link: https://lore.kernel.org/regressions/CAJD_bPKQdtaExvVEKxhQ47G-ZXDA=k+gzhMJRHLBe=mysPnuKA@mail.gmail.com/
> Fixes: 636110411ca7 ("ASoC: Intel/SOF: use set_stream() instead of set_tdm_slots() for HDAudio")
> Signed-off-by: Jason Montleon <jmontleo@redhat.com>

Good catch indeed. Thanks Jason!

Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>

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

* Re: [PATCH] ASoC: hdac_hdmi: use set_stream() instead of set_tdm_slots()
  2023-03-24 17:07 [PATCH] ASoC: hdac_hdmi: use set_stream() instead of set_tdm_slots() Jason Montleon
  2023-03-24 19:05 ` Pierre-Louis Bossart
@ 2023-03-27 13:22 ` Mark Brown
  1 sibling, 0 replies; 3+ messages in thread
From: Mark Brown @ 2023-03-27 13:22 UTC (permalink / raw)
  To: alsa-devel, regressions, yung-chuan.liao, tiwai, bagasdotme,
	pierre-louis.bossart, Jason Montleon
  Cc: stable

On Fri, 24 Mar 2023 13:07:11 -0400, Jason Montleon wrote:
> hdac_hdmi was not updated to use set_stream() instead of set_tdm_slots()
> in the original commit so HDMI no longer produces audio.
> 
> 

Applied to

   broonie/sound.git for-next

Thanks!

[1/1] ASoC: hdac_hdmi: use set_stream() instead of set_tdm_slots()
      commit: f6887a71bdd2f0dcba9b8180dd2223cfa8637e85

All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent to Linus during
the next merge window (or sooner if it is a bug fix), however if
problems are discovered then the patch may be dropped or reverted.

You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.

If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.

Please add any relevant lists and maintainers to the CCs when replying
to this mail.

Thanks,
Mark


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

end of thread, other threads:[~2023-03-27 13:22 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-24 17:07 [PATCH] ASoC: hdac_hdmi: use set_stream() instead of set_tdm_slots() Jason Montleon
2023-03-24 19:05 ` Pierre-Louis Bossart
2023-03-27 13:22 ` Mark Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).