config: add volume context table for PulseAudio volume model.
authorIsmo Puustinen <ismo.puustinen@intel.com>
Wed, 21 May 2014 12:26:39 +0000 (15:26 +0300)
committerKrisztian Litkey <krisztian.litkey@intel.com>
Thu, 8 Jan 2015 16:37:15 +0000 (18:37 +0200)
Change-Id: I80b514f4b0f280c4b6922e020786fabe4ef360e8

packaging.in/murphy.lua

index 2cd2e23..4604211 100644 (file)
@@ -235,6 +235,20 @@ resource.class {
      shareable = true
 }
 
+-- PulseAudio volume context
+mdb.table {
+    name = "volume_context",
+    index = { "id" },
+    create = true,
+    columns = {
+        { "id", mdb.unsigned },
+        { "value", mdb.string, 64 },
+    }
+}
+
+-- put default volume context to the table
+mdb.table.volume_context:insert({ id = 1, value = "default" })
+
 if not m:plugin_exists('ivi-resource-manager') and
    not with_system_controller
 then