Re: [alsa-devel] [RFC PATCH 6/6] soundwire: qcom: add support for SoundWire controller

2019-06-15 Thread Srinivas Kandagatla
On 11/06/2019 13:21, Pierre-Louis Bossart wrote: On 6/11/19 5:29 AM, Srinivas Kandagatla wrote: On 10/06/2019 15:12, Pierre-Louis Bossart wrote: + +    if (dev_addr == SDW_BROADCAST_DEV_NUM) { +    ctrl->fifo_status = 0; +    ret = wait_for_completion_timeout(&ctrl->sp_cmd_comp,

Re: [alsa-devel] [RFC PATCH 6/6] soundwire: qcom: add support for SoundWire controller

2019-06-11 Thread Pierre-Louis Bossart
On 6/11/19 5:29 AM, Srinivas Kandagatla wrote: On 10/06/2019 15:12, Pierre-Louis Bossart wrote: + +    if (dev_addr == SDW_BROADCAST_DEV_NUM) { +    ctrl->fifo_status = 0; +    ret = wait_for_completion_timeout(&ctrl->sp_cmd_comp, +  msecs_to_jiffies(TIMEOUT_

Re: [alsa-devel] [RFC PATCH 6/6] soundwire: qcom: add support for SoundWire controller

2019-06-11 Thread Srinivas Kandagatla
On 10/06/2019 15:12, Pierre-Louis Bossart wrote: + +    if (dev_addr == SDW_BROADCAST_DEV_NUM) { +    ctrl->fifo_status = 0; +    ret = wait_for_completion_timeout(&ctrl->sp_cmd_comp, +  msecs_to_jiffies(TIMEOUT_MS)); This is odd. The SoundWire spec does not h

Re: [alsa-devel] [RFC PATCH 6/6] soundwire: qcom: add support for SoundWire controller

2019-06-10 Thread Pierre-Louis Bossart
+#define SWRM_COMP_HW_VERSION    0x00 Can we please use SDW_ or QCOM_SDW_ as prefix? SWRM prefix is as per the data sheet register names, If it help am happy to add QCOM_ prefix it. That'd be fine. As long as there is no duplication and two terms/prefixes used for the s

Re: [RFC PATCH 6/6] soundwire: qcom: add support for SoundWire controller

2019-06-10 Thread Srinivas Kandagatla
Thanks for taking time to review! On 10/06/2019 07:40, Vinod Koul wrote: On 07-06-19, 09:56, Srinivas Kandagatla wrote: Qualcomm SoundWire Master controller is present in most Qualcomm SoCs either integrated as part of WCD audio codecs via slimbus or as part of SOC I/O. This patchset adds sup

Re: [RFC PATCH 6/6] soundwire: qcom: add support for SoundWire controller

2019-06-09 Thread Vinod Koul
On 07-06-19, 09:56, Srinivas Kandagatla wrote: > Qualcomm SoundWire Master controller is present in most Qualcomm SoCs > either integrated as part of WCD audio codecs via slimbus or > as part of SOC I/O. > > This patchset adds support to a very basic controller which has been > tested with WCD934x

Re: [alsa-devel] [RFC PATCH 6/6] soundwire: qcom: add support for SoundWire controller

2019-06-09 Thread Srinivas Kandagatla
Thanks for taking time to review, On 07/06/2019 14:36, Pierre-Louis Bossart wrote: +config SOUNDWIRE_QCOM +    tristate "Qualcomm SoundWire Master driver" +    select SOUNDWIRE_BUS +    depends on SND_SOC depends on SLIMBUS if you need the SlimBus link to talk to your SoundWire Master? Al

Re: [RFC PATCH 6/6] soundwire: qcom: add support for SoundWire controller

2019-06-09 Thread Srinivas Kandagatla
Thanks for taking time to review, I agre with most of the comments specially handling returns and making code more readable. Will fix them in next version. On 08/06/2019 22:53, Cezary Rojewski wrote: On 2019-06-07 10:56, Srinivas Kandagatla wrote: Qualcomm SoundWire Master controller is prese

Re: [RFC PATCH 6/6] soundwire: qcom: add support for SoundWire controller

2019-06-08 Thread Cezary Rojewski
On 2019-06-07 10:56, Srinivas Kandagatla wrote: Qualcomm SoundWire Master controller is present in most Qualcomm SoCs either integrated as part of WCD audio codecs via slimbus or as part of SOC I/O. This patchset adds support to a very basic controller which has been tested with WCD934x SoundWir

Re: [alsa-devel] [RFC PATCH 6/6] soundwire: qcom: add support for SoundWire controller

2019-06-07 Thread Pierre-Louis Bossart
+config SOUNDWIRE_QCOM + tristate "Qualcomm SoundWire Master driver" + select SOUNDWIRE_BUS + depends on SND_SOC depends on SLIMBUS if you need the SlimBus link to talk to your SoundWire Master? Also depends on device tree since you use of_ functions? +#define SWRM_COMP

[RFC PATCH 6/6] soundwire: qcom: add support for SoundWire controller

2019-06-07 Thread Srinivas Kandagatla
Qualcomm SoundWire Master controller is present in most Qualcomm SoCs either integrated as part of WCD audio codecs via slimbus or as part of SOC I/O. This patchset adds support to a very basic controller which has been tested with WCD934x SoundWire controller connected to WSA881x smart speaker am