ASoC: change 'HDMI/DP, pcm=' to 'HDMI/DP, pcm=' Jack control names
Subsystems (4)
Jaroslav Kysela
maintainerPATCH 1/1 ASoC: change 'HDMI/DP, pcm=' to 'HDMI/DP, pcm=' Jack control names
There is an inconsistency in the names for the HDMI/DP Jack control names between some ASoC drivers and the HDA HDMI driver which introduced this naming in 2011.
There might be an impact for the user space (UCM). I will fix the UCM configurations when this patch is applied.
--- Documentation/sound/designs/control-names.rst | 5 +++-- sound/soc/intel/boards/bxt_da7219_max98357a.c | 2 +- sound/soc/intel/boards/bxt_rt298.c | 2 +- sound/soc/intel/boards/glk_rt5682_max98357a.c | 2 +- sound/soc/intel/boards/kbl_da7219_max98357a.c | 2 +- sound/soc/intel/boards/kbl_da7219_max98927.c | 2 +- sound/soc/intel/boards/kbl_rt5660.c | 2 +- sound/soc/intel/boards/kbl_rt5663_max98927.c | 2 +- sound/soc/intel/boards/skl_hda_dsp_common.c | 2 +- sound/soc/intel/boards/skl_nau88l25_max98357a.c | 2 +- sound/soc/intel/boards/skl_nau88l25_ssm4567.c | 2 +- sound/soc/intel/boards/skl_rt286.c | 2 +- sound/soc/intel/boards/sof_rt5682.c | 2 +- 13 files changed, 15 insertions(+), 14 deletions(-)
Documentation/sound/designs/control-names.rst +3 -2
@@ -50,7 +50,7 @@ Internal internal SOURCE ~~~~~~ -=================== ================================================= +=================== =================================================== Master Master Mono Hardware Master
@@ -92,7 +92,8 @@ SPDIF output only SPDIF In Digital In HDMI/DP either HDMI or DisplayPort -=================== ================================================= +HDMI/DP,pcm=<num> either HDMI or DisplayPort with the PCM device link +=================== =================================================== Exceptions (deprecated) -----------------------
sound/soc/intel/boards/bxt_da7219_max98357a.c +1 -1
@@ -618,7 +618,7 @@ static int bxt_card_late_probe(struct snd_soc_card *card)list_for_each_entry (pcm, &ctx->hdmi_pcm_list, head) { component = pcm->codec_dai->component;snprintf (jack_name,sizeof (jack_name), -"HDMI/DP, pcm=%d Jack" , pcm->device); +"HDMI/DP,pcm=%d Jack" , pcm->device); err =snd_soc_card_jack_new (card, jack_name,SND_JACK_AVOUT , &broxton_hdmi[i],NULL ,0 );
sound/soc/intel/boards/bxt_rt298.c +1 -1
@@ -530,7 +530,7 @@ static int bxt_card_late_probe(struct snd_soc_card *card)list_for_each_entry (pcm, &ctx->hdmi_pcm_list, head) { component = pcm->codec_dai->component;snprintf (jack_name,sizeof (jack_name), -"HDMI/DP, pcm=%d Jack" , pcm->device); +"HDMI/DP,pcm=%d Jack" , pcm->device); err =snd_soc_card_jack_new (card, jack_name,SND_JACK_AVOUT , &broxton_hdmi[i],NULL ,0 );
sound/soc/intel/boards/glk_rt5682_max98357a.c +1 -1
@@ -548,7 +548,7 @@ static int glk_card_late_probe(struct snd_soc_card *card)list_for_each_entry (pcm, &ctx->hdmi_pcm_list, head) { component = pcm->codec_dai->component;snprintf (jack_name,sizeof (jack_name), -"HDMI/DP, pcm=%d Jack" , pcm->device); +"HDMI/DP,pcm=%d Jack" , pcm->device); err =snd_soc_card_jack_new (card, jack_name,SND_JACK_AVOUT , &geminilake_hdmi[i],NULL ,0 );
sound/soc/intel/boards/kbl_da7219_max98357a.c +1 -1
@@ -548,7 +548,7 @@ static int kabylake_card_late_probe(struct snd_soc_card *card)list_for_each_entry (pcm, &ctx->hdmi_pcm_list, head) { component = pcm->codec_dai->component;snprintf (jack_name,sizeof (jack_name), -"HDMI/DP, pcm=%d Jack" , pcm->device); +"HDMI/DP,pcm=%d Jack" , pcm->device); err =snd_soc_card_jack_new (card, jack_name,SND_JACK_AVOUT , &skylake_hdmi[i],NULL ,0 );
sound/soc/intel/boards/kbl_da7219_max98927.c +1 -1
@@ -977,7 +977,7 @@ static int kabylake_card_late_probe(struct snd_soc_card *card)list_for_each_entry (pcm, &ctx->hdmi_pcm_list, head) { component = pcm->codec_dai->component;snprintf (jack_name,sizeof (jack_name), -"HDMI/DP, pcm=%d Jack" , pcm->device); +"HDMI/DP,pcm=%d Jack" , pcm->device); err =snd_soc_card_jack_new (card, jack_name,SND_JACK_AVOUT , &kabylake_hdmi[i],NULL ,0 );
sound/soc/intel/boards/kbl_rt5660.c +1 -1
@@ -470,7 +470,7 @@ static int kabylake_card_late_probe(struct snd_soc_card *card)list_for_each_entry (pcm, &ctx->hdmi_pcm_list, head) { component = pcm->codec_dai->component;snprintf (jack_name,sizeof (jack_name), -"HDMI/DP, pcm=%d Jack" , pcm->device); +"HDMI/DP,pcm=%d Jack" , pcm->device); err =snd_soc_card_jack_new (card, jack_name,SND_JACK_AVOUT , &skylake_hdmi[i],NULL ,0 );
sound/soc/intel/boards/kbl_rt5663_max98927.c +1 -1
@@ -888,7 +888,7 @@ static int kabylake_card_late_probe(struct snd_soc_card *card)list_for_each_entry (pcm, &ctx->hdmi_pcm_list, head) { component = pcm->codec_dai->component;snprintf (jack_name,sizeof (jack_name), -"HDMI/DP, pcm=%d Jack" , pcm->device); +"HDMI/DP,pcm=%d Jack" , pcm->device); err =snd_soc_card_jack_new (card, jack_name,SND_JACK_AVOUT , &skylake_hdmi[i],NULL ,0 );
sound/soc/intel/boards/skl_hda_dsp_common.c +1 -1
@@ -139,7 +139,7 @@ int skl_hda_hdmi_jack_init(struct snd_soc_card *card)list_for_each_entry (pcm, &ctx->hdmi_pcm_list, head) { component = pcm->codec_dai->component;snprintf (jack_name,sizeof (jack_name), -"HDMI/DP, pcm=%d Jack" , pcm->device); +"HDMI/DP,pcm=%d Jack" , pcm->device); err =snd_soc_card_jack_new (card, jack_name,SND_JACK_AVOUT , &pcm->hdmi_jack,NULL ,0 );
sound/soc/intel/boards/skl_nau88l25_max98357a.c +1 -1
@@ -607,7 +607,7 @@ static int skylake_card_late_probe(struct snd_soc_card *card)list_for_each_entry (pcm, &ctx->hdmi_pcm_list, head) { component = pcm->codec_dai->component;snprintf (jack_name,sizeof (jack_name), -"HDMI/DP, pcm=%d Jack" , pcm->device); +"HDMI/DP,pcm=%d Jack" , pcm->device); err = snd_soc_card_jack_new(card, jack_name, SND_JACK_AVOUT, &skylake_hdmi[i],
sound/soc/intel/boards/skl_nau88l25_ssm4567.c +1 -1
@@ -648,7 +648,7 @@ static int skylake_card_late_probe(struct snd_soc_card *card)list_for_each_entry (pcm, &ctx->hdmi_pcm_list, head) { component = pcm->codec_dai->component;snprintf (jack_name,sizeof (jack_name), -"HDMI/DP, pcm=%d Jack" , pcm->device); +"HDMI/DP,pcm=%d Jack" , pcm->device); err = snd_soc_card_jack_new(card, jack_name, SND_JACK_AVOUT, &skylake_hdmi[i],
sound/soc/intel/boards/skl_rt286.c +1 -1
@@ -489,7 +489,7 @@ static int skylake_card_late_probe(struct snd_soc_card *card)list_for_each_entry (pcm, &ctx->hdmi_pcm_list, head) { component = pcm->codec_dai->component;snprintf (jack_name,sizeof (jack_name), -"HDMI/DP, pcm=%d Jack" , pcm->device); +"HDMI/DP,pcm=%d Jack" , pcm->device); err =snd_soc_card_jack_new (card, jack_name,SND_JACK_AVOUT , &skylake_hdmi[i],NULL ,0 );
sound/soc/intel/boards/sof_rt5682.c +1 -1
@@ -277,7 +277,7 @@ static int sof_card_late_probe(struct snd_soc_card *card)list_for_each_entry (pcm, &ctx->hdmi_pcm_list, head) { component = pcm->codec_dai->component;snprintf (jack_name,sizeof (jack_name), -"HDMI/DP, pcm=%d Jack" , pcm->device); +"HDMI/DP,pcm=%d Jack" , pcm->device); err =snd_soc_card_jack_new (card, jack_name,SND_JACK_AVOUT , &sof_hdmi[i],NULL ,0 );
Signature · 5 lines
2.20.1 _______________________________________________ Alsa-devel mailing list [email protected] https://mailman.alsa-project.org/mailman/listinfo/alsa-devel
Quoted 11 lines · Jaroslav Kysela
There is an inconsistency in the names for the HDMI/DP Jack control names between some ASoC drivers and the HDA HDMI driver which introduced this naming in 2011.
There might be an impact for the user space (UCM). I will fix the UCM configurations when this patch is applied.
Signed-off-by Jaroslav Kysela <[email protected]>Cc Mark Brown <[email protected]>Cc Pierre-Louis Bossart <[email protected]>
Yes, that's a known problem, and I left them so far just for keeping the already existing stuff working.
Won't this break the current Chromebooks user-space?
thanks,
Takashi
Quoted 198 lines
--- Documentation/sound/designs/control-names.rst | 5 +++-- sound/soc/intel/boards/bxt_da7219_max98357a.c | 2 +- sound/soc/intel/boards/bxt_rt298.c | 2 +- sound/soc/intel/boards/glk_rt5682_max98357a.c | 2 +- sound/soc/intel/boards/kbl_da7219_max98357a.c | 2 +- sound/soc/intel/boards/kbl_da7219_max98927.c | 2 +- sound/soc/intel/boards/kbl_rt5660.c | 2 +- sound/soc/intel/boards/kbl_rt5663_max98927.c | 2 +- sound/soc/intel/boards/skl_hda_dsp_common.c | 2 +- sound/soc/intel/boards/skl_nau88l25_max98357a.c | 2 +- sound/soc/intel/boards/skl_nau88l25_ssm4567.c | 2 +- sound/soc/intel/boards/skl_rt286.c | 2 +- sound/soc/intel/boards/sof_rt5682.c | 2 +- 13 files changed, 15 insertions(+), 14 deletions(-)Documentation/sound/designs/control-names.rst +3
-2@@ -50,7 +50,7 @@ Internal internal SOURCE ~~~~~~ -=================== ================================================= +=================== =================================================== Master Master Mono Hardware Master@@ -92,7 +92,8 @@ SPDIF output only SPDIF In Digital In HDMI/DP either HDMI or DisplayPort -=================== ================================================= +HDMI/DP,pcm=<num> either HDMI or DisplayPort with the PCM device link +=================== =================================================== Exceptions (deprecated) -----------------------sound/soc/intel/boards/bxt_da7219_max98357a.c +1
-1@@ -618,7 +618,7 @@ static int bxt_card_late_probe(struct snd_soc_card *card)list_for_each_entry (pcm, &ctx->hdmi_pcm_list, head) { component = pcm->codec_dai->component;snprintf (jack_name,sizeof (jack_name), -"HDMI/DP, pcm=%d Jack" , pcm->device); +"HDMI/DP,pcm=%d Jack" , pcm->device); err =snd_soc_card_jack_new (card, jack_name,SND_JACK_AVOUT , &broxton_hdmi[i],NULL ,0 );sound/soc/intel/boards/bxt_rt298.c +1
-1@@ -530,7 +530,7 @@ static int bxt_card_late_probe(struct snd_soc_card *card)list_for_each_entry (pcm, &ctx->hdmi_pcm_list, head) { component = pcm->codec_dai->component;snprintf (jack_name,sizeof (jack_name), -"HDMI/DP, pcm=%d Jack" , pcm->device); +"HDMI/DP,pcm=%d Jack" , pcm->device); err =snd_soc_card_jack_new (card, jack_name,SND_JACK_AVOUT , &broxton_hdmi[i],NULL ,0 );sound/soc/intel/boards/glk_rt5682_max98357a.c +1
-1@@ -548,7 +548,7 @@ static int glk_card_late_probe(struct snd_soc_card *card)list_for_each_entry (pcm, &ctx->hdmi_pcm_list, head) { component = pcm->codec_dai->component;snprintf (jack_name,sizeof (jack_name), -"HDMI/DP, pcm=%d Jack" , pcm->device); +"HDMI/DP,pcm=%d Jack" , pcm->device); err =snd_soc_card_jack_new (card, jack_name,SND_JACK_AVOUT , &geminilake_hdmi[i],NULL ,0 );sound/soc/intel/boards/kbl_da7219_max98357a.c +1
-1@@ -548,7 +548,7 @@ static int kabylake_card_late_probe(struct snd_soc_card *card)list_for_each_entry (pcm, &ctx->hdmi_pcm_list, head) { component = pcm->codec_dai->component;snprintf (jack_name,sizeof (jack_name), -"HDMI/DP, pcm=%d Jack" , pcm->device); +"HDMI/DP,pcm=%d Jack" , pcm->device); err =snd_soc_card_jack_new (card, jack_name,SND_JACK_AVOUT , &skylake_hdmi[i],NULL ,0 );sound/soc/intel/boards/kbl_da7219_max98927.c +1
-1@@ -977,7 +977,7 @@ static int kabylake_card_late_probe(struct snd_soc_card *card)list_for_each_entry (pcm, &ctx->hdmi_pcm_list, head) { component = pcm->codec_dai->component;snprintf (jack_name,sizeof (jack_name), -"HDMI/DP, pcm=%d Jack" , pcm->device); +"HDMI/DP,pcm=%d Jack" , pcm->device); err =snd_soc_card_jack_new (card, jack_name,SND_JACK_AVOUT , &kabylake_hdmi[i],NULL ,0 );sound/soc/intel/boards/kbl_rt5660.c +1
-1@@ -470,7 +470,7 @@ static int kabylake_card_late_probe(struct snd_soc_card *card)list_for_each_entry (pcm, &ctx->hdmi_pcm_list, head) { component = pcm->codec_dai->component;snprintf (jack_name,sizeof (jack_name), -"HDMI/DP, pcm=%d Jack" , pcm->device); +"HDMI/DP,pcm=%d Jack" , pcm->device); err =snd_soc_card_jack_new (card, jack_name,SND_JACK_AVOUT , &skylake_hdmi[i],NULL ,0 );sound/soc/intel/boards/kbl_rt5663_max98927.c +1
-1@@ -888,7 +888,7 @@ static int kabylake_card_late_probe(struct snd_soc_card *card)list_for_each_entry (pcm, &ctx->hdmi_pcm_list, head) { component = pcm->codec_dai->component;snprintf (jack_name,sizeof (jack_name), -"HDMI/DP, pcm=%d Jack" , pcm->device); +"HDMI/DP,pcm=%d Jack" , pcm->device); err =snd_soc_card_jack_new (card, jack_name,SND_JACK_AVOUT , &skylake_hdmi[i],NULL ,0 );sound/soc/intel/boards/skl_hda_dsp_common.c +1
-1@@ -139,7 +139,7 @@ int skl_hda_hdmi_jack_init(struct snd_soc_card *card)list_for_each_entry (pcm, &ctx->hdmi_pcm_list, head) { component = pcm->codec_dai->component;snprintf (jack_name,sizeof (jack_name), -"HDMI/DP, pcm=%d Jack" , pcm->device); +"HDMI/DP,pcm=%d Jack" , pcm->device); err =snd_soc_card_jack_new (card, jack_name,SND_JACK_AVOUT , &pcm->hdmi_jack,NULL ,0 );sound/soc/intel/boards/skl_nau88l25_max98357a.c +1
-1@@ -607,7 +607,7 @@ static int skylake_card_late_probe(struct snd_soc_card *card)list_for_each_entry (pcm, &ctx->hdmi_pcm_list, head) { component = pcm->codec_dai->component;snprintf (jack_name,sizeof (jack_name), -"HDMI/DP, pcm=%d Jack" , pcm->device); +"HDMI/DP,pcm=%d Jack" , pcm->device); err = snd_soc_card_jack_new(card, jack_name, SND_JACK_AVOUT, &skylake_hdmi[i],sound/soc/intel/boards/skl_nau88l25_ssm4567.c +1
-1@@ -648,7 +648,7 @@ static int skylake_card_late_probe(struct snd_soc_card *card)list_for_each_entry (pcm, &ctx->hdmi_pcm_list, head) { component = pcm->codec_dai->component;snprintf (jack_name,sizeof (jack_name), -"HDMI/DP, pcm=%d Jack" , pcm->device); +"HDMI/DP,pcm=%d Jack" , pcm->device); err = snd_soc_card_jack_new(card, jack_name, SND_JACK_AVOUT, &skylake_hdmi[i],sound/soc/intel/boards/skl_rt286.c +1
-1@@ -489,7 +489,7 @@ static int skylake_card_late_probe(struct snd_soc_card *card)list_for_each_entry (pcm, &ctx->hdmi_pcm_list, head) { component = pcm->codec_dai->component;snprintf (jack_name,sizeof (jack_name), -"HDMI/DP, pcm=%d Jack" , pcm->device); +"HDMI/DP,pcm=%d Jack" , pcm->device); err =snd_soc_card_jack_new (card, jack_name,SND_JACK_AVOUT , &skylake_hdmi[i],NULL ,0 );sound/soc/intel/boards/sof_rt5682.c +1
-1@@ -277,7 +277,7 @@ static int sof_card_late_probe(struct snd_soc_card *card)list_for_each_entry (pcm, &ctx->hdmi_pcm_list, head) { component = pcm->codec_dai->component;snprintf (jack_name,sizeof (jack_name), -"HDMI/DP, pcm=%d Jack" , pcm->device); +"HDMI/DP,pcm=%d Jack" , pcm->device); err =snd_soc_card_jack_new (card, jack_name,SND_JACK_AVOUT , &sof_hdmi[i],NULL ,0 );Signature · 1 line
2.20.1
_______________________________________________
Alsa-devel mailing list
[email protected]
https://mailman.alsa-project.org/mailman/listinfo/alsa-devel
Jaroslav Kysela
maintainerDne 25. 10. 19 v 14:38 Takashi Iwai napsal(a):
Quoted 10 lines
Quoted 8 lines · Jaroslav Kysela
There is an inconsistency in the names for the HDMI/DP Jack control names between some ASoC drivers and the HDA HDMI driver which introduced this naming in 2011.
There might be an impact for the user space (UCM). I will fix the UCM configurations when this patch is applied.
Quoted 8 lines
Quoted 3 lines
Signed-off-by Jaroslav Kysela <[email protected]>Cc Mark Brown <[email protected]>Cc Pierre-Louis Bossart <[email protected]>Yes, that's a known problem, and I left them so far just for keeping the already existing stuff working.
Won't this break the current Chromebooks user-space?
I would really expect to upgrade UCM configs for the recent kernels in this case. I believe, those sort of issues are better to fix early than lately. I know, the transition might cause a little issues, but usually "do upgrade answer" will help. I don't think that we speak about a large group of users here.
Jaroslav
Quoted 204 lines
thanks,
Takashi
Quoted 198 lines
--- Documentation/sound/designs/control-names.rst | 5 +++-- sound/soc/intel/boards/bxt_da7219_max98357a.c | 2 +- sound/soc/intel/boards/bxt_rt298.c | 2 +- sound/soc/intel/boards/glk_rt5682_max98357a.c | 2 +- sound/soc/intel/boards/kbl_da7219_max98357a.c | 2 +- sound/soc/intel/boards/kbl_da7219_max98927.c | 2 +- sound/soc/intel/boards/kbl_rt5660.c | 2 +- sound/soc/intel/boards/kbl_rt5663_max98927.c | 2 +- sound/soc/intel/boards/skl_hda_dsp_common.c | 2 +- sound/soc/intel/boards/skl_nau88l25_max98357a.c | 2 +- sound/soc/intel/boards/skl_nau88l25_ssm4567.c | 2 +- sound/soc/intel/boards/skl_rt286.c | 2 +- sound/soc/intel/boards/sof_rt5682.c | 2 +- 13 files changed, 15 insertions(+), 14 deletions(-)Documentation/sound/designs/control-names.rst +3
-2@@ -50,7 +50,7 @@ Internal internal SOURCE ~~~~~~ -=================== ================================================= +=================== =================================================== Master Master Mono Hardware Master@@ -92,7 +92,8 @@ SPDIF output only SPDIF In Digital In HDMI/DP either HDMI or DisplayPort -=================== ================================================= +HDMI/DP,pcm=<num> either HDMI or DisplayPort with the PCM device link +=================== =================================================== Exceptions (deprecated) -----------------------sound/soc/intel/boards/bxt_da7219_max98357a.c +1
-1@@ -618,7 +618,7 @@ static int bxt_card_late_probe(struct snd_soc_card *card)list_for_each_entry (pcm, &ctx->hdmi_pcm_list, head) { component = pcm->codec_dai->component;snprintf (jack_name,sizeof (jack_name), -"HDMI/DP, pcm=%d Jack" , pcm->device); +"HDMI/DP,pcm=%d Jack" , pcm->device); err =snd_soc_card_jack_new (card, jack_name,SND_JACK_AVOUT , &broxton_hdmi[i],NULL ,0 );sound/soc/intel/boards/bxt_rt298.c +1
-1@@ -530,7 +530,7 @@ static int bxt_card_late_probe(struct snd_soc_card *card)list_for_each_entry (pcm, &ctx->hdmi_pcm_list, head) { component = pcm->codec_dai->component;snprintf (jack_name,sizeof (jack_name), -"HDMI/DP, pcm=%d Jack" , pcm->device); +"HDMI/DP,pcm=%d Jack" , pcm->device); err =snd_soc_card_jack_new (card, jack_name,SND_JACK_AVOUT , &broxton_hdmi[i],NULL ,0 );sound/soc/intel/boards/glk_rt5682_max98357a.c +1
-1@@ -548,7 +548,7 @@ static int glk_card_late_probe(struct snd_soc_card *card)list_for_each_entry (pcm, &ctx->hdmi_pcm_list, head) { component = pcm->codec_dai->component;snprintf (jack_name,sizeof (jack_name), -"HDMI/DP, pcm=%d Jack" , pcm->device); +"HDMI/DP,pcm=%d Jack" , pcm->device); err =snd_soc_card_jack_new (card, jack_name,SND_JACK_AVOUT , &geminilake_hdmi[i],NULL ,0 );sound/soc/intel/boards/kbl_da7219_max98357a.c +1
-1@@ -548,7 +548,7 @@ static int kabylake_card_late_probe(struct snd_soc_card *card)list_for_each_entry (pcm, &ctx->hdmi_pcm_list, head) { component = pcm->codec_dai->component;snprintf (jack_name,sizeof (jack_name), -"HDMI/DP, pcm=%d Jack" , pcm->device); +"HDMI/DP,pcm=%d Jack" , pcm->device); err =snd_soc_card_jack_new (card, jack_name,SND_JACK_AVOUT , &skylake_hdmi[i],NULL ,0 );sound/soc/intel/boards/kbl_da7219_max98927.c +1
-1@@ -977,7 +977,7 @@ static int kabylake_card_late_probe(struct snd_soc_card *card)list_for_each_entry (pcm, &ctx->hdmi_pcm_list, head) { component = pcm->codec_dai->component;snprintf (jack_name,sizeof (jack_name), -"HDMI/DP, pcm=%d Jack" , pcm->device); +"HDMI/DP,pcm=%d Jack" , pcm->device); err =snd_soc_card_jack_new (card, jack_name,SND_JACK_AVOUT , &kabylake_hdmi[i],NULL ,0 );sound/soc/intel/boards/kbl_rt5660.c +1
-1@@ -470,7 +470,7 @@ static int kabylake_card_late_probe(struct snd_soc_card *card)list_for_each_entry (pcm, &ctx->hdmi_pcm_list, head) { component = pcm->codec_dai->component;snprintf (jack_name,sizeof (jack_name), -"HDMI/DP, pcm=%d Jack" , pcm->device); +"HDMI/DP,pcm=%d Jack" , pcm->device); err =snd_soc_card_jack_new (card, jack_name,SND_JACK_AVOUT , &skylake_hdmi[i],NULL ,0 );sound/soc/intel/boards/kbl_rt5663_max98927.c +1
-1@@ -888,7 +888,7 @@ static int kabylake_card_late_probe(struct snd_soc_card *card)list_for_each_entry (pcm, &ctx->hdmi_pcm_list, head) { component = pcm->codec_dai->component;snprintf (jack_name,sizeof (jack_name), -"HDMI/DP, pcm=%d Jack" , pcm->device); +"HDMI/DP,pcm=%d Jack" , pcm->device); err =snd_soc_card_jack_new (card, jack_name,SND_JACK_AVOUT , &skylake_hdmi[i],NULL ,0 );sound/soc/intel/boards/skl_hda_dsp_common.c +1
-1@@ -139,7 +139,7 @@ int skl_hda_hdmi_jack_init(struct snd_soc_card *card)list_for_each_entry (pcm, &ctx->hdmi_pcm_list, head) { component = pcm->codec_dai->component;snprintf (jack_name,sizeof (jack_name), -"HDMI/DP, pcm=%d Jack" , pcm->device); +"HDMI/DP,pcm=%d Jack" , pcm->device); err =snd_soc_card_jack_new (card, jack_name,SND_JACK_AVOUT , &pcm->hdmi_jack,NULL ,0 );sound/soc/intel/boards/skl_nau88l25_max98357a.c +1
-1@@ -607,7 +607,7 @@ static int skylake_card_late_probe(struct snd_soc_card *card)list_for_each_entry (pcm, &ctx->hdmi_pcm_list, head) { component = pcm->codec_dai->component;snprintf (jack_name,sizeof (jack_name), -"HDMI/DP, pcm=%d Jack" , pcm->device); +"HDMI/DP,pcm=%d Jack" , pcm->device); err = snd_soc_card_jack_new(card, jack_name, SND_JACK_AVOUT, &skylake_hdmi[i],sound/soc/intel/boards/skl_nau88l25_ssm4567.c +1
-1@@ -648,7 +648,7 @@ static int skylake_card_late_probe(struct snd_soc_card *card)list_for_each_entry (pcm, &ctx->hdmi_pcm_list, head) { component = pcm->codec_dai->component;snprintf (jack_name,sizeof (jack_name), -"HDMI/DP, pcm=%d Jack" , pcm->device); +"HDMI/DP,pcm=%d Jack" , pcm->device); err = snd_soc_card_jack_new(card, jack_name, SND_JACK_AVOUT, &skylake_hdmi[i],sound/soc/intel/boards/skl_rt286.c +1
-1@@ -489,7 +489,7 @@ static int skylake_card_late_probe(struct snd_soc_card *card)list_for_each_entry (pcm, &ctx->hdmi_pcm_list, head) { component = pcm->codec_dai->component;snprintf (jack_name,sizeof (jack_name), -"HDMI/DP, pcm=%d Jack" , pcm->device); +"HDMI/DP,pcm=%d Jack" , pcm->device); err =snd_soc_card_jack_new (card, jack_name,SND_JACK_AVOUT , &skylake_hdmi[i],NULL ,0 );sound/soc/intel/boards/sof_rt5682.c +1
-1@@ -277,7 +277,7 @@ static int sof_card_late_probe(struct snd_soc_card *card)list_for_each_entry (pcm, &ctx->hdmi_pcm_list, head) { component = pcm->codec_dai->component;snprintf (jack_name,sizeof (jack_name), -"HDMI/DP, pcm=%d Jack" , pcm->device); +"HDMI/DP,pcm=%d Jack" , pcm->device); err =snd_soc_card_jack_new (card, jack_name,SND_JACK_AVOUT , &sof_hdmi[i],NULL ,0 );Signature · 1 line
2.20.1
Signature · 6 lines
Jaroslav Kysela <[email protected]> Linux Sound Maintainer; ALSA Project; Red Hat, Inc. _______________________________________________ Alsa-devel mailing list [email protected] https://mailman.alsa-project.org/mailman/listinfo/alsa-devel
Quoted 19 lines · Jaroslav Kysela
Dne 25. 10. 19 v 14:38 Takashi Iwai napsal(a):
Quoted 17 lines
Quoted 11 lines · Jaroslav Kysela
There is an inconsistency in the names for the HDMI/DP Jack control names between some ASoC drivers and the HDA HDMI driver which introduced this naming in 2011.
There might be an impact for the user space (UCM). I will fix the UCM configurations when this patch is applied.
Signed-off-by Jaroslav Kysela <[email protected]>Cc Mark Brown <[email protected]>Cc Pierre-Louis Bossart <[email protected]>Yes, that's a known problem, and I left them so far just for keeping the already existing stuff working.
Quoted 7 lines
Quoted 1 line
Won't this break the current Chromebooks user-space?
I would really expect to upgrade UCM configs for the recent kernels in this case. I believe, those sort of issues are better to fix early than lately. I know, the transition might cause a little issues, but usually "do upgrade answer" will help. I don't think that we speak about a large group of users here.
Well, that's obviously against our dont-breaking-user-space rule. The UCM profiles have been widely used on Chromebooks, and they can't upgrade easily.
So, I believe this is a case where we have to live with messes.
thanks,
Takashi
Quoted 197 lines
Jaroslav
Quoted 194 lines
thanks,
Takashi
Quoted 188 lines
--- Documentation/sound/designs/control-names.rst | 5 +++-- sound/soc/intel/boards/bxt_da7219_max98357a.c | 2 +- sound/soc/intel/boards/bxt_rt298.c | 2 +- sound/soc/intel/boards/glk_rt5682_max98357a.c | 2 +- sound/soc/intel/boards/kbl_da7219_max98357a.c | 2 +- sound/soc/intel/boards/kbl_da7219_max98927.c | 2 +- sound/soc/intel/boards/kbl_rt5660.c | 2 +- sound/soc/intel/boards/kbl_rt5663_max98927.c | 2 +- sound/soc/intel/boards/skl_hda_dsp_common.c | 2 +- sound/soc/intel/boards/skl_nau88l25_max98357a.c | 2 +- sound/soc/intel/boards/skl_nau88l25_ssm4567.c | 2 +- sound/soc/intel/boards/skl_rt286.c | 2 +- sound/soc/intel/boards/sof_rt5682.c | 2 +- 13 files changed, 15 insertions(+), 14 deletions(-)Documentation/sound/designs/control-names.rst +3
-2@@ -50,7 +50,7 @@ Internal internal SOURCE ~~~~~~ -=================== ================================================= +=================== =================================================== Master Master Mono Hardware Master@@ -92,7 +92,8 @@ SPDIF output only SPDIF In Digital In HDMI/DP either HDMI or DisplayPort -=================== ================================================= +HDMI/DP,pcm=<num> either HDMI or DisplayPort with the PCM device link +=================== =================================================== Exceptions (deprecated) -----------------------sound/soc/intel/boards/bxt_da7219_max98357a.c +1
-1@@ -618,7 +618,7 @@ static int bxt_card_late_probe(struct snd_soc_card *card)list_for_each_entry (pcm, &ctx->hdmi_pcm_list, head) { component = pcm->codec_dai->component;snprintf (jack_name,sizeof (jack_name), -"HDMI/DP, pcm=%d Jack" , pcm->device); +"HDMI/DP,pcm=%d Jack" , pcm->device); err =snd_soc_card_jack_new (card, jack_name,SND_JACK_AVOUT , &broxton_hdmi[i],NULL ,0 );sound/soc/intel/boards/bxt_rt298.c +1
-1@@ -530,7 +530,7 @@ static int bxt_card_late_probe(struct snd_soc_card *card)list_for_each_entry (pcm, &ctx->hdmi_pcm_list, head) { component = pcm->codec_dai->component;snprintf (jack_name,sizeof (jack_name), -"HDMI/DP, pcm=%d Jack" , pcm->device); +"HDMI/DP,pcm=%d Jack" , pcm->device); err =snd_soc_card_jack_new (card, jack_name,SND_JACK_AVOUT , &broxton_hdmi[i],NULL ,0 );sound/soc/intel/boards/glk_rt5682_max98357a.c +1
-1@@ -548,7 +548,7 @@ static int glk_card_late_probe(struct snd_soc_card *card)list_for_each_entry (pcm, &ctx->hdmi_pcm_list, head) { component = pcm->codec_dai->component;snprintf (jack_name,sizeof (jack_name), -"HDMI/DP, pcm=%d Jack" , pcm->device); +"HDMI/DP,pcm=%d Jack" , pcm->device); err =snd_soc_card_jack_new (card, jack_name,SND_JACK_AVOUT , &geminilake_hdmi[i],NULL ,0 );sound/soc/intel/boards/kbl_da7219_max98357a.c +1
-1@@ -548,7 +548,7 @@ static int kabylake_card_late_probe(struct snd_soc_card *card)list_for_each_entry (pcm, &ctx->hdmi_pcm_list, head) { component = pcm->codec_dai->component;snprintf (jack_name,sizeof (jack_name), -"HDMI/DP, pcm=%d Jack" , pcm->device); +"HDMI/DP,pcm=%d Jack" , pcm->device); err =snd_soc_card_jack_new (card, jack_name,SND_JACK_AVOUT , &skylake_hdmi[i],NULL ,0 );sound/soc/intel/boards/kbl_da7219_max98927.c +1
-1@@ -977,7 +977,7 @@ static int kabylake_card_late_probe(struct snd_soc_card *card)list_for_each_entry (pcm, &ctx->hdmi_pcm_list, head) { component = pcm->codec_dai->component;snprintf (jack_name,sizeof (jack_name), -"HDMI/DP, pcm=%d Jack" , pcm->device); +"HDMI/DP,pcm=%d Jack" , pcm->device); err =snd_soc_card_jack_new (card, jack_name,SND_JACK_AVOUT , &kabylake_hdmi[i],NULL ,0 );sound/soc/intel/boards/kbl_rt5660.c +1
-1@@ -470,7 +470,7 @@ static int kabylake_card_late_probe(struct snd_soc_card *card)list_for_each_entry (pcm, &ctx->hdmi_pcm_list, head) { component = pcm->codec_dai->component;snprintf (jack_name,sizeof (jack_name), -"HDMI/DP, pcm=%d Jack" , pcm->device); +"HDMI/DP,pcm=%d Jack" , pcm->device); err =snd_soc_card_jack_new (card, jack_name,SND_JACK_AVOUT , &skylake_hdmi[i],NULL ,0 );sound/soc/intel/boards/kbl_rt5663_max98927.c +1
-1@@ -888,7 +888,7 @@ static int kabylake_card_late_probe(struct snd_soc_card *card)list_for_each_entry (pcm, &ctx->hdmi_pcm_list, head) { component = pcm->codec_dai->component;snprintf (jack_name,sizeof (jack_name), -"HDMI/DP, pcm=%d Jack" , pcm->device); +"HDMI/DP,pcm=%d Jack" , pcm->device); err =snd_soc_card_jack_new (card, jack_name,SND_JACK_AVOUT , &skylake_hdmi[i],NULL ,0 );sound/soc/intel/boards/skl_hda_dsp_common.c +1
-1@@ -139,7 +139,7 @@ int skl_hda_hdmi_jack_init(struct snd_soc_card *card)list_for_each_entry (pcm, &ctx->hdmi_pcm_list, head) { component = pcm->codec_dai->component;snprintf (jack_name,sizeof (jack_name), -"HDMI/DP, pcm=%d Jack" , pcm->device); +"HDMI/DP,pcm=%d Jack" , pcm->device); err =snd_soc_card_jack_new (card, jack_name,SND_JACK_AVOUT , &pcm->hdmi_jack,NULL ,0 );sound/soc/intel/boards/skl_nau88l25_max98357a.c +1
-1@@ -607,7 +607,7 @@ static int skylake_card_late_probe(struct snd_soc_card *card)list_for_each_entry (pcm, &ctx->hdmi_pcm_list, head) { component = pcm->codec_dai->component;snprintf (jack_name,sizeof (jack_name), -"HDMI/DP, pcm=%d Jack" , pcm->device); +"HDMI/DP,pcm=%d Jack" , pcm->device); err = snd_soc_card_jack_new(card, jack_name, SND_JACK_AVOUT, &skylake_hdmi[i],sound/soc/intel/boards/skl_nau88l25_ssm4567.c +1
-1@@ -648,7 +648,7 @@ static int skylake_card_late_probe(struct snd_soc_card *card)list_for_each_entry (pcm, &ctx->hdmi_pcm_list, head) { component = pcm->codec_dai->component;snprintf (jack_name,sizeof (jack_name), -"HDMI/DP, pcm=%d Jack" , pcm->device); +"HDMI/DP,pcm=%d Jack" , pcm->device); err = snd_soc_card_jack_new(card, jack_name, SND_JACK_AVOUT, &skylake_hdmi[i],sound/soc/intel/boards/skl_rt286.c +1
-1@@ -489,7 +489,7 @@ static int skylake_card_late_probe(struct snd_soc_card *card)list_for_each_entry (pcm, &ctx->hdmi_pcm_list, head) { component = pcm->codec_dai->component;snprintf (jack_name,sizeof (jack_name), -"HDMI/DP, pcm=%d Jack" , pcm->device); +"HDMI/DP,pcm=%d Jack" , pcm->device); err =snd_soc_card_jack_new (card, jack_name,SND_JACK_AVOUT , &skylake_hdmi[i],NULL ,0 );sound/soc/intel/boards/sof_rt5682.c +0
-0@@ -277,7 +277,7 @@ static int sof_card_late_probe(struct snd_soc_card *card)list_for_each_entry (pcm, &ctx->hdmi_pcm_list, head) { component = pcm->codec_dai->component; snprintf(jack_name, sizeof(jack_name),
Quoted 14 lines
Quoted 8 lines
Quoted 8 lines
sound/soc/intel/boards/sof_rt5682.c +1
-1- "HDMI/DP, pcm=%d Jack", pcm->device); + "HDMI/DP,pcm=%d Jack", pcm->device); err =snd_soc_card_jack_new (card, jack_name,SND_JACK_AVOUT , &sof_hdmi[i],NULL ,0 );Signature · 1 line
2.20.1Signature · 2 lines
Jaroslav Kysela <[email protected]> Linux Sound Maintainer; ALSA Project; Red Hat, Inc.
_______________________________________________
Alsa-devel mailing list
[email protected]
https://mailman.alsa-project.org/mailman/listinfo/alsa-devel
Jaroslav Kysela
maintainerDne 25. 10. 19 v 16:06 Takashi Iwai napsal(a):
Quoted 29 lines
Quoted 19 lines · Jaroslav Kysela
Dne 25. 10. 19 v 14:38 Takashi Iwai napsal(a):
Quoted 17 lines
Quoted 11 lines · Jaroslav Kysela
There is an inconsistency in the names for the HDMI/DP Jack control names between some ASoC drivers and the HDA HDMI driver which introduced this naming in 2011.
There might be an impact for the user space (UCM). I will fix the UCM configurations when this patch is applied.
Signed-off-by Jaroslav Kysela <[email protected]>Cc Mark Brown <[email protected]>Cc Pierre-Louis Bossart <[email protected]>Yes, that's a known problem, and I left them so far just for keeping the already existing stuff working.
Quoted 7 lines
Quoted 1 line
Won't this break the current Chromebooks user-space?
I would really expect to upgrade UCM configs for the recent kernels in this case. I believe, those sort of issues are better to fix early than lately. I know, the transition might cause a little issues, but usually "do upgrade answer" will help. I don't think that we speak about a large group of users here.
Quoted 5 lines
Well, that's obviously against our dont-breaking-user-space rule. The UCM profiles have been widely used on Chromebooks, and they can't upgrade easily.
So, I believe this is a case where we have to live with messes.
If we speak about Google's kernels, they can apply a revert (depends on their upgrade/maintenance policy). If users use the standard Linux distributions, then we are fine, don't we?
I would make an exception for the dont-breaking-user-space policy in this case. I am sure that the UCM configs will stabilize quickly. And this bad jack name is against our control name policy. It's just a bug.
Jaroslav
Signature · 6 lines
Jaroslav Kysela <[email protected]> Linux Sound Maintainer; ALSA Project; Red Hat, Inc. _______________________________________________ Alsa-devel mailing list [email protected] https://mailman.alsa-project.org/mailman/listinfo/alsa-devel
Quoted 35 lines · Jaroslav Kysela
Dne 25. 10. 19 v 16:06 Takashi Iwai napsal(a):
Quoted 33 lines
Quoted 19 lines · Jaroslav Kysela
Dne 25. 10. 19 v 14:38 Takashi Iwai napsal(a):
Quoted 17 lines
Quoted 11 lines · Jaroslav Kysela
There is an inconsistency in the names for the HDMI/DP Jack control names between some ASoC drivers and the HDA HDMI driver which introduced this naming in 2011.
There might be an impact for the user space (UCM). I will fix the UCM configurations when this patch is applied.
Signed-off-by Jaroslav Kysela <[email protected]>Cc Mark Brown <[email protected]>Cc Pierre-Louis Bossart <[email protected]>Yes, that's a known problem, and I left them so far just for keeping the already existing stuff working.
Quoted 7 lines
Quoted 1 line
Won't this break the current Chromebooks user-space?
I would really expect to upgrade UCM configs for the recent kernels in this case. I believe, those sort of issues are better to fix early than lately. I know, the transition might cause a little issues, but usually "do upgrade answer" will help. I don't think that we speak about a large group of users here.
Well, that's obviously against our dont-breaking-user-space rule. The UCM profiles have been widely used on Chromebooks, and they can't upgrade easily.
Quoted 5 lines
Quoted 1 line
So, I believe this is a case where we have to live with messes.
If we speak about Google's kernels, they can apply a revert (depends on their upgrade/maintenance policy). If users use the standard Linux distributions, then we are fine, don't we?
No, we can't break the already existing user-space. That's what Linus suggested repeatedly over years, too.
Quoted 4 lines
I would make an exception for the dont-breaking-user-space policy in this case. I am sure that the UCM configs will stabilize quickly. And this bad jack name is against our control name policy. It's just a bug.
There is no exception for that, it's a so simple rule. If something gets *practically* broken by the kernel, it's no-go. User-space is user-space, and it doesn't matter whether it's upstream or not.
And, even if everything is upstream, imagine that user installs two different kernels, and switches with each other occasionally for whatever reason. The UCM upgrade solution won't work, either.
thanks,
Takashi
_______________________________________________
Alsa-devel mailing list
[email protected]
https://mailman.alsa-project.org/mailman/listinfo/alsa-devel
Jaroslav Kysela
maintainerDne 25. 10. 19 v 16:28 Takashi Iwai napsal(a):
Quoted 51 lines
Quoted 35 lines · Jaroslav Kysela
Dne 25. 10. 19 v 16:06 Takashi Iwai napsal(a):
Quoted 33 lines
Quoted 19 lines · Jaroslav Kysela
Dne 25. 10. 19 v 14:38 Takashi Iwai napsal(a):
Quoted 17 lines
Quoted 11 lines · Jaroslav Kysela
There is an inconsistency in the names for the HDMI/DP Jack control names between some ASoC drivers and the HDA HDMI driver which introduced this naming in 2011.
There might be an impact for the user space (UCM). I will fix the UCM configurations when this patch is applied.
Signed-off-by Jaroslav Kysela <[email protected]>Cc Mark Brown <[email protected]>Cc Pierre-Louis Bossart <[email protected]>Yes, that's a known problem, and I left them so far just for keeping the already existing stuff working.
Quoted 7 lines
Quoted 1 line
Won't this break the current Chromebooks user-space?
I would really expect to upgrade UCM configs for the recent kernels in this case. I believe, those sort of issues are better to fix early than lately. I know, the transition might cause a little issues, but usually "do upgrade answer" will help. I don't think that we speak about a large group of users here.
Well, that's obviously against our dont-breaking-user-space rule. The UCM profiles have been widely used on Chromebooks, and they can't upgrade easily.
Quoted 5 lines
Quoted 1 line
So, I believe this is a case where we have to live with messes.
If we speak about Google's kernels, they can apply a revert (depends on their upgrade/maintenance policy). If users use the standard Linux distributions, then we are fine, don't we?
No, we can't break the already existing user-space. That's what Linus suggested repeatedly over years, too.
Quoted 4 lines
I would make an exception for the dont-breaking-user-space policy in this case. I am sure that the UCM configs will stabilize quickly. And this bad jack name is against our control name policy. It's just a bug.
Quoted 7 lines
There is no exception for that, it's a so simple rule. If something gets *practically* broken by the kernel, it's no-go. User-space is user-space, and it doesn't matter whether it's upstream or not.
And, even if everything is upstream, imagine that user installs two different kernels, and switches with each other occasionally for whatever reason. The UCM upgrade solution won't work, either.
It's the corner case with the really low impact. Users do not do this usually. Ok, I will be silent again. It seems that we cannot get an agreement on this simple thing. I just prefer the fix rather than nothing.
Jaroslav
Quoted 6 lines
thanks,
Takashi
Signature · 6 lines
Jaroslav Kysela <[email protected]> Linux Sound Maintainer; ALSA Project; Red Hat, Inc. _______________________________________________ Alsa-devel mailing list [email protected] https://mailman.alsa-project.org/mailman/listinfo/alsa-devel
Quoted 57 lines · Jaroslav Kysela
Dne 25. 10. 19 v 16:28 Takashi Iwai napsal(a):
Quoted 55 lines
Quoted 35 lines · Jaroslav Kysela
Dne 25. 10. 19 v 16:06 Takashi Iwai napsal(a):
Quoted 33 lines
Quoted 19 lines · Jaroslav Kysela
Dne 25. 10. 19 v 14:38 Takashi Iwai napsal(a):
Quoted 17 lines
Quoted 11 lines · Jaroslav Kysela
There is an inconsistency in the names for the HDMI/DP Jack control names between some ASoC drivers and the HDA HDMI driver which introduced this naming in 2011.
There might be an impact for the user space (UCM). I will fix the UCM configurations when this patch is applied.
Signed-off-by Jaroslav Kysela <[email protected]>Cc Mark Brown <[email protected]>Cc Pierre-Louis Bossart <[email protected]>Yes, that's a known problem, and I left them so far just for keeping the already existing stuff working.
Quoted 7 lines
Quoted 1 line
Won't this break the current Chromebooks user-space?
I would really expect to upgrade UCM configs for the recent kernels in this case. I believe, those sort of issues are better to fix early than lately. I know, the transition might cause a little issues, but usually "do upgrade answer" will help. I don't think that we speak about a large group of users here.
Well, that's obviously against our dont-breaking-user-space rule. The UCM profiles have been widely used on Chromebooks, and they can't upgrade easily.
Quoted 5 lines
Quoted 1 line
So, I believe this is a case where we have to live with messes.
If we speak about Google's kernels, they can apply a revert (depends on their upgrade/maintenance policy). If users use the standard Linux distributions, then we are fine, don't we?
No, we can't break the already existing user-space. That's what Linus suggested repeatedly over years, too.
Quoted 4 lines
I would make an exception for the dont-breaking-user-space policy in this case. I am sure that the UCM configs will stabilize quickly. And this bad jack name is against our control name policy. It's just a bug.
There is no exception for that, it's a so simple rule. If something gets *practically* broken by the kernel, it's no-go. User-space is user-space, and it doesn't matter whether it's upstream or not.
Quoted 8 lines
Quoted 3 lines
And, even if everything is upstream, imagine that user installs two different kernels, and switches with each other occasionally for whatever reason. The UCM upgrade solution won't work, either.
It's the corner case with the really low impact. Users do not do this usually. Ok, I will be silent again. It seems that we cannot get an agreement on this simple thing. I just prefer the fix rather than nothing.
I'd love to fix things, too, of course. But we need changing our
mindset: what we - the kernel devs - can control is only inside the kernel. Even the upstream alsa-lib and UCM profiles are merely reference implementations.
thanks,
Takashi
_______________________________________________
Alsa-devel mailing list
[email protected]
https://mailman.alsa-project.org/mailman/listinfo/alsa-devel
Jaroslav Kysela
maintainerDne 25. 10. 19 v 18:11 Takashi Iwai napsal(a):
Quoted 68 lines
Quoted 57 lines · Jaroslav Kysela
Dne 25. 10. 19 v 16:28 Takashi Iwai napsal(a):
Quoted 55 lines
Quoted 35 lines · Jaroslav Kysela
Dne 25. 10. 19 v 16:06 Takashi Iwai napsal(a):
Quoted 33 lines
Quoted 19 lines · Jaroslav Kysela
Dne 25. 10. 19 v 14:38 Takashi Iwai napsal(a):
Quoted 17 lines
Quoted 11 lines · Jaroslav Kysela
There is an inconsistency in the names for the HDMI/DP Jack control names between some ASoC drivers and the HDA HDMI driver which introduced this naming in 2011.
There might be an impact for the user space (UCM). I will fix the UCM configurations when this patch is applied.
Signed-off-by Jaroslav Kysela <[email protected]>Cc Mark Brown <[email protected]>Cc Pierre-Louis Bossart <[email protected]>Yes, that's a known problem, and I left them so far just for keeping the already existing stuff working.
Quoted 7 lines
Quoted 1 line
Won't this break the current Chromebooks user-space?
I would really expect to upgrade UCM configs for the recent kernels in this case. I believe, those sort of issues are better to fix early than lately. I know, the transition might cause a little issues, but usually "do upgrade answer" will help. I don't think that we speak about a large group of users here.
Well, that's obviously against our dont-breaking-user-space rule. The UCM profiles have been widely used on Chromebooks, and they can't upgrade easily.
Quoted 5 lines
Quoted 1 line
So, I believe this is a case where we have to live with messes.
If we speak about Google's kernels, they can apply a revert (depends on their upgrade/maintenance policy). If users use the standard Linux distributions, then we are fine, don't we?
No, we can't break the already existing user-space. That's what Linus suggested repeatedly over years, too.
Quoted 4 lines
I would make an exception for the dont-breaking-user-space policy in this case. I am sure that the UCM configs will stabilize quickly. And this bad jack name is against our control name policy. It's just a bug.
There is no exception for that, it's a so simple rule. If something gets *practically* broken by the kernel, it's no-go. User-space is user-space, and it doesn't matter whether it's upstream or not.
Quoted 8 lines
Quoted 3 lines
And, even if everything is upstream, imagine that user installs two different kernels, and switches with each other occasionally for whatever reason. The UCM upgrade solution won't work, either.
It's the corner case with the really low impact. Users do not do this usually. Ok, I will be silent again. It seems that we cannot get an agreement on this simple thing. I just prefer the fix rather than nothing.
Quoted 4 lines
I'd love to fix things, too, of course. But we need changing our
mindset: what we - the kernel devs - can control is only inside the kernel. Even the upstream alsa-lib and UCM profiles are merely reference implementations.
You speak about ChromeOS not Linux here.. Anyway, I wanted to cleanup the driver names like 'sof-skl_hda_card' (mixed - and _). It seems that it's just waste of time, because you'll argue that the user-space is incompatible, too.
So every time when we have wrong string in the kernel, we cannot change it, because the user-space. Okay, that's imperfect world. We're being driven with the single user. Another problem is that we are not able to review all those mistakes at the merge time. It is not a complain but a true fact.
I would be really curious what will happen when we change those strings ;-)
Nice weekend to all,
Jaroslav
Signature · 6 lines
Jaroslav Kysela <[email protected]> Linux Sound Maintainer; ALSA Project; Red Hat, Inc. _______________________________________________ Alsa-devel mailing list [email protected] https://mailman.alsa-project.org/mailman/listinfo/alsa-devel
Kai Vehmanen
maintainerHi Jaroslav and all,
Quoted 2 lines · Jaroslav Kysela
the single user. Another problem is that we are not able to review all those mistakes at the merge time. It is not a complain but a true fact.
but the strings are in kernel patches, so even if all UCM files don't go through the list, we can always review when the strings are added in kernel, right?
Quoted 1 line
I would be really curious what will happen when we change those strings ;-)
I can share some experiences that happen on Linux distros with Pulseaudio:
- if mixer control name is changed/missing that us used in a UCM enable sequence, the enable sequence will fail and PA will not choose that device
-> e.g. when wrong HDMI control names are in the UCM file, HDMI output stops working - if mixer control for a Jack is changed, PA will not listen for ALSA kctl events -> HDMI connection is silently missed and HDMI is not listed as a possible output
.. i.e. in both cases HDMI is essentially broken if you update to a kernel that updates the strings but don't update user-space in sync.
I wonder if one option would be to expose "legacy string" aliases, allowing to make changes but keep existing user-space happy. With my HDMI codec change, the controls are simply different, so this was not an option and I had to opt for keeping the whole driver around.
Br, Kai
_______________________________________________
Alsa-devel mailing list
[email protected]
https://mailman.alsa-project.org/mailman/listinfo/alsa-devel
Jaroslav Kysela
maintainerDne 25. 10. 19 v 20:02 Kai Vehmanen napsal(a):
Quoted 10 lines
Hi Jaroslav and all,
Quoted 2 lines · Jaroslav Kysela
the single user. Another problem is that we are not able to review all those mistakes at the merge time. It is not a complain but a true fact.
but the strings are in kernel patches, so even if all UCM files don't go through the list, we can always review when the strings are added in kernel, right?
My point is that we already did this incomplete review (the wrong strings are in the current kernel). We cannot prevent to avoid those code merges, we are just human. I just don't think that the driver / control names should be part of the don't-break-the-userspace policy.
Quoted 14 lines
Quoted 1 line
I would be really curious what will happen when we change those strings ;-)
I can share some experiences that happen on Linux distros with Pulseaudio:
- if mixer control name is changed/missing that us used in a UCM enable sequence, the enable sequence will fail and PA will not choose that device
-> e.g. when wrong HDMI control names are in the UCM file, HDMI output stops working - if mixer control for a Jack is changed, PA will not listen for ALSA kctl events -> HDMI connection is silently missed and HDMI is not listed as a possible output
Quoted 2 lines
.. i.e. in both cases HDMI is essentially broken if you update to a kernel that updates the strings but don't update user-space in sync.
Yes, it's true. But usually, users do only upgrade. If we resolve the UCM configs before the kernel change, the impact is just very low.
Quoted 4 lines
I wonder if one option would be to expose "legacy string" aliases, allowing to make changes but keep existing user-space happy. With my HDMI codec change, the controls are simply different, so this was not an option and I had to opt for keeping the whole driver around.
It seems that we may need to add conditions to the UCM syntax. There are several ways to do it. For your specific purpose it may look like "if the control exist, use this config" or so.
Another approach might be to add something to the decision code which top UCM config file should be loaded. Actually, we rely on the card name / long_name only. It seems that the probe might be extended here.
Jaroslav
Signature · 6 lines
Jaroslav Kysela <[email protected]> Linux Sound Maintainer; ALSA Project; Red Hat, Inc. _______________________________________________ Alsa-devel mailing list [email protected] https://mailman.alsa-project.org/mailman/listinfo/alsa-devel
Quoted 9 lines · Jaroslav Kysela
Dne 25. 10. 19 v 20:02 Kai Vehmanen napsal(a):
Quoted 7 lines
Hi Jaroslav and all,
Quoted 2 lines · Jaroslav Kysela
the single user. Another problem is that we are not able to review all those mistakes at the merge time. It is not a complain but a true fact.
Quoted 8 lines
Quoted 3 lines
but the strings are in kernel patches, so even if all UCM files don't go through the list, we can always review when the strings are added in kernel, right?
My point is that we already did this incomplete review (the wrong strings are in the current kernel). We cannot prevent to avoid those code merges, we are just human. I just don't think that the driver / control names should be part of the don't-break-the-userspace policy.
It's a similar situation like the long-time discussion of tracing:
when the kernel broke latencytop by changing the tracing format, we had to revert it in the end although the tracing format itself isn't strictly a "standard kernel ABI". The consensus is: if upgrading the kernel breaks anything *significant*, it's a regression and no-go. It's not about whether it's a part of ABI or not.
In our particular case, the strings you wanted to fix are the ones that are actually hard-coded by the UCM profiles that are known to be really used on major systems. That's the only reason of NAK. If it were for some other minor kcontrol elements, it would have been OK.
Kai's work to integrate SOF to the legacy HDMI driver would be also OK because it provides the compatibility mode. That is, we have some excuse that it's not us but users (distros) who actually breaks by choosing the kernel configuration explicitly (and even there can be a workaround with a module option).
Or, in general, if a fix is mandatory due to any critical problem (leading to a system crash or such) and there is no other way, we'll have to adapt it. But our case is, again, not that category. It was merely a cleanup work.
Quoted 14 lines
Quoted 14 lines
Quoted 1 line
I would be really curious what will happen when we change those strings ;-)
I can share some experiences that happen on Linux distros with Pulseaudio:
- if mixer control name is changed/missing that us used in a UCM enable sequence, the enable sequence will fail and PA will not choose that device
-> e.g. when wrong HDMI control names are in the UCM file, HDMI output stops working - if mixer control for a Jack is changed, PA will not listen for ALSA kctl events -> HDMI connection is silently missed and HDMI is not listed as a possible output
Quoted 5 lines
Quoted 2 lines
.. i.e. in both cases HDMI is essentially broken if you update to a kernel that updates the strings but don't update user-space in sync.
Yes, it's true. But usually, users do only upgrade. If we resolve the UCM configs before the kernel change, the impact is just very low.
Well, we can't define users' behavior at all. Upgrading only the kernel while keeping the old user-space is a very common practice on openSUSE Leap systems, for example. (Or imagine centos user who wants to try a newer kernel.)
Quoted 5 lines
Quoted 4 lines
I wonder if one option would be to expose "legacy string" aliases, allowing to make changes but keep existing user-space happy. With my HDMI codec change, the controls are simply different, so this was not an option and I had to opt for keeping the whole driver around.
Quoted 7 lines
It seems that we may need to add conditions to the UCM syntax. There are several ways to do it. For your specific purpose it may look like "if the control exist, use this config" or so.
Another approach might be to add something to the decision code which top UCM config file should be loaded. Actually, we rely on the card name /
long_nameonly. It seems that the probe might be extended here.
Yes, currently a UCM profile is very hard-coded, hence it's quite tightly coupled with the kernel driver implementation details. It makes the UCM parser code implementation easier, while it induces this kind of incompatibility if we want to change something in the kernel side...
Another (rather tangential) improvement would be to introduce some validator in the kernel or in the UCM side to check whether the given string names are OK or not. A generic kcontrol element validator might be worth not only for UCM but in general, because lots of ASoC drivers tend to use any funky string names, and currently we accept them without strict checks.
thanks,
Takashi
_______________________________________________
Alsa-devel mailing list
[email protected]
https://mailman.alsa-project.org/mailman/listinfo/alsa-devel
Jaroslav Kysela
maintainerDne 26. 10. 19 v 9:37 Takashi Iwai napsal(a):
Quoted 32 lines
Quoted 9 lines · Jaroslav Kysela
Dne 25. 10. 19 v 20:02 Kai Vehmanen napsal(a):
Quoted 7 lines
Hi Jaroslav and all,
Quoted 2 lines · Jaroslav Kysela
the single user. Another problem is that we are not able to review all those mistakes at the merge time. It is not a complain but a true fact.
Quoted 8 lines
Quoted 3 lines
but the strings are in kernel patches, so even if all UCM files don't go through the list, we can always review when the strings are added in kernel, right?
My point is that we already did this incomplete review (the wrong strings are in the current kernel). We cannot prevent to avoid those code merges, we are just human. I just don't think that the driver / control names should be part of the don't-break-the-userspace policy.
It's a similar situation like the long-time discussion of tracing:
when the kernel broke latencytop by changing the tracing format, we had to revert it in the end although the tracing format itself isn't strictly a "standard kernel ABI". The consensus is: if upgrading the kernel breaks anything *significant*, it's a regression and no-go. It's not about whether it's a part of ABI or not.In our particular case, the strings you wanted to fix are the ones that are actually hard-coded by the UCM profiles that are known to be really used on major systems. That's the only reason of NAK. If it were for some other minor kcontrol elements, it would have been OK.
Quoted 5 lines
Kai's work to integrate SOF to the legacy HDMI driver would be also OK because it provides the compatibility mode. That is, we have some excuse that it's not us but users (distros) who actually breaks by choosing the kernel configuration explicitly (and even there can be a workaround with a module option).
We can add another kernel option for this fix, too. If you like to move in this direction, I'll modify my patch.
The question is, if the kernel should provide a hint to the user space (UCM), that something *significant* changed. Perhaps, the component field in the control API might be used for this purpose as I already proposed. In this way, we can support both kernels (with old and new control names).
Quoted 49 lines
Or, in general, if a fix is mandatory due to any critical problem (leading to a system crash or such) and there is no other way, we'll have to adapt it. But our case is, again, not that category. It was merely a cleanup work.
Quoted 14 lines
Quoted 14 lines
Quoted 1 line
I would be really curious what will happen when we change those strings ;-)
I can share some experiences that happen on Linux distros with Pulseaudio:
- if mixer control name is changed/missing that us used in
a UCM enable sequence, the enable sequence will fail and PA will not choose that device
-> e.g. when wrong HDMI control names are in the UCM file, HDMI output stops working
- if mixer control for a Jack is changed, PA will not listen for ALSA kctl events
-> HDMI connection is silently missed and HDMI is not listed as a possible outputQuoted 5 lines
Quoted 2 lines
.. i.e. in both cases HDMI is essentially broken if you update to a kernel that updates the strings but don't update user-space in sync.
Yes, it's true. But usually, users do only upgrade. If we resolve the UCM configs before the kernel change, the impact is just very low.
Well, we can't define users' behavior at all. Upgrading only the kernel while keeping the old user-space is a very common practice on openSUSE Leap systems, for example. (Or imagine centos user who wants to try a newer kernel.)
Quoted 5 lines
Quoted 4 lines
I wonder if one option would be to expose "legacy string" aliases, allowing to make changes but keep existing user-space happy. With my HDMI codec change, the controls are simply different, so this was not an option and I had to opt for keeping the whole driver around.
Quoted 7 lines
It seems that we may need to add conditions to the UCM syntax. There are several ways to do it. For your specific purpose it may look like "if the control exist, use this config" or so.
Another approach might be to add something to the decision code which top UCM config file should be loaded. Actually, we rely on the card name /
long_nameonly. It seems that the probe might be extended here.Yes, currently a UCM profile is very hard-coded, hence it's quite tightly coupled with the kernel driver implementation details. It makes the UCM parser code implementation easier, while it induces this kind of incompatibility if we want to change something in the kernel side...
Quoted 6 lines
Another (rather tangential) improvement would be to introduce some validator in the kernel or in the UCM side to check whether the given string names are OK or not. A generic kcontrol element validator might be worth not only for UCM but in general, because lots of ASoC drivers tend to use any funky string names, and currently we accept them without strict checks.
Yes, we need another conformance tool for the control interface and do more checking when the patches are accepted. I agree that the ASoC tree is too much benevolent in this area.
Jaroslav
Signature · 6 lines
Jaroslav Kysela <[email protected]> Linux Sound Maintainer; ALSA Project; Red Hat, Inc. _______________________________________________ Alsa-devel mailing list [email protected] https://mailman.alsa-project.org/mailman/listinfo/alsa-devel
Quoted 34 lines · Jaroslav Kysela
Dne 26. 10. 19 v 9:37 Takashi Iwai napsal(a):
Quoted 32 lines
Quoted 9 lines · Jaroslav Kysela
Dne 25. 10. 19 v 20:02 Kai Vehmanen napsal(a):
Quoted 7 lines
Hi Jaroslav and all,
Quoted 2 lines · Jaroslav Kysela
the single user. Another problem is that we are not able to review all those mistakes at the merge time. It is not a complain but a true fact.
Quoted 8 lines
Quoted 3 lines
but the strings are in kernel patches, so even if all UCM files don't go through the list, we can always review when the strings are added in kernel, right?
My point is that we already did this incomplete review (the wrong strings are in the current kernel). We cannot prevent to avoid those code merges, we are just human. I just don't think that the driver / control names should be part of the don't-break-the-userspace policy.
It's a similar situation like the long-time discussion of tracing:
when the kernel broke latencytop by changing the tracing format, we had to revert it in the end although the tracing format itself isn't strictly a "standard kernel ABI". The consensus is: if upgrading the kernel breaks anything *significant*, it's a regression and no-go. It's not about whether it's a part of ABI or not.In our particular case, the strings you wanted to fix are the ones that are actually hard-coded by the UCM profiles that are known to be really used on major systems. That's the only reason of NAK. If it were for some other minor kcontrol elements, it would have been OK.
Quoted 8 lines
Quoted 5 lines
Kai's work to integrate SOF to the legacy HDMI driver would be also OK because it provides the compatibility mode. That is, we have some excuse that it's not us but users (distros) who actually breaks by choosing the kernel configuration explicitly (and even there can be a workaround with a module option).
We can add another kernel option for this fix, too. If you like to move in this direction, I'll modify my patch.
I don't think it's worth for that. With Kai's patch set, we're going to move (back) to the legacy HDMI codec driver in most cases, so these strings will be specifically to the SST driver -- which are used by only limited number of devices like Chromebook or such.
That said, if the reason for the change is just about consistency, the best recipe is to forget it.
Quoted 5 lines
The question is, if the kernel should provide a hint to the user space (UCM), that something *significant* changed. Perhaps, the component field in the control API might be used for this purpose as I already proposed. In this way, we can support both kernels (with old and new control names).
I'm afraid that the current UCM profile cannot handle any extension as of now. We may need to introduce some incompatible extensibility at first to UCM profile syntax. This can be a good topic for the next meeting.
thanks,
Takashi
_______________________________________________
Alsa-devel mailing list
[email protected]
https://mailman.alsa-project.org/mailman/listinfo/alsa-devel
Mark Brown
maintainerQuoted 7 lines · Takashi Iwai
Quoted 5 lines · Jaroslav Kysela
Dne 25. 10. 19 v 16:06 Takashi Iwai napsal(a):
Quoted 3 lines
Well, that's obviously against our dont-breaking-user-space rule. The UCM profiles have been widely used on Chromebooks, and they can't upgrade easily.
Quoted 8 lines
Quoted 5 lines
Quoted 1 line
So, I believe this is a case where we have to live with messes.
If we speak about Google's kernels, they can apply a revert (depends on their upgrade/maintenance policy). If users use the standard Linux distributions, then we are fine, don't we?
No, we can't break the already existing user-space. That's what Linus suggested repeatedly over years, too.
I agree. There's some systems where we can get away with incompatible changes as realistically the users are doing full system upgrades and don't care but the Chromebooks definitely aren't one of them, we've had issues reported with breakages on them due to changes with the x86 DSP firmwares. It's mainly people sideloading a regular Linux userspace along with the ChromeOS kernel AIUI.
_______________________________________________
Alsa-devel mailing list
[email protected]
https://mailman.alsa-project.org/mailman/listinfo/alsa-devel
Kai Vehmanen
maintainerHi,
Quoted 3 lines · Jaroslav Kysela
There is an inconsistency in the names for the HDMI/DP Jack control names between some ASoC drivers and the HDA HDMI driver which introduced this naming in 2011.
this will break a lot of existing devices that are using out-of-tree UCM files, so I'm not sure this is worth the effort.
When the common-hdmi patches go in (v7 sent earlier this week), SOF will switch to common-hdmi and the also the naming will be aligned.
Br, Kai
_______________________________________________
Alsa-devel mailing list
[email protected]
https://mailman.alsa-project.org/mailman/listinfo/alsa-devel
Jaroslav Kysela
maintainerDne 25. 10. 19 v 14:44 Kai Vehmanen napsal(a):
Quoted 10 lines
Hi,
Quoted 3 lines · Jaroslav Kysela
There is an inconsistency in the names for the HDMI/DP Jack control names between some ASoC drivers and the HDA HDMI driver which introduced this naming in 2011.
this will break a lot of existing devices that are using out-of-tree UCM files, so I'm not sure this is worth the effort.
I don't agree. The out-of-tree UCMs should go to upstream anyway, except that they are unusable for the standard users.
Jaroslav
Signature · 6 lines
Jaroslav Kysela <[email protected]> Linux Sound Maintainer; ALSA Project; Red Hat, Inc. _______________________________________________ Alsa-devel mailing list [email protected] https://mailman.alsa-project.org/mailman/listinfo/alsa-devel
Quoted 5 lines · Jaroslav Kysela
Dne 25. 10. 19 v 14:44 Kai Vehmanen napsal(a):
Quoted 4 lines
Hi,
On Fri, 25 Oct 2019, Jaroslav Kysela wrote:
Quoted 8 lines
Quoted 6 lines
Quoted 3 lines
There is an inconsistency in the names for the HDMI/DP Jack control names between some ASoC drivers and the HDA HDMI driver which introduced this naming in 2011.
this will break a lot of existing devices that are using out-of-tree UCM files, so I'm not sure this is worth the effort.
I don't agree. The out-of-tree UCMs should go to upstream anyway, except that they are unusable for the standard users.
Isn't there a problem due to UCM extensions as well? I vaguely recall having to modify the Cherrytrail UCMs I took from the Chrome adhd repository since the parsing wouldn't work with the standard alsa-lib.
_______________________________________________
Alsa-devel mailing list
[email protected]
https://mailman.alsa-project.org/mailman/listinfo/alsa-devel
Jaroslav Kysela
maintainerDne 25. 10. 19 v 16:35 Pierre-Louis Bossart napsal(a):
Quoted 15 lines · Jaroslav Kysela
Quoted 12 lines
Dne 25. 10. 19 v 14:44 Kai Vehmanen napsal(a):
Quoted 10 lines
Hi,
Quoted 3 lines · Jaroslav Kysela
There is an inconsistency in the names for the HDMI/DP Jack control names between some ASoC drivers and the HDA HDMI driver which introduced this naming in 2011.
this will break a lot of existing devices that are using out-of-tree UCM files, so I'm not sure this is worth the effort.
Quoted 6 lines
Quoted 2 lines
I don't agree. The out-of-tree UCMs should go to upstream anyway, except that they are unusable for the standard users.
Isn't there a problem due to UCM extensions as well? I vaguely recall having to modify the Cherrytrail UCMs I took from the Chrome adhd repository since the parsing wouldn't work with the standard alsa-lib.
If they add something extra without the community agreement, it may break the alsa-lib UCM parser, of course. I meant UCM configs for the Linux users.
Jaroslav
Signature · 6 lines
Jaroslav Kysela <[email protected]> Linux Sound Maintainer; ALSA Project; Red Hat, Inc. _______________________________________________ Alsa-devel mailing list [email protected] https://mailman.alsa-project.org/mailman/listinfo/alsa-devel
Hi Kai,
Quoted 8 lines · Kai Vehmanen
Hi,
Quoted 3 lines · Jaroslav Kysela
There is an inconsistency in the names for the HDMI/DP Jack control names between some ASoC drivers and the HDA HDMI driver which introduced this naming in 2011.
Quoted 5 lines
this will break a lot of existing devices that are using out-of-tree UCM files, so I'm not sure this is worth the effort.
When the common-hdmi patches go in (v7 sent earlier this week), SOF will switch to common-hdmi and the also the naming will be aligned.
Which is going to break existing users, if any ;)
Quoted 8 lines
Br, Kai
_______________________________________________
Alsa-devel mailing list
[email protected]
https://mailman.alsa-project.org/mailman/listinfo/alsa-devel
- Peter
Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki
_______________________________________________
Alsa-devel mailing list
[email protected]
https://mailman.alsa-project.org/mailman/listinfo/alsa-devel
Kai Vehmanen
maintainerHi Peter,
Quoted 5 lines · Peter Ujfalusi
Quoted 2 lines · Kai Vehmanen
When the common-hdmi patches go in (v7 sent earlier this week), SOF will switch to common-hdmi and the also the naming will be aligned.
Which is going to break existing users, if any ;)
valid point :) but I have actually gone to great lengths to not break existing user-space. I did consider the same approach as Jaroslav (especially as there is still limited number of SOF clients in the wild still), but dropped the idea based on userspace feedback. So in the end, backward compatibility is kept in the patchset just for this reason.
The common-hdmi patch adds ability to use SOF with both codec drivers and I even added a module parameter to allow distros to compile both drivers in, and select the driver to use, at runtime from user-space.
Slowly as user-space migrates to the new driver (more features), we can at some point drop the old and get rid of "'HDMI/DP, pcm=' notation. Of course, proving there is no one left is not easy, so we likely need to maintain both for a looong time.
Br, Kai
_______________________________________________
Alsa-devel mailing list
[email protected]
https://mailman.alsa-project.org/mailman/listinfo/alsa-devel