ASoC: ak4671: Fix control-less DAPM routes
authorLars-Peter Clausen <lars@metafoo.de>
Fri, 27 Feb 2015 13:13:02 +0000 (14:13 +0100)
committerSasha Levin <sasha.levin@oracle.com>
Thu, 9 Apr 2015 22:40:40 +0000 (18:40 -0400)
commit4ac22da9d867c95890a4c8232a967ae0446cc015
tree219ed0758a949cee20cd6ec45166bd3644ac2d1b
parentcab451cce5bf5946f7483e8233b4ba7785e9aece
ASoC: ak4671: Fix control-less DAPM routes

[ Upstream commit ce9594c6b332fd6fe464e22a83b0e6e0a287aac6 ]

Routes without a control must use NULL for the control name. The ak4671
driver uses "NULL" instead in a few places. Previous to commit 5fe5b767dc6f
("ASoC: dapm: Do not pretend to support controls for non mixer/mux widgets")
the DAPM core silently ignored non-NULL controls on non-mixer and non-mux
routes. But starting with that commit it will complain and not add the
route breaking the ak4671 driver in the process.

This patch replaces the incorrect "NULL" control name with NULL to fix the
issue.

Fixes: 5fe5b767dc6f ("ASoC: dapm: Do not pretend to support controls for non mixer/mux widgets")
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Mark Brown <broonie@kernel.org>
Cc: stable@vger.kernel.org
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
sound/soc/codecs/ak4671.c