]> 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)
commit8141f2e9e0ee14e6bdee589d6afb3f415dd22926
tree7d2b13c773da19f7d43dbe9003c134766c73d904
parentf466b7f4eabea42435ad784f1cab02d666665296
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