1
0
mirror of https://github.com/home-assistant/supervisor.git synced 2025-12-23 11:58:49 +00:00

Extend Audio support

This commit is contained in:
Pascal Vizeli
2018-04-11 23:53:30 +02:00
parent 7d02bb2fe9
commit a2789ac540
13 changed files with 265 additions and 40 deletions

View File

@@ -201,7 +201,7 @@ class DockerAddon(DockerInterface):
'bind': "/share", 'mode': addon_mapping[MAP_SHARE]
}})
# init other hardware mappings
# Init other hardware mappings
if self.addon.with_gpio:
volumes.update({
"/sys/class/gpio": {
@@ -212,13 +212,20 @@ class DockerAddon(DockerInterface):
},
})
# host dbus system
# Host dbus system
if self.addon.host_dbus:
volumes.update({
"/var/run/dbus": {
'bind': "/var/run/dbus", 'mode': 'rw'
}})
# ALSA configuration
if self.addon.with_audio:
volumes.update({
str(self.addon.path_extern_asound): {
'bind': "/etc/asound.conf", 'mode': 'ro'
}})
return volumes
def _run(self):