diff options
-rw-r--r-- | drivers/media/video/cx18/cx18-av-firmware.c | 2 | ||||
-rw-r--r-- | drivers/media/video/cx18/cx18-driver.c | 1 | ||||
-rw-r--r-- | drivers/media/video/cx18/cx18-dvb.c | 6 | ||||
-rw-r--r-- | drivers/media/video/cx18/cx18-firmware.c | 10 |
4 files changed, 16 insertions, 3 deletions
diff --git a/drivers/media/video/cx18/cx18-av-firmware.c b/drivers/media/video/cx18/cx18-av-firmware.c index 280aa4d22488..a34fd082b76e 100644 --- a/drivers/media/video/cx18/cx18-av-firmware.c +++ b/drivers/media/video/cx18/cx18-av-firmware.c | |||
@@ -221,3 +221,5 @@ int cx18_av_loadfw(struct cx18 *cx) | |||
221 | release_firmware(fw); | 221 | release_firmware(fw); |
222 | return 0; | 222 | return 0; |
223 | } | 223 | } |
224 | |||
225 | MODULE_FIRMWARE(FWFILE); | ||
diff --git a/drivers/media/video/cx18/cx18-driver.c b/drivers/media/video/cx18/cx18-driver.c index 7e5ffd6f5178..c67733d32c8a 100644 --- a/drivers/media/video/cx18/cx18-driver.c +++ b/drivers/media/video/cx18/cx18-driver.c | |||
@@ -1357,3 +1357,4 @@ static void __exit module_cleanup(void) | |||
1357 | 1357 | ||
1358 | module_init(module_start); | 1358 | module_init(module_start); |
1359 | module_exit(module_cleanup); | 1359 | module_exit(module_cleanup); |
1360 | MODULE_FIRMWARE(XC2028_DEFAULT_FIRMWARE); | ||
diff --git a/drivers/media/video/cx18/cx18-dvb.c b/drivers/media/video/cx18/cx18-dvb.c index f41922bd4020..3eac59c51231 100644 --- a/drivers/media/video/cx18/cx18-dvb.c +++ b/drivers/media/video/cx18/cx18-dvb.c | |||
@@ -40,6 +40,8 @@ | |||
40 | 40 | ||
41 | DVB_DEFINE_MOD_OPT_ADAPTER_NR(adapter_nr); | 41 | DVB_DEFINE_MOD_OPT_ADAPTER_NR(adapter_nr); |
42 | 42 | ||
43 | #define FWFILE "dvb-cx18-mpc718-mt352.fw" | ||
44 | |||
43 | #define CX18_REG_DMUX_NUM_PORT_0_CONTROL 0xd5a000 | 45 | #define CX18_REG_DMUX_NUM_PORT_0_CONTROL 0xd5a000 |
44 | #define CX18_CLOCK_ENABLE2 0xc71024 | 46 | #define CX18_CLOCK_ENABLE2 0xc71024 |
45 | #define CX18_DMUX_CLK_MASK 0x0080 | 47 | #define CX18_DMUX_CLK_MASK 0x0080 |
@@ -135,7 +137,7 @@ static int yuan_mpc718_mt352_reqfw(struct cx18_stream *stream, | |||
135 | const struct firmware **fw) | 137 | const struct firmware **fw) |
136 | { | 138 | { |
137 | struct cx18 *cx = stream->cx; | 139 | struct cx18 *cx = stream->cx; |
138 | const char *fn = "dvb-cx18-mpc718-mt352.fw"; | 140 | const char *fn = FWFILE; |
139 | int ret; | 141 | int ret; |
140 | 142 | ||
141 | ret = request_firmware(fw, fn, &cx->pci_dev->dev); | 143 | ret = request_firmware(fw, fn, &cx->pci_dev->dev); |
@@ -603,3 +605,5 @@ static int dvb_register(struct cx18_stream *stream) | |||
603 | 605 | ||
604 | return ret; | 606 | return ret; |
605 | } | 607 | } |
608 | |||
609 | MODULE_FIRMWARE(FWFILE); | ||
diff --git a/drivers/media/video/cx18/cx18-firmware.c b/drivers/media/video/cx18/cx18-firmware.c index b85c292a849a..a1c1cec05f98 100644 --- a/drivers/media/video/cx18/cx18-firmware.c +++ b/drivers/media/video/cx18/cx18-firmware.c | |||
@@ -376,6 +376,9 @@ void cx18_init_memory(struct cx18 *cx) | |||
376 | cx18_write_reg(cx, 0x00000101, CX18_WMB_CLIENT14); /* AVO */ | 376 | cx18_write_reg(cx, 0x00000101, CX18_WMB_CLIENT14); /* AVO */ |
377 | } | 377 | } |
378 | 378 | ||
379 | #define CX18_CPU_FIRMWARE "v4l-cx23418-cpu.fw" | ||
380 | #define CX18_APU_FIRMWARE "v4l-cx23418-apu.fw" | ||
381 | |||
379 | int cx18_firmware_init(struct cx18 *cx) | 382 | int cx18_firmware_init(struct cx18 *cx) |
380 | { | 383 | { |
381 | u32 fw_entry_addr; | 384 | u32 fw_entry_addr; |
@@ -400,7 +403,7 @@ int cx18_firmware_init(struct cx18 *cx) | |||
400 | cx18_sw1_irq_enable(cx, IRQ_CPU_TO_EPU | IRQ_APU_TO_EPU); | 403 | cx18_sw1_irq_enable(cx, IRQ_CPU_TO_EPU | IRQ_APU_TO_EPU); |
401 | cx18_sw2_irq_enable(cx, IRQ_CPU_TO_EPU_ACK | IRQ_APU_TO_EPU_ACK); | 404 | cx18_sw2_irq_enable(cx, IRQ_CPU_TO_EPU_ACK | IRQ_APU_TO_EPU_ACK); |
402 | 405 | ||
403 | sz = load_cpu_fw_direct("v4l-cx23418-cpu.fw", cx->enc_mem, cx); | 406 | sz = load_cpu_fw_direct(CX18_CPU_FIRMWARE, cx->enc_mem, cx); |
404 | if (sz <= 0) | 407 | if (sz <= 0) |
405 | return sz; | 408 | return sz; |
406 | 409 | ||
@@ -408,7 +411,7 @@ int cx18_firmware_init(struct cx18 *cx) | |||
408 | cx18_init_scb(cx); | 411 | cx18_init_scb(cx); |
409 | 412 | ||
410 | fw_entry_addr = 0; | 413 | fw_entry_addr = 0; |
411 | sz = load_apu_fw_direct("v4l-cx23418-apu.fw", cx->enc_mem, cx, | 414 | sz = load_apu_fw_direct(CX18_APU_FIRMWARE, cx->enc_mem, cx, |
412 | &fw_entry_addr); | 415 | &fw_entry_addr); |
413 | if (sz <= 0) | 416 | if (sz <= 0) |
414 | return sz; | 417 | return sz; |
@@ -451,3 +454,6 @@ int cx18_firmware_init(struct cx18 *cx) | |||
451 | cx18_write_reg_expect(cx, 0x14001400, 0xc78110, 0x00001400, 0x14001400); | 454 | cx18_write_reg_expect(cx, 0x14001400, 0xc78110, 0x00001400, 0x14001400); |
452 | return 0; | 455 | return 0; |
453 | } | 456 | } |
457 | |||
458 | MODULE_FIRMWARE(CX18_CPU_FIRMWARE); | ||
459 | MODULE_FIRMWARE(CX18_APU_FIRMWARE); | ||