alsa-devel.alsa-project.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ASoC: Intel: Skylake: Fix jack name format substitution
@ 2017-09-18 15:43 Chintan Patel
  2017-09-28  3:10 ` [alsa-devel] " Vinod Koul
  2017-09-28 18:58 ` Applied "ASoC: Intel: Skylake: Fix jack name format substitution" to the asoc tree Mark Brown
  0 siblings, 2 replies; 3+ messages in thread
From: Chintan Patel @ 2017-09-18 15:43 UTC (permalink / raw)
  Cc: harshapriya.n, naveen.m, Chintan Patel, Liam Girdwood, Mark Brown,
	Jaroslav Kysela, Takashi Iwai, Sathya Prakash M R, Hsin-yu Chao,
	Jeeja KP, Julia Lawall, alsa-devel, linux-kernel

Jack name is not getting formatted correctly hence resulting
in invalid name for HDMI/DP input devices.

This was recently exposed due changes brought by MST:
commit 3a13347f05fd ("ASoC: Intel: kbl: Add jack port initialize
in kbl machine drivers")

Signed-off-by: Chintan Patel <chintan.m.patel@intel.com>
---
 sound/soc/intel/boards/kbl_rt5663_rt5514_max98927.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/sound/soc/intel/boards/kbl_rt5663_rt5514_max98927.c b/sound/soc/intel/boards/kbl_rt5663_rt5514_max98927.c
index 4689991bcc86..c127b7b0ee3f 100644
--- a/sound/soc/intel/boards/kbl_rt5663_rt5514_max98927.c
+++ b/sound/soc/intel/boards/kbl_rt5663_rt5514_max98927.c
@@ -611,6 +611,8 @@ static int kabylake_card_late_probe(struct snd_soc_card *card)
 
 	list_for_each_entry(pcm, &ctx->hdmi_pcm_list, head) {
 		codec = pcm->codec_dai->codec;
+		snprintf(jack_name, sizeof(jack_name),
+			"HDMI/DP, pcm=%d Jack", pcm->device);
 		err = snd_soc_card_jack_new(card, jack_name,
 				SND_JACK_AVOUT, &ctx->kabylake_hdmi[i],
 				NULL, 0);
-- 
1.9.1

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

end of thread, other threads:[~2017-09-28 18:58 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-09-18 15:43 [PATCH] ASoC: Intel: Skylake: Fix jack name format substitution Chintan Patel
2017-09-28  3:10 ` [alsa-devel] " Vinod Koul
2017-09-28 18:58 ` Applied "ASoC: Intel: Skylake: Fix jack name format substitution" to the asoc tree 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).