ALSA: HDA: Return -ENODEV if hdmi_pcm_open() fails
authorSumit Bhattacharya <sumitb@nvidia.com>
Thu, 22 Mar 2012 14:17:16 +0000 (19:17 +0530)
committerSimone Willett <swillett@nvidia.com>
Sat, 24 Mar 2012 00:29:37 +0000 (17:29 -0700)
commitaf4c1e1b0547c7dd23cc4e580adca0820dc77c21
treebb3b2b041a5889326581e6e20c465c39f250d44c
parent31f8d442a4fe1aa69261e6452b8b652aa637385c
ALSA: HDA: Return -ENODEV if hdmi_pcm_open() fails

Return -ENODEV instead of -EAGAIN if hdmi_pcm_open() fails. There is
a chance of user space getting hung while trying to open pcm device
if -EAGAIN is returned.

Bug 949659

Change-Id: If4ff4078d8e0d882859ac97742e7d48d2e6c230c
Signed-off-by: Sumit Bhattacharya <sumitb@nvidia.com>
Reviewed-on: http://git-master/r/91819
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Scott Peterson <speterson@nvidia.com>
Reviewed-by: Ravindra Lokhande <rlokhande@nvidia.com>
sound/pci/hda/patch_hdmi.c