]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: codec: hdac_hdmi: no checking monitor in hw_params
authorLibin Yang <libin.yang@intel.com>
Tue, 7 May 2019 06:33:11 +0000 (14:33 +0800)
committerMark Brown <broonie@kernel.org>
Wed, 8 May 2019 08:13:14 +0000 (17:13 +0900)
commit281b1d63c559a2c01fe8b6e3033974e512be1142
tree7d2b13c773da19f7d43dbe9003c134766c73d904
parentd02c6d756c2e492fe55c97c29d2d07690890d672
ASoC: codec: hdac_hdmi: no checking monitor in hw_params

Some userspace apps, like pulseaudio, may call open, hw_params,
prepare to judge whether the pcm is ready or not. Current hdac_hdmi
will return -ENODEV if monitor is not connected, which will cause
the apps believe the pcm is not ready. Actually PCM for hdmi is ready,
even the monitor is not connected.

This patch removes the check of monitor presence in hw_params, just like
what the legacy HD-Audio driver does.

Signed-off-by: Libin Yang <libin.yang@intel.com>
Acked-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/hdac_hdmi.c