asoc: aic326x codec: Switch off MiniDSP during Playback
Vijay Mali [Thu, 14 Mar 2013 05:38:02 +0000 (10:38 +0530)]
Use "Low Power Playback" mode does not require MiniDSP.
Switch off minidsp during playback usecase.

Bug 1238662

Change-Id: I55be90366d8e2320d9f8190daa3cf7a8ff45bf4f
Signed-off-by: Vijay Mali <vmali@nvidia.com>
Reviewed-on: http://git-master/r/209428
Reviewed-by: Ravindra Lokhande <rlokhande@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Scott Peterson <speterson@nvidia.com>

sound/soc/codecs/aic3xxx/aic3xxx_cfw_ops.c

index 83c6b48..179d488 100644 (file)
@@ -193,10 +193,10 @@ static int aic3xxx_cfw_setmode_cfg_u(struct cfw_state *ps, int mode, int cfg)
                 * overlay applies only to one
                 */
                im = pfw->base;
-               if (im->block[CFW_BLOCK_A_INST])
-                       which |= AIC3XXX_COPS_MDSP_A;
-               if (im->block[CFW_BLOCK_D_INST])
-                       which |= AIC3XXX_COPS_MDSP_D;
+
+               /* While switching PFW, switch OFF minidsps anyways */\r
+               which |= AIC3XXX_COPS_MDSP_A;\r
+               which |= AIC3XXX_COPS_MDSP_D;\r
 
                if (pmode->pfw != ps->cur_pfw) {