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: