summaryrefslogtreecommitdiff
path: root/drivers/staging/intel_sst/intelmid_v0_control.c
diff options
context:
space:
mode:
authorVinod Koul <vinod.koul@intel.com>2011-05-03 17:32:01 +0100
committerGreg Kroah-Hartman <gregkh@suse.de>2011-05-10 12:55:52 -0700
commitb06a584c219f4cda1ff22d4988bc8ea19589a2c8 (patch)
treec3aac39b03f40638de070bbb4942627ba5402483 /drivers/staging/intel_sst/intelmid_v0_control.c
parent6c550053cb9ddbee58c295cb92ecd6c331605854 (diff)
intel_sst: MSIC codec power optimisation
This patch adds power optimization for the msic codec and ensure codec is completely powered off when codec is idle. Signed-off-by: Vinod Koul <vinod.koul@intel.com> Signed-off-by: Ramesh Babu K V <ramesh.babu@intel.com> Signed-off-by: Alan Cox <alan@linux.intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/intel_sst/intelmid_v0_control.c')
-rw-r--r--drivers/staging/intel_sst/intelmid_v0_control.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/intel_sst/intelmid_v0_control.c b/drivers/staging/intel_sst/intelmid_v0_control.c
index 7756f8feaf85..6cf5901dbb6c 100644
--- a/drivers/staging/intel_sst/intelmid_v0_control.c
+++ b/drivers/staging/intel_sst/intelmid_v0_control.c
@@ -157,7 +157,7 @@ static int fs_power_up_pb(unsigned int port)
return fs_enable_audiodac(UNMUTE);
}
-static int fs_power_down_pb(void)
+static int fs_power_down_pb(unsigned int device)
{
struct sc_reg_access sc_access[] = {
{POWERCTRL1, 0x00, 0xC6},
@@ -195,7 +195,7 @@ static int fs_power_up_cp(unsigned int port)
return sst_sc_reg_access(sc_access, PMIC_READ_MODIFY, 2);
}
-static int fs_power_down_cp(void)
+static int fs_power_down_cp(unsigned int device)
{
struct sc_reg_access sc_access[] = {
{POWERCTRL2, 0x00, 0x03},