1. 29 Mar, 2021 1 commit
    • YueHaibing's avatar
      ASoC: dwc: Fix -Wmissing-prototypes warnings · 0803a5cb
      YueHaibing authored
      while CONFIG_SND_DESIGNWARE_PCM is not set, building with W=1 shows this:
      
      sound/soc/dwc/local.h:127:6: warning: no previous prototype for ‘dw_pcm_push_tx’ [-Wmissing-prototypes]
       void dw_pcm_push_tx(struct dw_i2s_dev *dev) { }
            ^~~~~~~~~~~~~~
      sound/soc/dwc/local.h:128:6: warning: no previous prototype for ‘dw_pcm_pop_rx’ [-Wmissing-prototypes]
       void dw_pcm_pop_rx(struct dw_i2s_dev *dev) { }
            ^~~~~~~~~~~~~
      sound/soc/dwc/local.h:129:5: warning: no previous prototype for ‘dw_pcm_register’ [-Wmissing-prototypes]
       int dw_pcm_register(struct platform_device *pdev)
           ^~~~~~~~~~~~~~~
      
      Change these to inline functions to fix the warnings.
      Signed-off-by: default avatarYueHaibing <yuehaibing@huawei.com>
      Link: https://lore.kernel.org/r/20210329150524.18184-1-yuehaibing@huawei.comSigned-off-by: default avatarMark Brown <broonie@kernel.org>
      0803a5cb
  2. 25 Mar, 2021 17 commits
  3. 24 Mar, 2021 14 commits
  4. 23 Mar, 2021 2 commits
  5. 22 Mar, 2021 4 commits
  6. 19 Mar, 2021 2 commits
    • Mark Brown's avatar
      Merge series "ASoC: tidyup error message timing" from Kuninori Morimoto... · 3722e4ec
      Mark Brown authored
      Merge series "ASoC: tidyup error message timing" from Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>:
      
      Hi Mark
      
      Indicating error message when failed case is very useful for debuging.
      In many case, it uses below style.
      
      	int function(...)
      	{
      		...
      		return ret;
      	}
      
      	int caller(...)
      	{
      		...
      		ret = function(...);
      		if (ret < 0)
      			dev_err(...)
      		...
      	}
      
      This is not so bad, but in this style *each caller* needs to indicate
      duplicate same error message, and some caller is forgetting to do it.
      And caller can't indicate detail function() error information.
      
      I know many people have many opinion, but if function() indicates error
      message, we can get same and detail information without forgot, and it is better.
      This patch-set tidyup to do it.
      
      	int function(...)
      	{
      		...
      		if (ret < 0)
      			dev_err(...)
      
      		return ret;
      	}
      
      	int caller(...)
      	{
      		...
      		ret = function(...);
      		...
      	}
      
      Kuninori Morimoto (14):
        ASoC: soc-pcm: indicate error message at soc_pcm_open()
        ASoC: soc-pcm: indicate error message at soc_pcm_hw_params()
        ASoC: soc-pcm: indicate error message at soc_pcm_prepare()
        ASoC: soc-pcm: indicate error message at dpcm_path_get()
        ASoC: soc-pcm: indicate error message at dpcm_be_dai_trigger()
        ASoC: soc-pcm: indicate error message at dpcm_apply_symmetry()
        ASoC: soc-pcm: indicate error message at dpcm_run_update_startup/shutdown()
        ASoC: soc-pcm: indicate error message at dpcm_fe/be_dai_startup()
        ASoC: soc-pcm: indicate error message at dpcm_fe/be_dai_hw_params()
        ASoC: soc-pcm: indicate error message at dpcm_fe/be_dai_prepare()
        ASoC: soc-pcm: don't indicate error message for soc_pcm_hw_free()
        ASoC: soc-pcm: don't indicate error message for dpcm_be_dai_hw_free()
        ASoC: don't indicate error message for snd_soc_[pcm_]dai_xxx()
        ASoC: don't indicate error message for snd_soc_[pcm_]component_xxx()
      
       include/sound/soc-dpcm.h |   2 +-
       sound/soc/soc-compress.c |   9 +-
       sound/soc/soc-core.c     |  22 +----
       sound/soc/soc-dapm.c     |  24 ++---
       sound/soc/soc-pcm.c      | 197 +++++++++++++++++++--------------------
       5 files changed, 108 insertions(+), 146 deletions(-)
      
      --
      2.25.1
      3722e4ec
    • Wei Yongjun's avatar
      ASoC: rt1019: make symbol 'rt1019_i2c_driver' static · e6d8af66
      Wei Yongjun authored
      The sparse tool complains as follows:
      
      sound/soc/codecs/rt1019.c:927:19: warning:
       symbol 'rt1019_i2c_driver' was not declared. Should it be static?
      
      This symbol is not used outside of rt1019.c, so this
      commit marks it static.
      
      Fixes: 7ec79d38 ("ASoC: rt1019: add rt1019 amplifier driver")
      Reported-by: default avatarHulk Robot <hulkci@huawei.com>
      Signed-off-by: default avatarWei Yongjun <weiyongjun1@huawei.com>
      Link: https://lore.kernel.org/r/20210319094102.4185096-1-weiyongjun1@huawei.comSigned-off-by: default avatarMark Brown <broonie@kernel.org>
      e6d8af66