asoc: rt5639: Set Speaker OVCD to default
authorSimon Je <sje@nvidia.com>
Fri, 4 Oct 2013 04:54:03 +0000 (13:54 +0900)
committerGabby Lee <galee@nvidia.com>
Mon, 7 Oct 2013 05:41:25 +0000 (22:41 -0700)
commitd192373ee15a75bc05ee4f2e8c36410dd2570029
tree7a86c35be6ab53a7f8ae6b18d29cf4a33a438ff5
parent985f7b6b29eb515ad1f01bea7e5d914be6739a50
asoc: rt5639: Set Speaker OVCD to default

Set the speaker over-voltage protection value
to the power on reset value.

Set OVCD to low value when audio is not playing.

Make sure codec mclk is enabled when writing the
codec registers.

Change-Id: Ib673d667af54f3b4fd7bf3183cbde1759838ae4a
Signed-off-by: Scott Peterson <speterson@nvidia.com>
Signed-off-by: Simon Je <sje@nvidia.com>
Reviewed-on: http://git-master/r/274022
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Vinod Subbarayalu <vsubbarayalu@nvidia.com>
Reviewed-by: Simon Je <sje@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Gabby Lee <galee@nvidia.com>
Tested-by: Gabby Lee <galee@nvidia.com>
(cherry picked from commit 2e0cd932ce9c116b5a0e07a3ce5ad865a63121b3)
Reviewed-on: http://git-master/r/281662
sound/soc/codecs/rt5639.c
sound/soc/tegra/tegra_rt5640.c