diff options
author | 2008-11-19 08:22:28 -0300 | |
---|---|---|
committer | 2008-12-29 17:53:35 -0200 | |
commit | 5c2231c84304563fd5d28e8bbb72e09e882a8e32 (patch) | |
tree | 7cb20b4e39b1c9f4c41141a33e485e06651117a6 /drivers/media/video/em28xx/em28xx.h | |
parent | V4L/DVB (9644): em28xx: add em2750 to the list of known em28xx chip ids (diff) | |
download | linux-dev-5c2231c84304563fd5d28e8bbb72e09e882a8e32.tar.xz linux-dev-5c2231c84304563fd5d28e8bbb72e09e882a8e32.zip |
V4L/DVB (9648): em28xx: get audio config from em28xx register
Make use of the em28xx chip configuration register to determine whether
we have AC97 audio, I2S audio, or no audio support at all.
Thanks for Ray Lu from Empia for providing the em2860/em2880 datasheet.
Signed-off-by: Devin Heitmueller <devin.heitmueller@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/em28xx/em28xx.h')
-rw-r--r-- | drivers/media/video/em28xx/em28xx.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/media/video/em28xx/em28xx.h b/drivers/media/video/em28xx/em28xx.h index 3152d00e548b..f47c8d34ec79 100644 --- a/drivers/media/video/em28xx/em28xx.h +++ b/drivers/media/video/em28xx/em28xx.h @@ -256,6 +256,13 @@ enum enum28xx_itype { EM28XX_RADIO, }; +enum em28xx_audio_mode { + EM28XX_NO_AUDIO, + EM28XX_I2S_3_SAMPLE_RATES, + EM28XX_I2S_5_SAMPLE_RATES, + EM28XX_AC97, +}; + enum em28xx_amux { EM28XX_AMUX_VIDEO, EM28XX_AMUX_LINE_IN, @@ -403,6 +410,7 @@ struct em28xx { u32 i2s_speed; /* I2S speed for audio digital stream */ enum em28xx_decoder decoder; + enum em28xx_audio_mode audio_mode; int tuner_type; /* type of the tuner */ int tuner_addr; /* tuner address */ |