Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 76595
b: refs/heads/master
c: 66e6fbd
h: refs/heads/master
i:
  76593: ed6575e
  76591: 2060e27
v: v3
  • Loading branch information
Ricardo Cerqueira authored and Mauro Carvalho Chehab committed Jan 25, 2008
1 parent a309d9e commit bdbbe79
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 16 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: 6a0bc9a0162d10c551bb916a1a21bfede4db3203
refs/heads/master: 66e6fbdf99420efe58685feda0ac1b73b33400e0
46 changes: 31 additions & 15 deletions trunk/drivers/media/video/cx88/cx88-video.c
Original file line number Diff line number Diff line change
Expand Up @@ -392,25 +392,41 @@ int cx88_video_mux(struct cx88_core *core, unsigned int input)
break;
}

if (core->board.mpeg & CX88_MPEG_BLACKBIRD) {
/* sets sound input from external adc */
if (INPUT(input).audioroute) {
/* The wm8775 module has the "2" route hardwired into
the initialization. Some boards may use different
routes for different inputs. HVR-1300 surely does */
if (core->board.audio_chip &&
core->board.audio_chip == AUDIO_CHIP_WM8775) {
struct v4l2_routing route;

route.input = INPUT(input).audioroute;
cx88_call_i2c_clients(core,
VIDIOC_INT_S_AUDIO_ROUTING,&route);
}
/* if there are audioroutes defined, we have an external
ADC to deal with audio */

if (INPUT(input).audioroute) {

/* cx2388's C-ADC is connected to the tuner only.
When used with S-Video, that ADC is busy dealing with
chroma, so an external must be used for baseband audio */

if (INPUT(input).type != CX88_VMUX_TELEVISION &&
INPUT(input).type != CX88_RADIO) {
/* "ADC mode" */
cx_write(AUD_I2SCNTL, 0x1);
cx_set(AUD_CTL, EN_I2SIN_ENABLE);
} else
} else {
/* Normal mode */
cx_write(AUD_I2SCNTL, 0x0);
cx_clear(AUD_CTL, EN_I2SIN_ENABLE);
}

/* The wm8775 module has the "2" route hardwired into
the initialization. Some boards may use different
routes for different inputs. HVR-1300 surely does */
if (core->board.audio_chip &&
core->board.audio_chip == AUDIO_CHIP_WM8775) {
struct v4l2_routing route;

route.input = INPUT(input).audioroute;
cx88_call_i2c_clients(core,
VIDIOC_INT_S_AUDIO_ROUTING,&route);

}

}

return 0;
}
EXPORT_SYMBOL(cx88_video_mux);
Expand Down

0 comments on commit bdbbe79

Please sign in to comment.