summaryrefslogtreecommitdiffstats
path: root/src/host
diff options
context:
space:
mode:
authorSylvain Munaut <tnt@246tNt.com>2011-07-17 13:27:38 +0200
committerSylvain Munaut <tnt@246tNt.com>2011-07-28 21:30:50 +0200
commit98a1051475f24db97f455ef8149e9967bb420ef1 (patch)
treeb713aeb3c9a3dff0b2924b5140ddd1ca6aa47973 /src/host
parent7855e405cf8145cebd57f284d9ee8e0d02735817 (diff)
l23/l1ctl: Add default values for audio_mode
Theses value should simulate the old behavior Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
Diffstat (limited to 'src/host')
-rw-r--r--src/host/layer23/src/common/l1ctl.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/host/layer23/src/common/l1ctl.c b/src/host/layer23/src/common/l1ctl.c
index 5e1e3ccf..a249ed71 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);
}