diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2012-12-13 22:22:22 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-12-13 22:22:22 -0500 |
commit | d8c532c40721f7507896d202b8cae3b3642d2b0d (patch) | |
tree | 42b1ce76671eb85324281ed93491432f4523f983 /drivers/media/dvb-frontends/drxk_hard.c | |
parent | e777d192ffb9f2929d547a2f8a5f65b7db7a9552 (diff) | |
parent | 77c53d0b56264a8fc5844e087ad15fffe20c299d (diff) |
Merge branch 'v4l_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media
Pull media updates from Mauro Carvalho Chehab:
- Missing MAINTAINERS entries were added for several drivers
- Adds V4L2 support for DMABUF handling, allowing zero-copy buffer
sharing between V4L2 devices and GPU
- Got rid of all warnings when compiling with W=1 on x86
- Add a new driver for Exynos hardware (s3c-camif)
- Several bug fixes, cleanups and driver improvements
* 'v4l_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media: (243 commits)
[media] omap3isp: Replace cpu_is_omap3630() with ISP revision check
[media] omap3isp: Prepare/unprepare clocks before/after enable/disable
[media] omap3isp: preview: Add support for 8-bit formats at the sink pad
[media] omap3isp: Replace printk with dev_*
[media] omap3isp: Find source pad from external entity
[media] omap3isp: Configure CSI-2 phy based on platform data
[media] omap3isp: Add PHY routing configuration
[media] omap3isp: Add CSI configuration registers from control block to ISP resources
[media] omap3isp: Remove unneeded module memory address definitions
[media] omap3isp: Use monotonic timestamps for statistics buffers
[media] uvcvideo: Fix control value clamping for unsigned integer controls
[media] uvcvideo: Mark first output terminal as default video node
[media] uvcvideo: Add VIDIOC_[GS]_PRIORITY support
[media] uvcvideo: Return -ENOTTY for unsupported ioctls
[media] uvcvideo: Set device_caps in VIDIOC_QUERYCAP
[media] uvcvideo: Don't fail when an unsupported format is requested
[media] uvcvideo: Return -EACCES when trying to access a read/write-only control
[media] uvcvideo: Set error_idx properly for extended controls API failures
[media] rtl28xxu: add NOXON DAB/DAB+ USB dongle rev 2
[media] fc2580: write some registers conditionally
...
Diffstat (limited to 'drivers/media/dvb-frontends/drxk_hard.c')
-rw-r--r-- | drivers/media/dvb-frontends/drxk_hard.c | 24 |
1 files changed, 5 insertions, 19 deletions
diff --git a/drivers/media/dvb-frontends/drxk_hard.c b/drivers/media/dvb-frontends/drxk_hard.c index df9abe83f877..c2fc7da0d6bf 100644 --- a/drivers/media/dvb-frontends/drxk_hard.c +++ b/drivers/media/dvb-frontends/drxk_hard.c | |||
@@ -65,16 +65,6 @@ static bool IsQAM(struct drxk_state *state) | |||
65 | state->m_OperationMode == OM_QAM_ITU_C; | 65 | state->m_OperationMode == OM_QAM_ITU_C; |
66 | } | 66 | } |
67 | 67 | ||
68 | bool IsA1WithPatchCode(struct drxk_state *state) | ||
69 | { | ||
70 | return state->m_DRXK_A1_PATCH_CODE; | ||
71 | } | ||
72 | |||
73 | bool IsA1WithRomCode(struct drxk_state *state) | ||
74 | { | ||
75 | return state->m_DRXK_A1_ROM_CODE; | ||
76 | } | ||
77 | |||
78 | #define NOA1ROM 0 | 68 | #define NOA1ROM 0 |
79 | 69 | ||
80 | #define DRXDAP_FASI_SHORT_FORMAT(addr) (((addr) & 0xFC30FF80) == 0) | 70 | #define DRXDAP_FASI_SHORT_FORMAT(addr) (((addr) & 0xFC30FF80) == 0) |
@@ -189,7 +179,7 @@ static inline u32 MulDiv32(u32 a, u32 b, u32 c) | |||
189 | return (u32) tmp64; | 179 | return (u32) tmp64; |
190 | } | 180 | } |
191 | 181 | ||
192 | inline u32 Frac28a(u32 a, u32 c) | 182 | static inline u32 Frac28a(u32 a, u32 c) |
193 | { | 183 | { |
194 | int i = 0; | 184 | int i = 0; |
195 | u32 Q1 = 0; | 185 | u32 Q1 = 0; |
@@ -587,7 +577,7 @@ static int write_block(struct drxk_state *state, u32 Address, | |||
587 | #define DRXK_MAX_RETRIES_POWERUP 20 | 577 | #define DRXK_MAX_RETRIES_POWERUP 20 |
588 | #endif | 578 | #endif |
589 | 579 | ||
590 | int PowerUpDevice(struct drxk_state *state) | 580 | static int PowerUpDevice(struct drxk_state *state) |
591 | { | 581 | { |
592 | int status; | 582 | int status; |
593 | u8 data = 0; | 583 | u8 data = 0; |
@@ -720,11 +710,6 @@ static int init_state(struct drxk_state *state) | |||
720 | 710 | ||
721 | state->m_bPowerDown = (ulPowerDown != 0); | 711 | state->m_bPowerDown = (ulPowerDown != 0); |
722 | 712 | ||
723 | state->m_DRXK_A1_PATCH_CODE = false; | ||
724 | state->m_DRXK_A1_ROM_CODE = false; | ||
725 | state->m_DRXK_A2_ROM_CODE = false; | ||
726 | state->m_DRXK_A3_ROM_CODE = false; | ||
727 | state->m_DRXK_A2_PATCH_CODE = false; | ||
728 | state->m_DRXK_A3_PATCH_CODE = false; | 713 | state->m_DRXK_A3_PATCH_CODE = false; |
729 | 714 | ||
730 | /* Init AGC and PGA parameters */ | 715 | /* Init AGC and PGA parameters */ |
@@ -921,7 +906,7 @@ static int GetDeviceCapabilities(struct drxk_state *state) | |||
921 | status = write16(state, SCU_RAM_GPIO__A, SCU_RAM_GPIO_HW_LOCK_IND_DISABLE); | 906 | status = write16(state, SCU_RAM_GPIO__A, SCU_RAM_GPIO_HW_LOCK_IND_DISABLE); |
922 | if (status < 0) | 907 | if (status < 0) |
923 | goto error; | 908 | goto error; |
924 | status = write16(state, SIO_TOP_COMM_KEY__A, 0xFABA); | 909 | status = write16(state, SIO_TOP_COMM_KEY__A, SIO_TOP_COMM_KEY_KEY); |
925 | if (status < 0) | 910 | if (status < 0) |
926 | goto error; | 911 | goto error; |
927 | status = read16(state, SIO_PDR_OHW_CFG__A, &sioPdrOhwCfg); | 912 | status = read16(state, SIO_PDR_OHW_CFG__A, &sioPdrOhwCfg); |
@@ -1217,7 +1202,7 @@ static int MPEGTSConfigurePins(struct drxk_state *state, bool mpegEnable) | |||
1217 | goto error; | 1202 | goto error; |
1218 | 1203 | ||
1219 | /* MPEG TS pad configuration */ | 1204 | /* MPEG TS pad configuration */ |
1220 | status = write16(state, SIO_TOP_COMM_KEY__A, 0xFABA); | 1205 | status = write16(state, SIO_TOP_COMM_KEY__A, SIO_TOP_COMM_KEY_KEY); |
1221 | if (status < 0) | 1206 | if (status < 0) |
1222 | goto error; | 1207 | goto error; |
1223 | 1208 | ||
@@ -5461,6 +5446,7 @@ static int QAMDemodulatorCommand(struct drxk_state *state, | |||
5461 | } else { | 5446 | } else { |
5462 | printk(KERN_WARNING "drxk: Unknown QAM demodulator parameter " | 5447 | printk(KERN_WARNING "drxk: Unknown QAM demodulator parameter " |
5463 | "count %d\n", numberOfParameters); | 5448 | "count %d\n", numberOfParameters); |
5449 | status = -EINVAL; | ||
5464 | } | 5450 | } |
5465 | 5451 | ||
5466 | error: | 5452 | error: |