Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 366729
b: refs/heads/master
c: ced9b21
h: refs/heads/master
i:
  366727: c57e36d
v: v3
  • Loading branch information
Lad, Prabhakar authored and Mauro Carvalho Chehab committed Mar 23, 2013
1 parent 70fe5ec commit c77bdca
Show file tree
Hide file tree
Showing 5 changed files with 11 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: 1c3fc152b8ebadd59814767e3189c961b73f20c8
refs/heads/master: ced9b21ff626b6e6a23c06520ecb943f8d6ffa01
10 changes: 7 additions & 3 deletions trunk/drivers/media/platform/davinci/vpif.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,15 @@ static struct resource *res;
spinlock_t vpif_lock;

void __iomem *vpif_base;
EXPORT_SYMBOL_GPL(vpif_base);

struct clk *vpif_clk;

/**
* ch_params: video standard configuration parameters for vpif
* vpif_ch_params: video standard configuration parameters for vpif
* The table must include all presets from supported subdevices.
*/
const struct vpif_channel_config_params ch_params[] = {
const struct vpif_channel_config_params vpif_ch_params[] = {
/* HDTV formats */
{
.name = "480p59_94",
Expand Down Expand Up @@ -220,8 +222,10 @@ const struct vpif_channel_config_params ch_params[] = {
.stdid = V4L2_STD_625_50,
},
};
EXPORT_SYMBOL_GPL(vpif_ch_params);

const unsigned int vpif_ch_params_count = ARRAY_SIZE(ch_params);
const unsigned int vpif_ch_params_count = ARRAY_SIZE(vpif_ch_params);
EXPORT_SYMBOL_GPL(vpif_ch_params_count);

static inline void vpif_wr_bit(u32 reg, u32 bit, u32 val)
{
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/media/platform/davinci/vpif.h
Original file line number Diff line number Diff line change
Expand Up @@ -638,7 +638,7 @@ struct vpif_channel_config_params {
};

extern const unsigned int vpif_ch_params_count;
extern const struct vpif_channel_config_params ch_params[];
extern const struct vpif_channel_config_params vpif_ch_params[];

struct vpif_video_params;
struct vpif_params;
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/media/platform/davinci/vpif_capture.c
Original file line number Diff line number Diff line change
Expand Up @@ -563,7 +563,7 @@ static int vpif_update_std_info(struct channel_obj *ch)
vpif_dbg(2, debug, "vpif_update_std_info\n");

for (index = 0; index < vpif_ch_params_count; index++) {
config = &ch_params[index];
config = &vpif_ch_params[index];
if (config->hd_sd == 0) {
vpif_dbg(2, debug, "SD format\n");
if (config->stdid & vid_ch->stdid) {
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/media/platform/davinci/vpif_display.c
Original file line number Diff line number Diff line change
Expand Up @@ -511,7 +511,7 @@ static int vpif_update_std_info(struct channel_obj *ch)
int i;

for (i = 0; i < vpif_ch_params_count; i++) {
config = &ch_params[i];
config = &vpif_ch_params[i];
if (config->hd_sd == 0) {
vpif_dbg(2, debug, "SD format\n");
if (config->stdid & vid_ch->stdid) {
Expand Down

0 comments on commit c77bdca

Please sign in to comment.