ASoC: Intel: atom: fix missing breaks that would cause the wrong operation to execute
Subsystems (3)
PATCH 1/1 ASoC: Intel: atom: fix missing breaks that would cause the wrong operation to execute
From: Alan Cox <[email protected]>
Now we correctly error an attempt to execute an unsupported operation.
--- sound/soc/intel/atom/sst-mfld-platform-compress.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-)
sound/soc/intel/atom/sst-mfld-platform-compress.c +7 -2
@@ -182,24 +182,29 @@ static int sst_platform_compr_trigger(struct snd_compr_stream *cstream, int cmd)case SNDRV_PCM_TRIGGER_START :if (stream->compr_ops->stream_start)return stream->compr_ops->stream_start (sst->dev, stream->id); +break ;case SNDRV_PCM_TRIGGER_STOP :if (stream->compr_ops->stream_drop)return stream->compr_ops->stream_drop (sst->dev, stream->id); +break ;case SND_COMPR_TRIGGER_DRAIN :if (stream->compr_ops->stream_drain)return stream->compr_ops->stream_drain (sst->dev, stream->id); +break ;case SND_COMPR_TRIGGER_PARTIAL_DRAIN :if (stream->compr_ops->stream_partial_drain)return stream->compr_ops->stream_partial_drain (sst->dev, stream->id); +break ;case SNDRV_PCM_TRIGGER_PAUSE_PUSH :if (stream->compr_ops->stream_pause)return stream->compr_ops->stream_pause (sst->dev, stream->id); +break ;case SNDRV_PCM_TRIGGER_PAUSE_RELEASE :if (stream->compr_ops->stream_pause_release)return stream->compr_ops->stream_pause_release (sst->dev, stream->id); -default : -return -EINVAL ; +break ; } +return -EINVAL ; } static int sst_platform_compr_pointer(struct snd_compr_stream *cstream,
Signature · 1 line
1.9.1
Mark Brown
maintainerApplied "ASoC: Intel: atom: fix missing breaks that would cause the wrong operation to execute" to the asoc tree
The patch
ASoC: Intel: atom: fix missing breaks that would cause the wrong operation to execute
has been applied to the asoc tree at
git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git
All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying to this mail.
Thanks,
Mark
Quoted 1 line
From
18f5839932e5c8c019f394d433dc5efcd6ae737aMon Sep 17 00:00:00 2001
From: Alan Cox <[email protected]>
Date: Thu, 23 Jun 2016 22:07:03 +0530
Subject: [PATCH] ASoC: Intel: atom: fix missing breaks that would cause the
wrong operation to execute
Now we correctly error an attempt to execute an unsupported operation.
--- sound/soc/intel/atom/sst-mfld-platform-compress.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-)
sound/soc/intel/atom/sst-mfld-platform-compress.c +7 -2
@@ -182,24 +182,29 @@ static int sst_platform_compr_trigger(struct snd_compr_stream *cstream, int cmd)case SNDRV_PCM_TRIGGER_START :if (stream->compr_ops->stream_start)return stream->compr_ops->stream_start (sst->dev, stream->id); +break ;case SNDRV_PCM_TRIGGER_STOP :if (stream->compr_ops->stream_drop)return stream->compr_ops->stream_drop (sst->dev, stream->id); +break ;case SND_COMPR_TRIGGER_DRAIN :if (stream->compr_ops->stream_drain)return stream->compr_ops->stream_drain (sst->dev, stream->id); +break ;case SND_COMPR_TRIGGER_PARTIAL_DRAIN :if (stream->compr_ops->stream_partial_drain)return stream->compr_ops->stream_partial_drain (sst->dev, stream->id); +break ;case SNDRV_PCM_TRIGGER_PAUSE_PUSH :if (stream->compr_ops->stream_pause)return stream->compr_ops->stream_pause (sst->dev, stream->id); +break ;case SNDRV_PCM_TRIGGER_PAUSE_RELEASE :if (stream->compr_ops->stream_pause_release)return stream->compr_ops->stream_pause_release (sst->dev, stream->id); -default : -return -EINVAL ; +break ; } +return -EINVAL ; } static int sst_platform_compr_pointer(struct snd_compr_stream *cstream,
Signature · 1 line
2.8.1
Mark Brown
maintainerApplied "ASoC: Intel: atom: fix missing breaks that would cause the wrong operation to execute" to the asoc tree
In reply to Vinod KoulThe patch
ASoC: Intel: atom: fix missing breaks that would cause the wrong operation to execute
has been applied to the asoc tree at
git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git
All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying to this mail.
Thanks,
Mark
Quoted 1 line
From
9c4639ec959f3618b5f7a7ea977ed09396c869c3Mon Sep 17 00:00:00 2001
From: Alan Cox <[email protected]>
Date: Thu, 23 Jun 2016 22:07:03 +0530
Subject: [PATCH] ASoC: Intel: atom: fix missing breaks that would cause the
wrong operation to execute
Now we correctly error an attempt to execute an unsupported operation.
--- sound/soc/intel/atom/sst-mfld-platform-compress.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-)
sound/soc/intel/atom/sst-mfld-platform-compress.c +7 -2
@@ -182,24 +182,29 @@ static int sst_platform_compr_trigger(struct snd_compr_stream *cstream, int cmd)case SNDRV_PCM_TRIGGER_START :if (stream->compr_ops->stream_start)return stream->compr_ops->stream_start (sst->dev, stream->id); +break ;case SNDRV_PCM_TRIGGER_STOP :if (stream->compr_ops->stream_drop)return stream->compr_ops->stream_drop (sst->dev, stream->id); +break ;case SND_COMPR_TRIGGER_DRAIN :if (stream->compr_ops->stream_drain)return stream->compr_ops->stream_drain (sst->dev, stream->id); +break ;case SND_COMPR_TRIGGER_PARTIAL_DRAIN :if (stream->compr_ops->stream_partial_drain)return stream->compr_ops->stream_partial_drain (sst->dev, stream->id); +break ;case SNDRV_PCM_TRIGGER_PAUSE_PUSH :if (stream->compr_ops->stream_pause)return stream->compr_ops->stream_pause (sst->dev, stream->id); +break ;case SNDRV_PCM_TRIGGER_PAUSE_RELEASE :if (stream->compr_ops->stream_pause_release)return stream->compr_ops->stream_pause_release (sst->dev, stream->id); -default : -return -EINVAL ; +break ; } +return -EINVAL ; } static int sst_platform_compr_pointer(struct snd_compr_stream *cstream,
Signature · 1 line
2.8.1
Mark Brown
maintainerApplied "ASoC: Intel: atom: fix missing breaks that would cause the wrong operation to execute" to the asoc tree
In reply to Vinod KoulThe patch
ASoC: Intel: atom: fix missing breaks that would cause the wrong operation to execute
has been applied to the asoc tree at
git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git
All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying to this mail.
Thanks,
Mark
Quoted 1 line
From
a6d4faeb2960b47dca46b6969c4a5d8165b650c1Mon Sep 17 00:00:00 2001
From: Alan Cox <[email protected]>
Date: Thu, 23 Jun 2016 22:07:03 +0530
Subject: [PATCH] ASoC: Intel: atom: fix missing breaks that would cause the
wrong operation to execute
Now we correctly error an attempt to execute an unsupported operation.
--- sound/soc/intel/atom/sst-mfld-platform-compress.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-)
sound/soc/intel/atom/sst-mfld-platform-compress.c +7 -2
@@ -182,24 +182,29 @@ static int sst_platform_compr_trigger(struct snd_compr_stream *cstream, int cmd)case SNDRV_PCM_TRIGGER_START :if (stream->compr_ops->stream_start)return stream->compr_ops->stream_start (sst->dev, stream->id); +break ;case SNDRV_PCM_TRIGGER_STOP :if (stream->compr_ops->stream_drop)return stream->compr_ops->stream_drop (sst->dev, stream->id); +break ;case SND_COMPR_TRIGGER_DRAIN :if (stream->compr_ops->stream_drain)return stream->compr_ops->stream_drain (sst->dev, stream->id); +break ;case SND_COMPR_TRIGGER_PARTIAL_DRAIN :if (stream->compr_ops->stream_partial_drain)return stream->compr_ops->stream_partial_drain (sst->dev, stream->id); +break ;case SNDRV_PCM_TRIGGER_PAUSE_PUSH :if (stream->compr_ops->stream_pause)return stream->compr_ops->stream_pause (sst->dev, stream->id); +break ;case SNDRV_PCM_TRIGGER_PAUSE_RELEASE :if (stream->compr_ops->stream_pause_release)return stream->compr_ops->stream_pause_release (sst->dev, stream->id); -default : -return -EINVAL ; +break ; } +return -EINVAL ; } static int sst_platform_compr_pointer(struct snd_compr_stream *cstream,
Signature · 1 line
2.8.1