From: Takashi Iwai Subject: Re: [PATCH v2 1/4] ALSA: hda - add flags and routines to get devices selection info for DP1.2 MST Date: Mon, 26 Aug 2013 14:44:17 +0200 Message-ID: References: <1377467051-21579-1-git-send-email-mengdong.lin@intel.com> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mx2.suse.de (cantor2.suse.de [195.135.220.15]) by alsa0.perex.cz (Postfix) with ESMTP id D2382261AB2 for ; Mon, 26 Aug 2013 14:42:34 +0200 (CEST) In-Reply-To: <1377467051-21579-1-git-send-email-mengdong.lin@intel.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org To: mengdong.lin@intel.com Cc: alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org At Sun, 25 Aug 2013 17:44:11 -0400, mengdong.lin@intel.com wrote: > > @@ -460,6 +464,11 @@ enum { > #define AC_DEFCFG_PORT_CONN (0x3<<30) > #define AC_DEFCFG_PORT_CONN_SHIFT 30 > > +/* Display pin's device list entry */ > +#define AC_DE_PD (1<<0) > +#define AC_DE_ELDV (1<<1) > +#define AC_DE_IA (1<<2) > + > /* device device types (0x0-0xf) */ > enum { > AC_JACK_LINE_OUT, > @@ -795,6 +804,16 @@ struct hda_pcm { > bool own_chmap; /* codec driver provides own channel maps */ > }; > > +/* display pin's device list entry */ > +struct hda_devlist_entry { > + unsigned int present_detect:1; > + unsigned int eld_valid:1; > + unsigned int inactive:1; > +}; Can't it be simply an unsigned int containing the raw value? You defined the bit flag in the above, and copying the bit field from/to the bit flag looks redundant. thanks, Takashi