]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: ak4671: Fix control-less DAPM routes
authorLars-Peter Clausen <lars@metafoo.de>
Fri, 27 Feb 2015 13:13:02 +0000 (14:13 +0100)
committerMark Brown <broonie@kernel.org>
Thu, 5 Mar 2015 00:58:11 +0000 (00:58 +0000)
commitc48761829e07b7dad25680cf5a51baba75122b67
treed06d2c93fd06d66de4190958039e1216829121bb
parentb7d65746744b343701de14ca433982a3229390be
ASoC: ak4671: Fix control-less DAPM routes

Routes without a control must use NULL for the control name. The ak4671
driver uses "NULL" instead in a few places. Previous to commit 6ba8000c6150
("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: 6ba8000c6150 ("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
sound/soc/codecs/ak4671.c