]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
ALSA: emu10k1: Simplify firmware loader code
authorTakashi Iwai <tiwai@suse.de>
Wed, 2 Nov 2016 17:13:06 +0000 (18:13 +0100)
committerTakashi Iwai <tiwai@suse.de>
Tue, 15 Nov 2016 07:20:43 +0000 (08:20 +0100)
commit4e4dfe4c3fb2888bd96eed629220bd2e7f105f60
treeb6cdfc8d5f2775c3ef06030c357c03804b6172f8
parente8c44abeab76cc3b1d79242612b9a2d82ab11b6b
ALSA: emu10k1: Simplify firmware loader code

The EMU1010 support in emu10k1 driver has two request_firmware()
calls, one for the main board and one for the dock.  Both call
patterns are fairly similar, and we can simplify it by introducing a
helper function and a table instead of the open switch/case.

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