]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: hda: Gate ELD usage only by whether ELD is valid
authorStephen Warren <swarren@nvidia.com>
Wed, 1 Jun 2011 17:14:16 +0000 (11:14 -0600)
committerTakashi Iwai <tiwai@suse.de>
Mon, 6 Jun 2011 10:48:45 +0000 (12:48 +0200)
commita8998e250aa9bce3813ff281a3798235fd6b4853
tree1a348788a855175707e830dd68e2689db741f22e
parent3efe088d15865c5fe751148d0cd497d7bcd8d167
ALSA: hda: Gate ELD usage only by whether ELD is valid

It's perfectly valid for an ELD to contain no SADs. This simply means that
only basic audio is supoprted.

In this case, we still want to limit a PCM's capabilities based on the ELD.

History:

* Originally, ELD application was limited solely by sad_count>0, which
  was used to check that an ELD had been read.
* Later, eld_valid was added to the conditions to satisfy.

This change removes the original sad_count>0 check, which when squashed
with the above two changes ends up replacing if (sad_count) with
if (eld_valid).

Signed-off-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/patch_hdmi.c