Skip to content

Merge/backport v5.0 intel audio v20190419 - #851

Merged
plbossart merged 7 commits into
thesofproject:topic/sof-devfrom
plbossart:merge/backport-v5.0-intel-audio-v20190419
Apr 22, 2019
Merged

Merge/backport v5.0 intel audio v20190419#851
plbossart merged 7 commits into
thesofproject:topic/sof-devfrom
plbossart:merge/backport-v5.0-intel-audio-v20190419

Conversation

@plbossart

Copy link
Copy Markdown
Member

This backport contains fixes from Libin for hdac_hdmi and BE hw params. I need 2 volunteers to test and approve.

Tzung-Bi Shih and others added 7 commits April 19, 2019 15:41
Fix wrong setting on number of channels.  The context wants to set
constraint to 2 channels instead of 4.

Signed-off-by: Tzung-Bi Shih <tzungbi@google.com>
Acked-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
(cherry picked from commit d6ba3f8)
Handle error before returning when try_module_get() fails
to prevent inconsistent mutex lock/unlock.

Fixes: 52034ad (ASoC: pcm: update module refcount if
		  module_get_upon_open is set)
Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
(cherry picked from commit 7080248)
snd_hdac_display_power() doesn't handle the concurrent calls carefully
enough, and it may lead to the doubly get_power or put_power calls,
when a runtime PM and an async work get called in racy way.

This patch addresses it by reusing the bus->lock mutex that has been
used for protecting the link state change in ext bus code, so that it
can protect against racy display state changes.  The initialization of
bus->lock was moved from snd_hdac_ext_bus_init() to
snd_hdac_bus_init() as well accordingly.

Testcase: igt/i915_pm_rpm/module-reload #glk-dsi
Reported-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Imre Deak <imre.deak@intel.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
(cherry picked from commit d7a181d)
Some drivers mandate setting up hw params after resuming from system sleep.
Since, the hw_params ioctl is not invoked upon resuming, the fixed-up BE
dai hw params should be saved so the driver can use it in its resume
sequence.

Signed-off-by: Libin Yang <libin.yang@intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
(cherry picked from commit ae061d2)
Fixes gcc '-Wunused-but-set-variable' warning:

sound/soc/intel/haswell/sst-haswell-ipc.c: In function 'hsw_stream_message':
sound/soc/intel/haswell/sst-haswell-ipc.c:669:29: warning: variable 'stage_type' set but not used [-Wunused-but-set-variable]

It is never used since introduction in
commit ba57f68 ("ASoC: Intel: create haswell folder and move haswell platform files in")

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Acked-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
(cherry picked from commit 4798797)
In resume from S3, HDAC HDMI codec driver dapm event callback may be
operated before HDMI codec driver turns on the display audio power
domain because of the contest between display driver and hdmi codec driver.

This patch adds the device_link between soc card device (consumer) and
hdmi codec device (supplier) to make sure the sequence is always correct.

Signed-off-by: Libin Yang <libin.yang@intel.com>
Reviewed-by: Takashi Iwai <tiwai@suse.de>
Acked-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Cc: stable@vger.kernel.org
(cherry picked from commit 01c8327)
…el-audio-v20190419

Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>

@xiulipan xiulipan left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.
The checkpatch is just some warning about length in the commit message. no need to wrap.

@plbossart

plbossart commented Apr 22, 2019

Copy link
Copy Markdown
Member Author

need 2 approvers -> this PR will be delayed until approved...

@xiulipan

Copy link
Copy Markdown

@ranj063
Please have a look about this simple PR.

@ranj063

ranj063 commented Apr 22, 2019

Copy link
Copy Markdown
Collaborator

@xiulipan @plbossart sorry for the delay. I will give this a go by afternoon today

@plbossart
plbossart merged commit c6913e4 into thesofproject:topic/sof-dev Apr 22, 2019
@libinyang

Copy link
Copy Markdown

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants