summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video/em28xx/em28xx.h
diff options
context:
space:
mode:
authorJean-Francois Moine <moinejf@free.fr>2009-01-13 20:06:19 +0100
committerJean-Francois Moine <moinejf@free.fr>2009-01-13 20:06:19 +0100
commit00abd610443e966d526559a4bbeb4d59eb4883a7 (patch)
tree4e64c9f3ca782d6492a404aba39369abd46aed7f /linux/drivers/media/video/em28xx/em28xx.h
parentbb88bf784a8d66e5ef9285053fa68cf64750384d (diff)
parent414f605809c641ec2e56f89f52aa05b7c8e67fa0 (diff)
downloadmediapointer-dvb-s2-00abd610443e966d526559a4bbeb4d59eb4883a7.tar.gz
mediapointer-dvb-s2-00abd610443e966d526559a4bbeb4d59eb4883a7.tar.bz2
merge v4l-dvb
Diffstat (limited to 'linux/drivers/media/video/em28xx/em28xx.h')
-rw-r--r--linux/drivers/media/video/em28xx/em28xx.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/linux/drivers/media/video/em28xx/em28xx.h b/linux/drivers/media/video/em28xx/em28xx.h
index 06fe92efc..04397c7ad 100644
--- a/linux/drivers/media/video/em28xx/em28xx.h
+++ b/linux/drivers/media/video/em28xx/em28xx.h
@@ -301,13 +301,32 @@ enum em28xx_amux {
};
enum em28xx_aout {
+ /* AC97 outputs */
EM28XX_AOUT_MASTER = 1 << 0,
EM28XX_AOUT_LINE = 1 << 1,
EM28XX_AOUT_MONO = 1 << 2,
EM28XX_AOUT_LFE = 1 << 3,
EM28XX_AOUT_SURR = 1 << 4,
+
+ /* PCM IN Mixer - used by AC97_RECORD_SELECT register */
+ EM28XX_AOUT_PCM_IN = 1 << 7,
+
+ /* Bits 10-8 are used to indicate the PCM IN record select */
+ EM28XX_AOUT_PCM_MIC_PCM = 0 << 8,
+ EM28XX_AOUT_PCM_CD = 1 << 8,
+ EM28XX_AOUT_PCM_VIDEO = 2 << 8,
+ EM28XX_AOUT_PCM_AUX = 3 << 8,
+ EM28XX_AOUT_PCM_LINE = 4 << 8,
+ EM28XX_AOUT_PCM_STEREO = 5 << 8,
+ EM28XX_AOUT_PCM_MONO = 6 << 8,
+ EM28XX_AOUT_PCM_PHONE = 7 << 8,
};
+static int ac97_return_record_select(int a_out)
+{
+ return (a_out & 0x700) >> 8;
+}
+
struct em28xx_reg_seq {
int reg;
unsigned char val, mask;