summaryrefslogtreecommitdiff
path: root/linux/drivers/media/dvb/ttpci/av7110_av.c
diff options
context:
space:
mode:
authorMichael Hunold <devnull@localhost>2004-06-24 10:00:34 +0000
committerMichael Hunold <devnull@localhost>2004-06-24 10:00:34 +0000
commit10247e628845887fd47d0bd80c4e6e01ba919750 (patch)
tree533a9fe93b964cf048c08c9ba34486e04cdb50bf /linux/drivers/media/dvb/ttpci/av7110_av.c
parent25a121bba097b66e8fba1e371c5df6321ba51d19 (diff)
downloadmediapointer-dvb-s2-10247e628845887fd47d0bd80c4e6e01ba919750.tar.gz
mediapointer-dvb-s2-10247e628845887fd47d0bd80c4e6e01ba919750.tar.bz2
- 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 <bugreports@nn7.de> for this patch.
Diffstat (limited to 'linux/drivers/media/dvb/ttpci/av7110_av.c')
-rw-r--r--linux/drivers/media/dvb/ttpci/av7110_av.c5
1 files changed, 3 insertions, 2 deletions
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;