ALSA: HDA: Prevent delay in opening hdmi pcm
authorSumit Bhattacharya <sumitb@nvidia.com>
Wed, 8 Feb 2012 12:45:50 +0000 (17:45 +0530)
committerDan Willemsen <dwillemsen@nvidia.com>
Fri, 23 Mar 2012 23:07:21 +0000 (16:07 -0700)
commit9edeef15b102327c272b90944ec0c8f917abdd40
treeb83e84a13206d98fc7fa2a3e88241ef71292bc59
parentf91785d38741e47d90fb0b31da65dfef90349d2b
ALSA: HDA: Prevent delay in opening hdmi pcm

When monitor is plugged in instead of reading the complete ELD buffer
only read the relavant bytes required to update pcm info. Go through
the complete ELD buffer once LPCM sad ELD information is updated in
ELD structure. This is required to reduce the delay in getting a valid
PCM information which in turn delays opening of HDMI PCM stream.

Also if a valid LPCM SAD ELD information is not available when
hdmi_pcm_open is called then instead of looping inside hdmi_pcm_open
return error to unblock other operations. User space should retry to
open HDA PCM device after some time.

Bug 931930
Bug 913739
Bug 906076

Change-Id: Iaaef3f0e361ae406c92605b056bd4dff9c2b7856
Signed-off-by: Sumit Bhattacharya <sumitb@nvidia.com>
Reviewed-on: http://git-master/r/83143
Reviewed-by: Scott Peterson <speterson@nvidia.com>

Rebase-Id: Rd6426e5a92645033f7091d3aa02dfaecfec9f560
sound/pci/hda/hda_eld.c
sound/pci/hda/hda_local.h
sound/pci/hda/patch_hdmi.c