Re: DPCM: skip DAPM_STREAM_STOP event to BE, if still used by other FE

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

 



On Tue, May 31, 2016 at 01:45:32PM +0800, Kai Chieh Chuang wrote:

> +		/* don't sent stop event if this BE is used by other FE */
> +		if (event == SND_SOC_DAPM_STREAM_STOP &&
> +		    be->dpcm[dir].users >= 1) {
> +			pr_warn("kc, %s(), be->dai_link->name %s skip stop event\n",
> __func__, be->dai_link->name);
> +			continue;
> +		}
> +
>  		snd_soc_dapm_stream_event(be, dir, event);
>  	}

If this isn't happening that seems like a bug, I'm a bit surprised
nobody else ran into it?  Shouldn't the counts of stream events that
happen be symmetric (ie, we get as many stops as starts), or are we
possibly missing some from things being switched in and out or something?

Attachment: signature.asc
Description: PGP signature

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

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

  Powered by Linux