aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKazumasa Mitsunari <knimitz@witz-inc.co.jp>2017-12-12 11:04:51 +0900
committerKazumasa Mitsunari <knimitz@witz-inc.co.jp>2017-12-12 11:04:51 +0900
commitb1be03d9670f166af53f1d06275e2428e8c99779 (patch)
treebb5602157c2057ace5b28861768af2d876cec32e /src
parenta7081e6ccfb225e6246f14e5f3017a63b1cf7534 (diff)
Enable to set "interrupt" value in registerSource
Change-Id: Ibd59a74d4ae846ada167bd42c24cc3e74b040c44 Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
Diffstat (limited to 'src')
-rw-r--r--src/soundmanager.c5
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 */