* [PATCH] ASoC: Intel: bytcr_wm5102: remove useless variable
@ 2021-04-09 6:08 Jiapeng Chong
2021-04-09 15:37 ` Pierre-Louis Bossart
0 siblings, 1 reply; 2+ messages in thread
From: Jiapeng Chong @ 2021-04-09 6:08 UTC (permalink / raw)
To: cezary.rojewski
Cc: pierre-louis.bossart, liam.r.girdwood, yang.jie, broonie, perex,
tiwai, alsa-devel, linux-kernel, Jiapeng Chong
Fix the following gcc warning:
sound/soc/intel/boards/bytcr_wm5102.c:216:40: warning:
‘byt_wm5102_dai_params’ defined but not used.
Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>
---
sound/soc/intel/boards/bytcr_wm5102.c | 8 --------
1 file changed, 8 deletions(-)
diff --git a/sound/soc/intel/boards/bytcr_wm5102.c b/sound/soc/intel/boards/bytcr_wm5102.c
index f38850e..fd584e3 100644
--- a/sound/soc/intel/boards/bytcr_wm5102.c
+++ b/sound/soc/intel/boards/bytcr_wm5102.c
@@ -213,14 +213,6 @@ static int byt_wm5102_init(struct snd_soc_pcm_runtime *runtime)
return 0;
}
-static const struct snd_soc_pcm_stream byt_wm5102_dai_params = {
- .formats = SNDRV_PCM_FMTBIT_S16_LE,
- .rate_min = 48000,
- .rate_max = 48000,
- .channels_min = 2,
- .channels_max = 2,
-};
-
static int byt_wm5102_codec_fixup(struct snd_soc_pcm_runtime *rtd,
struct snd_pcm_hw_params *params)
{
--
1.8.3.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] ASoC: Intel: bytcr_wm5102: remove useless variable
2021-04-09 6:08 [PATCH] ASoC: Intel: bytcr_wm5102: remove useless variable Jiapeng Chong
@ 2021-04-09 15:37 ` Pierre-Louis Bossart
0 siblings, 0 replies; 2+ messages in thread
From: Pierre-Louis Bossart @ 2021-04-09 15:37 UTC (permalink / raw)
To: Jiapeng Chong, cezary.rojewski
Cc: liam.r.girdwood, yang.jie, broonie, perex, tiwai, alsa-devel,
linux-kernel
On 4/9/21 1:08 AM, Jiapeng Chong wrote:
> Fix the following gcc warning:
>
> sound/soc/intel/boards/bytcr_wm5102.c:216:40: warning:
> ‘byt_wm5102_dai_params’ defined but not used.
>
> Reported-by: Abaci Robot <abaci@linux.alibaba.com>
> Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>
Thanks for the patch.
Acked-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
> ---
> sound/soc/intel/boards/bytcr_wm5102.c | 8 --------
> 1 file changed, 8 deletions(-)
>
> diff --git a/sound/soc/intel/boards/bytcr_wm5102.c b/sound/soc/intel/boards/bytcr_wm5102.c
> index f38850e..fd584e3 100644
> --- a/sound/soc/intel/boards/bytcr_wm5102.c
> +++ b/sound/soc/intel/boards/bytcr_wm5102.c
> @@ -213,14 +213,6 @@ static int byt_wm5102_init(struct snd_soc_pcm_runtime *runtime)
> return 0;
> }
>
> -static const struct snd_soc_pcm_stream byt_wm5102_dai_params = {
> - .formats = SNDRV_PCM_FMTBIT_S16_LE,
> - .rate_min = 48000,
> - .rate_max = 48000,
> - .channels_min = 2,
> - .channels_max = 2,
> -};
> -
> static int byt_wm5102_codec_fixup(struct snd_soc_pcm_runtime *rtd,
> struct snd_pcm_hw_params *params)
> {
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-04-09 16:22 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-09 6:08 [PATCH] ASoC: Intel: bytcr_wm5102: remove useless variable Jiapeng Chong
2021-04-09 15:37 ` Pierre-Louis Bossart
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).