ALSA: HDA: Prevent delay in opening hdmi pcm
authorSumit Bhattacharya <sumitb@nvidia.com>
Wed, 8 Feb 2012 12:45:50 +0000 (17:45 +0530)
committerSimone Willett <swillett@nvidia.com>
Sat, 3 Mar 2012 01:39:23 +0000 (17:39 -0800)
commit1de7d65987afa175e552e300a2ef435bada02f08
treebb9778db486113f8ae66f90cd76180ea0893d67c
parent27fb4ae633b456346593c60e7dc77c4c85a625a7
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>
sound/pci/hda/hda_eld.c
sound/pci/hda/hda_local.h
sound/pci/hda/patch_hdmi.c