[PATCH] V4L/DVB (3181): Enable SPDIF output for DVB-S rev 2.3
authorOliver Endriss <o.endriss@gmx.de>
Mon, 19 Dec 2005 10:54:11 +0000 (08:54 -0200)
committerMauro Carvalho Chehab <mchehab@brturbo.com.br>
Mon, 19 Dec 2005 10:54:11 +0000 (08:54 -0200)
- Enable SPDIF output for DVB-S rev 2.3. Firmware 2623 or higher required.

Signed-off-by: Oliver Endriss <o.endriss@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br>
drivers/media/dvb/ttpci/av7110.c
drivers/media/dvb/ttpci/av7110_hw.h

index 992be0be6b1eb9bc2922154946b7d43ab0a6f78b..7dae91e5863c002c885e4247b8b253dfe37dc90c 100644 (file)
@@ -176,6 +176,9 @@ static void init_av7110_av(struct av7110 *av7110)
                }
        }
 
+       if (dev->pci->subsystem_vendor == 0x13c2 && dev->pci->subsystem_device == 0x000e)
+               av7110_fw_cmd(av7110, COMTYPE_AUDIODAC, SpdifSwitch, 1, 0); // SPDIF on
+
        ret = av7110_set_volume(av7110, av7110->mixer.volume_left, av7110->mixer.volume_right);
        if (ret < 0)
                printk("dvb-ttpci:cannot set volume :%d\n",ret);
index fedd20f9815d69632f75dbe9918dccce6061a06a..2a5e87ba10521129f04738ea5d9d178598581acd 100644 (file)
@@ -143,7 +143,8 @@ enum av7110_audio_command {
        MainSwitch,
        ADSwitch,
        SendDiSEqC,
-       SetRegister
+       SetRegister,
+       SpdifSwitch
 };
 
 enum av7110_request_command {