For CODEC to CODEC links we need to make sure to also manage the 'active' field
of the cpu_dai CODEC.
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Mark Brown <broonie@linaro.org>
cpu_dai->active++;
codec_dai->active++;
- rtd->codec->active++;
+ if (cpu_dai->codec)
+ cpu_dai->codec->active++;
+ codec_dai->codec->active++;
}
/**
cpu_dai->active--;
codec_dai->active--;
- rtd->codec->active--;
+ if (cpu_dai->codec)
+ cpu_dai->codec->active--;
+ codec_dai->codec->active--;
}
/**