* [RFC] dpcm_fe_dai_do_trigger: implicit removal of _DRAIN cmd since v5.4
@ 2020-09-03 9:01 Cezary Rojewski
2020-09-15 16:58 ` Sridharan, Ranjani
0 siblings, 1 reply; 2+ messages in thread
From: Cezary Rojewski @ 2020-09-03 9:01 UTC (permalink / raw)
To: alsa-devel@alsa-project.org
Cc: Takashi Iwai, Mark Brown, Ranjani Sridharan, Pierre-Louis Bossart
Hello,
Till v5.4 dpcm_fe_dai_do_trigger was supporting all pcm cmds as each
case: SND_SOC_DPCM_TRIGGER_PRE/ _POST/ _BESPOKE was simply passing cmd's
value to appropriate variant of _trigger().
Since the addition of:
acbf27746ecfa96b290b54cc7f05273482ea128a
ASoC: pcm: update FE/BE trigger order based on the command
additional filters have been introduced for _PRE and _POST cases:
switch (cmd) {
case SNDRV_PCM_TRIGGER_START:
case SNDRV_PCM_TRIGGER_RESUME:
case SNDRV_PCM_TRIGGER_PAUSE_RELEASE:
ret = dpcm_dai_trigger_fe_be(substream, cmd, true);
break;
case SNDRV_PCM_TRIGGER_STOP:
case SNDRV_PCM_TRIGGER_SUSPEND:
case SNDRV_PCM_TRIGGER_PAUSE_PUSH:
ret = dpcm_dai_trigger_fe_be(substream, cmd, false);
break;
default:
ret = -EINVAL;
break;
}
effectively removing support for _DRAIN command - all requests will
yield -EINVAL. _BESPOKE was left alone so support remained there.
Now, is DPCM no longer supporting _DRAIN and that's how things should be
-or- DPCM still intends to support _DRAIN and mentioned change is
unintended regression?
Czarek
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: [RFC] dpcm_fe_dai_do_trigger: implicit removal of _DRAIN cmd since v5.4
2020-09-03 9:01 [RFC] dpcm_fe_dai_do_trigger: implicit removal of _DRAIN cmd since v5.4 Cezary Rojewski
@ 2020-09-15 16:58 ` Sridharan, Ranjani
0 siblings, 0 replies; 2+ messages in thread
From: Sridharan, Ranjani @ 2020-09-15 16:58 UTC (permalink / raw)
To: Rojewski, Cezary, alsa-devel@alsa-project.org
Cc: broonie@kernel.org, pierre-louis.bossart@linux.intel.com,
tiwai@suse.com
On Thu, 2020-09-03 at 11:01 +0200, Cezary Rojewski wrote:
> Hello,
>
> Till v5.4 dpcm_fe_dai_do_trigger was supporting all pcm cmds as each
> case: SND_SOC_DPCM_TRIGGER_PRE/ _POST/ _BESPOKE was simply passing
> cmd's
> value to appropriate variant of _trigger().
>
> Since the addition of:
> acbf27746ecfa96b290b54cc7f05273482ea128a
> ASoC: pcm: update FE/BE trigger order based on the command
>
> additional filters have been introduced for _PRE and _POST cases:
>
> switch (cmd) {
> case SNDRV_PCM_TRIGGER_START:
> case SNDRV_PCM_TRIGGER_RESUME:
> case SNDRV_PCM_TRIGGER_PAUSE_RELEASE:
> ret = dpcm_dai_trigger_fe_be(substream, cmd, true);
> break;
> case SNDRV_PCM_TRIGGER_STOP:
> case SNDRV_PCM_TRIGGER_SUSPEND:
> case SNDRV_PCM_TRIGGER_PAUSE_PUSH:
> ret = dpcm_dai_trigger_fe_be(substream, cmd, false);
> break;
> default:
> ret = -EINVAL;
> break;
> }
>
> effectively removing support for _DRAIN command - all requests will
> yield -EINVAL. _BESPOKE was left alone so support remained there.
>
> Now, is DPCM no longer supporting _DRAIN and that's how things should
> be
> -or- DPCM still intends to support _DRAIN and mentioned change is
> unintended regression?
Hi Czarek,
Thanks for bringing this up. It does look like an unintended side-
effect of the aforementioned patch. I dont have a way to test the
support for the DRAIN command. Would you mind sending the fix for this?
Thanks,
Ranjani
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-09-15 16:59 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-09-03 9:01 [RFC] dpcm_fe_dai_do_trigger: implicit removal of _DRAIN cmd since v5.4 Cezary Rojewski
2020-09-15 16:58 ` Sridharan, Ranjani
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.