mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-28 02:06:23 +00:00
intel_audio_dump/hsw: align code with tab
This patch makes the file to follow kernel coding style: - replace leading spaces with tabs for alignment - fix some minor format issues But the max length of a line is set to 120 characters for readability on high resolution displays. Signed-off-by: Mengdong Lin <mengdong.lin@intel.com> Reviewed-by: Haihao Xiang <haihao.xiang@intel.com> Signed-off-by: Ben Widawsky <benjamin.widawsky@intel.com>
This commit is contained in:
parent
cac586586d
commit
3c7dc5cf32
@ -46,7 +46,7 @@ static uint32_t devid;
|
|||||||
#define min_t(type, x, y) ({ \
|
#define min_t(type, x, y) ({ \
|
||||||
type __min1 = (x); \
|
type __min1 = (x); \
|
||||||
type __min2 = (y); \
|
type __min2 = (y); \
|
||||||
__min1 < __min2 ? __min1: __min2; })
|
__min1 < __min2 ? __min1 : __min2; })
|
||||||
|
|
||||||
#define OPNAME(names, index) \
|
#define OPNAME(names, index) \
|
||||||
names[min_t(unsigned int, index, ARRAY_SIZE(names) - 1)]
|
names[min_t(unsigned int, index, ARRAY_SIZE(names) - 1)]
|
||||||
@ -282,11 +282,11 @@ static void dump_eaglelake(void)
|
|||||||
dump_reg(AUD_PINW_CONNLNG, "Audio Connection List Length");
|
dump_reg(AUD_PINW_CONNLNG, "Audio Connection List Length");
|
||||||
dump_reg(AUD_PINW_CONNLST, "Audio Connection List Entry");
|
dump_reg(AUD_PINW_CONNLST, "Audio Connection List Entry");
|
||||||
dump_reg(AUD_PINW_CNTR, "Audio Pin Widget Control");
|
dump_reg(AUD_PINW_CNTR, "Audio Pin Widget Control");
|
||||||
dump_reg(AUD_PINW_UNSOLRESP,"Audio Unsolicited Response Enable");
|
dump_reg(AUD_PINW_UNSOLRESP, "Audio Unsolicited Response Enable");
|
||||||
dump_reg(AUD_CNTL_ST, "Audio Control State Register");
|
dump_reg(AUD_CNTL_ST, "Audio Control State Register");
|
||||||
dump_reg(AUD_PINW_CONFIG, "Audio Configuration Default");
|
dump_reg(AUD_PINW_CONFIG, "Audio Configuration Default");
|
||||||
dump_reg(AUD_HDMIW_STATUS, "Audio HDMI Status");
|
dump_reg(AUD_HDMIW_STATUS, "Audio HDMI Status");
|
||||||
dump_reg(AUD_HDMIW_HDMIEDID,"Audio HDMI Data EDID Block");
|
dump_reg(AUD_HDMIW_HDMIEDID, "Audio HDMI Data EDID Block");
|
||||||
dump_reg(AUD_HDMIW_INFOFR, "Audio HDMI Widget Data Island Packet");
|
dump_reg(AUD_HDMIW_INFOFR, "Audio HDMI Widget Data Island Packet");
|
||||||
dump_reg(AUD_CONV_CHCNT, "Audio Converter Channel Count");
|
dump_reg(AUD_CONV_CHCNT, "Audio Converter Channel Count");
|
||||||
dump_reg(AUD_CTS_ENABLE, "Audio CTS Programming Enable");
|
dump_reg(AUD_CTS_ENABLE, "Audio CTS Programming Enable");
|
||||||
@ -484,7 +484,7 @@ static void dump_eaglelake(void)
|
|||||||
for (i = 0; i < 8; i++) {
|
for (i = 0; i < 8; i++) {
|
||||||
OUTREG(AUD_CONV_CHCNT, i);
|
OUTREG(AUD_CONV_CHCNT, i);
|
||||||
dword = INREG(AUD_CONV_CHCNT);
|
dword = INREG(AUD_CONV_CHCNT);
|
||||||
printf("\t\t\t\t\t[0x%x] %u => %lu \n", dword, i, BITS(dword, 7, 4));
|
printf("\t\t\t\t\t[0x%x] %u => %lu\n", dword, i, BITS(dword, 7, 4));
|
||||||
}
|
}
|
||||||
|
|
||||||
printf("AUD_HDMIW_HDMIEDID HDMI ELD:\n\t");
|
printf("AUD_HDMIW_HDMIEDID HDMI ELD:\n\t");
|
||||||
@ -721,7 +721,7 @@ static void dump_ironlake(void)
|
|||||||
printf("AUD_OUT_DIG_CNVT_A PRO\t\t\t\t\t%lu\n", BIT(dword, 6));
|
printf("AUD_OUT_DIG_CNVT_A PRO\t\t\t\t\t%lu\n", BIT(dword, 6));
|
||||||
printf("AUD_OUT_DIG_CNVT_A Level\t\t\t\t%lu\n", BIT(dword, 7));
|
printf("AUD_OUT_DIG_CNVT_A Level\t\t\t\t%lu\n", BIT(dword, 7));
|
||||||
printf("AUD_OUT_DIG_CNVT_A Category_Code\t\t\t%lu\n", BITS(dword, 14, 8));
|
printf("AUD_OUT_DIG_CNVT_A Category_Code\t\t\t%lu\n", BITS(dword, 14, 8));
|
||||||
printf("AUD_OUT_DIG_CNVT_A Lowest_Channel_Number\t\t%lu\n",BITS(dword, 19, 16));
|
printf("AUD_OUT_DIG_CNVT_A Lowest_Channel_Number\t\t%lu\n", BITS(dword, 19, 16));
|
||||||
printf("AUD_OUT_DIG_CNVT_A Stream_ID\t\t\t\t%lu\n", BITS(dword, 23, 20));
|
printf("AUD_OUT_DIG_CNVT_A Stream_ID\t\t\t\t%lu\n", BITS(dword, 23, 20));
|
||||||
|
|
||||||
dword = INREG(AUD_OUT_DIG_CNVT_B);
|
dword = INREG(AUD_OUT_DIG_CNVT_B);
|
||||||
@ -733,7 +733,7 @@ static void dump_ironlake(void)
|
|||||||
printf("AUD_OUT_DIG_CNVT_B PRO\t\t\t\t\t%lu\n", BIT(dword, 6));
|
printf("AUD_OUT_DIG_CNVT_B PRO\t\t\t\t\t%lu\n", BIT(dword, 6));
|
||||||
printf("AUD_OUT_DIG_CNVT_B Level\t\t\t\t%lu\n", BIT(dword, 7));
|
printf("AUD_OUT_DIG_CNVT_B Level\t\t\t\t%lu\n", BIT(dword, 7));
|
||||||
printf("AUD_OUT_DIG_CNVT_B Category_Code\t\t\t%lu\n", BITS(dword, 14, 8));
|
printf("AUD_OUT_DIG_CNVT_B Category_Code\t\t\t%lu\n", BITS(dword, 14, 8));
|
||||||
printf("AUD_OUT_DIG_CNVT_B Lowest_Channel_Number\t\t%lu\n",BITS(dword, 19, 16));
|
printf("AUD_OUT_DIG_CNVT_B Lowest_Channel_Number\t\t%lu\n", BITS(dword, 19, 16));
|
||||||
printf("AUD_OUT_DIG_CNVT_B Stream_ID\t\t\t\t%lu\n", BITS(dword, 23, 20));
|
printf("AUD_OUT_DIG_CNVT_B Stream_ID\t\t\t\t%lu\n", BITS(dword, 23, 20));
|
||||||
|
|
||||||
printf("AUD_OUT_CH_STR Converter_Channel_MAP PORTB PORTC PORTD\n");
|
printf("AUD_OUT_CH_STR Converter_Channel_MAP PORTB PORTC PORTD\n");
|
||||||
@ -1191,7 +1191,7 @@ static void dump_cpt(void)
|
|||||||
printf("AUD_OUT_DIG_CNVT_A PRO\t\t\t\t\t%lu\n", BIT(dword, 6));
|
printf("AUD_OUT_DIG_CNVT_A PRO\t\t\t\t\t%lu\n", BIT(dword, 6));
|
||||||
printf("AUD_OUT_DIG_CNVT_A Level\t\t\t\t%lu\n", BIT(dword, 7));
|
printf("AUD_OUT_DIG_CNVT_A Level\t\t\t\t%lu\n", BIT(dword, 7));
|
||||||
printf("AUD_OUT_DIG_CNVT_A Category_Code\t\t\t%lu\n", BITS(dword, 14, 8));
|
printf("AUD_OUT_DIG_CNVT_A Category_Code\t\t\t%lu\n", BITS(dword, 14, 8));
|
||||||
printf("AUD_OUT_DIG_CNVT_A Lowest_Channel_Number\t\t%lu\n",BITS(dword, 19, 16));
|
printf("AUD_OUT_DIG_CNVT_A Lowest_Channel_Number\t\t%lu\n", BITS(dword, 19, 16));
|
||||||
printf("AUD_OUT_DIG_CNVT_A Stream_ID\t\t\t\t%lu\n", BITS(dword, 23, 20));
|
printf("AUD_OUT_DIG_CNVT_A Stream_ID\t\t\t\t%lu\n", BITS(dword, 23, 20));
|
||||||
|
|
||||||
dword = INREG(AUD_OUT_DIG_CNVT_B);
|
dword = INREG(AUD_OUT_DIG_CNVT_B);
|
||||||
@ -1203,7 +1203,7 @@ static void dump_cpt(void)
|
|||||||
printf("AUD_OUT_DIG_CNVT_B PRO\t\t\t\t\t%lu\n", BIT(dword, 6));
|
printf("AUD_OUT_DIG_CNVT_B PRO\t\t\t\t\t%lu\n", BIT(dword, 6));
|
||||||
printf("AUD_OUT_DIG_CNVT_B Level\t\t\t\t%lu\n", BIT(dword, 7));
|
printf("AUD_OUT_DIG_CNVT_B Level\t\t\t\t%lu\n", BIT(dword, 7));
|
||||||
printf("AUD_OUT_DIG_CNVT_B Category_Code\t\t\t%lu\n", BITS(dword, 14, 8));
|
printf("AUD_OUT_DIG_CNVT_B Category_Code\t\t\t%lu\n", BITS(dword, 14, 8));
|
||||||
printf("AUD_OUT_DIG_CNVT_B Lowest_Channel_Number\t\t%lu\n",BITS(dword, 19, 16));
|
printf("AUD_OUT_DIG_CNVT_B Lowest_Channel_Number\t\t%lu\n", BITS(dword, 19, 16));
|
||||||
printf("AUD_OUT_DIG_CNVT_B Stream_ID\t\t\t\t%lu\n", BITS(dword, 23, 20));
|
printf("AUD_OUT_DIG_CNVT_B Stream_ID\t\t\t\t%lu\n", BITS(dword, 23, 20));
|
||||||
|
|
||||||
dword = INREG(AUD_OUT_DIG_CNVT_C);
|
dword = INREG(AUD_OUT_DIG_CNVT_C);
|
||||||
@ -1215,7 +1215,7 @@ static void dump_cpt(void)
|
|||||||
printf("AUD_OUT_DIG_CNVT_C PRO\t\t\t\t\t%lu\n", BIT(dword, 6));
|
printf("AUD_OUT_DIG_CNVT_C PRO\t\t\t\t\t%lu\n", BIT(dword, 6));
|
||||||
printf("AUD_OUT_DIG_CNVT_C Level\t\t\t\t%lu\n", BIT(dword, 7));
|
printf("AUD_OUT_DIG_CNVT_C Level\t\t\t\t%lu\n", BIT(dword, 7));
|
||||||
printf("AUD_OUT_DIG_CNVT_C Category_Code\t\t\t%lu\n", BITS(dword, 14, 8));
|
printf("AUD_OUT_DIG_CNVT_C Category_Code\t\t\t%lu\n", BITS(dword, 14, 8));
|
||||||
printf("AUD_OUT_DIG_CNVT_C Lowest_Channel_Number\t\t%lu\n",BITS(dword, 19, 16));
|
printf("AUD_OUT_DIG_CNVT_C Lowest_Channel_Number\t\t%lu\n", BITS(dword, 19, 16));
|
||||||
printf("AUD_OUT_DIG_CNVT_C Stream_ID\t\t\t\t%lu\n", BITS(dword, 23, 20));
|
printf("AUD_OUT_DIG_CNVT_C Stream_ID\t\t\t\t%lu\n", BITS(dword, 23, 20));
|
||||||
|
|
||||||
printf("AUD_OUT_CH_STR Converter_Channel_MAP PORTB PORTC PORTD\n");
|
printf("AUD_OUT_CH_STR Converter_Channel_MAP PORTB PORTC PORTD\n");
|
||||||
@ -1789,7 +1789,7 @@ static void dump_hsw(void)
|
|||||||
printf("AUD_OUT_DIG_CNVT_A PRO\t\t\t\t\t%lu\n", BIT(dword, 6));
|
printf("AUD_OUT_DIG_CNVT_A PRO\t\t\t\t\t%lu\n", BIT(dword, 6));
|
||||||
printf("AUD_OUT_DIG_CNVT_A Level\t\t\t\t%lu\n", BIT(dword, 7));
|
printf("AUD_OUT_DIG_CNVT_A Level\t\t\t\t%lu\n", BIT(dword, 7));
|
||||||
printf("AUD_OUT_DIG_CNVT_A Category_Code\t\t\t%lu\n", BITS(dword, 14, 8));
|
printf("AUD_OUT_DIG_CNVT_A Category_Code\t\t\t%lu\n", BITS(dword, 14, 8));
|
||||||
printf("AUD_OUT_DIG_CNVT_A Lowest_Channel_Number\t\t%lu\n",BITS(dword, 19, 16));
|
printf("AUD_OUT_DIG_CNVT_A Lowest_Channel_Number\t\t%lu\n", BITS(dword, 19, 16));
|
||||||
printf("AUD_OUT_DIG_CNVT_A Stream_ID\t\t\t\t%lu\n", BITS(dword, 23, 20));
|
printf("AUD_OUT_DIG_CNVT_A Stream_ID\t\t\t\t%lu\n", BITS(dword, 23, 20));
|
||||||
|
|
||||||
dword = INREG(AUD_OUT_DIG_CNVT_B);
|
dword = INREG(AUD_OUT_DIG_CNVT_B);
|
||||||
@ -1801,7 +1801,7 @@ static void dump_hsw(void)
|
|||||||
printf("AUD_OUT_DIG_CNVT_B PRO\t\t\t\t\t%lu\n", BIT(dword, 6));
|
printf("AUD_OUT_DIG_CNVT_B PRO\t\t\t\t\t%lu\n", BIT(dword, 6));
|
||||||
printf("AUD_OUT_DIG_CNVT_B Level\t\t\t\t%lu\n", BIT(dword, 7));
|
printf("AUD_OUT_DIG_CNVT_B Level\t\t\t\t%lu\n", BIT(dword, 7));
|
||||||
printf("AUD_OUT_DIG_CNVT_B Category_Code\t\t\t%lu\n", BITS(dword, 14, 8));
|
printf("AUD_OUT_DIG_CNVT_B Category_Code\t\t\t%lu\n", BITS(dword, 14, 8));
|
||||||
printf("AUD_OUT_DIG_CNVT_B Lowest_Channel_Number\t\t%lu\n",BITS(dword, 19, 16));
|
printf("AUD_OUT_DIG_CNVT_B Lowest_Channel_Number\t\t%lu\n", BITS(dword, 19, 16));
|
||||||
printf("AUD_OUT_DIG_CNVT_B Stream_ID\t\t\t\t%lu\n", BITS(dword, 23, 20));
|
printf("AUD_OUT_DIG_CNVT_B Stream_ID\t\t\t\t%lu\n", BITS(dword, 23, 20));
|
||||||
|
|
||||||
dword = INREG(AUD_OUT_DIG_CNVT_C);
|
dword = INREG(AUD_OUT_DIG_CNVT_C);
|
||||||
@ -1813,7 +1813,7 @@ static void dump_hsw(void)
|
|||||||
printf("AUD_OUT_DIG_CNVT_C PRO\t\t\t\t\t%lu\n", BIT(dword, 6));
|
printf("AUD_OUT_DIG_CNVT_C PRO\t\t\t\t\t%lu\n", BIT(dword, 6));
|
||||||
printf("AUD_OUT_DIG_CNVT_C Level\t\t\t\t%lu\n", BIT(dword, 7));
|
printf("AUD_OUT_DIG_CNVT_C Level\t\t\t\t%lu\n", BIT(dword, 7));
|
||||||
printf("AUD_OUT_DIG_CNVT_C Category_Code\t\t\t%lu\n", BITS(dword, 14, 8));
|
printf("AUD_OUT_DIG_CNVT_C Category_Code\t\t\t%lu\n", BITS(dword, 14, 8));
|
||||||
printf("AUD_OUT_DIG_CNVT_C Lowest_Channel_Number\t\t%lu\n",BITS(dword, 19, 16));
|
printf("AUD_OUT_DIG_CNVT_C Lowest_Channel_Number\t\t%lu\n", BITS(dword, 19, 16));
|
||||||
printf("AUD_OUT_DIG_CNVT_C Stream_ID\t\t\t\t%lu\n", BITS(dword, 23, 20));
|
printf("AUD_OUT_DIG_CNVT_C Stream_ID\t\t\t\t%lu\n", BITS(dword, 23, 20));
|
||||||
|
|
||||||
printf("AUD_OUT_CHAN_MAP Converter_Channel_MAP PORTB PORTC PORTD\n");
|
printf("AUD_OUT_CHAN_MAP Converter_Channel_MAP PORTB PORTC PORTD\n");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user