1cb7a01acSMauro Carvalho Chehab /* 2cb7a01acSMauro Carvalho Chehab * Driver for AK8813 / AK8814 TV-ecoders from Asahi Kasei Microsystems Co., Ltd. (AKM) 3cb7a01acSMauro Carvalho Chehab * 4cb7a01acSMauro Carvalho Chehab * Copyright (C) 2010, Guennadi Liakhovetski <g.liakhovetski@gmx.de> 5cb7a01acSMauro Carvalho Chehab * 6cb7a01acSMauro Carvalho Chehab * This program is free software; you can redistribute it and/or modify 7cb7a01acSMauro Carvalho Chehab * it under the terms of the GNU General Public License version 2 as 8cb7a01acSMauro Carvalho Chehab * published by the Free Software Foundation. 9cb7a01acSMauro Carvalho Chehab */ 10cb7a01acSMauro Carvalho Chehab 11cb7a01acSMauro Carvalho Chehab #include <linux/i2c.h> 12cb7a01acSMauro Carvalho Chehab #include <linux/init.h> 13cb7a01acSMauro Carvalho Chehab #include <linux/platform_device.h> 14cb7a01acSMauro Carvalho Chehab #include <linux/slab.h> 15cb7a01acSMauro Carvalho Chehab #include <linux/videodev2.h> 16cb7a01acSMauro Carvalho Chehab #include <linux/module.h> 17cb7a01acSMauro Carvalho Chehab 18cb7a01acSMauro Carvalho Chehab #include <media/ak881x.h> 19cb7a01acSMauro Carvalho Chehab #include <media/v4l2-common.h> 20cb7a01acSMauro Carvalho Chehab #include <media/v4l2-device.h> 21cb7a01acSMauro Carvalho Chehab 22cb7a01acSMauro Carvalho Chehab #define AK881X_INTERFACE_MODE 0 23cb7a01acSMauro Carvalho Chehab #define AK881X_VIDEO_PROCESS1 1 24cb7a01acSMauro Carvalho Chehab #define AK881X_VIDEO_PROCESS2 2 25cb7a01acSMauro Carvalho Chehab #define AK881X_VIDEO_PROCESS3 3 26cb7a01acSMauro Carvalho Chehab #define AK881X_DAC_MODE 5 27cb7a01acSMauro Carvalho Chehab #define AK881X_STATUS 0x24 28cb7a01acSMauro Carvalho Chehab #define AK881X_DEVICE_ID 0x25 29cb7a01acSMauro Carvalho Chehab #define AK881X_DEVICE_REVISION 0x26 30cb7a01acSMauro Carvalho Chehab 31cb7a01acSMauro Carvalho Chehab struct ak881x { 32cb7a01acSMauro Carvalho Chehab struct v4l2_subdev subdev; 33cb7a01acSMauro Carvalho Chehab struct ak881x_pdata *pdata; 34cb7a01acSMauro Carvalho Chehab unsigned int lines; 35cb7a01acSMauro Carvalho Chehab char revision; /* DEVICE_REVISION content */ 36cb7a01acSMauro Carvalho Chehab }; 37cb7a01acSMauro Carvalho Chehab 38cb7a01acSMauro Carvalho Chehab static int reg_read(struct i2c_client *client, const u8 reg) 39cb7a01acSMauro Carvalho Chehab { 40cb7a01acSMauro Carvalho Chehab return i2c_smbus_read_byte_data(client, reg); 41cb7a01acSMauro Carvalho Chehab } 42cb7a01acSMauro Carvalho Chehab 43cb7a01acSMauro Carvalho Chehab static int reg_write(struct i2c_client *client, const u8 reg, 44cb7a01acSMauro Carvalho Chehab const u8 data) 45cb7a01acSMauro Carvalho Chehab { 46cb7a01acSMauro Carvalho Chehab return i2c_smbus_write_byte_data(client, reg, data); 47cb7a01acSMauro Carvalho Chehab } 48cb7a01acSMauro Carvalho Chehab 49cb7a01acSMauro Carvalho Chehab static int reg_set(struct i2c_client *client, const u8 reg, 50cb7a01acSMauro Carvalho Chehab const u8 data, u8 mask) 51cb7a01acSMauro Carvalho Chehab { 52cb7a01acSMauro Carvalho Chehab int ret = reg_read(client, reg); 53cb7a01acSMauro Carvalho Chehab if (ret < 0) 54cb7a01acSMauro Carvalho Chehab return ret; 55cb7a01acSMauro Carvalho Chehab return reg_write(client, reg, (ret & ~mask) | (data & mask)); 56cb7a01acSMauro Carvalho Chehab } 57cb7a01acSMauro Carvalho Chehab 58cb7a01acSMauro Carvalho Chehab static struct ak881x *to_ak881x(const struct i2c_client *client) 59cb7a01acSMauro Carvalho Chehab { 60cb7a01acSMauro Carvalho Chehab return container_of(i2c_get_clientdata(client), struct ak881x, subdev); 61cb7a01acSMauro Carvalho Chehab } 62cb7a01acSMauro Carvalho Chehab 63cb7a01acSMauro Carvalho Chehab #ifdef CONFIG_VIDEO_ADV_DEBUG 64cb7a01acSMauro Carvalho Chehab static int ak881x_g_register(struct v4l2_subdev *sd, 65cb7a01acSMauro Carvalho Chehab struct v4l2_dbg_register *reg) 66cb7a01acSMauro Carvalho Chehab { 67cb7a01acSMauro Carvalho Chehab struct i2c_client *client = v4l2_get_subdevdata(sd); 68cb7a01acSMauro Carvalho Chehab 69e1277110SHans Verkuil if (reg->reg > 0x26) 70cb7a01acSMauro Carvalho Chehab return -EINVAL; 71cb7a01acSMauro Carvalho Chehab 7215c4fee3SHans Verkuil reg->size = 1; 73cb7a01acSMauro Carvalho Chehab reg->val = reg_read(client, reg->reg); 74cb7a01acSMauro Carvalho Chehab 75cb7a01acSMauro Carvalho Chehab if (reg->val > 0xffff) 76cb7a01acSMauro Carvalho Chehab return -EIO; 77cb7a01acSMauro Carvalho Chehab 78cb7a01acSMauro Carvalho Chehab return 0; 79cb7a01acSMauro Carvalho Chehab } 80cb7a01acSMauro Carvalho Chehab 81cb7a01acSMauro Carvalho Chehab static int ak881x_s_register(struct v4l2_subdev *sd, 82977ba3b1SHans Verkuil const struct v4l2_dbg_register *reg) 83cb7a01acSMauro Carvalho Chehab { 84cb7a01acSMauro Carvalho Chehab struct i2c_client *client = v4l2_get_subdevdata(sd); 85cb7a01acSMauro Carvalho Chehab 86e1277110SHans Verkuil if (reg->reg > 0x26) 87cb7a01acSMauro Carvalho Chehab return -EINVAL; 88cb7a01acSMauro Carvalho Chehab 89cb7a01acSMauro Carvalho Chehab if (reg_write(client, reg->reg, reg->val) < 0) 90cb7a01acSMauro Carvalho Chehab return -EIO; 91cb7a01acSMauro Carvalho Chehab 92cb7a01acSMauro Carvalho Chehab return 0; 93cb7a01acSMauro Carvalho Chehab } 94cb7a01acSMauro Carvalho Chehab #endif 95cb7a01acSMauro Carvalho Chehab 96*da298c6dSHans Verkuil static int ak881x_fill_fmt(struct v4l2_subdev *sd, 97*da298c6dSHans Verkuil struct v4l2_subdev_pad_config *cfg, 98*da298c6dSHans Verkuil struct v4l2_subdev_format *format) 99cb7a01acSMauro Carvalho Chehab { 100*da298c6dSHans Verkuil struct v4l2_mbus_framefmt *mf = &format->format; 101cb7a01acSMauro Carvalho Chehab struct i2c_client *client = v4l2_get_subdevdata(sd); 102cb7a01acSMauro Carvalho Chehab struct ak881x *ak881x = to_ak881x(client); 103cb7a01acSMauro Carvalho Chehab 104*da298c6dSHans Verkuil if (format->pad) 105*da298c6dSHans Verkuil return -EINVAL; 106*da298c6dSHans Verkuil 107cb7a01acSMauro Carvalho Chehab v4l_bound_align_image(&mf->width, 0, 720, 2, 108cb7a01acSMauro Carvalho Chehab &mf->height, 0, ak881x->lines, 1, 0); 109cb7a01acSMauro Carvalho Chehab mf->field = V4L2_FIELD_INTERLACED; 110f5fe58fdSBoris BREZILLON mf->code = MEDIA_BUS_FMT_YUYV8_2X8; 111cb7a01acSMauro Carvalho Chehab mf->colorspace = V4L2_COLORSPACE_SMPTE170M; 112cb7a01acSMauro Carvalho Chehab 113cb7a01acSMauro Carvalho Chehab return 0; 114cb7a01acSMauro Carvalho Chehab } 115cb7a01acSMauro Carvalho Chehab 116ebcff5fcSHans Verkuil static int ak881x_enum_mbus_code(struct v4l2_subdev *sd, 117ebcff5fcSHans Verkuil struct v4l2_subdev_pad_config *cfg, 118ebcff5fcSHans Verkuil struct v4l2_subdev_mbus_code_enum *code) 119cb7a01acSMauro Carvalho Chehab { 120ebcff5fcSHans Verkuil if (code->pad || code->index) 121cb7a01acSMauro Carvalho Chehab return -EINVAL; 122cb7a01acSMauro Carvalho Chehab 123ebcff5fcSHans Verkuil code->code = MEDIA_BUS_FMT_YUYV8_2X8; 124cb7a01acSMauro Carvalho Chehab return 0; 125cb7a01acSMauro Carvalho Chehab } 126cb7a01acSMauro Carvalho Chehab 127cb7a01acSMauro Carvalho Chehab static int ak881x_cropcap(struct v4l2_subdev *sd, struct v4l2_cropcap *a) 128cb7a01acSMauro Carvalho Chehab { 129cb7a01acSMauro Carvalho Chehab struct i2c_client *client = v4l2_get_subdevdata(sd); 130cb7a01acSMauro Carvalho Chehab struct ak881x *ak881x = to_ak881x(client); 131cb7a01acSMauro Carvalho Chehab 132cb7a01acSMauro Carvalho Chehab a->bounds.left = 0; 133cb7a01acSMauro Carvalho Chehab a->bounds.top = 0; 134cb7a01acSMauro Carvalho Chehab a->bounds.width = 720; 135cb7a01acSMauro Carvalho Chehab a->bounds.height = ak881x->lines; 136cb7a01acSMauro Carvalho Chehab a->defrect = a->bounds; 137cb7a01acSMauro Carvalho Chehab a->type = V4L2_BUF_TYPE_VIDEO_OUTPUT; 138cb7a01acSMauro Carvalho Chehab a->pixelaspect.numerator = 1; 139cb7a01acSMauro Carvalho Chehab a->pixelaspect.denominator = 1; 140cb7a01acSMauro Carvalho Chehab 141cb7a01acSMauro Carvalho Chehab return 0; 142cb7a01acSMauro Carvalho Chehab } 143cb7a01acSMauro Carvalho Chehab 144cb7a01acSMauro Carvalho Chehab static int ak881x_s_std_output(struct v4l2_subdev *sd, v4l2_std_id std) 145cb7a01acSMauro Carvalho Chehab { 146cb7a01acSMauro Carvalho Chehab struct i2c_client *client = v4l2_get_subdevdata(sd); 147cb7a01acSMauro Carvalho Chehab struct ak881x *ak881x = to_ak881x(client); 148cb7a01acSMauro Carvalho Chehab u8 vp1; 149cb7a01acSMauro Carvalho Chehab 150cb7a01acSMauro Carvalho Chehab if (std == V4L2_STD_NTSC_443) { 151cb7a01acSMauro Carvalho Chehab vp1 = 3; 152cb7a01acSMauro Carvalho Chehab ak881x->lines = 480; 153cb7a01acSMauro Carvalho Chehab } else if (std == V4L2_STD_PAL_M) { 154cb7a01acSMauro Carvalho Chehab vp1 = 5; 155cb7a01acSMauro Carvalho Chehab ak881x->lines = 480; 156cb7a01acSMauro Carvalho Chehab } else if (std == V4L2_STD_PAL_60) { 157cb7a01acSMauro Carvalho Chehab vp1 = 7; 158cb7a01acSMauro Carvalho Chehab ak881x->lines = 480; 159cb7a01acSMauro Carvalho Chehab } else if (std && !(std & ~V4L2_STD_PAL)) { 160cb7a01acSMauro Carvalho Chehab vp1 = 0xf; 161cb7a01acSMauro Carvalho Chehab ak881x->lines = 576; 162cb7a01acSMauro Carvalho Chehab } else if (std && !(std & ~V4L2_STD_NTSC)) { 163cb7a01acSMauro Carvalho Chehab vp1 = 0; 164cb7a01acSMauro Carvalho Chehab ak881x->lines = 480; 165cb7a01acSMauro Carvalho Chehab } else { 166cb7a01acSMauro Carvalho Chehab /* No SECAM or PAL_N/Nc supported */ 167cb7a01acSMauro Carvalho Chehab return -EINVAL; 168cb7a01acSMauro Carvalho Chehab } 169cb7a01acSMauro Carvalho Chehab 170cb7a01acSMauro Carvalho Chehab reg_set(client, AK881X_VIDEO_PROCESS1, vp1, 0xf); 171cb7a01acSMauro Carvalho Chehab 172cb7a01acSMauro Carvalho Chehab return 0; 173cb7a01acSMauro Carvalho Chehab } 174cb7a01acSMauro Carvalho Chehab 175cb7a01acSMauro Carvalho Chehab static int ak881x_s_stream(struct v4l2_subdev *sd, int enable) 176cb7a01acSMauro Carvalho Chehab { 177cb7a01acSMauro Carvalho Chehab struct i2c_client *client = v4l2_get_subdevdata(sd); 178cb7a01acSMauro Carvalho Chehab struct ak881x *ak881x = to_ak881x(client); 179cb7a01acSMauro Carvalho Chehab 180cb7a01acSMauro Carvalho Chehab if (enable) { 181cb7a01acSMauro Carvalho Chehab u8 dac; 182cb7a01acSMauro Carvalho Chehab /* For colour-bar testing set bit 6 of AK881X_VIDEO_PROCESS1 */ 183cb7a01acSMauro Carvalho Chehab /* Default: composite output */ 184cb7a01acSMauro Carvalho Chehab if (ak881x->pdata->flags & AK881X_COMPONENT) 185cb7a01acSMauro Carvalho Chehab dac = 3; 186cb7a01acSMauro Carvalho Chehab else 187cb7a01acSMauro Carvalho Chehab dac = 4; 188cb7a01acSMauro Carvalho Chehab /* Turn on the DAC(s) */ 189cb7a01acSMauro Carvalho Chehab reg_write(client, AK881X_DAC_MODE, dac); 190cb7a01acSMauro Carvalho Chehab dev_dbg(&client->dev, "chip status 0x%x\n", 191cb7a01acSMauro Carvalho Chehab reg_read(client, AK881X_STATUS)); 192cb7a01acSMauro Carvalho Chehab } else { 193cb7a01acSMauro Carvalho Chehab /* ...and clear bit 6 of AK881X_VIDEO_PROCESS1 here */ 194cb7a01acSMauro Carvalho Chehab reg_write(client, AK881X_DAC_MODE, 0); 195cb7a01acSMauro Carvalho Chehab dev_dbg(&client->dev, "chip status 0x%x\n", 196cb7a01acSMauro Carvalho Chehab reg_read(client, AK881X_STATUS)); 197cb7a01acSMauro Carvalho Chehab } 198cb7a01acSMauro Carvalho Chehab 199cb7a01acSMauro Carvalho Chehab return 0; 200cb7a01acSMauro Carvalho Chehab } 201cb7a01acSMauro Carvalho Chehab 202cb7a01acSMauro Carvalho Chehab static struct v4l2_subdev_core_ops ak881x_subdev_core_ops = { 203cb7a01acSMauro Carvalho Chehab #ifdef CONFIG_VIDEO_ADV_DEBUG 204cb7a01acSMauro Carvalho Chehab .g_register = ak881x_g_register, 205cb7a01acSMauro Carvalho Chehab .s_register = ak881x_s_register, 206cb7a01acSMauro Carvalho Chehab #endif 207cb7a01acSMauro Carvalho Chehab }; 208cb7a01acSMauro Carvalho Chehab 209cb7a01acSMauro Carvalho Chehab static struct v4l2_subdev_video_ops ak881x_subdev_video_ops = { 210cb7a01acSMauro Carvalho Chehab .cropcap = ak881x_cropcap, 211cb7a01acSMauro Carvalho Chehab .s_std_output = ak881x_s_std_output, 212cb7a01acSMauro Carvalho Chehab .s_stream = ak881x_s_stream, 213cb7a01acSMauro Carvalho Chehab }; 214cb7a01acSMauro Carvalho Chehab 215ebcff5fcSHans Verkuil static const struct v4l2_subdev_pad_ops ak881x_subdev_pad_ops = { 216ebcff5fcSHans Verkuil .enum_mbus_code = ak881x_enum_mbus_code, 217*da298c6dSHans Verkuil .set_fmt = ak881x_fill_fmt, 218*da298c6dSHans Verkuil .get_fmt = ak881x_fill_fmt, 219ebcff5fcSHans Verkuil }; 220ebcff5fcSHans Verkuil 221cb7a01acSMauro Carvalho Chehab static struct v4l2_subdev_ops ak881x_subdev_ops = { 222cb7a01acSMauro Carvalho Chehab .core = &ak881x_subdev_core_ops, 223cb7a01acSMauro Carvalho Chehab .video = &ak881x_subdev_video_ops, 224ebcff5fcSHans Verkuil .pad = &ak881x_subdev_pad_ops, 225cb7a01acSMauro Carvalho Chehab }; 226cb7a01acSMauro Carvalho Chehab 227cb7a01acSMauro Carvalho Chehab static int ak881x_probe(struct i2c_client *client, 228cb7a01acSMauro Carvalho Chehab const struct i2c_device_id *did) 229cb7a01acSMauro Carvalho Chehab { 230cb7a01acSMauro Carvalho Chehab struct i2c_adapter *adapter = to_i2c_adapter(client->dev.parent); 231cb7a01acSMauro Carvalho Chehab struct ak881x *ak881x; 232cb7a01acSMauro Carvalho Chehab u8 ifmode, data; 233cb7a01acSMauro Carvalho Chehab 234cb7a01acSMauro Carvalho Chehab if (!i2c_check_functionality(adapter, I2C_FUNC_SMBUS_BYTE_DATA)) { 235cb7a01acSMauro Carvalho Chehab dev_warn(&adapter->dev, 236cb7a01acSMauro Carvalho Chehab "I2C-Adapter doesn't support I2C_FUNC_SMBUS_WORD\n"); 237cb7a01acSMauro Carvalho Chehab return -EIO; 238cb7a01acSMauro Carvalho Chehab } 239cb7a01acSMauro Carvalho Chehab 240c02b211dSLaurent Pinchart ak881x = devm_kzalloc(&client->dev, sizeof(*ak881x), GFP_KERNEL); 241cb7a01acSMauro Carvalho Chehab if (!ak881x) 242cb7a01acSMauro Carvalho Chehab return -ENOMEM; 243cb7a01acSMauro Carvalho Chehab 244cb7a01acSMauro Carvalho Chehab v4l2_i2c_subdev_init(&ak881x->subdev, client, &ak881x_subdev_ops); 245cb7a01acSMauro Carvalho Chehab 246cb7a01acSMauro Carvalho Chehab data = reg_read(client, AK881X_DEVICE_ID); 247cb7a01acSMauro Carvalho Chehab 248cb7a01acSMauro Carvalho Chehab switch (data) { 249cb7a01acSMauro Carvalho Chehab case 0x13: 250cb7a01acSMauro Carvalho Chehab case 0x14: 251cb7a01acSMauro Carvalho Chehab break; 252cb7a01acSMauro Carvalho Chehab default: 253cb7a01acSMauro Carvalho Chehab dev_err(&client->dev, 254cb7a01acSMauro Carvalho Chehab "No ak881x chip detected, register read %x\n", data); 255cb7a01acSMauro Carvalho Chehab return -ENODEV; 256cb7a01acSMauro Carvalho Chehab } 257cb7a01acSMauro Carvalho Chehab 258cb7a01acSMauro Carvalho Chehab ak881x->revision = reg_read(client, AK881X_DEVICE_REVISION); 259cb7a01acSMauro Carvalho Chehab ak881x->pdata = client->dev.platform_data; 260cb7a01acSMauro Carvalho Chehab 261cb7a01acSMauro Carvalho Chehab if (ak881x->pdata) { 262cb7a01acSMauro Carvalho Chehab if (ak881x->pdata->flags & AK881X_FIELD) 263cb7a01acSMauro Carvalho Chehab ifmode = 4; 264cb7a01acSMauro Carvalho Chehab else 265cb7a01acSMauro Carvalho Chehab ifmode = 0; 266cb7a01acSMauro Carvalho Chehab 267cb7a01acSMauro Carvalho Chehab switch (ak881x->pdata->flags & AK881X_IF_MODE_MASK) { 268cb7a01acSMauro Carvalho Chehab case AK881X_IF_MODE_BT656: 269cb7a01acSMauro Carvalho Chehab ifmode |= 1; 270cb7a01acSMauro Carvalho Chehab break; 271cb7a01acSMauro Carvalho Chehab case AK881X_IF_MODE_MASTER: 272cb7a01acSMauro Carvalho Chehab ifmode |= 2; 273cb7a01acSMauro Carvalho Chehab break; 274cb7a01acSMauro Carvalho Chehab case AK881X_IF_MODE_SLAVE: 275cb7a01acSMauro Carvalho Chehab default: 276cb7a01acSMauro Carvalho Chehab break; 277cb7a01acSMauro Carvalho Chehab } 278cb7a01acSMauro Carvalho Chehab 279cb7a01acSMauro Carvalho Chehab dev_dbg(&client->dev, "IF mode %x\n", ifmode); 280cb7a01acSMauro Carvalho Chehab 281cb7a01acSMauro Carvalho Chehab /* 282cb7a01acSMauro Carvalho Chehab * "Line Blanking No." seems to be the same as the number of 283cb7a01acSMauro Carvalho Chehab * "black" lines on, e.g., SuperH VOU, whose default value of 20 284cb7a01acSMauro Carvalho Chehab * "incidentally" matches ak881x' default 285cb7a01acSMauro Carvalho Chehab */ 286cb7a01acSMauro Carvalho Chehab reg_write(client, AK881X_INTERFACE_MODE, ifmode | (20 << 3)); 287cb7a01acSMauro Carvalho Chehab } 288cb7a01acSMauro Carvalho Chehab 289cb7a01acSMauro Carvalho Chehab /* Hardware default: NTSC-M */ 290cb7a01acSMauro Carvalho Chehab ak881x->lines = 480; 291cb7a01acSMauro Carvalho Chehab 292cb7a01acSMauro Carvalho Chehab dev_info(&client->dev, "Detected an ak881x chip ID %x, revision %x\n", 293cb7a01acSMauro Carvalho Chehab data, ak881x->revision); 294cb7a01acSMauro Carvalho Chehab 295cb7a01acSMauro Carvalho Chehab return 0; 296cb7a01acSMauro Carvalho Chehab } 297cb7a01acSMauro Carvalho Chehab 298cb7a01acSMauro Carvalho Chehab static int ak881x_remove(struct i2c_client *client) 299cb7a01acSMauro Carvalho Chehab { 300cb7a01acSMauro Carvalho Chehab struct ak881x *ak881x = to_ak881x(client); 301cb7a01acSMauro Carvalho Chehab 302cb7a01acSMauro Carvalho Chehab v4l2_device_unregister_subdev(&ak881x->subdev); 303cb7a01acSMauro Carvalho Chehab 304cb7a01acSMauro Carvalho Chehab return 0; 305cb7a01acSMauro Carvalho Chehab } 306cb7a01acSMauro Carvalho Chehab 307cb7a01acSMauro Carvalho Chehab static const struct i2c_device_id ak881x_id[] = { 308cb7a01acSMauro Carvalho Chehab { "ak8813", 0 }, 309cb7a01acSMauro Carvalho Chehab { "ak8814", 0 }, 310cb7a01acSMauro Carvalho Chehab { } 311cb7a01acSMauro Carvalho Chehab }; 312cb7a01acSMauro Carvalho Chehab MODULE_DEVICE_TABLE(i2c, ak881x_id); 313cb7a01acSMauro Carvalho Chehab 314cb7a01acSMauro Carvalho Chehab static struct i2c_driver ak881x_i2c_driver = { 315cb7a01acSMauro Carvalho Chehab .driver = { 316cb7a01acSMauro Carvalho Chehab .name = "ak881x", 317cb7a01acSMauro Carvalho Chehab }, 318cb7a01acSMauro Carvalho Chehab .probe = ak881x_probe, 319cb7a01acSMauro Carvalho Chehab .remove = ak881x_remove, 320cb7a01acSMauro Carvalho Chehab .id_table = ak881x_id, 321cb7a01acSMauro Carvalho Chehab }; 322cb7a01acSMauro Carvalho Chehab 323cb7a01acSMauro Carvalho Chehab module_i2c_driver(ak881x_i2c_driver); 324cb7a01acSMauro Carvalho Chehab 325cb7a01acSMauro Carvalho Chehab MODULE_DESCRIPTION("TV-output driver for ak8813/ak8814"); 326cb7a01acSMauro Carvalho Chehab MODULE_AUTHOR("Guennadi Liakhovetski <g.liakhovetski@gmx.de>"); 327cb7a01acSMauro Carvalho Chehab MODULE_LICENSE("GPL v2"); 328