ASoC: Intel: sst: Fix error-code check in sst_pause_stream()
authorHans de Goede <hdegoede@redhat.com>
Sun, 18 Feb 2018 22:01:38 +0000 (23:01 +0100)
committerMark Brown <broonie@kernel.org>
Thu, 1 Mar 2018 16:22:44 +0000 (16:22 +0000)
commit6f5062773747b3d3eb9f957030ac1be98e983ac2
treeb48cd75fdcde1c88d1a3a75b034e4c45f0603ae3
parent257aaceb63eb2337e50cd9f9008d11df2cb86207
ASoC: Intel: sst: Fix error-code check in sst_pause_stream()

The value returned by sst_prepare_and_post_msg() is a negated SST_ERR_*
value, so we must check for -SST_ERR_INVALID_STREAM_ID. Note that
sst_pause_resume() already has the correct check.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/atom/sst/sst_stream.c