All of lore.kernel.org
 help / color / mirror / Atom feed
From: Kai Vehmanen <kai.vehmanen@linux.intel.com>
To: sathya.prakash.m.r@intel.com
Cc: naveen.m@intel.com, alsa-devel@alsa-project.org,
	broonie@kernel.org, pierre-louis.bossart@linux.intel.com
Subject: Re: [alsa-devel] [PATCH 1/2] ASoC: Intel: boards: Add CML m/c using RT1011 and RT5682
Date: Tue, 24 Sep 2019 13:03:47 +0300 (EEST)	[thread overview]
Message-ID: <alpine.DEB.2.21.1909241216510.16459@zeliteleevi> (raw)
In-Reply-To: <1569312546-16393-2-git-send-email-sathya.prakash.m.r@intel.com>

Hi,

On Tue, 24 Sep 2019, sathya.prakash.m.r@intel.com wrote:

> +       /* need to enable ASRC function for 24MHz mclk rate */                                                                                                                                         
> +       rt5682_sel_asrc_clk_src(component, RT5682_DA_STEREO1_FILTER |                                                                                                                                  
> +                                       RT5682_AD_STEREO1_FILTER,                                                                                                                                      
> +                                       RT5682_CLK_SEL_I2S1_ASRC);    

please align to opening parenthesis to align with rest of the file.

> +static const struct snd_soc_dapm_route cml_rt1011_rt5682_map[] = {
> +	/*speaker*/
> +	{"TL Ext Spk", NULL, "TL SPO"},
> +	{"TR Ext Spk", NULL, "TR SPO"},
> +	{"WL Ext Spk", NULL, "WL SPO"},
> +	{"WR Ext Spk", NULL, "WR SPO"},
> +
> +	/* HP jack connectors - unknown if we have jack detection */
> +	{ "Headphone Jack", NULL, "HPOL" },
> +	{ "Headphone Jack", NULL, "HPOR" },

like other reviewer commented, there is a mix of spacing that should be 
fixed. OTOH, there are similar mixed styles in existing machine drivers, 
so that's probably where it's coming from, but better to still fix in new 
code.

> +	/* DMIC */
> +	{"DMic", NULL, "SoC DMIC"},

Here's another instance of above.

> +	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);
> +		ret = snd_soc_card_jack_new(card, jack_name,
> +					    SND_JACK_AVOUT, &hdmi_jack[i],
> +					    NULL, 0);
> +		if (ret)
> +			return ret;

The HDMI jack registration part will need to be updated once my
series to support snd-hda-codec-hdmi goes in:

https://mailman.alsa-project.org/pipermail/alsa-devel/2019-September/155456.html

... but your patch is ok as it is. I'll send a patch to update this 
machine driver as well if your patch goes in first. There's no harm unless 
you explicitly enable the new HDMI codec driver in Kconfig.

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

  parent reply	other threads:[~2019-09-24 10:04 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-09-24  8:09 [alsa-devel] [PATCH 0/2] Add CML M/C for RT5682 and RT1011 sathya.prakash.m.r
2019-09-24  8:09 ` [alsa-devel] [PATCH 1/2] ASoC: Intel: boards: Add CML m/c using RT1011 and RT5682 sathya.prakash.m.r
2019-09-24  9:07   ` Amadeusz Sławiński
2019-09-24 13:52     ` Pierre-Louis Bossart
2019-09-24 10:03   ` Kai Vehmanen [this message]
2019-09-24  8:09 ` [alsa-devel] [PATCH 2/2] ASoC: Intel: Add acpi match for rt1011 based m/c driver sathya.prakash.m.r

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=alpine.DEB.2.21.1909241216510.16459@zeliteleevi \
    --to=kai.vehmanen@linux.intel.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=broonie@kernel.org \
    --cc=naveen.m@intel.com \
    --cc=pierre-louis.bossart@linux.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.