[PATCH] ASoC: pcm: DRAIN support reactivation

Sridharan, Ranjani ranjani.sridharan at intel.com
Tue Nov 3 18:11:47 CET 2020


On Mon, 2020-10-26 at 11:01 +0100, Cezary Rojewski wrote:
> soc-pcm's dpcm_fe_dai_do_trigger() supported DRAIN commnad up to
> kernel
> v5.4 where explicit switch(cmd) has been introduced which takes into
> account all SNDRV_PCM_TRIGGER_xxx but SNDRV_PCM_TRIGGER_DRAIN. Update
> switch statement to reactive support for it.
> 
> As DRAIN is somewhat unique by lacking negative/stop counterpart,
> bring
> behaviour of dpcm_fe_dai_do_trigger() for said command back to its
> pre-v5.4 state by adding it to START/RESUME/PAUSE_RELEASE group.
> 
> Fixes: acbf27746ecf ("ASoC: pcm: update FE/BE trigger order based on
> the command")
> Signed-off-by: Cezary Rojewski <cezary.rojewski at intel.com>
Looks good to me. Thanks, Cezary!

Reviewed-by: Ranjani Sridharan <ranjani.sridharan at linux.intel.com>


More information about the Alsa-devel mailing list