[alsa-devel] [PATCH 08/10] ASoC: s6000: Fix unlocked snd_pcm_stop() call

Daniel Glöckner dg at emlix.com
Mon Jul 15 18:02:48 CEST 2013


Nack

On Mon, Jul 15, 2013 at 03:06:20PM +0200, Takashi Iwai wrote:
> --- a/sound/soc/s6000/s6000-pcm.c
> +++ b/sound/soc/s6000/s6000-pcm.c
> @@ -128,7 +128,9 @@ static irqreturn_t s6000_pcm_irq(int irq, void *data)
>  		    substream->runtime &&
>  		    snd_pcm_running(substream)) {
>  			dev_dbg(pcm->dev, "xrun\n");
> +			snd_pcm_stream_lock(substream);
>  			snd_pcm_stop(substream, SNDRV_PCM_STATE_XRUN);
> +			snd_pcm_substream_unlock(substream);

I think this is supposed to be a call to snd_pcm_stream_unlock.

  Daniel

-- 
Dipl.-Math. Daniel Glöckner, emlix GmbH, http://www.emlix.com
Fon +49 551 30664-0, Fax +49 551 30664-11,
Bertha-von-Suttner-Straße 9, 37085 Göttingen, Germany
Sitz der Gesellschaft: Göttingen, Amtsgericht Göttingen HR B 3160
Geschäftsführung: Dr. Uwe Kracke, Ust-IdNr.: DE 205 198 055

emlix - your embedded linux partner


More information about the Alsa-devel mailing list