Lines Matching refs:t

264 	struct tda7432 *t = i2c_get_clientdata(client);  in tda7432_set()  local
270 t->input,t->volume,t->bass,t->treble,t->lf,t->lr,t->rf,t->rr,t->loud); in tda7432_set()
272 buf[1] = t->input; in tda7432_set()
273 buf[2] = t->volume; in tda7432_set()
274 buf[3] = t->bass; in tda7432_set()
275 buf[4] = t->treble; in tda7432_set()
276 buf[5] = t->lf; in tda7432_set()
277 buf[6] = t->lr; in tda7432_set()
278 buf[7] = t->rf; in tda7432_set()
279 buf[8] = t->rr; in tda7432_set()
280 buf[9] = t->loud; in tda7432_set()
291 struct tda7432 *t = i2c_get_clientdata(client); in do_tda7432_init() local
294 t->input = TDA7432_STEREO_IN | /* Main (stereo) input */ in do_tda7432_init()
297 t->volume = 0x3b ; /* -27dB Volume */ in do_tda7432_init()
299 t->volume |= TDA7432_LD_ON; in do_tda7432_init()
300 t->muted = VIDEO_AUDIO_MUTE; in do_tda7432_init()
301 t->treble = TDA7432_TREBLE_0DB; /* 0dB Treble */ in do_tda7432_init()
302 t->bass = TDA7432_BASS_0DB; /* 0dB Bass */ in do_tda7432_init()
303 t->lf = TDA7432_ATTEN_0DB; /* 0dB attenuation */ in do_tda7432_init()
304 t->lr = TDA7432_ATTEN_0DB; /* 0dB attenuation */ in do_tda7432_init()
305 t->rf = TDA7432_ATTEN_0DB; /* 0dB attenuation */ in do_tda7432_init()
306 t->rr = TDA7432_ATTEN_0DB; /* 0dB attenuation */ in do_tda7432_init()
307 t->loud = loudness; /* insmod parameter */ in do_tda7432_init()
319 struct tda7432 *t; in tda7432_attach() local
323 t = kmalloc(sizeof *t,GFP_KERNEL); in tda7432_attach()
324 if (!t) in tda7432_attach()
326 memset(t,0,sizeof *t); in tda7432_attach()
328 client = &t->c; in tda7432_attach()
332 i2c_set_clientdata(client, t); in tda7432_attach()
356 struct tda7432 *t = i2c_get_clientdata(client); in tda7432_detach() local
361 kfree(t); in tda7432_detach()
369 struct tda7432 *t = i2c_get_clientdata(client); in tda7432_command() local
387 if (t->muted) in tda7432_command()
399 va->volume = ( 0x6f - (t->volume & 0x7F) ) * 630; in tda7432_command()
401 va->volume = ( 0x6f - (t->volume & 0x7F) ) * 829; in tda7432_command()
412 if ( (t->lf) < (t->rf) ) in tda7432_command()
414 va->balance = (32768 - 1057*(t->rf)); in tda7432_command()
417 va->balance = (32768 + 1057*(t->lf)); in tda7432_command()
420 va->bass=t->bass; in tda7432_command()
424 va->treble=t->treble; in tda7432_command()
440 t->volume = 0x6f - ((va->volume)/630); in tda7432_command()
442 t->volume = 0x6f - ((va->volume)/829); in tda7432_command()
446 t->volume |= TDA7432_LD_ON; in tda7432_command()
448 tda7432_write(client,TDA7432_VL, t->volume); in tda7432_command()
453 t->bass = va->bass >> 12; in tda7432_command()
454 if(t->bass>= 0x8) in tda7432_command()
455 t->bass = (~t->bass & 0xf) + 0x8 ; in tda7432_command()
459 t->treble= va->treble >> 12; in tda7432_command()
460 if(t->treble>= 0x8) in tda7432_command()
461 t->treble = (~t->treble & 0xf) + 0x8 ; in tda7432_command()
464 tda7432_write(client,TDA7432_TN, 0x10 | (t->bass << 4) | t->treble ); in tda7432_command()
470 t->rr = (32768 - va->balance)/1057; in tda7432_command()
471 t->rf = t->rr; in tda7432_command()
472 t->lr = TDA7432_ATTEN_0DB; in tda7432_command()
473 t->lf = TDA7432_ATTEN_0DB; in tda7432_command()
478 t->lf = (va->balance - 32768)/1057; in tda7432_command()
479 t->lr = t->lf; in tda7432_command()
480 t->rr = TDA7432_ATTEN_0DB; in tda7432_command()
481 t->rf = TDA7432_ATTEN_0DB; in tda7432_command()
486 t->rr = TDA7432_ATTEN_0DB; in tda7432_command()
487 t->rf = TDA7432_ATTEN_0DB; in tda7432_command()
488 t->lf = TDA7432_ATTEN_0DB; in tda7432_command()
489 t->lr = TDA7432_ATTEN_0DB; in tda7432_command()
493 t->muted=(va->flags & VIDEO_AUDIO_MUTE); in tda7432_command()
494 if (t->muted) in tda7432_command()
497 tda7432_write(client,TDA7432_LF, t->lf | TDA7432_MUTE); in tda7432_command()
498 tda7432_write(client,TDA7432_LR, t->lr | TDA7432_MUTE); in tda7432_command()
499 tda7432_write(client,TDA7432_RF, t->rf | TDA7432_MUTE); in tda7432_command()
500 tda7432_write(client,TDA7432_RR, t->rr | TDA7432_MUTE); in tda7432_command()
502 tda7432_write(client,TDA7432_LF, t->lf); in tda7432_command()
503 tda7432_write(client,TDA7432_LR, t->lr); in tda7432_command()
504 tda7432_write(client,TDA7432_RF, t->rf); in tda7432_command()
505 tda7432_write(client,TDA7432_RR, t->rr); in tda7432_command()