]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: Intel: Skylake: Fix return of skl_get_queue_index
authorJeeja KP <jeeja.kp@intel.com>
Wed, 3 Feb 2016 12:29:48 +0000 (17:59 +0530)
committerMark Brown <broonie@kernel.org>
Thu, 4 Feb 2016 11:36:14 +0000 (11:36 +0000)
commitffe67db8d83422daf4cd9ec06ad70a33694f6fbc
tree226c25d1d57612706bc88e7aab36f9704e245c56
parentda2d08ec42b2b10b0b103165097c7dae1099ac3e
ASoC: Intel: Skylake: Fix return of skl_get_queue_index

In unbind modules, the skl_get_queue_index() can return error
if the pin is dynamic and module is not bound yet. So instead
of returning error this check should return success as modules
is not yet bound. This will let the module be bound when connected
pipes are enabled and will bind this as well.

So change the return value to 0

Signed-off-by: Jeeja KP <jeeja.kp@intel.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/skylake/skl-messages.c