aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb/ttpci/av7110.c
diff options
context:
space:
mode:
authorOliver Endriss <o.endriss@gmx.de>2007-07-12 22:08:07 -0400
committerMauro Carvalho Chehab <mchehab@infradead.org>2007-07-18 13:24:45 -0400
commitdefd574ec07edaa1587da144d03b18495ab484b1 (patch)
treebdae7a93277c212096e552779e21891fc1c67d19 /drivers/media/dvb/ttpci/av7110.c
parent804b4458943f14bf144d3c3ba50097ced9b27b29 (diff)
V4L/DVB (5836): dvb-ttpci: re-initialize aspect ratio and pan scan after arm crash
Re-initialize aspect ratio and pan scan after arm crash. Signed-off-by: Oliver Endriss <o.endriss@gmx.de> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/dvb/ttpci/av7110.c')
-rw-r--r--drivers/media/dvb/ttpci/av7110.c13
1 files changed, 11 insertions, 2 deletions
diff --git a/drivers/media/dvb/ttpci/av7110.c b/drivers/media/dvb/ttpci/av7110.c
index ef1108c0bf11..2cee9e3bd29f 100644
--- a/drivers/media/dvb/ttpci/av7110.c
+++ b/drivers/media/dvb/ttpci/av7110.c
@@ -137,6 +137,15 @@ static void init_av7110_av(struct av7110 *av7110)
137 if (ret < 0) 137 if (ret < 0)
138 printk("dvb-ttpci:cannot set internal volume to maximum:%d\n",ret); 138 printk("dvb-ttpci:cannot set internal volume to maximum:%d\n",ret);
139 139
140 ret = av7110_fw_cmd(av7110, COMTYPE_ENCODER, SetMonitorType,
141 1, (u16) av7110->display_ar);
142 if (ret < 0)
143 printk("dvb-ttpci: unable to set aspect ratio\n");
144 ret = av7110_fw_cmd(av7110, COMTYPE_ENCODER, SetPanScanType,
145 1, av7110->display_panscan);
146 if (ret < 0)
147 printk("dvb-ttpci: unable to set pan scan\n");
148
140 ret = av7110_fw_cmd(av7110, COMTYPE_ENCODER, SetWSSConfig, 2, 2, wss_cfg_4_3); 149 ret = av7110_fw_cmd(av7110, COMTYPE_ENCODER, SetWSSConfig, 2, 2, wss_cfg_4_3);
141 if (ret < 0) 150 if (ret < 0)
142 printk("dvb-ttpci: unable to configure 4:3 wss\n"); 151 printk("dvb-ttpci: unable to configure 4:3 wss\n");
@@ -2639,12 +2648,12 @@ static int __devinit av7110_attach(struct saa7146_dev* dev,
2639 av7110->mixer.volume_left = volume; 2648 av7110->mixer.volume_left = volume;
2640 av7110->mixer.volume_right = volume; 2649 av7110->mixer.volume_right = volume;
2641 2650
2642 init_av7110_av(av7110);
2643
2644 ret = av7110_register(av7110); 2651 ret = av7110_register(av7110);
2645 if (ret < 0) 2652 if (ret < 0)
2646 goto err_arm_thread_stop_10; 2653 goto err_arm_thread_stop_10;
2647 2654
2655 init_av7110_av(av7110);
2656
2648 /* special case DVB-C: these cards have an analog tuner 2657 /* special case DVB-C: these cards have an analog tuner
2649 plus need some special handling, so we have separate 2658 plus need some special handling, so we have separate
2650 saa7146_ext_vv data for these... */ 2659 saa7146_ext_vv data for these... */