Re: [PATCH 06/14] soundwire: Add IO transfer

2017-10-21 Thread Vinod Koul
On Sat, Oct 21, 2017 at 10:29:08AM +0100, Mark Brown wrote: > On Thu, Oct 19, 2017 at 08:33:22AM +0530, Vinod Koul wrote: > > > +static bool sdw_get_page(struct sdw_slave *slave, struct sdw_msg *msg) > > +{ > > + bool page = false, paging_support = false; > > + > > + if (slave && slave->prop.p

Re: [PATCH 06/14] soundwire: Add IO transfer

2017-10-21 Thread Mark Brown
On Thu, Oct 19, 2017 at 08:33:22AM +0530, Vinod Koul wrote: > +static bool sdw_get_page(struct sdw_slave *slave, struct sdw_msg *msg) > +{ > + bool page = false, paging_support = false; > + > + if (slave && slave->prop.paging_support) > + paging_support = true; > + > + /* >

Re: [alsa-devel] [PATCH 06/14] soundwire: Add IO transfer

2017-10-20 Thread Vinod Koul
On Fri, Oct 20, 2017 at 09:06:13AM +0200, Takashi Iwai wrote: > On Fri, 20 Oct 2017 07:30:06 +0200, > Vinod Koul wrote: > > > > On Thu, Oct 19, 2017 at 11:13:48AM +0200, Takashi Iwai wrote: > > > On Thu, 19 Oct 2017 05:03:22 +0200, > > > Vinod Koul wrote: > > > > > > > > +/** > > > > + * sdw_tran

Re: [alsa-devel] [PATCH 06/14] soundwire: Add IO transfer

2017-10-20 Thread Takashi Iwai
On Fri, 20 Oct 2017 07:30:06 +0200, Vinod Koul wrote: > > On Thu, Oct 19, 2017 at 11:13:48AM +0200, Takashi Iwai wrote: > > On Thu, 19 Oct 2017 05:03:22 +0200, > > Vinod Koul wrote: > > > > > > +/** > > > + * sdw_transfer: Synchronous transfer message to a SDW Slave device > > > + * > > > + * @bu

Re: [alsa-devel] [PATCH 06/14] soundwire: Add IO transfer

2017-10-19 Thread Vinod Koul
On Thu, Oct 19, 2017 at 11:13:48AM +0200, Takashi Iwai wrote: > On Thu, 19 Oct 2017 05:03:22 +0200, > Vinod Koul wrote: > > > > +static inline int find_error_code(unsigned int sdw_ret) > > +{ > > + switch (sdw_ret) { > > + case SDW_CMD_OK: > > + return 0; > > + > > + case SDW_CMD_I

Re: [alsa-devel] [PATCH 06/14] soundwire: Add IO transfer

2017-10-19 Thread Takashi Iwai
On Thu, 19 Oct 2017 05:03:22 +0200, Vinod Koul wrote: > > +static inline int find_error_code(unsigned int sdw_ret) > +{ > + switch (sdw_ret) { > + case SDW_CMD_OK: > + return 0; > + > + case SDW_CMD_IGNORED: > + return -ENODATA; > + > + case SDW_CMD_TIMEOUT:

[PATCH 06/14] soundwire: Add IO transfer

2017-10-18 Thread Vinod Koul
SoundWire bus supports read and write register(s) for SoundWire Slave device. sdw_read() and sdw_write() APIs are provided for single register read/write. sdw_nread() and sdw_nwrite() for operations on contiguous register read/write. Signed-off-by: Sanyog Kale Signed-off-by: Vinod Koul --- driv