From: Takashi Iwai <tiwai@suse.de>
To: "Bandarupalli, Sailaja" <sailaja.bandarupalli@intel.com>
Cc: "Wu, Fengguang" <fengguang.wu@intel.com>,
"alsa-devel@alsa-project.org" <alsa-devel@alsa-project.org>,
Mark Brown <broonie@opensource.wolfsonmicro.com>,
"Babu, Ramesh" <ramesh.babu@intel.com>
Subject: Re: [PATCH 1/5] [RFC]intel_hdmi_audio:include header
Date: Thu, 25 Nov 2010 07:25:59 +0100 [thread overview]
Message-ID: <s5hpqttnclk.wl%tiwai@suse.de> (raw)
In-Reply-To: <4F93CB265C2E2E42A19CD9E994A1FA5D060B039F28@bgsmsx501.gar.corp.intel.com>
At Thu, 25 Nov 2010 11:37:58 +0530,
Bandarupalli, Sailaja wrote:
>
>
> > > > > +/**
> > > > > + * union aud_cfg - Audio configuration offset - 69000
> > > > > + *
> > > > > + * @cfg_regx: individual register bits
> > > > > + * @cfg_regval: full register value
> > > > > + *
> > > > > + * */
> > > > > +union aud_cfg {
> > > > > + struct {
> > > > > + u32 aud_en:1;
> > > > > + u32 layout:1;
> > > > > + u32 fmt:2;
> > > > > + u32 num_ch:2;
> > > > > + u32 rsvd0:1;
> > > > > + u32 set:1;
> > > > > + u32 flat:1;
> > > > > + u32 val_bit:1;
> > > > > + u32 user_bit:1;
> > > > > + u32 underrun:1;
> > > > > + u32 rsvd1:20;
> > > > > + } cfg_regx;
> > > > > + u32 cfg_regval;
> > > > > +};
> > > >
> > > > In general, better to avoid bit fields if it's used for the data
> > > > transfer. The bit-fields are never portable.
> > > >
> > > These bit fields are used for programming the HDMI controller
> > subsystem.
> >
> > So, these bit-fields data aren't exposed to the hardware as is, but
> > used only between the hdmi audio and the controller drivers?
> > (But then, why these have to be defined in here?)
> >
> >
> These bits fields are used between HDMI audio driver and hardware.
> They are exposed by the hardware as is, and we need to write to
> specific bits to enable HDMI audio.
Then the bit-fields aren't suitable regarding the portability.
Takashi
prev parent reply other threads:[~2010-11-25 6:26 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-11-22 13:39 [PATCH 1/5] [RFC]intel_hdmi_audio:include header ramesh.babu
2010-11-22 13:39 ` [PATCH 2/5] [RFC]intel_hdmi_audio: interface module ramesh.babu
2010-11-22 13:58 ` Mark Brown
2010-11-24 9:05 ` Takashi Iwai
2010-11-24 10:11 ` Mark Brown
2010-11-24 14:20 ` Takashi Iwai
2010-11-25 5:54 ` Bandarupalli, Sailaja
2010-12-01 9:55 ` Babu, Ramesh
2010-11-22 13:39 ` [PATCH 3/5] [RFC]intel_hdmi_audio: driver module - ALSA intereaction ramesh.babu
2010-11-24 9:16 ` Takashi Iwai
2010-11-25 5:40 ` Bandarupalli, Sailaja
2010-11-25 5:50 ` Takashi Iwai
2010-11-25 6:17 ` Bandarupalli, Sailaja
2010-11-22 13:39 ` [PATCH 4/5] [RFC]intel_hdmi_audio:driver module-hdmi hw interface ramesh.babu
2010-11-22 13:39 ` [PATCH 5/5] [RFC]intel_hdmi_audio: Kconfig and Makefile ramesh.babu
2010-11-22 13:48 ` [PATCH 1/5] [RFC]intel_hdmi_audio:include header Mark Brown
2010-11-25 4:59 ` Bandarupalli, Sailaja
2010-11-24 9:20 ` Takashi Iwai
2010-11-25 5:06 ` Bandarupalli, Sailaja
2010-11-25 5:46 ` Takashi Iwai
2010-11-25 6:07 ` Bandarupalli, Sailaja
2010-11-25 6:25 ` Takashi Iwai [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=s5hpqttnclk.wl%tiwai@suse.de \
--to=tiwai@suse.de \
--cc=alsa-devel@alsa-project.org \
--cc=broonie@opensource.wolfsonmicro.com \
--cc=fengguang.wu@intel.com \
--cc=ramesh.babu@intel.com \
--cc=sailaja.bandarupalli@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).