From 98a1051475f24db97f455ef8149e9967bb420ef1 Mon Sep 17 00:00:00 2001 From: Sylvain Munaut Date: Sun, 17 Jul 2011 13:27:38 +0200 Subject: [PATCH] l23/l1ctl: Add default values for audio_mode Theses value should simulate the old behavior Signed-off-by: Sylvain Munaut --- src/host/layer23/src/common/l1ctl.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/host/layer23/src/common/l1ctl.c b/src/host/layer23/src/common/l1ctl.c index 5e1e3cc..a249ed7 100644 --- a/src/host/layer23/src/common/l1ctl.c +++ b/src/host/layer23/src/common/l1ctl.c @@ -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); } -- 2.20.1