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

Reviewed-on: http://git-master/r/209428
(cherry picked from commit 6321b6d70aa4f010da100e9cca2ac9f0d556d208)

Change-Id: I1b639ef18ca5b5f65c1b5c4bb5a7242e9d9339b3
Signed-off-by: Vijay Mali <vmali@nvidia.com>
Reviewed-on: http://git-master/r/214807
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

sound/soc/codecs/aic3xxx/aic3xxx_cfw_ops.c

index 275e048..179d488 100644 (file)
@@ -193,12 +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;
-               /* removing if condition below. While switching *
-                * PFW, switch OFF minidsps anyways             */
-               /*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) {