[alsa-devel] [PATCH 1/1] ALSA: compress_core: Ensure device is stopped when stream closed
Mark Brown
broonie at kernel.org
Fri Apr 26 15:48:51 CEST 2013
On Fri, Apr 26, 2013 at 02:47:06PM +0100, Richard Fitzgerald wrote:
> + if ((data->stream.runtime->state == SNDRV_PCM_STATE_RUNNING) ||
> + (data->stream.runtime->state == SNDRV_PCM_STATE_PAUSED))
> + data->stream.ops->trigger(&data->stream, SNDRV_PCM_TRIGGER_STOP);
> +
A switch statement would be more idiomatic for this sort of thing.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://mailman.alsa-project.org/pipermail/alsa-devel/attachments/20130426/a7bb5a9f/attachment.sig>
More information about the Alsa-devel
mailing list