summaryrefslogtreecommitdiffstats
path: root/sound/firewire
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2020-03-09 19:58:55 +0100
committerTakashi Iwai <tiwai@suse.de>2020-03-09 20:02:42 +0100
commit3bbf9e2f8624432d1f436bf13ddce1cf9db5238d (patch)
tree334dd9b3782e5d7094f4a0f6303417f295ccc5cf /sound/firewire
parentcf4afed90c1f926d12277213b54d830c839a1bda (diff)
downloadlinux-3bbf9e2f8624432d1f436bf13ddce1cf9db5238d.tar.gz
linux-3bbf9e2f8624432d1f436bf13ddce1cf9db5238d.tar.bz2
linux-3bbf9e2f8624432d1f436bf13ddce1cf9db5238d.zip
ALSA: pcm: oss: Simplify plugin frame size calculations
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. Link: https://lore.kernel.org/r/20200309185855.15693-1-tiwai@suse.de Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/firewire')
0 files changed, 0 insertions, 0 deletions