Re: [PATCH v2 2/8] ALSA: aloop: loopback_timer_start: Support return of error code

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 05 Nov 2019 15:32:12 +0100,
Andrew Gabbasov wrote:
> 
> @@ -264,7 +266,7 @@ static int loopback_trigger(struct snd_pcm_substream *substream, int cmd)
>  		spin_lock(&cable->lock);	
>  		cable->running |= stream;
>  		cable->pause &= ~stream;
> -		loopback_timer_start(dpcm);
> +		err = loopback_timer_start(dpcm);
>  		spin_unlock(&cable->lock);
>  		if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
>  			loopback_active_notify(dpcm);

Will we notify even if the start/stop fails?


thanks,

Takashi
_______________________________________________
Alsa-devel mailing list
Alsa-devel@xxxxxxxxxxxxxxxx
https://mailman.alsa-project.org/mailman/listinfo/alsa-devel



[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Pulse Audio]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux