]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: sn95031: Fix control-less DAPM routes
authorLars-Peter Clausen <lars@metafoo.de>
Fri, 27 Feb 2015 13:13:04 +0000 (14:13 +0100)
committerMark Brown <broonie@kernel.org>
Thu, 5 Mar 2015 00:59:43 +0000 (00:59 +0000)
commit611025e77a267425e4b6591f980c072300b6e205
tree77cc18a8adb4837c3b8b7b7780b504aecbb7ea51
parent9cbe621030a9cce16d27329dac74fd4b1c1d9412
ASoC: sn95031: Fix control-less DAPM routes

Routes without a control must use NULL for the control name. The sn95031
driver uses "NULL" instead in a few places. Previous to commit c467b9bbd57c
("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 sn95031 driver in the process.

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

Fixes: c467b9bbd57c ("ASoC: dapm: Do not pretend to support controls for non mixer/mux widgets")
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Acked-by: Vinod Koul <vinod.koul@intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Cc: stable@vger.kernel.org
sound/soc/codecs/sn95031.c