mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-21 14:56:18 +00:00
intel_audio_dump: move definitions of transcoder/pipe/port/converter earlier
Move these enum definitions earlier for future code sharing. Signed-off-by: Mengdong Lin <mengdong.lin@intel.com> Reviewed-by: Haihao Xiang <haihao.xiang@intel.com>
This commit is contained in:
parent
92d3197025
commit
ed386663fe
@ -360,6 +360,36 @@ static const char * const audio_dp_dip_status[] = {
|
|||||||
[31] = 0,
|
[31] = 0,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#undef TRANSCODER_A
|
||||||
|
#undef TRANSCODER_B
|
||||||
|
#undef TRANSCODER_C
|
||||||
|
|
||||||
|
enum {
|
||||||
|
TRANSCODER_A = 0,
|
||||||
|
TRANSCODER_B,
|
||||||
|
TRANSCODER_C,
|
||||||
|
};
|
||||||
|
|
||||||
|
enum {
|
||||||
|
PIPE_A = 0,
|
||||||
|
PIPE_B,
|
||||||
|
PIPE_C,
|
||||||
|
};
|
||||||
|
|
||||||
|
enum {
|
||||||
|
PORT_A = 0,
|
||||||
|
PORT_B,
|
||||||
|
PORT_C,
|
||||||
|
PORT_D,
|
||||||
|
PORT_E,
|
||||||
|
};
|
||||||
|
|
||||||
|
enum {
|
||||||
|
CONVERTER_1 = 0,
|
||||||
|
CONVERTER_2,
|
||||||
|
CONVERTER_3,
|
||||||
|
};
|
||||||
|
|
||||||
static void do_self_tests(void)
|
static void do_self_tests(void)
|
||||||
{
|
{
|
||||||
if (BIT(1, 0) != 1)
|
if (BIT(1, 0) != 1)
|
||||||
@ -1695,35 +1725,6 @@ static void dump_cpt(void)
|
|||||||
|
|
||||||
#define MAX_PREFIX_SIZE 128
|
#define MAX_PREFIX_SIZE 128
|
||||||
|
|
||||||
#undef TRANSCODER_A
|
|
||||||
#undef TRANSCODER_B
|
|
||||||
#undef TRANSCODER_C
|
|
||||||
enum {
|
|
||||||
TRANSCODER_A = 0,
|
|
||||||
TRANSCODER_B,
|
|
||||||
TRANSCODER_C,
|
|
||||||
};
|
|
||||||
|
|
||||||
enum {
|
|
||||||
PIPE_A = 0,
|
|
||||||
PIPE_B,
|
|
||||||
PIPE_C,
|
|
||||||
};
|
|
||||||
|
|
||||||
enum {
|
|
||||||
PORT_A = 0,
|
|
||||||
PORT_B,
|
|
||||||
PORT_C,
|
|
||||||
PORT_D,
|
|
||||||
PORT_E,
|
|
||||||
};
|
|
||||||
|
|
||||||
enum {
|
|
||||||
CONVERTER_1 = 0,
|
|
||||||
CONVERTER_2,
|
|
||||||
CONVERTER_3,
|
|
||||||
};
|
|
||||||
|
|
||||||
static void dump_ddi_buf_ctl(int port)
|
static void dump_ddi_buf_ctl(int port)
|
||||||
{
|
{
|
||||||
uint32_t dword;
|
uint32_t dword;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user