OSDN Git Service

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)
commit939507f2779836919271ba0311723d1001d3993b
tree7d2b13c773da19f7d43dbe9003c134766c73d904
parentec0574a6ce31f2d6640bb8a5edf98973356dd3b4
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