For unsupported sample formats, don't return EINVAL but set the closest available format.  ok ratchov@
For unsupported sample formats, don't return EINVAL but set the closest
available format.  ok ratchov@

orumin/openbsd-efivars,orumin/openbsd-efivars,orumin/openbsd-efivars,orumin/openbsd-efivars