ASoC: AMD: Move clk enable from hw_params/free to startup/shutdown
authorAkshu Agrawal <akshu.agrawal@amd.com>
Tue, 8 May 2018 04:47:50 +0000 (10:17 +0530)
committerMark Brown <broonie@kernel.org>
Mon, 21 May 2018 15:19:11 +0000 (16:19 +0100)
commite9716ff3dcd052d8640047860a78c948629c6c70
treeb796b72d38184815f27112d51cd62e296e93f29b
parentcac6f59717e1084552e509172d40d5c9d278feb9
ASoC: AMD: Move clk enable from hw_params/free to startup/shutdown

hw_param can be called multiple times and thus we can have
more clk enable. The clk may not get diabled due to refcounting.
startup/shutdown ensures single clk enable/disable call.

Signed-off-by: Akshu Agrawal <akshu.agrawal@amd.com>
Signed-off-by: Vijendar Mukunda <Vijendar.Mukunda@amd.com>
Reviewed-by: Daniel Kurtz <djkurtz@chromium.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/amd/acp-da7219-max98357a.c