* [PATCH] ASoC: Intel: Baytrail: Fix implicit fallthrough warning
@ 2019-08-22 12:01 Cezary Rojewski
2019-08-22 14:08 ` Pierre-Louis Bossart
0 siblings, 1 reply; 3+ messages in thread
From: Cezary Rojewski @ 2019-08-22 12:01 UTC (permalink / raw)
To: alsa-devel
Cc: lgirdwood, Cezary Rojewski, broonie, tiwai, pierre-louis.bossart
Separate _SUSPEND from _PAUSE_PUSH to ensure code is handled correctly
while fixing warning reported during compilation.
Fixes: b80d19c166c4 ("ASoC: Intel: Restore Baytrail ADSP streams only when ADSP was in reset")
Signed-off-by: Cezary Rojewski <cezary.rojewski@intel.com>
---
sound/soc/intel/baytrail/sst-baytrail-pcm.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/sound/soc/intel/baytrail/sst-baytrail-pcm.c b/sound/soc/intel/baytrail/sst-baytrail-pcm.c
index 9cbc982d46a9..eddb24ab8072 100644
--- a/sound/soc/intel/baytrail/sst-baytrail-pcm.c
+++ b/sound/soc/intel/baytrail/sst-baytrail-pcm.c
@@ -193,6 +193,8 @@ static int sst_byt_pcm_trigger(struct snd_pcm_substream *substream, int cmd)
break;
case SNDRV_PCM_TRIGGER_SUSPEND:
pdata->restore_stream = false;
+ sst_byt_stream_pause(byt, pcm_data->stream);
+ break;
case SNDRV_PCM_TRIGGER_PAUSE_PUSH:
sst_byt_stream_pause(byt, pcm_data->stream);
break;
--
2.17.1
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: [PATCH] ASoC: Intel: Baytrail: Fix implicit fallthrough warning
2019-08-22 12:01 [PATCH] ASoC: Intel: Baytrail: Fix implicit fallthrough warning Cezary Rojewski
@ 2019-08-22 14:08 ` Pierre-Louis Bossart
2019-08-28 9:45 ` Cezary Rojewski
0 siblings, 1 reply; 3+ messages in thread
From: Pierre-Louis Bossart @ 2019-08-22 14:08 UTC (permalink / raw)
To: Cezary Rojewski, alsa-devel; +Cc: broonie, tiwai, lgirdwood
On 8/22/19 7:01 AM, Cezary Rojewski wrote:
> Separate _SUSPEND from _PAUSE_PUSH to ensure code is handled correctly
> while fixing warning reported during compilation.
>
> Fixes: b80d19c166c4 ("ASoC: Intel: Restore Baytrail ADSP streams only when ADSP was in reset")
> Signed-off-by: Cezary Rojewski <cezary.rojewski@intel.com>
> ---
> sound/soc/intel/baytrail/sst-baytrail-pcm.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/sound/soc/intel/baytrail/sst-baytrail-pcm.c b/sound/soc/intel/baytrail/sst-baytrail-pcm.c
> index 9cbc982d46a9..eddb24ab8072 100644
> --- a/sound/soc/intel/baytrail/sst-baytrail-pcm.c
> +++ b/sound/soc/intel/baytrail/sst-baytrail-pcm.c
> @@ -193,6 +193,8 @@ static int sst_byt_pcm_trigger(struct snd_pcm_substream *substream, int cmd)
> break;
> case SNDRV_PCM_TRIGGER_SUSPEND:
> pdata->restore_stream = false;
> + sst_byt_stream_pause(byt, pcm_data->stream);
> + break;
why not just a /* fallthrough */ statement?
> case SNDRV_PCM_TRIGGER_PAUSE_PUSH:
> sst_byt_stream_pause(byt, pcm_data->stream);
> break;
>
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [PATCH] ASoC: Intel: Baytrail: Fix implicit fallthrough warning
2019-08-22 14:08 ` Pierre-Louis Bossart
@ 2019-08-28 9:45 ` Cezary Rojewski
0 siblings, 0 replies; 3+ messages in thread
From: Cezary Rojewski @ 2019-08-28 9:45 UTC (permalink / raw)
To: Pierre-Louis Bossart, alsa-devel; +Cc: broonie, tiwai, lgirdwood
On 2019-08-22 16:08, Pierre-Louis Bossart wrote:
> On 8/22/19 7:01 AM, Cezary Rojewski wrote:
>> Separate _SUSPEND from _PAUSE_PUSH to ensure code is handled correctly
>> while fixing warning reported during compilation.
>>
>> Fixes: b80d19c166c4 ("ASoC: Intel: Restore Baytrail ADSP streams only
>> when ADSP was in reset")
>> Signed-off-by: Cezary Rojewski <cezary.rojewski@intel.com>
>> ---
>> sound/soc/intel/baytrail/sst-baytrail-pcm.c | 2 ++
>> 1 file changed, 2 insertions(+)
>>
>> diff --git a/sound/soc/intel/baytrail/sst-baytrail-pcm.c
>> b/sound/soc/intel/baytrail/sst-baytrail-pcm.c
>> index 9cbc982d46a9..eddb24ab8072 100644
>> --- a/sound/soc/intel/baytrail/sst-baytrail-pcm.c
>> +++ b/sound/soc/intel/baytrail/sst-baytrail-pcm.c
>> @@ -193,6 +193,8 @@ static int sst_byt_pcm_trigger(struct
>> snd_pcm_substream *substream, int cmd)
>> break;
>> case SNDRV_PCM_TRIGGER_SUSPEND:
>> pdata->restore_stream = false;
>> + sst_byt_stream_pause(byt, pcm_data->stream);
>> + break;
>
> why not just a /* fallthrough */ statement?
>
Just a matter of taste. Sending v2 with update.
>> case SNDRV_PCM_TRIGGER_PAUSE_PUSH:
>> sst_byt_stream_pause(byt, pcm_data->stream);
>> break;
>>
>
_______________________________________________
Alsa-devel mailing list
Alsa-devel@alsa-project.org
https://mailman.alsa-project.org/mailman/listinfo/alsa-devel
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2019-08-28 9:45 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-08-22 12:01 [PATCH] ASoC: Intel: Baytrail: Fix implicit fallthrough warning Cezary Rojewski
2019-08-22 14:08 ` Pierre-Louis Bossart
2019-08-28 9:45 ` Cezary Rojewski
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.