]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: HDMI - fix ELD monitor name length
authorWu Fengguang <fengguang.wu@intel.com>
Wed, 29 Jun 2011 06:26:07 +0000 (14:26 +0800)
committerTakashi Iwai <tiwai@suse.de>
Wed, 29 Jun 2011 06:48:24 +0000 (08:48 +0200)
commitcd5aa443ae7f1995dcdd8772e561d262f1169796
tree156ae197e1696ea311926d64c8b30e8f371a5b03
parent09703b6915e4b43715eb01eaa84446960a8f2f63
ALSA: HDMI - fix ELD monitor name length

I noticed that the last character of the ELD monitor name is lost,
this fixes the issue.

This fix should be confirming to the HDA spec, and works together with
the DRM part of the ELD patch.

The HDA spec does not mention that Monitor_Name_String is an '\0'
ending string, and it allows NML to be 1, which is only valid when MNL
does not count the possible ending '\0'.

Signed-off-by: Wu Fengguang <fengguang.wu@intel.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/hda_eld.c