home-assistant / plugin-audio

Pulseaudio implementation for Home Assistant
Apache License 2.0
26 stars 13 forks source link

Add Khadas VIM3 support #84

Closed agners closed 2 years ago

agners commented 3 years ago

Add sound configuration for Khadas VIM3. Currently only HDMI supported. This requires access to device tree in sysfs.

pvizeli commented 3 years ago

That will not work because it's mask by docker. We Can pass the machine type over env

agners commented 3 years ago

Yes I realized, that is why I set it to draft :sweat_smile:

We could also enable device tree access for Audio with a Supervisor upgrade I guess? Add-ons have that as an option. Not sure what is better/easier.

agners commented 3 years ago

Hm, I see there is currently not a easy way to access the firmware directory in its default location. /proc/device-tree symlinks to /sys/firmware/devicetree/base and /sys/firmware/` directory is in a hard-coded mask list since years: https://github.com/moby/moby/commit/8b1772c86b20d06ae6bd8ccf4b20f6df4cd86b62

We support non-native location with this pull request: https://github.com/home-assistant/supervisor/pull/519

It seems that a bind mount to a different location works, but the symlink /proc/device-tree can't be changed, so whereever we bind mount it would be non-standard :(

agners commented 2 years ago

New version using sound device id from sysfs.