OSDN Git Service

soundwire: Add support for usecases without compander
authorLaxminath Kasam <lkasam@codeaurora.org>
Thu, 7 Apr 2016 07:14:35 +0000 (12:44 +0530)
committerGerrit - the friendly Code Review server <code-review@localhost>
Wed, 21 Sep 2016 09:49:13 +0000 (02:49 -0700)
Some of the usecases without compander and with
smart boost, VI sense are added in soundwire controller
driver.

Change-Id: Ia380ee6ad4584c29feb80fdc3b9247dd11e64a3e
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
drivers/soundwire/swr-wcd-ctrl.c

index 2660914..424ad7c 100644 (file)
@@ -61,6 +61,10 @@ struct usecase uc[] = {
        {6, 14, 6600},          /* UC11: 2*(Spkr + Comp + SB) */
        {2, 3, 2700},           /* UC12: Spkr + SB */
        {4, 6, 5400},           /* UC13: 2*(Spkr + SB) */
+       {3, 5, 3900},           /* UC14: Spkr + SB + VI */
+       {6, 10, 7800},          /* UC15: 2*(Spkr + SB + VI) */
+       {2, 3, 3600},           /* UC16: Spkr + VI */
+       {4, 6, 7200},           /* UC17: 2*(Spkr + VI) */
 };
 #define MAX_USECASE    ARRAY_SIZE(uc)
 
@@ -148,6 +152,33 @@ struct port_params pp[MAX_USECASE][SWR_MSTR_PORT_LEN] = {
                {7, 6, 0},
                {63, 13, 31},
        },
+       /* UC 14 */
+       {
+               {7, 1, 0},
+               {63, 12, 31},
+               {15, 7, 0},
+       },
+       /* UC 15 */
+       {
+               {7, 1, 0},
+               {63, 12, 31},
+               {15, 7, 0},
+               {7, 6, 0},
+               {63, 13, 31},
+               {15, 10, 0},
+       },
+       /* UC 16 */
+       {
+               {7, 1, 0},
+               {15, 7, 0},
+       },
+       /* UC 17 */
+       {
+               {7, 1, 0},
+               {15, 7, 0},
+               {7, 6, 0},
+               {15, 10, 0},
+       },
 };
 
 enum {