Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 137897
b: refs/heads/master
c: 15f8eeb
h: refs/heads/master
i:
  137895: eeb65fa
v: v3
  • Loading branch information
Trent Piepho authored and Mauro Carvalho Chehab committed Mar 30, 2009
1 parent 845d3ae commit 23bb436
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 9 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: fb5deb1b9ecc3c64b713f33ec56781c01a0b11b9
refs/heads/master: 15f8eeb2a86b969d82bfca5d54f1fb30c35cf243
26 changes: 18 additions & 8 deletions trunk/drivers/media/video/bt8xx/bttv-cards.c
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@ static void sigmaSQ_muxsel(struct bttv *btv, unsigned int input);

static void geovision_muxsel(struct bttv *btv, unsigned int input);

static void phytec_muxsel(struct bttv *btv, unsigned int input);

static int terratec_active_radio_upgrade(struct bttv *btv);
static int tea5757_read(struct bttv *btv);
static int tea5757_write(struct bttv *btv, int value);
Expand Down Expand Up @@ -2054,10 +2056,9 @@ struct tvcard bttv_tvcards[] = {
/* .audio_inputs= 0, */
.svhs = 9,
.gpiomask = 0x00,
.gpiomask2 = 0x03, /* gpiomask2 defines the bits used to switch audio
via the upper nibble of muxsel. here: used for
xternal video-mux */
.muxsel = { 0x02, 0x12, 0x22, 0x32, 0x03, 0x13, 0x23, 0x33, 0x01, 0x00 },
.gpiomask2 = 0x03, /* used for external vodeo mux */
.muxsel = { 2, 2, 2, 2, 3, 3, 3, 3, 1, 0 },
.muxsel_hook = phytec_muxsel,
.gpiomux = { 0, 0, 0, 0 }, /* card has no audio */
.needs_tvaudio = 1,
.pll = PLL_28,
Expand All @@ -2070,10 +2071,9 @@ struct tvcard bttv_tvcards[] = {
/* .audio_inputs= 0, */
.svhs = 9,
.gpiomask = 0x00,
.gpiomask2 = 0x03, /* gpiomask2 defines the bits used to switch audio
via the upper nibble of muxsel. here: used for
xternal video-mux */
.muxsel = { 0x02, 0x12, 0x22, 0x32, 0x03, 0x13, 0x23, 0x33, 0x01, 0x01 },
.gpiomask2 = 0x03, /* used for external vodeo mux */
.muxsel = { 2, 2, 2, 2, 3, 3, 3, 3, 1, 1 },
.muxsel_hook = phytec_muxsel,
.gpiomux = { 0, 0, 0, 0 }, /* card has no audio */
.needs_tvaudio = 1,
.pll = PLL_28,
Expand Down Expand Up @@ -4528,6 +4528,16 @@ static void PXC200_muxsel(struct bttv *btv, unsigned int input)
printk(KERN_DEBUG "bttv%d: setting input channel to:%d\n", btv->c.nr,(int)mux);
}

static void phytec_muxsel(struct bttv *btv, unsigned int input)
{
unsigned int mux = input % 4;

if (input == btv->svhs)
mux = 0;

gpio_bits(0x3, mux);
}

/* ----------------------------------------------------------------------- */
/* motherboard chipset specific stuff */

Expand Down

0 comments on commit 23bb436

Please sign in to comment.