summaryrefslogtreecommitdiff
path: root/linux/drivers/media/dvb/ttpci
diff options
context:
space:
mode:
authorOliver Endriss <devnull@localhost>2005-12-16 01:28:08 +0000
committerOliver Endriss <devnull@localhost>2005-12-16 01:28:08 +0000
commit7eebd9507bd559c9100e7393ef99222f371ea2bc (patch)
tree34f057ff4ddfe644f1286facee55f89280657195 /linux/drivers/media/dvb/ttpci
parent42be7ad6d82806d31300fedc8345fcc21519d466 (diff)
downloadmediapointer-dvb-s2-7eebd9507bd559c9100e7393ef99222f371ea2bc.tar.gz
mediapointer-dvb-s2-7eebd9507bd559c9100e7393ef99222f371ea2bc.tar.bz2
Enable SPDIF output for DVB-S rev 2.3
Enable SPDIF output for DVB-S rev 2.3. Firmware 2623 or higher required. Signed-off-by: Oliver Endriss <o.endriss@gmx.de>
Diffstat (limited to 'linux/drivers/media/dvb/ttpci')
-rw-r--r--linux/drivers/media/dvb/ttpci/av7110.c3
-rw-r--r--linux/drivers/media/dvb/ttpci/av7110_hw.h3
2 files changed, 5 insertions, 1 deletions
diff --git a/linux/drivers/media/dvb/ttpci/av7110.c b/linux/drivers/media/dvb/ttpci/av7110.c
index 482c3e019..ec1e40efe 100644
--- a/linux/drivers/media/dvb/ttpci/av7110.c
+++ b/linux/drivers/media/dvb/ttpci/av7110.c
@@ -182,6 +182,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);
diff --git a/linux/drivers/media/dvb/ttpci/av7110_hw.h b/linux/drivers/media/dvb/ttpci/av7110_hw.h
index fedd20f98..2a5e87ba1 100644
--- a/linux/drivers/media/dvb/ttpci/av7110_hw.h
+++ b/linux/drivers/media/dvb/ttpci/av7110_hw.h
@@ -143,7 +143,8 @@ enum av7110_audio_command {
MainSwitch,
ADSwitch,
SendDiSEqC,
- SetRegister
+ SetRegister,
+ SpdifSwitch
};
enum av7110_request_command {