From: "Subhransu S. Prusty" <subhransu.s.prusty@intel.com>
To: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Cc: tiwai@suse.de, patches.audio@intel.com,
alsa-devel@alsa-project.org, broonie@kernel.org,
lgirdwood@gmail.com
Subject: Re: [PATCH 2/2] ASoC: Intel: Skylake: Fix typo for token d0i3 caps
Date: Thu, 4 May 2017 09:16:59 +0530 [thread overview]
Message-ID: <20170504034658.GC19898@subhransu-desktop> (raw)
In-Reply-To: <efae9470-97e5-183e-d226-9488b1b309da@sakamocchi.jp>
On Wed, May 03, 2017 at 07:46:21PM +0900, Takashi Sakamoto wrote:
> On May 3 2017 19:38, Takashi Sakamoto wrote:
> > On May 3 2017 19:07, Subhransu S. Prusty wrote:
> >> Signed-off-by: Subhransu S. Prusty <subhransu.s.prusty@intel.com>
> >> ---
> >> include/uapi/sound/snd_sst_tokens.h | 4 ++--
> >> sound/soc/intel/skylake/skl-topology.c | 2 +-
> >> 2 files changed, 3 insertions(+), 3 deletions(-)
> >>
> >> diff --git a/include/uapi/sound/snd_sst_tokens.h b/include/uapi/sound/snd_sst_tokens.h
> >> index 93392bedcc58..685149dda66b 100644
> >> --- a/include/uapi/sound/snd_sst_tokens.h
> >> +++ b/include/uapi/sound/snd_sst_tokens.h
> >> @@ -213,8 +213,8 @@ enum SKL_TKNS {
> >> SKL_TKN_U32_LIB_COUNT,
> >> SKL_TKN_STR_LIB_NAME,
> >> SKL_TKN_U32_PMODE,
> >> - SKL_TKL_U32_D0I3_CAPS,
> >> - SKL_TKN_MAX = SKL_TKL_U32_D0I3_CAPS,
> >> + SKL_TKN_U32_D0I3_CAPS,
> >> + SKL_TKN_MAX = SKL_TKN_U32_D0I3_CAPS,
> >> };
> >>
> >> #endif
> >> diff --git a/sound/soc/intel/skylake/skl-topology.c b/sound/soc/intel/skylake/skl-topology.c
> >> index 3a99712e44a8..b28199a5348c 100644
> >> --- a/sound/soc/intel/skylake/skl-topology.c
> >> +++ b/sound/soc/intel/skylake/skl-topology.c
> >> @@ -1995,7 +1995,7 @@ static int skl_tplg_get_token(struct device *dev,
> >> mconfig->converter = tkn_elem->value;
> >> break;
> >>
> >> - case SKL_TKL_U32_D0I3_CAPS:
> >> + case SKL_TKN_U32_D0I3_CAPS:
> >> mconfig->d0i3_caps = tkn_elem->value;
> >> break;
> >
> > $ git annotate include/uapi/sound/snd_sst_tokens.h
> > 8a0cb2360ddb9 (Vinod Koul 2016-11-03 17:07:18 +0530 215)
> > SKL_TKN_U32_PMODE,
> > 6bd9dcf339ebb (Vinod Koul 2016-11-03 17:07:19 +0530 216)
> > SKL_TKL_U32_D0I3_CAPS,
> > 6bd9dcf339ebb (Vinod Koul 2016-11-03 17:07:19 +0530 217)
> > SKL_TKN_MAX = SKL_TKL_U32_D0I3_CAPS,
> > 15f0d4f531d84 (Shreyas NC 2016-08-12 12:29:50 +0530 218)};
> > $ git name-rev --tags 6bd9dcf339ebb
> > 6bd9dcf339ebb tags/sound-4.10-rc1~3^2~15^2~17
> >
> > The typo was already included in Linux kernel v4.10 and exposed to
> > userland. In general of kernel development, it's the worst idea to
> > change it, because it can break userland.
>
> Instead of rename, it's better for you to keep the typo and add the
> correct entry with the same value, like:
>
> $ git diff
> diff --git a/include/uapi/sound/snd_sst_tokens.h
> b/include/uapi/sound/snd_sst_tokens.h
> index 93392bedcc58..b7cc95d04928 100644
> --- a/include/uapi/sound/snd_sst_tokens.h
> +++ b/include/uapi/sound/snd_sst_tokens.h
> @@ -213,8 +213,9 @@ enum SKL_TKNS {
> SKL_TKN_U32_LIB_COUNT,
> SKL_TKN_STR_LIB_NAME,
> SKL_TKN_U32_PMODE,
> - SKL_TKL_U32_D0I3_CAPS,
> - SKL_TKN_MAX = SKL_TKL_U32_D0I3_CAPS,
> + SKL_TKL_U32_D0I3_CAPS, /* Typo, added at v4.10. */
> + SKL_TKN_U32_D0I3_CAPS = SKN_TKL_U32_D0I3_CAPS,
Hi Takashi,
Thanks for the suggestion. I will resubmit the patch with the change.
Regards,
Subhransu
> + SKL_TKN_MAX = SKL_TKN_U32_D0I3_CAPS,
> };
>
> #endif
>
>
> Regards
>
> Takashi Sakamoto
--
next prev parent reply other threads:[~2017-05-04 4:00 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-05-03 10:07 [PATCH 1/2] ASoC: Intel: Skylake: Move i915 registration to worker thread Subhransu S. Prusty
2017-05-03 10:07 ` [PATCH 2/2] ASoC: Intel: Skylake: Fix typo for token d0i3 caps Subhransu S. Prusty
2017-05-03 10:38 ` Takashi Sakamoto
2017-05-03 10:46 ` Takashi Sakamoto
2017-05-04 3:46 ` Subhransu S. Prusty [this message]
2017-05-15 8:03 ` Applied "ASoC: Intel: Skylake: Move i915 registration to worker thread" to the asoc tree Mark Brown
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=20170504034658.GC19898@subhransu-desktop \
--to=subhransu.s.prusty@intel.com \
--cc=alsa-devel@alsa-project.org \
--cc=broonie@kernel.org \
--cc=lgirdwood@gmail.com \
--cc=o-takashi@sakamocchi.jp \
--cc=patches.audio@intel.com \
--cc=tiwai@suse.de \
/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