blob: 005f8a46803148873f6e1dfba22a6bc36c8fcc6b [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001/*
2 * For the STS-Thompson TDA7432 audio processor chip
3 *
4 * Handles audio functions: volume, balance, tone, loudness
5 * This driver will not complain if used with any
6 * other i2c device with the same address.
7 *
8 * Muting and tone control by Jonathan Isom <jisom@ematic.com>
9 *
10 * Copyright (c) 2000 Eric Sandeen <eric_sandeen@bigfoot.com>
Mauro Carvalho Chehab7a00d452006-08-25 16:53:09 -030011 * Copyright (c) 2006 Mauro Carvalho Chehab <mchehab@infradead.org>
Linus Torvalds1da177e2005-04-16 15:20:36 -070012 * This code is placed under the terms of the GNU General Public License
13 * Based on tda9855.c by Steve VanDeBogart (vandebo@uclink.berkeley.edu)
14 * Which was based on tda8425.c by Greg Alexander (c) 1998
15 *
16 * OPTIONS:
17 * debug - set to 1 if you'd like to see debug messages
18 * set to 2 if you'd like to be inundated with debug messages
19 *
20 * loudness - set between 0 and 15 for varying degrees of loudness effect
21 *
22 * maxvol - set maximium volume to +20db (1), default is 0db(0)
23 *
24 *
25 * Revision: 0.7 - maxvol module parm to set maximium volume 0db or +20db
26 * store if muted so we can return it
27 * change balance only if flaged to
28 * Revision: 0.6 - added tone controls
29 * Revision: 0.5 - Fixed odd balance problem
30 * Revision: 0.4 - added muting
31 * Revision: 0.3 - Fixed silly reversed volume controls. :)
32 * Revision: 0.2 - Cleaned up #defines
33 * fixed volume control
34 * Added I2C_DRIVERID_TDA7432
35 * added loudness insmod control
36 * Revision: 0.1 - initial version
37 */
38
39#include <linux/module.h>
40#include <linux/init.h>
41#include <linux/kernel.h>
Linus Torvalds1da177e2005-04-16 15:20:36 -070042#include <linux/string.h>
43#include <linux/timer.h>
44#include <linux/delay.h>
45#include <linux/errno.h>
46#include <linux/slab.h>
Hans Verkuil33b687c2008-07-25 05:32:50 -030047#include <linux/videodev2.h>
Linus Torvalds1da177e2005-04-16 15:20:36 -070048#include <linux/i2c.h>
Linus Torvalds1da177e2005-04-16 15:20:36 -070049
Hans Verkuild5313052008-12-18 13:04:05 -030050#include <media/v4l2-device.h>
Hans Verkuil35ea11f2008-07-20 08:12:02 -030051#include <media/v4l2-ioctl.h>
Mauro Carvalho Chehabfa3fcce2006-03-23 21:45:24 -030052#include <media/i2c-addr.h>
Hans Verkuil267ea2a2009-03-29 09:06:00 -030053#include <media/v4l2-i2c-drv.h>
Linus Torvalds1da177e2005-04-16 15:20:36 -070054
55#ifndef VIDEO_AUDIO_BALANCE
56# define VIDEO_AUDIO_BALANCE 32
57#endif
58
59MODULE_AUTHOR("Eric Sandeen <eric_sandeen@bigfoot.com>");
60MODULE_DESCRIPTION("bttv driver for the tda7432 audio processor chip");
61MODULE_LICENSE("GPL");
62
63static int maxvol;
64static int loudness; /* disable loudness by default */
65static int debug; /* insmod parameter */
66module_param(debug, int, S_IRUGO | S_IWUSR);
67module_param(loudness, int, S_IRUGO);
68MODULE_PARM_DESC(maxvol,"Set maximium volume to +20db (0), default is 0db(1)");
69module_param(maxvol, int, S_IRUGO | S_IWUSR);
70
71
Linus Torvalds1da177e2005-04-16 15:20:36 -070072
73/* Structure of address and subaddresses for the tda7432 */
74
75struct tda7432 {
Hans Verkuild5313052008-12-18 13:04:05 -030076 struct v4l2_subdev sd;
Linus Torvalds1da177e2005-04-16 15:20:36 -070077 int addr;
78 int input;
79 int volume;
80 int muted;
81 int bass, treble;
82 int lf, lr, rf, rr;
83 int loud;
Linus Torvalds1da177e2005-04-16 15:20:36 -070084};
Hans Verkuild5313052008-12-18 13:04:05 -030085
86static inline struct tda7432 *to_state(struct v4l2_subdev *sd)
87{
88 return container_of(sd, struct tda7432, sd);
89}
Linus Torvalds1da177e2005-04-16 15:20:36 -070090
Linus Torvalds1da177e2005-04-16 15:20:36 -070091/* The TDA7432 is made by STS-Thompson
92 * http://www.st.com
93 * http://us.st.com/stonline/books/pdf/docs/4056.pdf
94 *
95 * TDA7432: I2C-bus controlled basic audio processor
96 *
97 * The TDA7432 controls basic audio functions like volume, balance,
98 * and tone control (including loudness). It also has four channel
99 * output (for front and rear). Since most vidcap cards probably
100 * don't have 4 channel output, this driver will set front & rear
101 * together (no independent control).
102 */
103
104 /* Subaddresses for TDA7432 */
105
106#define TDA7432_IN 0x00 /* Input select */
107#define TDA7432_VL 0x01 /* Volume */
108#define TDA7432_TN 0x02 /* Bass, Treble (Tone) */
109#define TDA7432_LF 0x03 /* Attenuation LF (Left Front) */
110#define TDA7432_LR 0x04 /* Attenuation LR (Left Rear) */
111#define TDA7432_RF 0x05 /* Attenuation RF (Right Front) */
112#define TDA7432_RR 0x06 /* Attenuation RR (Right Rear) */
113#define TDA7432_LD 0x07 /* Loudness */
114
115
116 /* Masks for bits in TDA7432 subaddresses */
117
118/* Many of these not used - just for documentation */
119
120/* Subaddress 0x00 - Input selection and bass control */
121
122/* Bits 0,1,2 control input:
123 * 0x00 - Stereo input
124 * 0x02 - Mono input
125 * 0x03 - Mute (Using Attenuators Plays better with modules)
126 * Mono probably isn't used - I'm guessing only the stereo
127 * input is connected on most cards, so we'll set it to stereo.
128 *
129 * Bit 3 controls bass cut: 0/1 is non-symmetric/symmetric bass cut
130 * Bit 4 controls bass range: 0/1 is extended/standard bass range
131 *
132 * Highest 3 bits not used
133 */
134
135#define TDA7432_STEREO_IN 0
136#define TDA7432_MONO_IN 2 /* Probably won't be used */
137#define TDA7432_BASS_SYM 1 << 3
138#define TDA7432_BASS_NORM 1 << 4
139
140/* Subaddress 0x01 - Volume */
141
142/* Lower 7 bits control volume from -79dB to +32dB in 1dB steps
143 * Recommended maximum is +20 dB
144 *
145 * +32dB: 0x00
146 * +20dB: 0x0c
147 * 0dB: 0x20
148 * -79dB: 0x6f
149 *
150 * MSB (bit 7) controls loudness: 1/0 is loudness on/off
151 */
152
153#define TDA7432_VOL_0DB 0x20
154#define TDA7432_LD_ON 1 << 7
155
156
157/* Subaddress 0x02 - Tone control */
158
159/* Bits 0,1,2 control absolute treble gain from 0dB to 14dB
160 * 0x0 is 14dB, 0x7 is 0dB
161 *
162 * Bit 3 controls treble attenuation/gain (sign)
163 * 1 = gain (+)
164 * 0 = attenuation (-)
165 *
166 * Bits 4,5,6 control absolute bass gain from 0dB to 14dB
167 * (This is only true for normal base range, set in 0x00)
168 * 0x0 << 4 is 14dB, 0x7 is 0dB
169 *
170 * Bit 7 controls bass attenuation/gain (sign)
171 * 1 << 7 = gain (+)
172 * 0 << 7 = attenuation (-)
173 *
174 * Example:
175 * 1 1 0 1 0 1 0 1 is +4dB bass, -4dB treble
176 */
177
178#define TDA7432_TREBLE_0DB 0xf
179#define TDA7432_TREBLE 7
180#define TDA7432_TREBLE_GAIN 1 << 3
181#define TDA7432_BASS_0DB 0xf
182#define TDA7432_BASS 7 << 4
183#define TDA7432_BASS_GAIN 1 << 7
184
185
186/* Subaddress 0x03 - Left Front attenuation */
187/* Subaddress 0x04 - Left Rear attenuation */
188/* Subaddress 0x05 - Right Front attenuation */
189/* Subaddress 0x06 - Right Rear attenuation */
190
191/* Bits 0,1,2,3,4 control attenuation from 0dB to -37.5dB
192 * in 1.5dB steps.
193 *
194 * 0x00 is 0dB
195 * 0x1f is -37.5dB
196 *
197 * Bit 5 mutes that channel when set (1 = mute, 0 = unmute)
198 * We'll use the mute on the input, though (above)
199 * Bits 6,7 unused
200 */
201
202#define TDA7432_ATTEN_0DB 0x00
203#define TDA7432_MUTE 0x1 << 5
204
205
206/* Subaddress 0x07 - Loudness Control */
207
208/* Bits 0,1,2,3 control loudness from 0dB to -15dB in 1dB steps
209 * when bit 4 is NOT set
210 *
211 * 0x0 is 0dB
212 * 0xf is -15dB
213 *
214 * If bit 4 is set, then there is a flat attenuation according to
215 * the lower 4 bits, as above.
216 *
217 * Bits 5,6,7 unused
218 */
219
220
221
222/* Begin code */
223
Hans Verkuild5313052008-12-18 13:04:05 -0300224static int tda7432_write(struct v4l2_subdev *sd, int subaddr, int val)
Linus Torvalds1da177e2005-04-16 15:20:36 -0700225{
Hans Verkuild5313052008-12-18 13:04:05 -0300226 struct i2c_client *client = v4l2_get_subdevdata(sd);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700227 unsigned char buffer[2];
Hans Verkuild5313052008-12-18 13:04:05 -0300228
229 v4l2_dbg(2, debug, sd, "In tda7432_write\n");
230 v4l2_dbg(1, debug, sd, "Writing %d 0x%x\n", subaddr, val);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700231 buffer[0] = subaddr;
232 buffer[1] = val;
Hans Verkuild5313052008-12-18 13:04:05 -0300233 if (2 != i2c_master_send(client, buffer, 2)) {
234 v4l2_err(sd, "I/O error, trying (write %d 0x%x)\n",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700235 subaddr, val);
236 return -1;
237 }
238 return 0;
239}
240
Hans Verkuild5313052008-12-18 13:04:05 -0300241static int tda7432_set(struct v4l2_subdev *sd)
Linus Torvalds1da177e2005-04-16 15:20:36 -0700242{
Hans Verkuild5313052008-12-18 13:04:05 -0300243 struct i2c_client *client = v4l2_get_subdevdata(sd);
244 struct tda7432 *t = to_state(sd);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700245 unsigned char buf[16];
Linus Torvalds1da177e2005-04-16 15:20:36 -0700246
Hans Verkuild5313052008-12-18 13:04:05 -0300247 v4l2_dbg(1, debug, sd,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700248 "tda7432: 7432_set(0x%02x,0x%02x,0x%02x,0x%02x,0x%02x,0x%02x,0x%02x,0x%02x,0x%02x)\n",
Hans Verkuild5313052008-12-18 13:04:05 -0300249 t->input, t->volume, t->bass, t->treble, t->lf, t->lr,
250 t->rf, t->rr, t->loud);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700251 buf[0] = TDA7432_IN;
252 buf[1] = t->input;
253 buf[2] = t->volume;
254 buf[3] = t->bass;
255 buf[4] = t->treble;
256 buf[5] = t->lf;
257 buf[6] = t->lr;
258 buf[7] = t->rf;
259 buf[8] = t->rr;
260 buf[9] = t->loud;
Hans Verkuild5313052008-12-18 13:04:05 -0300261 if (10 != i2c_master_send(client, buf, 10)) {
262 v4l2_err(sd, "I/O error, trying tda7432_set\n");
Linus Torvalds1da177e2005-04-16 15:20:36 -0700263 return -1;
264 }
265
266 return 0;
267}
268
Hans Verkuild5313052008-12-18 13:04:05 -0300269static void do_tda7432_init(struct v4l2_subdev *sd)
Linus Torvalds1da177e2005-04-16 15:20:36 -0700270{
Hans Verkuild5313052008-12-18 13:04:05 -0300271 struct tda7432 *t = to_state(sd);
272
273 v4l2_dbg(2, debug, sd, "In tda7432_init\n");
Linus Torvalds1da177e2005-04-16 15:20:36 -0700274
275 t->input = TDA7432_STEREO_IN | /* Main (stereo) input */
276 TDA7432_BASS_SYM | /* Symmetric bass cut */
277 TDA7432_BASS_NORM; /* Normal bass range */
278 t->volume = 0x3b ; /* -27dB Volume */
279 if (loudness) /* Turn loudness on? */
280 t->volume |= TDA7432_LD_ON;
Mauro Carvalho Chehab7a00d452006-08-25 16:53:09 -0300281 t->muted = 1;
Linus Torvalds1da177e2005-04-16 15:20:36 -0700282 t->treble = TDA7432_TREBLE_0DB; /* 0dB Treble */
283 t->bass = TDA7432_BASS_0DB; /* 0dB Bass */
284 t->lf = TDA7432_ATTEN_0DB; /* 0dB attenuation */
285 t->lr = TDA7432_ATTEN_0DB; /* 0dB attenuation */
286 t->rf = TDA7432_ATTEN_0DB; /* 0dB attenuation */
287 t->rr = TDA7432_ATTEN_0DB; /* 0dB attenuation */
288 t->loud = loudness; /* insmod parameter */
289
Hans Verkuild5313052008-12-18 13:04:05 -0300290 tda7432_set(sd);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700291}
292
Hans Verkuild5313052008-12-18 13:04:05 -0300293static int tda7432_g_ctrl(struct v4l2_subdev *sd, struct v4l2_control *ctrl)
Linus Torvalds1da177e2005-04-16 15:20:36 -0700294{
Hans Verkuild5313052008-12-18 13:04:05 -0300295 struct tda7432 *t = to_state(sd);
Mauro Carvalho Chehab7a00d452006-08-25 16:53:09 -0300296
297 switch (ctrl->id) {
298 case V4L2_CID_AUDIO_MUTE:
299 ctrl->value=t->muted;
300 return 0;
301 case V4L2_CID_AUDIO_VOLUME:
302 if (!maxvol){ /* max +20db */
303 ctrl->value = ( 0x6f - (t->volume & 0x7F) ) * 630;
304 } else { /* max 0db */
305 ctrl->value = ( 0x6f - (t->volume & 0x7F) ) * 829;
306 }
307 return 0;
308 case V4L2_CID_AUDIO_BALANCE:
309 {
310 if ( (t->lf) < (t->rf) )
311 /* right is attenuated, balance shifted left */
312 ctrl->value = (32768 - 1057*(t->rf));
313 else
314 /* left is attenuated, balance shifted right */
315 ctrl->value = (32768 + 1057*(t->lf));
316 return 0;
317 }
318 case V4L2_CID_AUDIO_BASS:
319 {
320 /* Bass/treble 4 bits each */
321 int bass=t->bass;
322 if(bass >= 0x8)
323 bass = ~(bass - 0x8) & 0xf;
324 ctrl->value = (bass << 12)+(bass << 8)+(bass << 4)+(bass);
325 return 0;
326 }
327 case V4L2_CID_AUDIO_TREBLE:
328 {
329 int treble=t->treble;
330 if(treble >= 0x8)
331 treble = ~(treble - 0x8) & 0xf;
332 ctrl->value = (treble << 12)+(treble << 8)+(treble << 4)+(treble);
333 return 0;
334 }
335 }
336 return -EINVAL;
337}
338
Hans Verkuild5313052008-12-18 13:04:05 -0300339static int tda7432_s_ctrl(struct v4l2_subdev *sd, struct v4l2_control *ctrl)
Mauro Carvalho Chehab7a00d452006-08-25 16:53:09 -0300340{
Hans Verkuild5313052008-12-18 13:04:05 -0300341 struct tda7432 *t = to_state(sd);
Mauro Carvalho Chehab7a00d452006-08-25 16:53:09 -0300342
343 switch (ctrl->id) {
344 case V4L2_CID_AUDIO_MUTE:
345 t->muted=ctrl->value;
346 break;
347 case V4L2_CID_AUDIO_VOLUME:
348 if(!maxvol){ /* max +20db */
349 t->volume = 0x6f - ((ctrl->value)/630);
350 } else { /* max 0db */
351 t->volume = 0x6f - ((ctrl->value)/829);
352 }
353 if (loudness) /* Turn on the loudness bit */
354 t->volume |= TDA7432_LD_ON;
355
Hans Verkuild5313052008-12-18 13:04:05 -0300356 tda7432_write(sd, TDA7432_VL, t->volume);
Mauro Carvalho Chehab7a00d452006-08-25 16:53:09 -0300357 return 0;
358 case V4L2_CID_AUDIO_BALANCE:
359 if (ctrl->value < 32768) {
360 /* shifted to left, attenuate right */
361 t->rr = (32768 - ctrl->value)/1057;
362 t->rf = t->rr;
363 t->lr = TDA7432_ATTEN_0DB;
364 t->lf = TDA7432_ATTEN_0DB;
365 } else if(ctrl->value > 32769) {
366 /* shifted to right, attenuate left */
367 t->lf = (ctrl->value - 32768)/1057;
368 t->lr = t->lf;
369 t->rr = TDA7432_ATTEN_0DB;
370 t->rf = TDA7432_ATTEN_0DB;
371 } else {
372 /* centered */
373 t->rr = TDA7432_ATTEN_0DB;
374 t->rf = TDA7432_ATTEN_0DB;
375 t->lf = TDA7432_ATTEN_0DB;
376 t->lr = TDA7432_ATTEN_0DB;
377 }
378 break;
379 case V4L2_CID_AUDIO_BASS:
380 t->bass = ctrl->value >> 12;
381 if(t->bass>= 0x8)
382 t->bass = (~t->bass & 0xf) + 0x8 ;
383
Hans Verkuild5313052008-12-18 13:04:05 -0300384 tda7432_write(sd, TDA7432_TN, 0x10 | (t->bass << 4) | t->treble);
Mauro Carvalho Chehab7a00d452006-08-25 16:53:09 -0300385 return 0;
386 case V4L2_CID_AUDIO_TREBLE:
387 t->treble= ctrl->value >> 12;
388 if(t->treble>= 0x8)
389 t->treble = (~t->treble & 0xf) + 0x8 ;
390
Hans Verkuild5313052008-12-18 13:04:05 -0300391 tda7432_write(sd, TDA7432_TN, 0x10 | (t->bass << 4) | t->treble);
Mauro Carvalho Chehab7a00d452006-08-25 16:53:09 -0300392 return 0;
393 default:
394 return -EINVAL;
395 }
396
397 /* Used for both mute and balance changes */
398 if (t->muted)
399 {
400 /* Mute & update balance*/
Hans Verkuild5313052008-12-18 13:04:05 -0300401 tda7432_write(sd, TDA7432_LF, t->lf | TDA7432_MUTE);
402 tda7432_write(sd, TDA7432_LR, t->lr | TDA7432_MUTE);
403 tda7432_write(sd, TDA7432_RF, t->rf | TDA7432_MUTE);
404 tda7432_write(sd, TDA7432_RR, t->rr | TDA7432_MUTE);
Mauro Carvalho Chehab7a00d452006-08-25 16:53:09 -0300405 } else {
Hans Verkuild5313052008-12-18 13:04:05 -0300406 tda7432_write(sd, TDA7432_LF, t->lf);
407 tda7432_write(sd, TDA7432_LR, t->lr);
408 tda7432_write(sd, TDA7432_RF, t->rf);
409 tda7432_write(sd, TDA7432_RR, t->rr);
Mauro Carvalho Chehab7a00d452006-08-25 16:53:09 -0300410 }
411 return 0;
412}
413
Hans Verkuild5313052008-12-18 13:04:05 -0300414static int tda7432_queryctrl(struct v4l2_subdev *sd, struct v4l2_queryctrl *qc)
Linus Torvalds1da177e2005-04-16 15:20:36 -0700415{
Hans Verkuild5313052008-12-18 13:04:05 -0300416 switch (qc->id) {
Hans Verkuild5313052008-12-18 13:04:05 -0300417 case V4L2_CID_AUDIO_VOLUME:
Hans Verkuil10afbef2009-02-21 18:47:24 -0300418 return v4l2_ctrl_query_fill(qc, 0, 65535, 65535 / 100, 58880);
419 case V4L2_CID_AUDIO_MUTE:
420 return v4l2_ctrl_query_fill(qc, 0, 1, 1, 0);
Hans Verkuild5313052008-12-18 13:04:05 -0300421 case V4L2_CID_AUDIO_BALANCE:
422 case V4L2_CID_AUDIO_BASS:
423 case V4L2_CID_AUDIO_TREBLE:
Hans Verkuil10afbef2009-02-21 18:47:24 -0300424 return v4l2_ctrl_query_fill(qc, 0, 65535, 65535 / 100, 32768);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700425 }
Hans Verkuild5313052008-12-18 13:04:05 -0300426 return -EINVAL;
427}
Linus Torvalds1da177e2005-04-16 15:20:36 -0700428
Hans Verkuild5313052008-12-18 13:04:05 -0300429/* ----------------------------------------------------------------------- */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700430
Hans Verkuild5313052008-12-18 13:04:05 -0300431static const struct v4l2_subdev_core_ops tda7432_core_ops = {
432 .queryctrl = tda7432_queryctrl,
433 .g_ctrl = tda7432_g_ctrl,
434 .s_ctrl = tda7432_s_ctrl,
435};
436
437static const struct v4l2_subdev_ops tda7432_ops = {
438 .core = &tda7432_core_ops,
439};
440
441/* ----------------------------------------------------------------------- */
442
443/* *********************** *
444 * i2c interface functions *
445 * *********************** */
446
447static int tda7432_probe(struct i2c_client *client,
448 const struct i2c_device_id *id)
449{
450 struct tda7432 *t;
451 struct v4l2_subdev *sd;
452
453 v4l_info(client, "chip found @ 0x%02x (%s)\n",
454 client->addr << 1, client->adapter->name);
455
456 t = kzalloc(sizeof(*t), GFP_KERNEL);
457 if (!t)
458 return -ENOMEM;
459 sd = &t->sd;
460 v4l2_i2c_subdev_init(sd, client, &tda7432_ops);
461 if (loudness < 0 || loudness > 15) {
462 v4l2_warn(sd, "loudness parameter must be between 0 and 15\n");
463 if (loudness < 0)
464 loudness = 0;
465 if (loudness > 15)
466 loudness = 15;
467 }
468
469 do_tda7432_init(sd);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700470 return 0;
471}
472
Hans Verkuild5313052008-12-18 13:04:05 -0300473static int tda7432_remove(struct i2c_client *client)
Linus Torvalds1da177e2005-04-16 15:20:36 -0700474{
Hans Verkuild5313052008-12-18 13:04:05 -0300475 struct v4l2_subdev *sd = i2c_get_clientdata(client);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700476
Hans Verkuild5313052008-12-18 13:04:05 -0300477 do_tda7432_init(sd);
478 v4l2_device_unregister_subdev(sd);
479 kfree(to_state(sd));
480 return 0;
Linus Torvalds1da177e2005-04-16 15:20:36 -0700481}
482
Hans Verkuild5313052008-12-18 13:04:05 -0300483static const struct i2c_device_id tda7432_id[] = {
484 { "tda7432", 0 },
485 { }
486};
487MODULE_DEVICE_TABLE(i2c, tda7432_id);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700488
Hans Verkuild5313052008-12-18 13:04:05 -0300489static struct v4l2_i2c_driver_data v4l2_i2c_data = {
490 .name = "tda7432",
Hans Verkuild5313052008-12-18 13:04:05 -0300491 .probe = tda7432_probe,
492 .remove = tda7432_remove,
493 .id_table = tda7432_id,
494};