From 0fd8a3600fa44883bb43f86652e27136b75351da Mon Sep 17 00:00:00 2001 From: Kazumasa Mitsunari Date: Tue, 12 Dec 2017 11:04:51 +0900 Subject: Enable to set "interrupt" value in registerSource Change-Id: Ibd59a74d4ae846ada167bd42c24cc3e74b040c44 Signed-off-by: Kazumasa Mitsunari --- src/soundmanager.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/soundmanager.c b/src/soundmanager.c index 41bd271..a6da6a5 100644 --- a/src/soundmanager.c +++ b/src/soundmanager.c @@ -834,8 +834,11 @@ static void registerSource(struct afb_req request) struct availability_s available; /* (ii) */ available.availability = DEFAULT_AVAILABLES; /* A_UNKNOWN */ available.avalilable_reason = 0; /* AR_UNKNOWN */ - guint16 interrupt = DEFAULT_INTERRUPT; /* q IS_OFF */ + guint16 interrupt; + if(REQ_OK != get_value_int16(request, _INTERRUPT, &interrupt)){ + interrupt = DEFAULT_INTERRUPT; /* q IS_OFF */ + } struct sound_property_s sound_property_list; /* a(in) */ sound_property_list.type = 0; sound_property_list.value = 0; /* in reality, this is array of struct */ -- cgit 1.2.3-korg