1. 07 Sep, 2020 22 commits
  2. 04 Sep, 2020 6 commits
  3. 03 Sep, 2020 2 commits
  4. 01 Sep, 2020 4 commits
  5. 28 Aug, 2020 2 commits
  6. 27 Aug, 2020 4 commits
    • Mark Brown's avatar
      Merge series "SOF fixes and updates for FW boot" from Ranjani Sridharan... · 4b15c497
      Mark Brown authored
      Merge series "SOF fixes and updates for FW boot" from Ranjani Sridharan <ranjani.sridharan@linux.intel.com>:
      
      This series includes fixes and updates for the FW boot sequence for
      Intel platforms.
      
      Ranjani Sridharan (7):
        ALSA: hda: fix VS_LTRC register name
        ASoC: SOF: Intel: hda: Add helper function to program ICCMAX stream
        ASoC: SOF: Intel: hda: modify the signature of get_stream_with_tag()
        ASoC: SOF: Intel: hda: define macro for code loader stream format
        ASoC: SOF: Intel: hda: Define FW boot sequence with ICCMAX
        ASoC: SOF: Intel: hda: Add sof_tgl_ops for TGL platforms
        ASoC: SOF: Intel: hda: Simplify error handling during FW boot
      
      Yong Zhi (1):
        ASoC: SOF: Intel: hda: Remove unused parameters in cl_dsp_init()
      
       include/sound/hda_register.h     |   2 +-
       sound/soc/sof/intel/Makefile     |   2 +-
       sound/soc/sof/intel/cnl.c        |  23 +----
       sound/soc/sof/intel/hda-ipc.h    |   4 +
       sound/soc/sof/intel/hda-loader.c | 145 ++++++++++++++++++-------------
       sound/soc/sof/intel/hda-stream.c |  69 +++++++++++++++
       sound/soc/sof/intel/hda.h        |   6 ++
       sound/soc/sof/intel/tgl.c        | 137 +++++++++++++++++++++++++++++
       sound/soc/sof/sof-pci-dev.c      |   2 +-
       9 files changed, 306 insertions(+), 84 deletions(-)
       create mode 100644 sound/soc/sof/intel/tgl.c
      
      --
      2.25.1
      4b15c497
    • Kuninori Morimoto's avatar
      ASoC: soc-core: add snd_soc_find_dai_with_mutex() · c1c277b2
      Kuninori Morimoto authored
      commit 25612477 ("ASoC: soc-dai: set dai_link dpcm_ flags with a helper")
      added snd_soc_dai_link_set_capabilities().
      But it is using snd_soc_find_dai() (A) which is required client_mutex (B).
      And client_mutex is soc-core.c local.
      
      	struct snd_soc_dai *snd_soc_find_dai(xxx)
      	{
      		...
      (B)		lockdep_assert_held(&client_mutex);
      		...
      	}
      
      	void snd_soc_dai_link_set_capabilities(xxx)
      	{
      		...
      		for_each_pcm_streams(direction) {
      			...
      			for_each_link_cpus(dai_link, i, cpu) {
      (A)				dai = snd_soc_find_dai(cpu);
      				...
      			}
      			...
      			for_each_link_codecs(dai_link, i, codec) {
      (A)				dai = snd_soc_find_dai(codec);
      				...
      			}
      		}
      		...
      	}
      
      Because of these background, we will get WARNING if .config has CONFIG_LOCKDEP.
      
      	WARNING: CPU: 2 PID: 53 at sound/soc/soc-core.c:814 snd_soc_find_dai+0xf8/0x100
      	CPU: 2 PID: 53 Comm: kworker/2:1 Not tainted 5.7.0-rc1+ #328
      	Hardware name: Renesas H3ULCB Kingfisher board based on r8a77951 (DT)
      	Workqueue: events deferred_probe_work_func
      	pstate: 60000005 (nZCv daif -PAN -UAO)
      	pc : snd_soc_find_dai+0xf8/0x100
      	lr : snd_soc_find_dai+0xf4/0x100
      	...
      	Call trace:
      	 snd_soc_find_dai+0xf8/0x100
      	 snd_soc_dai_link_set_capabilities+0xa0/0x16c
      	 graph_dai_link_of_dpcm+0x390/0x3c0
      	 graph_for_each_link+0x134/0x200
      	 graph_probe+0x144/0x230
      	 platform_drv_probe+0x5c/0xb0
      	 really_probe+0xe4/0x430
      	 driver_probe_device+0x60/0xf4
      
      snd_soc_find_dai() will be used from (X) CPU/Codec/Platform driver with
      mutex lock, and (Y) Card driver without mutex lock.
      This snd_soc_dai_link_set_capabilities() is for Card driver,
      this means called without mutex.
      This patch adds snd_soc_find_dai_with_mutex() to solve it.
      
      Fixes: 25612477 ("ASoC: soc-dai: set dai_link dpcm_ flags with a helper")
      Signed-off-by: default avatarKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
      Link: https://lore.kernel.org/r/87blixvuab.wl-kuninori.morimoto.gx@renesas.comSigned-off-by: default avatarMark Brown <broonie@kernel.org>
      c1c277b2
    • Pavel Dobias's avatar
      ASoC: max9867: shutdown codec when changing filter type · a11ffbba
      Pavel Dobias authored
      Changing filter type without disabling codec results in filter
      malfunction. Disable codec when changing filter type.
      Signed-off-by: default avatarPavel Dobias <dobias@2n.cz>
      Link: https://lore.kernel.org/r/20200827102528.29677-1-dobias@2n.czSigned-off-by: default avatarMark Brown <broonie@kernel.org>
      a11ffbba
    • Akshu Agrawal's avatar
      ASoC: AMD: Clean kernel log from deferred probe error messages · f7660445
      Akshu Agrawal authored
      While the driver waits for DAIs to be probed and retries probing,
      have the error messages at debug level instead of error.
      Signed-off-by: default avatarAkshu Agrawal <akshu.agrawal@amd.com>
      Link: https://lore.kernel.org/r/20200826185454.5545-1-akshu.agrawal@amd.comSigned-off-by: default avatarMark Brown <broonie@kernel.org>
      f7660445