From patchwork Tue Mar 4 16:28:29 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Lin, Mengdong" X-Patchwork-Id: 3758651 Return-Path: X-Original-To: patchwork-intel-gfx@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id CBEF69F1EE for ; Tue, 4 Mar 2014 03:27:04 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 0DD35203DF for ; Tue, 4 Mar 2014 03:27:04 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id 3235A203DA for ; Tue, 4 Mar 2014 03:27:03 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 7B9C8FB3D2; Mon, 3 Mar 2014 19:27:01 -0800 (PST) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by gabe.freedesktop.org (Postfix) with ESMTP id 61FEFFB3D2 for ; Mon, 3 Mar 2014 19:26:59 -0800 (PST) Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga102.fm.intel.com with ESMTP; 03 Mar 2014 19:26:58 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.97,582,1389772800"; d="scan'208";a="491840626" Received: from amanda-hsw-pc.sh.intel.com ([10.239.37.140]) by fmsmga002.fm.intel.com with ESMTP; 03 Mar 2014 19:26:57 -0800 From: mengdong.lin@intel.com To: intel-gfx@lists.freedesktop.org Date: Tue, 4 Mar 2014 11:28:29 -0500 Message-Id: X-Mailer: git-send-email 1.8.1.2 In-Reply-To: References: Subject: [Intel-gfx] [PATCH 2/7] intel_audio_dump: move definitions of transcoder/pipe/port/converter earlier X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: intel-gfx-bounces@lists.freedesktop.org Errors-To: intel-gfx-bounces@lists.freedesktop.org X-Spam-Status: No, score=-1.0 required=5.0 tests=BAYES_00, DATE_IN_FUTURE_12_24, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=no version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Mengdong Lin Move these enum definitions earlier for future code sharing. Signed-off-by: Mengdong Lin Reviewed-by: Haihao Xiang diff --git a/tools/intel_audio_dump.c b/tools/intel_audio_dump.c index 47926e4..faa577e 100644 --- a/tools/intel_audio_dump.c +++ b/tools/intel_audio_dump.c @@ -360,6 +360,36 @@ static const char * const audio_dp_dip_status[] = { [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) { if (BIT(1, 0) != 1) @@ -1695,35 +1725,6 @@ static void dump_cpt(void) #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) { uint32_t dword;