• Sascha Hauer's avatar
    ASoC: Fix check for symmetric rate enforcement · 25b76791
    Sascha Hauer authored
    The ASoC core tries to not enforce symmetric rates when
    two streams open simultaneously. It does so by checking
    rtd->rate being zero. This works exactly once after booting
    because it is not set to zero again when the streams close.
    Fix this by setting rtd->rate when no active stream is left.
    
    [This leads to lots of warnings about not enforcing the symmetry in some
    situations as there's a race in the userspace API where we know we've
    got two applications but don't know what rates they want to set.
    -- broonie ]
    Signed-off-by: default avatarSascha Hauer <s.hauer@pengutronix.de>
    Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
    25b76791
soc-pcm.c 18.7 KB