ASoC: ak4613: Improve counting DAI number
authorRyo Kodama <ryo.kodama.vz@renesas.com>
Wed, 7 Jun 2017 05:39:00 +0000 (14:39 +0900)
committerMark Brown <broonie@kernel.org>
Wed, 7 Jun 2017 19:24:00 +0000 (20:24 +0100)
commit411652982a20ab60957283e9084c81d791cb69f9
tree4a73f2ccae2ba2bc90cdad9becbd5429d4f29e21
parentec185f95401e36f398b39706705f10d7fe7ff058
ASoC: ak4613: Improve counting DAI number

Add the startup function to count DAI instead of hw_params.
This change matches the number of opened DAIs.
If this change isn't applied, you may get unexpected error due to
mismatching of count. Since the excution number of hw_params and
shutdown may be different, the mismatching happens.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Ryo Kodama <ryo.kodama.vz@renesas.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/ak4613.c