• Lars-Peter Clausen's avatar
    ASoC: ak4671: Fix control-less DAPM routes · 4ac22da9
    Lars-Peter Clausen authored
    [ Upstream commit ce9594c6 ]
    
    Routes without a control must use NULL for the control name. The ak4671
    driver uses "NULL" instead in a few places. Previous to commit 5fe5b767
    ("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: 5fe5b767 ("ASoC: dapm: Do not pretend to support controls for non mixer/mux widgets")
    Signed-off-by: default avatarLars-Peter Clausen <lars@metafoo.de>
    Signed-off-by: default avatarMark Brown <broonie@kernel.org>
    Cc: stable@vger.kernel.org
    Signed-off-by: default avatarSasha Levin <sasha.levin@oracle.com>
    4ac22da9
ak4671.c 22.3 KB