https://github.com/ford-prefect/xml2ucm
Android mixer_path XML to ALSA UCM converter
https://github.com/ford-prefect/xml2ucm
alsa android-audio audio haskell pulseaudio ucm
Last synced: 2 months ago
JSON representation
Android mixer_path XML to ALSA UCM converter
- Host: GitHub
- URL: https://github.com/ford-prefect/xml2ucm
- Owner: ford-prefect
- License: apache-2.0
- Created: 2015-05-22T07:15:05.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2018-04-17T12:44:05.000Z (about 7 years ago)
- Last Synced: 2025-04-12T04:16:51.287Z (2 months ago)
- Topics: alsa, android-audio, audio, haskell, pulseaudio, ucm
- Language: Haskell
- Size: 44.9 KB
- Stars: 14
- Watchers: 4
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# xml2ucm
This tool helps convert Android mixer_paths.xml audio configuration to the ALSA
UCM format. There is a sample configuration file in ```examples/``` for the
Nexus 4 (mako).In relatively simple setups, the UCM that is produced should just work, but
some manual tweaking might be required based on the audio subsystem
(PulseAudio, CrAS, ...) and the hardware.You can read more about the motivation and design in [my blog post][blog].
[blog]: https://arunraghavan.net/2016/01/audio-devices-and-configuration/
## Building
To build the code, you'll need ```stack```, which your [distribution probably
provides][stack]. Check out the code and then run:[stack]: http://docs.haskellstack.org/en/stable/GUIDE.html#downloading-and-installation
```sh
$ stack setup # if you haven't done this once already
$ stack build
```## Running
To build with the example, you could do something like:
```sh
$ stack exec -- xml2ucm -m examples/mako-mixer_paths.xml -c examples/mako-config.xml -o examples
```The generated files will be in ```examples/apq8064-tabla-snd-card/```.