[PATCH] ALSA: pcm: oss: Simplify plugin frame size calculations

Takashi Iwai tiwai at suse.de
Mon Mar 9 19:56:25 CET 2020


On Mon, 09 Mar 2020 19:50:57 +0100,
Takashi Iwai wrote:
> 
> Both snd_pcm_plug_client_size() and snd_pcm_plug_slave_size() do the
> almost same calculations of calling src_frames() and dst_frames() in
> the chain, but just to the different directions with each other.
> 
> This patch simplifies those functions.  Now they return -EINVAL for
> the invalid direction, but practically seen, there is no functional
> changes at all.
> 
> Signed-off-by: Takashi Iwai <tiwai at suse.de>

Sorry, scratch this, an old version was sent here.
Will submit the right one.


Takashi


More information about the Alsa-devel mailing list