Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 81742
b: refs/heads/master
c: bd3d1c2
h: refs/heads/master
v: v3
  • Loading branch information
Takashi Iwai authored and Mercurial server committed Jan 31, 2008
1 parent ebad09f commit de505ed
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c94fa4c9168e51a8dab8e72cb9f0d89673fc8d8c
refs/heads/master: bd3d1c2096ff99311b8524273ba0f53502365136
15 changes: 9 additions & 6 deletions trunk/sound/pci/emu10k1/emu10k1_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -707,7 +707,8 @@ static int snd_emu1010_load_firmware(struct snd_emu10k1 * emu, const char * file
return 0;
}

int emu1010_firmware_thread(void *data) {
static int emu1010_firmware_thread(void *data)
{
struct snd_emu10k1 * emu = data;
int tmp,tmp2;
int reg;
Expand Down Expand Up @@ -1090,10 +1091,12 @@ static int snd_emu10k1_emu1010_init(struct snd_emu10k1 * emu)
snd_emu1010_fpga_write(emu, EMU_HANA_SPDIF_MODE, 0x10 ); /* SPDIF Format spdif (or 0x11 for aes/ebu) */

/* Start Micro/Audio Dock firmware loader thread */
emu->emu1010.firmware_thread = kthread_create(&emu1010_firmware_thread,
emu,
"emu1010_firmware");
wake_up_process(emu->emu1010.firmware_thread);
if (!emu->emu1010.firmware_thread) {
emu->emu1010.firmware_thread =
kthread_create(emu1010_firmware_thread, emu,
"emu1010_firmware");
wake_up_process(emu->emu1010.firmware_thread);
}

#if 0
snd_emu1010_fpga_link_dst_src_write(emu,
Expand Down Expand Up @@ -1257,7 +1260,7 @@ static int snd_emu10k1_free(struct snd_emu10k1 *emu)
/* Disable 48Volt power to Audio Dock */
snd_emu1010_fpga_write(emu, EMU_HANA_DOCK_PWR, 0 );
}
if (emu->card_capabilities->emu_model)
if (emu->emu1010.firmware_thread)
kthread_stop(emu->emu1010.firmware_thread);
if (emu->memhdr)
snd_util_memhdr_free(emu->memhdr);
Expand Down

0 comments on commit de505ed

Please sign in to comment.