diff options
| author | Linus Torvalds <[email protected]> | 2021-02-21 14:21:35 -0800 | 
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2021-02-21 14:21:35 -0800 | 
| commit | 10e2ec8edece2566b40f69bae035a555ece71ab4 (patch) | |
| tree | 27eed009a4817948623bbc31a83911c5ace7a4b0 /sound/soc/sof/topology.c | |
| parent | de1617578849acab8e16c9ffdce39b91fb50639d (diff) | |
| parent | c4294d7f057d05053412ebd0d5700228d0f2588d (diff) | |
Merge tag 'sound-5.12-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound
Pull sound updates from Takashi Iwai:
 "A relatively calm release at this time, and no massive code changes
  are found in the stats, while a wide range of code refactoring and
  cleanup have been done.
  Note that this update includes the tree-wide trivial changes for
  dropping the return value from ISA remove callbacks, too.
  Below lists up some highlight:
  ALSA Core:
   - Support for the software jack injection via debugfs
   - Fixes for sync_stop PCM operations
  HD-audio and USB-audio:
   - A few usual HD-audio device quirks
   - Updates for Tegra HD-audio
   - More quirks for Pioneer and other USB-audio devices
   - Stricter state checks at USB-audio disconnection
  ASoC:
   - Continued code refactoring, cleanup and fixes in ASoC core API
   - A KUnit testsuite for the topology code
   - Lots of ASoC Intel driver Realtek codec updates, quirk additions
     and fixes
   - Support for Ingenic JZ4760(B), Intel AlderLake-P, DT configured
     nVidia cards, Qualcomm lpass-rx-macro and lpass-tx-macro
   - Removal of obsolete SIRF prima/atlas, Txx9 and ZTE zx drivers
  Others:
   - Drop return value from ISA driver remove callback
   - Cleanup with DIV_ROUND_UP() macro
   - FireWire updates, HDSP output loopback support"
* tag 'sound-5.12-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound: (322 commits)
  ALSA: hda: intel-dsp-config: add Alder Lake support
  ASoC: soc-pcm: fix hw param limits calculation for multi-DAI
  ASoC: Intel: bytcr_rt5640: Add quirk for the Acer One S1002 tablet
  ASoC: Intel: bytcr_rt5651: Add quirk for the Jumper EZpad 7 tablet
  ASoC: Intel: bytcr_rt5640: Add quirk for the Voyo Winpad A15 tablet
  ASoC: Intel: bytcr_rt5640: Add quirk for the Estar Beauty HD MID 7316R tablet
  ASoC: soc-pcm: fix hwparams min/max init for dpcm
  ALSA: hda/realtek: Quirk for HP Spectre x360 14 amp setup
  ALSA: usb-audio: Add implicit fb quirk for BOSS GP-10
  ALSA: hda: Add another CometLake-H PCI ID
  ASoC: soc-pcm: add soc_pcm_hw_update_format()
  ASoC: soc-pcm: add soc_pcm_hw_update_chan()
  ASoC: soc-pcm: add soc_pcm_hw_update_rate()
  ASoC: wm_adsp: Remove unused control callback structure
  ASoC: SOF: relax ABI checks and avoid unnecessary warnings
  ASoC: codecs: lpass-tx-macro: add dapm widgets and route
  ASoC: codecs: lpass-tx-macro: add support for lpass tx macro
  ASoC: qcom: dt-bindings: add bindings for lpass tx macro codec
  ASoC: codecs: lpass-rx-macro: add iir widgets
  ASoC: codecs: lpass-rx-macro: add dapm widgets and route
  ...
Diffstat (limited to 'sound/soc/sof/topology.c')
| -rw-r--r-- | sound/soc/sof/topology.c | 14 | 
1 files changed, 4 insertions, 10 deletions
| diff --git a/sound/soc/sof/topology.c b/sound/soc/sof/topology.c index b6b32a7a91f8..10f99620eb31 100644 --- a/sound/soc/sof/topology.c +++ b/sound/soc/sof/topology.c @@ -1073,7 +1073,7 @@ static int sof_control_load_volume(struct snd_soc_component *scomp,  	scontrol->cmd = SOF_CTRL_CMD_VOLUME;  	/* extract tlv data */ -	if (get_tlv_data(kc->tlv.p, tlv) < 0) { +	if (!kc->tlv.p || get_tlv_data(kc->tlv.p, tlv) < 0) {  		dev_err(scomp->dev, "error: invalid TLV data\n");  		ret = -EINVAL;  		goto out_free; @@ -1352,10 +1352,6 @@ static int sof_core_enable(struct snd_sof_dev *sdev, int core)  			core, ret);  		goto err;  	} - -	/* update enabled cores mask */ -	sdev->enabled_cores_mask |= BIT(core); -  	return ret;  err:  	/* power down core if it is host managed and return the original error if this fails too */ @@ -2603,10 +2599,6 @@ static int sof_widget_unload(struct snd_soc_component *scomp,  		if (ret < 0)  			dev_err(scomp->dev, "error: powering down pipeline schedule core %d\n",  				pipeline->core); - -		/* update enabled cores mask */ -		sdev->enabled_cores_mask &= ~(1 << pipeline->core); -  		break;  	default:  		break; @@ -3666,7 +3658,7 @@ static int sof_manifest(struct snd_soc_component *scomp, int index,  		return -EINVAL;  	} -	if (abi_version > SOF_ABI_VERSION) { +	if (SOF_ABI_VERSION_MINOR(abi_version) > SOF_ABI_MINOR) {  		if (!IS_ENABLED(CONFIG_SND_SOC_SOF_STRICT_ABI_CHECKS)) {  			dev_warn(scomp->dev, "warn: topology ABI is more recent than kernel\n");  		} else { @@ -3740,6 +3732,8 @@ int snd_sof_load_topology(struct snd_soc_component *scomp, const char *file)  	if (ret < 0) {  		dev_err(scomp->dev, "error: tplg request firmware %s failed err: %d\n",  			file, ret); +		dev_err(scomp->dev, +			"you may need to download the firmware from https://github.com/thesofproject/sof-bin/\n");  		return ret;  	} |