On Tue, 02 Sep 2014 15:51:41 +0530I am talking about 0x11, 0x10, 0x01 values.. We can give any understandable
Varka Bhadram <varkabhadram@xxxxxxxxx> wrote:
I don't see which macros: the values are just 2 booleans.+ switch (((np == bitclkmaster) << 4) | (np == framemaster)) {It will be nice if we declare the switch case numbers as macros (specific name)...
+ case 0x11:
+ return SND_SOC_DAIFMT_CBS_CFS;
+ case 0x10:
+ return SND_SOC_DAIFMT_CBS_CFM;
+ case 0x01:
+ return SND_SOC_DAIFMT_CBM_CFS;
+ default:
+ return SND_SOC_DAIFMT_CBM_CFM;
+ }
+
+ /* Shouldn't be here */
+ return -EINVAL;
+}