提交 209acc02 编写于 作者: M Mauro Carvalho Chehab

V4L/DVB (9671): em28xx: Add detection of Sigmatel Stac97xx series of AC97 devices

Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
上级 35ae6f04
...@@ -520,6 +520,8 @@ int em28xx_audio_setup(struct em28xx *dev) ...@@ -520,6 +520,8 @@ int em28xx_audio_setup(struct em28xx *dev)
/* Try to identify what audio processor we have */ /* Try to identify what audio processor we have */
if ((vid == 0xffffffff) && (feat == 0x6a90)) if ((vid == 0xffffffff) && (feat == 0x6a90))
dev->audio_mode.ac97 = EM28XX_AC97_EM202; dev->audio_mode.ac97 = EM28XX_AC97_EM202;
else if ((vid >> 8) == 0x838476)
dev->audio_mode.ac97 = EM28XX_AC97_SIGMATEL;
init_audio: init_audio:
/* Reports detected AC97 processor */ /* Reports detected AC97 processor */
...@@ -530,6 +532,10 @@ int em28xx_audio_setup(struct em28xx *dev) ...@@ -530,6 +532,10 @@ int em28xx_audio_setup(struct em28xx *dev)
case EM28XX_AC97_EM202: case EM28XX_AC97_EM202:
em28xx_info("Empia 202 AC97 audio processor detected\n"); em28xx_info("Empia 202 AC97 audio processor detected\n");
break; break;
case EM28XX_AC97_SIGMATEL:
em28xx_info("Sigmatel audio processor detected(stac 97%02x)\n",
dev->audio_mode.ac97_vendor_id & 0xff);
break;
case EM28XX_AC97_OTHER: case EM28XX_AC97_OTHER:
em28xx_warn("Unknown AC97 audio processor detected!\n"); em28xx_warn("Unknown AC97 audio processor detected!\n");
break; break;
......
...@@ -259,6 +259,7 @@ enum enum28xx_itype { ...@@ -259,6 +259,7 @@ enum enum28xx_itype {
enum em28xx_ac97_mode { enum em28xx_ac97_mode {
EM28XX_NO_AC97 = 0, EM28XX_NO_AC97 = 0,
EM28XX_AC97_EM202, EM28XX_AC97_EM202,
EM28XX_AC97_SIGMATEL,
EM28XX_AC97_OTHER, EM28XX_AC97_OTHER,
}; };
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册