1. 26 Mar, 2020 13 commits
  2. 25 Mar, 2020 1 commit
  3. 24 Mar, 2020 6 commits
  4. 23 Mar, 2020 7 commits
  5. 20 Mar, 2020 7 commits
  6. 18 Mar, 2020 6 commits
    • Mark Brown's avatar
      Merge series "ASoC: stm32: manage rebind issue" from Olivier Moysan <olivier.moysan@st.com>: · b4a56753
      Mark Brown authored
      This patchset corrects a rebind issue on STM32 SPDIFRX and I2S drivers.
      
      The same correction has already been applied for SAI driver:
      0d6defc7 ("ASoC: stm32: sai: manage rebind issue")
      
      The commit e894efef ("ASoC: core: add support to card rebind")
      allows to rebind the sound card after a rebind of one of its component.
      With this commit, the sound card is actually rebound,
      but may be no more functional.
      
      The following problems have been seen on STM32 drivers.
      
      1) DMA channel is not requested:
      
      With the sound card rebind the simplified call sequence is:
          probe
              snd_soc_register_component
                      snd_soc_try_rebind_card
                              snd_soc_instantiate_card
              devm_snd_dmaengine_pcm_register
      
      The problem occurs because the pcm must be registered,
      before snd_soc_instantiate_card() is called.
      
      Modify the driver, to change the call sequence as follows:
          probe
              devm_snd_dmaengine_pcm_register
              snd_soc_register_component
                      snd_soc_try_rebind_card
      
      2) DMA channel is not released:
      
      dma_release_channel() is not called when
      devm_dmaengine_pcm_release() is executed.
      This occurs because SND_DMAENGINE_PCM_DRV_NAME component,
      has already been released through devm_component_release().
      
      devm_dmaengine_pcm_release() should be called before
      devm_component_release() to avoid this problem.
      
      Call snd_dmaengine_pcm_unregister() and snd_soc_unregister_component()
      explicitly from the driver, to have the right sequence.
      
      Olivier Moysan (3):
        ASoC: stm32: spdifrx: fix regmap status check
        ASoC: stm32: spdifrx: manage rebind issue
        ASoC: stm32: i2s: manage rebind issue
      
       sound/soc/stm/stm32_i2s.c     | 40 ++++++++++++++++------
       sound/soc/stm/stm32_spdifrx.c | 64 +++++++++++++++++++----------------
       2 files changed, 63 insertions(+), 41 deletions(-)
      
      --
      2.17.1
      b4a56753
    • Mark Brown's avatar
      Merge series "ASoC: sdm845: fix soundwire stream handling" from Srinivas... · 8d34d091
      Mark Brown authored
      Merge series "ASoC: sdm845: fix soundwire stream handling" from Srinivas Kandagatla <srinivas.kandagatla@linaro.org>:
      
      Recent addition of SoundWire stream state-machine checks in linux-next
      have shown an existing issue with handling soundwire streams in codec drivers.
      
      In general soundwire stream prepare/enable/disable can be called from either
      codec/machine/controller driver. However calling it in codec driver means
      that if multiple instances(Left/Right speakers) of the same codec is
      connected to the same stream then it will endup calling stream
      prepare/enable/disable more than once. This will mess up the stream
      state-machine checks in the soundwire core.
      
      Moving this stream handling to machine driver would fix this issue
      and also allow board/platform specfic power sequencing.
      
      Changes since v1:
      	- removed false error check while setting sruntime.
      
      Srinivas Kandagatla (2):
        ASoC: qcom: sdm845: handle soundwire stream
        ASoC: codecs: wsa881x: remove soundwire stream handling
      
       sound/soc/codecs/wsa881x.c | 44 +------------------------
       sound/soc/qcom/Kconfig     |  2 +-
       sound/soc/qcom/sdm845.c    | 67 ++++++++++++++++++++++++++++++++++++++
       3 files changed, 69 insertions(+), 44 deletions(-)
      
      --
      2.21.0
      8d34d091
    • Shuming Fan's avatar
      ASoC: rt5682: remove noisy debug messages · 243de01d
      Shuming Fan authored
      Some debug messages are too noisy.
      This patch removes it.
      Signed-off-by: default avatarShuming Fan <shumingf@realtek.com>
      Link: https://lore.kernel.org/r/20200317073321.12660-1-shumingf@realtek.comSigned-off-by: default avatarMark Brown <broonie@kernel.org>
      243de01d
    • Srinivas Kandagatla's avatar
      ASoC: qcom: sdm845: handle soundwire stream · 1b93a884
      Srinivas Kandagatla authored
      In existing setup WSA881x codec handles soundwire stream,
      however DB845c and other machines based on SDM845c have 2
      instances for WSA881x codec. This will force soundwire stream
      to be prepared/enabled twice or multiple times.
      Handling SoundWire Stream in machine driver would fix this issue.
      Signed-off-by: default avatarSrinivas Kandagatla <srinivas.kandagatla@linaro.org>
      Reviewed-by: default avatarPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
      Link: https://lore.kernel.org/r/20200317151233.8763-2-srinivas.kandagatla@linaro.orgSigned-off-by: default avatarMark Brown <broonie@kernel.org>
      1b93a884
    • Srinivas Kandagatla's avatar
      ASoC: codecs: wsa881x: remove soundwire stream handling · 16252a8f
      Srinivas Kandagatla authored
      There could be multiple instances of this codec on any platform,
      so handling stream directly in this codec driver can lead to
      multiple calls to prepare/enable/disable on the same SoundWire stream.
      Move this stream handling to machine driver to fix this issue.
      Signed-off-by: default avatarSrinivas Kandagatla <srinivas.kandagatla@linaro.org>
      Link: https://lore.kernel.org/r/20200317151233.8763-3-srinivas.kandagatla@linaro.orgSigned-off-by: default avatarMark Brown <broonie@kernel.org>
      16252a8f
    • Olivier Moysan's avatar
      ASoC: stm32: i2s: manage rebind issue · caff4ce8
      Olivier Moysan authored
      The commit e894efef ("ASoC: core: add support to card rebind")
      allows to rebind the sound card after a rebind of one of its component.
      With this commit, the sound card is actually rebound,
      but may be no more functional.
      
      Corrections:
      - Call snd_dmaengine_pcm_register() before snd_soc_register_component().
      - Call snd_dmaengine_pcm_unregister() and snd_soc_unregister_component()
      explicitly from I2S driver.
      Signed-off-by: default avatarOlivier Moysan <olivier.moysan@st.com>
      Link: https://lore.kernel.org/r/20200318144125.9163-4-olivier.moysan@st.comSigned-off-by: default avatarMark Brown <broonie@kernel.org>
      caff4ce8