ALSA: pcm: return error immediately for parameters handling
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>
Sun, 11 Jun 2017 14:56:12 +0000 (23:56 +0900)
committerTakashi Iwai <tiwai@suse.de>
Sun, 11 Jun 2017 17:05:24 +0000 (19:05 +0200)
commitf74ae15fe3da7905b78e986ad906a333587cf160
tree960056cd5a387f1db64ae507538fffcc1c9c7068
parent6baca010c71176f406299ea1949e721ab995ff01
ALSA: pcm: return error immediately for parameters handling

When refining mask/interval parameters, helper functions can return error
code. This error is not handled immediately. This seems to return
parameters to userspace applications in its meddle of processing.

However, in general, when receiving error from system calls, the
application might not handle argument buffer. It's reasonable to
judge the above design as superfluity.

This commit handles the error immediately.

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/core/pcm_native.c