Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 366580
b: refs/heads/master
c: db242f6
h: refs/heads/master
v: v3
  • Loading branch information
Hans Verkuil authored and Mauro Carvalho Chehab committed Mar 19, 2013
1 parent 29b08ee commit 9f0cddc
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 13 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: 1de1951930d4450d1645a0a907b710f268af42c3
refs/heads/master: db242f62bd18f6c689c0e04f3df14be2deb89462
10 changes: 5 additions & 5 deletions trunk/drivers/media/platform/davinci/dm355_ccdc.c
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ static struct ccdc_oper_config {
.mfilt1 = CCDC_NO_MEDIAN_FILTER1,
.mfilt2 = CCDC_NO_MEDIAN_FILTER2,
.alaw = {
.gama_wd = 2,
.gamma_wd = 2,
},
.blk_clamp = {
.sample_pixel = 1,
Expand Down Expand Up @@ -303,8 +303,8 @@ static int validate_ccdc_param(struct ccdc_config_params_raw *ccdcparam)
}

if (ccdcparam->alaw.enable) {
if (ccdcparam->alaw.gama_wd < CCDC_GAMMA_BITS_13_4 ||
ccdcparam->alaw.gama_wd > CCDC_GAMMA_BITS_09_0) {
if (ccdcparam->alaw.gamma_wd < CCDC_GAMMA_BITS_13_4 ||
ccdcparam->alaw.gamma_wd > CCDC_GAMMA_BITS_09_0) {
dev_dbg(ccdc_cfg.dev, "Invalid value of ALAW\n");
return -EINVAL;
}
Expand Down Expand Up @@ -680,8 +680,8 @@ static int ccdc_config_raw(void)
/* Enable and configure aLaw register if needed */
if (config_params->alaw.enable) {
val |= (CCDC_ALAW_ENABLE |
((config_params->alaw.gama_wd &
CCDC_ALAW_GAMA_WD_MASK) <<
((config_params->alaw.gamma_wd &
CCDC_ALAW_GAMMA_WD_MASK) <<
CCDC_GAMMAWD_INPUT_SHIFT));
}

Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/media/platform/davinci/dm355_ccdc_regs.h
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@
#define CCDC_VDHDEN_ENABLE (1 << 16)
#define CCDC_LPF_ENABLE (1 << 14)
#define CCDC_ALAW_ENABLE 1
#define CCDC_ALAW_GAMA_WD_MASK 7
#define CCDC_ALAW_GAMMA_WD_MASK 7
#define CCDC_REC656IF_BT656_EN 3

#define CCDC_FMTCFG_FMTMODE_MASK 3
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/media/platform/davinci/isif.c
Original file line number Diff line number Diff line change
Expand Up @@ -604,7 +604,7 @@ static int isif_config_raw(void)
if (module_params->compress.alg == ISIF_ALAW)
val |= ISIF_ALAW_ENABLE;

val |= (params->data_msb << ISIF_ALAW_GAMA_WD_SHIFT);
val |= (params->data_msb << ISIF_ALAW_GAMMA_WD_SHIFT);
regw(val, CGAMMAWD);

/* Configure DPCM compression settings */
Expand Down
4 changes: 2 additions & 2 deletions trunk/drivers/media/platform/davinci/isif_regs.h
Original file line number Diff line number Diff line change
Expand Up @@ -203,8 +203,8 @@
#define ISIF_LPF_MASK 1

/* GAMMAWD registers */
#define ISIF_ALAW_GAMA_WD_MASK 0xF
#define ISIF_ALAW_GAMA_WD_SHIFT 1
#define ISIF_ALAW_GAMMA_WD_MASK 0xF
#define ISIF_ALAW_GAMMA_WD_SHIFT 1
#define ISIF_ALAW_ENABLE 1
#define ISIF_GAMMAWD_CFA_SHIFT 5

Expand Down
6 changes: 3 additions & 3 deletions trunk/include/media/davinci/dm355_ccdc.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ enum ccdc_sample_line {
CCDC_SAMPLE_16LINES
};

/* enum for Alaw gama width */
/* enum for Alaw gamma width */
enum ccdc_gamma_width {
CCDC_GAMMA_BITS_13_4,
CCDC_GAMMA_BITS_12_3,
Expand Down Expand Up @@ -97,8 +97,8 @@ enum ccdc_mfilt2 {
struct ccdc_a_law {
/* Enable/disable A-Law */
unsigned char enable;
/* Gama Width Input */
enum ccdc_gamma_width gama_wd;
/* Gamma Width Input */
enum ccdc_gamma_width gamma_wd;
};

/* structure for Black Clamping */
Expand Down

0 comments on commit 9f0cddc

Please sign in to comment.