Re: [PATCH v3] soundwire: SDCA: add helper macro to access controls

2020-10-30 Thread Takashi Iwai
On Fri, 30 Oct 2020 16:52:24 +0100, Pierre-Louis Bossart wrote: > > > > +#define SDW_SDCA_CTL(fun, ent, ctl, ch) (BIT(30) | > >>> \ > + (((fun) & 0x7) << 22) > |\ > +

Re: [PATCH v3] soundwire: SDCA: add helper macro to access controls

2020-10-30 Thread Pierre-Louis Bossart
+#define SDW_SDCA_CTL(fun, ent, ctl, ch)(BIT(30) | \ +(((fun) & 0x7) << 22) | \ +(((ent) & 0x40) << 15) | \ +

Re: [PATCH v3] soundwire: SDCA: add helper macro to access controls

2020-10-30 Thread Greg KH
> > linux-kernel@vger.kernel.org; j...@cadence.com; > > srinivas.kandaga...@linaro.org; rander.w...@linux.intel.com; > > ranjani.sridha...@linux.intel.com; hui.w...@canonical.com; pierre- > > louis.boss...@linux.intel.com; Kale, Sanyog R ; > > Lin, > > Mengdong ; Liao

Re: [PATCH v3] soundwire: SDCA: add helper macro to access controls

2020-10-30 Thread Takashi Iwai
rg; > > linux-kernel@vger.kernel.org; j...@cadence.com; > > srinivas.kandaga...@linaro.org; rander.w...@linux.intel.com; > > ranjani.sridha...@linux.intel.com; hui.w...@canonical.com; pierre- > > louis.boss...@linux.intel.com; Kale, Sanyog R ; > > Lin, > > Mengdong ; L

RE: [PATCH v3] soundwire: SDCA: add helper macro to access controls

2020-10-30 Thread Liao, Bard
.w...@linux.intel.com; > ranjani.sridha...@linux.intel.com; hui.w...@canonical.com; pierre- > louis.boss...@linux.intel.com; Kale, Sanyog R ; Lin, > Mengdong ; Liao, Bard > Subject: Re: [PATCH v3] soundwire: SDCA: add helper macro to access > controls > > On Fri, Oct 30, 2020 at 0

Re: [PATCH v3] soundwire: SDCA: add helper macro to access controls

2020-10-30 Thread Greg KH
On Fri, Oct 30, 2020 at 04:49:55AM +0800, Bard Liao wrote: > From: Pierre-Louis Bossart > > The upcoming SDCA (SoundWire Device Class Audio) specification defines > a hierarchical encoding to interface with Class-defined capabilities. > > The specification is not yet accessible to the general pu

[PATCH v3] soundwire: SDCA: add helper macro to access controls

2020-10-30 Thread Bard Liao
From: Pierre-Louis Bossart The upcoming SDCA (SoundWire Device Class Audio) specification defines a hierarchical encoding to interface with Class-defined capabilities. The specification is not yet accessible to the general public but this information is released with explicit permission from the