V4L/DVB (9671): em28xx: Add detection of Sigmatel Stac97xx series of AC97 devices
authorMauro Carvalho Chehab <mchehab@redhat.com>
Thu, 20 Nov 2008 15:49:33 +0000 (12:49 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 29 Dec 2008 19:53:37 +0000 (17:53 -0200)
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/em28xx/em28xx-core.c
drivers/media/video/em28xx/em28xx.h

index 8aead5e84d0f1ab2523eb03e15818d29621f6194..cb60864041e7e7d308944dd071c69e1d7b1040dd 100644 (file)
@@ -520,6 +520,8 @@ int em28xx_audio_setup(struct em28xx *dev)
        /* Try to identify what audio processor we have */
        if ((vid == 0xffffffff) && (feat == 0x6a90))
                dev->audio_mode.ac97 = EM28XX_AC97_EM202;
+       else if ((vid >> 8) == 0x838476)
+               dev->audio_mode.ac97 = EM28XX_AC97_SIGMATEL;
 
 init_audio:
        /* Reports detected AC97 processor */
@@ -530,6 +532,10 @@ init_audio:
        case EM28XX_AC97_EM202:
                em28xx_info("Empia 202 AC97 audio processor detected\n");
                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:
                em28xx_warn("Unknown AC97 audio processor detected!\n");
                break;
index 89e13c599f8dde45dc84fbcf9ce30ee31c5a0d5c..206f59c1e938d7c86d47a6fc9c292208f0086d47 100644 (file)
@@ -259,6 +259,7 @@ enum enum28xx_itype {
 enum em28xx_ac97_mode {
        EM28XX_NO_AC97 = 0,
        EM28XX_AC97_EM202,
+       EM28XX_AC97_SIGMATEL,
        EM28XX_AC97_OTHER,
 };