diff options
author | Mauro Carvalho Chehab <mchehab@redhat.com> | 2010-03-11 08:26:46 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2010-05-17 23:47:08 -0400 |
commit | c4bccf5e780a1e32807530d6b4b0624f14346cff (patch) | |
tree | fd3d3f83afb588b5466e97611aa345dd72777797 | |
parent | b8e286260e97be4bb245041ae63b9565922246c2 (diff) |
V4L/DVB: tm6000: Replace all Req 8 group of regs with another naming convention
According with the original patch that added the register names, those
are related to tm6010, so name it properly as such. Also, clearly
indicates when a register belongs to Request 0x08 and add its register
value at the name. This makes easier to double check if the proper
register is used along the driver.
This patch were made with the help of this simple perl script, applied
over the definitions of the last register groups:
if (m/define (TM6000_)([^\s]+)\s+0x([A-F0-9].)/) { $name=$2;
$val=$3; printf "s,$1$2,TM6010_REQ08_R%s_%s,g\n", $val, $name; }
And were manually adjusted to fix a few minor issues.
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
-rw-r--r-- | drivers/staging/tm6000/tm6000-regs.h | 114 |
1 files changed, 57 insertions, 57 deletions
diff --git a/drivers/staging/tm6000/tm6000-regs.h b/drivers/staging/tm6000/tm6000-regs.h index 321eb3fc859f..00f7e04c3295 100644 --- a/drivers/staging/tm6000/tm6000-regs.h +++ b/drivers/staging/tm6000/tm6000-regs.h | |||
@@ -478,64 +478,64 @@ enum { | |||
478 | #define TM6000_U_DATA_FIFO15 0xFC | 478 | #define TM6000_U_DATA_FIFO15 0xFC |
479 | 479 | ||
480 | /* Define TM6000/TM6010 Audio decoder registers */ | 480 | /* Define TM6000/TM6010 Audio decoder registers */ |
481 | #define TM6000_A_VERSION 0x00 | 481 | #define TM6010_REQ08_R00_A_VERSION 0x00 |
482 | #define TM6000_A_INIT 0x01 | 482 | #define TM6010_REQ08_R01_A_INIT 0x01 |
483 | #define TM6000_A_FIX_GAIN_CTRL 0x02 | 483 | #define TM6010_REQ08_R02_A_FIX_GAIN_CTRL 0x02 |
484 | #define TM6000_A_AUTO_GAIN_CTRL 0x03 | 484 | #define TM6010_REQ08_R03_A_AUTO_GAIN_CTRL 0x03 |
485 | #define TM6000_A_SIF_AMP_CTRL 0x04 | 485 | #define TM6010_REQ08_R04_A_SIF_AMP_CTRL 0x04 |
486 | #define TM6000_A_STANDARD_MOD 0x05 | 486 | #define TM6010_REQ08_R05_A_STANDARD_MOD 0x05 |
487 | #define TM6000_A_SOUND_MOD 0x06 | 487 | #define TM6010_REQ08_R06_A_SOUND_MOD 0x06 |
488 | #define TM6000_A_LEFT_VOL 0x07 | 488 | #define TM6010_REQ08_R07_A_LEFT_VOL 0x07 |
489 | #define TM6000_A_RIGHT_VOL 0x08 | 489 | #define TM6010_REQ08_R08_A_RIGHT_VOL 0x08 |
490 | #define TM6000_A_MAIN_VOL 0x09 | 490 | #define TM6010_REQ08_R09_A_MAIN_VOL 0x09 |
491 | #define TM6000_A_I2S_MOD 0x0A | 491 | #define TM6010_REQ08_R0A_A_I2S_MOD 0x0A |
492 | #define TM6000_A_ASD_THRES1 0x0B | 492 | #define TM6010_REQ08_R0B_A_ASD_THRES1 0x0B |
493 | #define TM6000_A_ASD_THRES2 0x0C | 493 | #define TM6010_REQ08_R0C_A_ASD_THRES2 0x0C |
494 | #define TM6000_A_AMD_THRES 0x0D | 494 | #define TM6010_REQ08_R0D_A_AMD_THRES 0x0D |
495 | #define TM6000_A_MONO_THRES1 0x0E | 495 | #define TM6010_REQ08_R0E_A_MONO_THRES1 0x0E |
496 | #define TM6000_A_MONO_THRES2 0x0F | 496 | #define TM6010_REQ08_R0F_A_MONO_THRES2 0x0F |
497 | #define TM6000_A_MUTE_THRES1 0x10 | 497 | #define TM6010_REQ08_R10_A_MUTE_THRES1 0x10 |
498 | #define TM6000_A_MUTE_THRES2 0x11 | 498 | #define TM6010_REQ08_R11_A_MUTE_THRES2 0x11 |
499 | #define TM6000_A_AGC_U 0x12 | 499 | #define TM6010_REQ08_R12_A_AGC_U 0x12 |
500 | #define TM6000_A_AGC_ERR_T 0x13 | 500 | #define TM6010_REQ08_R13_A_AGC_ERR_T 0x13 |
501 | #define TM6000_A_AGC_GAIN_INIT 0x14 | 501 | #define TM6010_REQ08_R14_A_AGC_GAIN_INIT 0x14 |
502 | #define TM6000_A_AGC_STEP_THR 0x15 | 502 | #define TM6010_REQ08_R15_A_AGC_STEP_THR 0x15 |
503 | #define TM6000_A_AGC_GAIN_MAX 0x16 | 503 | #define TM6010_REQ08_R16_A_AGC_GAIN_MAX 0x16 |
504 | #define TM6000_A_AGC_GAIN_MIN 0x17 | 504 | #define TM6010_REQ08_R17_A_AGC_GAIN_MIN 0x17 |
505 | #define TM6000_A_TR_CTRL 0x18 | 505 | #define TM6010_REQ08_R18_A_TR_CTRL 0x18 |
506 | #define TM6000_A_FH_2FH_GAIN 0x19 | 506 | #define TM6010_REQ08_R19_A_FH_2FH_GAIN 0x19 |
507 | #define TM6000_A_NICAM_SER_MAX 0x1A | 507 | #define TM6010_REQ08_R1A_A_NICAM_SER_MAX 0x1A |
508 | #define TM6000_A_NICAM_SER_MIN 0x1B | 508 | #define TM6010_REQ08_R1B_A_NICAM_SER_MIN 0x1B |
509 | #define TM6000_A_GAIN_DEEMPH_OUT 0x1E | 509 | #define TM6010_REQ08_R1E_A_GAIN_DEEMPH_OUT 0x1E |
510 | #define TM6000_A_TEST_INTF_SEL 0x1F | 510 | #define TM6010_REQ08_R1F_A_TEST_INTF_SEL 0x1F |
511 | #define TM6000_A_TEST_PIN_SEL 0x20 | 511 | #define TM6010_REQ08_R20_A_TEST_PIN_SEL 0x20 |
512 | #define TM6000_A_AGC_ERR 0x21 | 512 | #define TM6010_REQ08_R21_A_AGC_ERR 0x21 |
513 | #define TM6000_A_AGC_GAIN 0x22 | 513 | #define TM6010_REQ08_R22_A_AGC_GAIN 0x22 |
514 | #define TM6000_A_NICAM_INFO 0x23 | 514 | #define TM6010_REQ08_R23_A_NICAM_INFO 0x23 |
515 | #define TM6000_A_SER 0x24 | 515 | #define TM6010_REQ08_R24_A_SER 0x24 |
516 | #define TM6000_A_C1_AMP 0x25 | 516 | #define TM6010_REQ08_R25_A_C1_AMP 0x25 |
517 | #define TM6000_A_C2_AMP 0x26 | 517 | #define TM6010_REQ08_R26_A_C2_AMP 0x26 |
518 | #define TM6000_A_NOISE_AMP 0x27 | 518 | #define TM6010_REQ08_R27_A_NOISE_AMP 0x27 |
519 | #define TM6000_A_AUDIO_MODE_RES 0x28 | 519 | #define TM6010_REQ08_R28_A_AUDIO_MODE_RES 0x28 |
520 | 520 | ||
521 | /* Define TM6000/TM6010 Video ADC registers */ | 521 | /* Define TM6000/TM6010 Video ADC registers */ |
522 | #define TM6000_ADC_REF 0xE0 | 522 | #define TM6010_REQ08_RE0_ADC_REF 0xE0 |
523 | #define TM6000_DAC_CLMP 0xE1 | 523 | #define TM6010_REQ08_RE1_DAC_CLMP 0xE1 |
524 | #define TM6000_POWER_DOWN_CTRL1 0xE2 | 524 | #define TM6010_REQ08_RE2_POWER_DOWN_CTRL1 0xE2 |
525 | #define TM6000_ADC_IN1_SEL 0xE3 | 525 | #define TM6010_REQ08_RE3_ADC_IN1_SEL 0xE3 |
526 | #define TM6000_ADC_IN2_SEL 0xE4 | 526 | #define TM6010_REQ08_RE4_ADC_IN2_SEL 0xE4 |
527 | #define TM6000_GAIN_PARAM 0xE5 | 527 | #define TM6010_REQ08_RE5_GAIN_PARAM 0xE5 |
528 | #define TM6000_POWER_DOWN_CTRL2 0xE6 | 528 | #define TM6010_REQ08_RE6_POWER_DOWN_CTRL2 0xE6 |
529 | #define TM6000_REG_GAIN_Y 0xE7 | 529 | #define TM6010_REQ08_RE7_REG_GAIN_Y 0xE7 |
530 | #define TM6000_REG_GAIN_C 0xE8 | 530 | #define TM6010_REQ08_RE8_REG_GAIN_C 0xE8 |
531 | #define TM6000_BIAS_CTRL 0xE9 | 531 | #define TM6010_REQ08_RE9_BIAS_CTRL 0xE9 |
532 | #define TM6000_BUFF_DRV_CTRL 0xEA | 532 | #define TM6010_REQ08_REA_BUFF_DRV_CTRL 0xEA |
533 | #define TM6000_SIF_GAIN_CTRL 0xEB | 533 | #define TM6010_REQ08_REB_SIF_GAIN_CTRL 0xEB |
534 | #define TM6000_REVERSE_YC_CTRL 0xEC | 534 | #define TM6010_REQ08_REC_REVERSE_YC_CTRL 0xEC |
535 | #define TM6000_GAIN_SEL 0xED | 535 | #define TM6010_REQ08_RED_GAIN_SEL 0xED |
536 | 536 | ||
537 | /* Define TM6000/TM6010 Audio ADC registers */ | 537 | /* Define TM6000/TM6010 Audio ADC registers */ |
538 | #define TM6000_DAUDIO_INPUT_CONFIG 0xF0 | 538 | #define TM6010_REQ08_RF0_DAUDIO_INPUT_CONFIG 0xF0 |
539 | #define TM6000_AADC_POWER_DOWN 0xF1 | 539 | #define TM6010_REQ08_RF1_AADC_POWER_DOWN 0xF1 |
540 | #define TM6000_LEFT_CHANNEL_VOL 0xF2 | 540 | #define TM6010_REQ08_RF2_LEFT_CHANNEL_VOL 0xF2 |
541 | #define TM6000_RIGHT_CHANNEL_VOL 0xF3 | 541 | #define TM6010_REQ08_RF3_RIGHT_CHANNEL_VOL 0xF3 |