l23/l1ctl: Add default values for audio_mode
authorSylvain Munaut <tnt@246tNt.com>
Sun, 17 Jul 2011 11:27:38 +0000 (13:27 +0200)
committerSylvain Munaut <tnt@246tNt.com>
Thu, 28 Jul 2011 19:30:50 +0000 (21:30 +0200)
Theses value should simulate the old behavior

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
src/host/layer23/src/common/l1ctl.c

index 5e1e3cc..a249ed7 100644 (file)
@@ -369,6 +369,7 @@ int l1ctl_tx_tch_mode_req(struct osmocom_ms *ms, uint8_t tch_mode)
 
        req = (struct l1ctl_tch_mode_req *) msgb_put(msg, sizeof(*req));
        req->tch_mode = tch_mode;
+       req->audio_mode = AUDIO_TX_MICROPHONE | AUDIO_RX_SPEAKER;
 
        return osmo_send_l1(ms, msg);
 }
@@ -461,6 +462,7 @@ int l1ctl_tx_dm_est_req_h0(struct osmocom_ms *ms, uint16_t band_arfcn,
        req->h = 0;
        req->h0.band_arfcn = htons(band_arfcn);
        req->tch_mode = tch_mode;
+       req->audio_mode = AUDIO_TX_MICROPHONE | AUDIO_RX_SPEAKER;
 
        return osmo_send_l1(ms, msg);
 }
@@ -494,6 +496,7 @@ int l1ctl_tx_dm_est_req_h1(struct osmocom_ms *ms, uint8_t maio, uint8_t hsn,
        for (i = 0; i < ma_len; i++)
                req->h1.ma[i] = htons(ma[i]);
        req->tch_mode = tch_mode;
+       req->audio_mode = AUDIO_TX_MICROPHONE | AUDIO_RX_SPEAKER;
 
        return osmo_send_l1(ms, msg);
 }