Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 103811
b: refs/heads/master
c: f808a9e
h: refs/heads/master
i:
  103809: 533ea6b
  103807: 1a50209
v: v3
  • Loading branch information
Dmitri Belimov authored and Mauro Carvalho Chehab committed Jul 20, 2008
1 parent 7098d28 commit 35487c0
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 7 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: 53af158a901a32dd8639fbe03db5354ab711d8f0
refs/heads/master: f808a9e3cefd577d96d43d308685468c0a03185e
1 change: 1 addition & 0 deletions trunk/drivers/media/video/saa7134/saa7134-reg.h
Original file line number Diff line number Diff line change
Expand Up @@ -353,6 +353,7 @@

/* I2S output */
#define SAA7134_I2S_AUDIO_OUTPUT 0x1c0
#define SAA7134_I2S_AUDIO_CONTROL 0x591

/* test modes */
#define SAA7134_SPECIAL_MODE 0x1d0
Expand Down
24 changes: 18 additions & 6 deletions trunk/drivers/media/video/saa7134/saa7134-tvaudio.c
Original file line number Diff line number Diff line change
Expand Up @@ -873,13 +873,25 @@ void saa7134_enable_i2s(struct saa7134_dev *dev)

if (!card_is_empress(dev))
return;
i2s_format = (dev->input->amux == TV) ? 0x00 : 0x01;

/* enable I2S audio output for the mpeg encoder */
saa_writeb(SAA7134_I2S_OUTPUT_SELECT, 0x80);
saa_writeb(SAA7134_I2S_OUTPUT_FORMAT, i2s_format);
saa_writeb(SAA7134_I2S_OUTPUT_LEVEL, 0x0F);
saa_writeb(SAA7134_I2S_AUDIO_OUTPUT, 0x01);
switch (dev->board) {
case SAA7134_BOARD_BEHOLD_M6:
/* configure GPIO for out audio */
saa_andorl(SAA7134_GPIO_GPMODE0 >> 2, 0x0E000000, 0x00000000);
/* Set I2S format */
saa_writeb(SAA7134_I2S_AUDIO_CONTROL, 0x00);
/* Start I2S */
saa_writeb(SAA7134_I2S_AUDIO_OUTPUT, 0x11);
break;
default:
i2s_format = (dev->input->amux == TV) ? 0x00 : 0x01;

/* enable I2S audio output for the mpeg encoder */
saa_writeb(SAA7134_I2S_OUTPUT_SELECT, 0x80);
saa_writeb(SAA7134_I2S_OUTPUT_FORMAT, i2s_format);
saa_writeb(SAA7134_I2S_OUTPUT_LEVEL, 0x0F);
saa_writeb(SAA7134_I2S_AUDIO_OUTPUT, 0x01);
}
}

int saa7134_tvaudio_rx2mode(u32 rx)
Expand Down

0 comments on commit 35487c0

Please sign in to comment.