diff options
author | Kazumasa Mitsunari <knimitz@witz-inc.co.jp> | 2017-12-12 11:04:51 +0900 |
---|---|---|
committer | Kazumasa Mitsunari <knimitz@witz-inc.co.jp> | 2017-12-22 21:01:37 +0900 |
commit | 0fd8a3600fa44883bb43f86652e27136b75351da (patch) | |
tree | afaf9e681eb616472baddd2975a6e4610c1f4a1d /src/soundmanager.c | |
parent | d28e3c341d4da08787e0e0f014626a1b9dd5ed63 (diff) |
Enable to set "interrupt" value in registerSourceeel_5.1.0eel_5.0.3eel_5.0.2eel_5.0.1eel_5.0.0eel/5.1.0eel/5.0.3eel/5.0.2eel/5.0.1eel/5.0.05.1.05.0.35.0.25.0.15.0.0eel
Change-Id: Ibd59a74d4ae846ada167bd42c24cc3e74b040c44
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
Diffstat (limited to 'src/soundmanager.c')
-rw-r--r-- | src/soundmanager.c | 5 |
1 files changed, 4 insertions, 1 deletions
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 */ |