ALSA: hda - hdmi: Protect ELD buffer
authorDavid Henningsson <david.henningsson@canonical.com>
Tue, 19 Feb 2013 15:11:25 +0000 (16:11 +0100)
committerTakashi Iwai <tiwai@suse.de>
Tue, 19 Feb 2013 17:28:30 +0000 (18:28 +0100)
Because the eld buffer can be simultaneously accessed from both
workqueue context (updating) and process context (kcontrol read),
we need to protect it with a mutex to guarantee consistency.

To avoid holding the mutex while reading the ELD info from the
codec, we introduce a temporary eld buffer.

Signed-off-by: David Henningsson <david.henningsson@canonical.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>

No differences found