Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 306287
b: refs/heads/master
c: c6c01f9
h: refs/heads/master
i:
  306285: 01dd031
  306283: c7113e8
  306279: c5c8ee0
  306271: 5e1735c
v: v3
  • Loading branch information
Sakari Ailus authored and Mauro Carvalho Chehab committed May 14, 2012
1 parent c6a814a commit 1d24c55
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 31 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: ccddd916dcde141a6fb5612da622a8ae060c12b8
refs/heads/master: c6c01f97b1733ba110993ec51600c06961e41bfe
14 changes: 0 additions & 14 deletions trunk/drivers/media/video/omap3isp/isp.c
Original file line number Diff line number Diff line change
Expand Up @@ -329,19 +329,6 @@ void omap3isp_configure_bridge(struct isp_device *isp,
isp_reg_writel(isp, ispctrl_val, OMAP3_ISP_IOMEM_MAIN, ISP_CTRL);
}

/**
* isp_set_pixel_clock - Configures the ISP pixel clock
* @isp: OMAP3 ISP device
* @pixelclk: Average pixel clock in Hz
*
* Set the average pixel clock required by the sensor. The ISP will use the
* lowest possible memory bandwidth settings compatible with the clock.
**/
static void isp_set_pixel_clock(struct isp_device *isp, unsigned int pixelclk)
{
isp->isp_ccdc.vpcfg.pixelclk = pixelclk;
}

void omap3isp_hist_dma_done(struct isp_device *isp)
{
if (omap3isp_ccdc_busy(&isp->isp_ccdc) ||
Expand Down Expand Up @@ -2077,7 +2064,6 @@ static int __devinit isp_probe(struct platform_device *pdev)

isp->autoidle = autoidle;
isp->platform_cb.set_xclk = isp_set_xclk;
isp->platform_cb.set_pixel_clock = isp_set_pixel_clock;

mutex_init(&isp->isp_mutex);
spin_lock_init(&isp->stat_lock);
Expand Down
1 change: 0 additions & 1 deletion trunk/drivers/media/video/omap3isp/isp.h
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,6 @@ struct isp_platform_callback {
int (*csiphy_config)(struct isp_csiphy *phy,
struct isp_csiphy_dphy_cfg *dphy,
struct isp_csiphy_lanes_cfg *lanes);
void (*set_pixel_clock)(struct isp_device *isp, unsigned int pixelclk);
};

/*
Expand Down
6 changes: 2 additions & 4 deletions trunk/drivers/media/video/omap3isp/ispccdc.c
Original file line number Diff line number Diff line change
Expand Up @@ -839,8 +839,8 @@ static void ccdc_config_vp(struct isp_ccdc_device *ccdc)

if (pipe->input)
div = DIV_ROUND_UP(l3_ick, pipe->max_rate);
else if (ccdc->vpcfg.pixelclk)
div = l3_ick / ccdc->vpcfg.pixelclk;
else if (pipe->external_rate)
div = l3_ick / pipe->external_rate;

div = clamp(div, 2U, max_div);
fmtcfg_vp |= (div - 2) << ISPCCDC_FMTCFG_VPIF_FRQ_SHIFT;
Expand Down Expand Up @@ -2433,8 +2433,6 @@ int omap3isp_ccdc_init(struct isp_device *isp)
ccdc->clamp.oblen = 0;
ccdc->clamp.dcsubval = 0;

ccdc->vpcfg.pixelclk = 0;

ccdc->update = OMAP3ISP_CCDC_BLCLAMP;
ccdc_apply_controls(ccdc);

Expand Down
10 changes: 0 additions & 10 deletions trunk/drivers/media/video/omap3isp/ispccdc.h
Original file line number Diff line number Diff line change
Expand Up @@ -80,14 +80,6 @@ struct ispccdc_syncif {
u8 bt_r656_en;
};

/*
* struct ispccdc_vp - Structure for Video Port parameters
* @pixelclk: Input pixel clock in Hz
*/
struct ispccdc_vp {
unsigned int pixelclk;
};

enum ispccdc_lsc_state {
LSC_STATE_STOPPED = 0,
LSC_STATE_STOPPING = 1,
Expand Down Expand Up @@ -162,7 +154,6 @@ struct ispccdc_lsc {
* @update: Bitmask of controls to update during the next interrupt
* @shadow_update: Controls update in progress by userspace
* @syncif: Interface synchronization configuration
* @vpcfg: Video port configuration
* @underrun: A buffer underrun occurred and a new buffer has been queued
* @state: Streaming state
* @lock: Serializes shadow_update with interrupt handler
Expand Down Expand Up @@ -192,7 +183,6 @@ struct isp_ccdc_device {
unsigned int shadow_update;

struct ispccdc_syncif syncif;
struct ispccdc_vp vpcfg;

unsigned int underrun:1;
enum isp_pipeline_stream_state state;
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/media/video/omap3isp/ispvideo.c
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ static int isp_video_validate_pipeline(struct isp_pipeline *pipe)
unsigned int rate = UINT_MAX;

omap3isp_ccdc_max_rate(&isp->isp_ccdc, &rate);
if (isp->isp_ccdc.vpcfg.pixelclk > rate)
if (pipe->external_rate > rate)
return -ENOSPC;
}

Expand Down

0 comments on commit 1d24c55

Please sign in to comment.