From 10247e628845887fd47d0bd80c4e6e01ba919750 Mon Sep 17 00:00:00 2001 From: Michael Hunold Date: Thu, 24 Jun 2004 10:00:34 +0000 Subject: - put audio/video initialization into separate function init_av7110_av() - call this function after system initialization and after arm crash to restore the previous state Thanks to Soeren Sonnenburg for this patch. --- linux/drivers/media/dvb/ttpci/av7110_av.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'linux/drivers/media/dvb/ttpci/av7110_av.c') diff --git a/linux/drivers/media/dvb/ttpci/av7110_av.c b/linux/drivers/media/dvb/ttpci/av7110_av.c index 054e2e90d..bb663a66e 100644 --- a/linux/drivers/media/dvb/ttpci/av7110_av.c +++ b/linux/drivers/media/dvb/ttpci/av7110_av.c @@ -93,7 +93,6 @@ extern int av7110_debug; #define PIECE_RATE 0x40 #define SEAM_SPLICE 0x20 - static void p_to_t(u8 const *buf, long int length, u16 pid, u8 *counter, struct dvb_demux_feed *feed); @@ -285,13 +284,15 @@ int av7110_pes_play(void *dest, struct dvb_ringbuffer *buf, int dlen) return blen; } - int av7110_set_volume(struct av7110 *av7110, int volleft, int volright) { int err, vol, val, balance = 0; DEB_EE(("av7110: %p\n", av7110)); + av7110->mixer.volume_left = volleft; + av7110->mixer.volume_left = volright; + switch (av7110->adac_type) { case DVB_ADAC_TI: volleft = (volleft * 256) / 1036; -- cgit v1.2.3