ASoC: Intel: Skylake: Fix to fail safely if module not available in path
Subsystems (3)
PATCH 1/1 ASoC: Intel: Skylake: Fix to fail safely if module not available in path
From: G Kranthi <[email protected]>
If a module is not available in a pipeline, fail safely rather than causing oops.
--- sound/soc/intel/skylake/skl-pcm.c | 3 +++ 1 file changed, 3 insertions(+)
sound/soc/intel/skylake/skl-pcm.c +3 -0
@@ -254,6 +254,9 @@ static int skl_pcm_open(struct snd_pcm_substream *substream,snd_pcm_set_sync (substream); mconfig =skl_tplg_fe_get_cpr_module (dai, substream->stream); +if (!mconfig) +return -EINVAL ; +skl_tplg_d0i3_get (skl, mconfig->d0i3_caps);return 0 ;
Signature · 1 line
1.9.1
Mark Brown
maintainerApplied "ASoC: Intel: Skylake: Fix to fail safely if module not available in path" to the asoc tree
The patch
ASoC: Intel: Skylake: Fix to fail safely if module not available in path
has been applied to the asoc tree at
git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git
All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying to this mail.
Thanks,
Mark
Quoted 1 line
From
91ce54978ccece323aa6df930249ff84a7d233c7Mon Sep 17 00:00:00 2001
From: G Kranthi <[email protected]>
Date: Tue, 20 Dec 2016 12:46:45 +0530
Subject: [PATCH] ASoC: Intel: Skylake: Fix to fail safely if module not
available in path
If a module is not available in a pipeline, fail safely rather than causing oops.
--- sound/soc/intel/skylake/skl-pcm.c | 3 +++ 1 file changed, 3 insertions(+)
sound/soc/intel/skylake/skl-pcm.c +3 -0
@@ -180,6 +180,9 @@ static int skl_pcm_open(struct snd_pcm_substream *substream,snd_pcm_set_sync (substream); mconfig =skl_tplg_fe_get_cpr_module (dai, substream->stream); +if (!mconfig) +return -EINVAL ; +skl_tplg_d0i3_get (skl, mconfig->d0i3_caps);return 0 ;
Signature · 1 line
2.11.0