]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
ALSA: hda - Assign unsol tags dynamically in patch_sigmatel.c
authorTakashi Iwai <tiwai@suse.de>
Tue, 25 Nov 2008 10:58:19 +0000 (11:58 +0100)
committerTakashi Iwai <tiwai@suse.de>
Tue, 25 Nov 2008 10:58:19 +0000 (11:58 +0100)
commitc6e4c66613c2bb040e53bb04006c277992cc8f4b
tree264d627e4e10ed8ea1ef2888ae38bed487eef33c
parent0e19e7d2bff0ec04fe4dc920c580d8a321afa07f
ALSA: hda - Assign unsol tags dynamically in patch_sigmatel.c

Since we need to handle many unsolicited events assigned to different
widgets, allocate the event dynamically using the existing events
array, and use the tag appropriately instead of combination of fixed
number and widget nid.  (Note that widget nid can be over 4 bits!)

Also, replaced the call of unsol_event handler with a dedicated
function to be more readable.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/patch_sigmatel.c