aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorManu Abraham <abraham.manu@gmail.com>2006-06-21 09:27:49 -0400
committerMauro Carvalho Chehab <mchehab@infradead.org>2006-06-25 01:05:16 -0400
commit396cffd63ed460ae2544d62745fabd22296af99a (patch)
treef898cbe3639afae4d4c32f10f2f7fff9d3961101 /drivers
parent1c4e7339e55af69bad55eb9a8f9d5b03a552020b (diff)
V4L/DVB (4164): Add DVB-S specific demod names
Signed-off-by: Manu Abraham <manu@linuxtv.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/media/dvb/bt8xx/dst.c45
-rw-r--r--drivers/media/dvb/bt8xx/dst_common.h8
2 files changed, 37 insertions, 16 deletions
diff --git a/drivers/media/dvb/bt8xx/dst.c b/drivers/media/dvb/bt8xx/dst.c
index 5431caebcd68..d2a7e413e9e1 100644
--- a/drivers/media/dvb/bt8xx/dst.c
+++ b/drivers/media/dvb/bt8xx/dst.c
@@ -627,7 +627,8 @@ static struct dst_types dst_tlist[] = {
627 .offset = 0, 627 .offset = 0,
628 .dst_type = DST_TYPE_IS_SAT, 628 .dst_type = DST_TYPE_IS_SAT,
629 .type_flags = DST_TYPE_HAS_SYMDIV | DST_TYPE_HAS_FW_1 | DST_TYPE_HAS_OBS_REGS, 629 .type_flags = DST_TYPE_HAS_SYMDIV | DST_TYPE_HAS_FW_1 | DST_TYPE_HAS_OBS_REGS,
630 .dst_feature = 0 630 .dst_feature = 0,
631 .tuner_type = 0
631 }, /* obsolete */ 632 }, /* obsolete */
632 633
633 { 634 {
@@ -635,7 +636,8 @@ static struct dst_types dst_tlist[] = {
635 .offset = 0, 636 .offset = 0,
636 .dst_type = DST_TYPE_IS_SAT, 637 .dst_type = DST_TYPE_IS_SAT,
637 .type_flags = DST_TYPE_HAS_SYMDIV | DST_TYPE_HAS_FW_1, 638 .type_flags = DST_TYPE_HAS_SYMDIV | DST_TYPE_HAS_FW_1,
638 .dst_feature = 0 639 .dst_feature = 0,
640 .tuner_type = 0
639 }, /* obsolete */ 641 }, /* obsolete */
640 642
641 { 643 {
@@ -643,7 +645,8 @@ static struct dst_types dst_tlist[] = {
643 .offset = 0, 645 .offset = 0,
644 .dst_type = DST_TYPE_IS_SAT, 646 .dst_type = DST_TYPE_IS_SAT,
645 .type_flags = DST_TYPE_HAS_TS204 | DST_TYPE_HAS_NEWTUNE | DST_TYPE_HAS_FW_1, 647 .type_flags = DST_TYPE_HAS_TS204 | DST_TYPE_HAS_NEWTUNE | DST_TYPE_HAS_FW_1,
646 .dst_feature = 0 648 .dst_feature = 0,
649 .tuner_type = 0
647 }, /* obsolete */ 650 }, /* obsolete */
648 651
649 { 652 {
@@ -652,7 +655,8 @@ static struct dst_types dst_tlist[] = {
652 .dst_type = DST_TYPE_IS_SAT, 655 .dst_type = DST_TYPE_IS_SAT,
653 .type_flags = DST_TYPE_HAS_SYMDIV | DST_TYPE_HAS_TS204 | DST_TYPE_HAS_FW_2, 656 .type_flags = DST_TYPE_HAS_SYMDIV | DST_TYPE_HAS_TS204 | DST_TYPE_HAS_FW_2,
654 .dst_feature = DST_TYPE_HAS_DISEQC3 | DST_TYPE_HAS_DISEQC4 | DST_TYPE_HAS_DISEQC5 657 .dst_feature = DST_TYPE_HAS_DISEQC3 | DST_TYPE_HAS_DISEQC4 | DST_TYPE_HAS_DISEQC5
655 | DST_TYPE_HAS_MAC | DST_TYPE_HAS_MOTO 658 | DST_TYPE_HAS_MAC | DST_TYPE_HAS_MOTO,
659 .tuner_type = TUNER_TYPE_STV0299
656 }, 660 },
657 661
658 { 662 {
@@ -660,7 +664,8 @@ static struct dst_types dst_tlist[] = {
660 .offset = 0, 664 .offset = 0,
661 .dst_type = DST_TYPE_IS_SAT, 665 .dst_type = DST_TYPE_IS_SAT,
662 .type_flags = DST_TYPE_HAS_SYMDIV | DST_TYPE_HAS_FW_1, 666 .type_flags = DST_TYPE_HAS_SYMDIV | DST_TYPE_HAS_FW_1,
663 .dst_feature = 0 667 .dst_feature = 0,
668 .tuner_type = 0
664 }, /* obsolete */ 669 }, /* obsolete */
665 670
666 { 671 {
@@ -668,7 +673,8 @@ static struct dst_types dst_tlist[] = {
668 .offset = 1, 673 .offset = 1,
669 .dst_type = DST_TYPE_IS_SAT, 674 .dst_type = DST_TYPE_IS_SAT,
670 .type_flags = DST_TYPE_HAS_TS204 | DST_TYPE_HAS_FW_1, 675 .type_flags = DST_TYPE_HAS_TS204 | DST_TYPE_HAS_FW_1,
671 .dst_feature = DST_TYPE_HAS_CA 676 .dst_feature = DST_TYPE_HAS_CA,
677 .tuner_type = 0
672 }, /* An OEM board */ 678 }, /* An OEM board */
673 679
674 { 680 {
@@ -677,7 +683,8 @@ static struct dst_types dst_tlist[] = {
677 .dst_type = DST_TYPE_IS_SAT, 683 .dst_type = DST_TYPE_IS_SAT,
678 .type_flags = DST_TYPE_HAS_NEWTUNE | DST_TYPE_HAS_FW_2 | DST_TYPE_HAS_FW_BUILD | DST_TYPE_HAS_INC_COUNT, 684 .type_flags = DST_TYPE_HAS_NEWTUNE | DST_TYPE_HAS_FW_2 | DST_TYPE_HAS_FW_BUILD | DST_TYPE_HAS_INC_COUNT,
679 .dst_feature = DST_TYPE_HAS_CA | DST_TYPE_HAS_DISEQC3 | DST_TYPE_HAS_DISEQC4 685 .dst_feature = DST_TYPE_HAS_CA | DST_TYPE_HAS_DISEQC3 | DST_TYPE_HAS_DISEQC4
680 | DST_TYPE_HAS_MOTO | DST_TYPE_HAS_MAC 686 | DST_TYPE_HAS_MOTO | DST_TYPE_HAS_MAC,
687 .tuner_type = TUNER_TYPE_MULTI
681 }, 688 },
682 689
683 { 690 {
@@ -685,7 +692,8 @@ static struct dst_types dst_tlist[] = {
685 .offset = 1, 692 .offset = 1,
686 .dst_type = DST_TYPE_IS_SAT, 693 .dst_type = DST_TYPE_IS_SAT,
687 .type_flags = DST_TYPE_HAS_NEWTUNE | DST_TYPE_HAS_FW_1, 694 .type_flags = DST_TYPE_HAS_NEWTUNE | DST_TYPE_HAS_FW_1,
688 .dst_feature = 0 695 .dst_feature = 0,
696 .tuner_type = 0
689 }, /* unknown to vendor */ 697 }, /* unknown to vendor */
690 698
691 { 699 {
@@ -693,7 +701,8 @@ static struct dst_types dst_tlist[] = {
693 .offset = 1, 701 .offset = 1,
694 .dst_type = DST_TYPE_IS_CABLE, 702 .dst_type = DST_TYPE_IS_CABLE,
695 .type_flags = DST_TYPE_HAS_MULTI_FE | DST_TYPE_HAS_FW_1 | DST_TYPE_HAS_FW_2, 703 .type_flags = DST_TYPE_HAS_MULTI_FE | DST_TYPE_HAS_FW_1 | DST_TYPE_HAS_FW_2,
696 .dst_feature = DST_TYPE_HAS_CA 704 .dst_feature = DST_TYPE_HAS_CA,
705 .tuner_type = 0
697 }, 706 },
698 707
699 { 708 {
@@ -701,7 +710,8 @@ static struct dst_types dst_tlist[] = {
701 .offset = 1, 710 .offset = 1,
702 .dst_type = DST_TYPE_IS_CABLE, 711 .dst_type = DST_TYPE_IS_CABLE,
703 .type_flags = DST_TYPE_HAS_NEWTUNE | DST_TYPE_HAS_FW_3 | DST_TYPE_HAS_FW_BUILD, 712 .type_flags = DST_TYPE_HAS_NEWTUNE | DST_TYPE_HAS_FW_3 | DST_TYPE_HAS_FW_BUILD,
704 .dst_feature = 0 713 .dst_feature = 0,
714 .tuner_type = 0
705 }, 715 },
706 716
707 { 717 {
@@ -709,7 +719,8 @@ static struct dst_types dst_tlist[] = {
709 .offset = 1, 719 .offset = 1,
710 .dst_type = DST_TYPE_IS_TERR, 720 .dst_type = DST_TYPE_IS_TERR,
711 .type_flags = DST_TYPE_HAS_FW_2 | DST_TYPE_HAS_MULTI_FE, 721 .type_flags = DST_TYPE_HAS_FW_2 | DST_TYPE_HAS_MULTI_FE,
712 .dst_feature = DST_TYPE_HAS_CA 722 .dst_feature = DST_TYPE_HAS_CA,
723 .tuner_type = 0
713 }, 724 },
714 725
715 { 726 {
@@ -717,7 +728,8 @@ static struct dst_types dst_tlist[] = {
717 .offset = 1, 728 .offset = 1,
718 .dst_type = DST_TYPE_IS_TERR, 729 .dst_type = DST_TYPE_IS_TERR,
719 .type_flags = DST_TYPE_HAS_FW_2, 730 .type_flags = DST_TYPE_HAS_FW_2,
720 .dst_feature = 0 731 .dst_feature = 0,
732 .tuner_type = 0
721 }, 733 },
722 734
723 { 735 {
@@ -725,7 +737,8 @@ static struct dst_types dst_tlist[] = {
725 .offset = 1, 737 .offset = 1,
726 .dst_type = DST_TYPE_IS_TERR, 738 .dst_type = DST_TYPE_IS_TERR,
727 .type_flags = DST_TYPE_HAS_FW_2, 739 .type_flags = DST_TYPE_HAS_FW_2,
728 .dst_feature = DST_TYPE_HAS_ANALOG 740 .dst_feature = DST_TYPE_HAS_ANALOG,
741 .tuner_type = 0
729 }, 742 },
730 743
731 { 744 {
@@ -733,7 +746,8 @@ static struct dst_types dst_tlist[] = {
733 .offset = 1, 746 .offset = 1,
734 .dst_type = DST_TYPE_IS_ATSC, 747 .dst_type = DST_TYPE_IS_ATSC,
735 .type_flags = DST_TYPE_HAS_FW_2, 748 .type_flags = DST_TYPE_HAS_FW_2,
736 .dst_feature = 0 749 .dst_feature = 0,
750 .tuner_type = 0
737 }, 751 },
738 752
739 { 753 {
@@ -741,7 +755,8 @@ static struct dst_types dst_tlist[] = {
741 .offset = 1, 755 .offset = 1,
742 .dst_type = DST_TYPE_IS_ATSC, 756 .dst_type = DST_TYPE_IS_ATSC,
743 .type_flags = DST_TYPE_HAS_MULTI_FE | DST_TYPE_HAS_FW_2 | DST_TYPE_HAS_FW_BUILD, 757 .type_flags = DST_TYPE_HAS_MULTI_FE | DST_TYPE_HAS_FW_2 | DST_TYPE_HAS_FW_BUILD,
744 .dst_feature = DST_TYPE_HAS_MAC | DST_TYPE_HAS_ANALOG 758 .dst_feature = DST_TYPE_HAS_MAC | DST_TYPE_HAS_ANALOG,
759 .tuner_type = 0
745 }, 760 },
746 761
747 { } 762 { }
diff --git a/drivers/media/dvb/bt8xx/dst_common.h b/drivers/media/dvb/bt8xx/dst_common.h
index 5bd1bdc4e5f4..3908c5b8c72d 100644
--- a/drivers/media/dvb/bt8xx/dst_common.h
+++ b/drivers/media/dvb/bt8xx/dst_common.h
@@ -64,6 +64,11 @@
64#define DST_TYPE_HAS_ANALOG 64 /* Analog inputs */ 64#define DST_TYPE_HAS_ANALOG 64 /* Analog inputs */
65#define DST_TYPE_HAS_SESSION 128 65#define DST_TYPE_HAS_SESSION 128
66 66
67#define TUNER_TYPE_MULTI 1
68#define TUNER_TYPE_L64724 2
69#define TUNER_TYPE_STV0299 4
70#define TUNER_TYPE_MB86A15 8
71
67#define RDC_8820_PIO_0_DISABLE 0 72#define RDC_8820_PIO_0_DISABLE 0
68#define RDC_8820_PIO_0_ENABLE 1 73#define RDC_8820_PIO_0_ENABLE 1
69#define RDC_8820_INT 2 74#define RDC_8820_INT 2
@@ -119,7 +124,7 @@ struct dst_state {
119 u8 card_info[8]; 124 u8 card_info[8];
120 u8 vendor[8]; 125 u8 vendor[8];
121 u8 board_info[8]; 126 u8 board_info[8];
122 127 u32 tuner_type;
123 struct mutex dst_mutex; 128 struct mutex dst_mutex;
124}; 129};
125 130
@@ -129,6 +134,7 @@ struct dst_types {
129 u8 dst_type; 134 u8 dst_type;
130 u32 type_flags; 135 u32 type_flags;
131 u32 dst_feature; 136 u32 dst_feature;
137 u32 tuner_type;
132}; 138};
133 139
134struct dst_config 140struct dst_config