diff --git a/audio/pcm_decode.c b/audio/pcm_decode.c index 69530f1f39d..15a4116632b 100644 --- a/audio/pcm_decode.c +++ b/audio/pcm_decode.c @@ -1182,14 +1182,16 @@ static int pcm_enqueuebuffer(FAR struct audio_lowerhalf_s *dev, priv->export.upper(priv->export.priv, AUDIO_CALLBACK_COMPLETE, NULL, OK); #endif - } #ifndef CONFIG_AUDIO_FORMAT_RAW + } + /* This is not a WAV file! */ auderr("ERROR: Invalid PCM WAV file\n"); - return -EINVAL; #endif + + return -EINVAL; } /****************************************************************************