fw/layer1: Resync TCH primitive on mode changes
authorSylvain Munaut <tnt@246tNt.com>
Mon, 27 Dec 2010 15:07:30 +0000 (16:07 +0100)
committerSylvain Munaut <tnt@246tNt.com>
Mon, 27 Dec 2010 15:07:30 +0000 (16:07 +0100)
This is needed for audio to work properly in VEA mode

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
src/target/firmware/layer1/l23_api.c

index 19838f1..aef12a5 100644 (file)
@@ -457,6 +457,8 @@ static void l1ctl_rx_tch_mode_req(struct msgb *msg)
 
        audio_set_enabled(tch_mode != GSM48_CMODE_SIGN);
 
+       l1s.tch_sync = 1; /* Needed for audio to work */
+
        l1ctl_tx_tch_mode_conf(tch_mode);
 }