Alsa-Devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
To: "Sridharan, Ranjani" <ranjani.sridharan@intel.com>,
	Chiang Mac <mac.chiang@intel.com>
Cc: "M R, Sathya Prakash" <sathya.prakash.m.r@intel.com>,
	Linux-ALSA <alsa-devel@alsa-project.org>,
	Mark Brown <broonie@kernel.org>, Bard Liao <bard.liao@intel.com>
Subject: Re: [PATCH] ASoC: Intel: boards: Add Cometlake machine driver support
Date: Thu, 8 Aug 2019 14:15:15 -0500	[thread overview]
Message-ID: <555a5469-a49b-92fa-cf8a-d379c2f46b05@linux.intel.com> (raw)
In-Reply-To: <CAFQqKeXO5XHTrgTvXDRtqPDZZNrb24GB9ps3L=7WYadW0nYuKA@mail.gmail.com>


>     +       } else if (soc_intel_is_cml()) {
>     +               unsigned int i;
>     +
>     + broxton_audio_card.name <http://broxton_audio_card.name> =
>     "cmlda7219max";
>     +
>     +               for (i = 0; i < ARRAY_SIZE(broxton_dais); i++) {
>     +                       /* MAXIM_CODEC is connected to SSP1. */
>     +                       if (!strcmp(broxton_dais[i].codecs->dai_name,
>     +                                       BXT_MAXIM_CODEC_DAI)) {
>     +                               broxton_dais[i].id = 1;
>     +                               broxton_dais[i].name = "SSP1-Codec";
>     +                               broxton_dais[i].cpus->dai_name =
>     "SSP1 Pin";
>     +                       }
>     +                       /* DIALOG_CODEC is connected to SSP0 */
>     +                       else if
>     (!strcmp(broxton_dais[i].codecs->dai_name,
>     +                                       BXT_DIALOG_CODEC_DAI)) {
>     +                               broxton_dais[i].id = 0;
>     +                               broxton_dais[i].name = "SSP0-Codec";
>     +                               broxton_dais[i].cpus->dai_name =
>     "SSP0 Pin";
>     +                       }
>     +               }
>              }
> 
> Would it be possible to keep the ID's unchanged? Its quite confusing 
> with so many platforms reusing the machine driver so it would help if 
> the changes are minimal.
> I understand why you want to change the ID's but it would be simpler to 
> just use the existing ID's in topology I think.

Ranjani, just to avoid confusion here, what 'ID' are you referring to?

I can see that in the existing GLK code (copied below) the .id field is 
not touched, only the name and dai_name are changed, is this what you 
were hinting at?

	if (soc_intel_is_glk()) {
		unsigned int i;

		broxton_audio_card.name = "glkda7219max";
		/* Fixup the SSP entries for geminilake */
		for (i = 0; i < ARRAY_SIZE(broxton_dais); i++) {
			/* MAXIM_CODEC is connected to SSP1. */
			if (!strcmp(broxton_dais[i].codecs->dai_name,
				    BXT_MAXIM_CODEC_DAI)) {
				broxton_dais[i].name = "SSP1-Codec";
				broxton_dais[i].cpus->dai_name = "SSP1 Pin";
			}
			/* DIALOG_CODE is connected to SSP2 */
			else if (!strcmp(broxton_dais[i].codecs->dai_name,
					 BXT_DIALOG_CODEC_DAI)) {
				broxton_dais[i].name = "SSP2-Codec";
				broxton_dais[i].cpus->dai_name = "SSP2 Pin";
			}
		}
	}

_______________________________________________
Alsa-devel mailing list
Alsa-devel@alsa-project.org
https://mailman.alsa-project.org/mailman/listinfo/alsa-devel

  reply	other threads:[~2019-08-08 19:15 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-08-08  7:58 [PATCH] ASoC: Intel: boards: Add Cometlake machine driver support mac.chiang
2019-08-08 14:39 ` Pierre-Louis Bossart
2019-08-08 19:06   ` Pierre-Louis Bossart
2019-08-08 17:38 ` Sridharan, Ranjani
2019-08-08 19:15   ` Pierre-Louis Bossart [this message]
2019-08-08 19:22     ` Sridharan, Ranjani

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=555a5469-a49b-92fa-cf8a-d379c2f46b05@linux.intel.com \
    --to=pierre-louis.bossart@linux.intel.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=bard.liao@intel.com \
    --cc=broonie@kernel.org \
    --cc=mac.chiang@intel.com \
    --cc=ranjani.sridharan@intel.com \
    --cc=sathya.prakash.m.r@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox