Coder Social home page Coder Social logo

xml2ucm's Introduction

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.

Building

To build the code, you'll need stack, which your distribution probably provides. Check out the code and then run:

$ stack setup # if you haven't done this once already
$ stack build

Running

To build with the example, you could do something like:

$ 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/.

xml2ucm's People

Contributors

ford-prefect avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

xml2ucm's Issues

xml2ucm: Prelude.head: empty list

Hi,
I'm trying to get HiFi UCM for audio codec.

https://github.com/jacoghi/android_device_xiaomi_markw/blob/master/audio/mixer_paths_wcd9335.xml

https://github.com/jacoghi/android_device_xiaomi_markw/blob/master/audio/audio_policy_configuration.xml

stack exec -- xml2ucm -m examples/mixer_paths_wcd9335.xml -c examples/audio_policy_configuration.xml -o examples

I kept both xml file example directory but i'm getting

xml2ucm: Prelude.head: empty list

Do mind what could be the issue?

example is not working

Running
To build with the example, you could do something like:

$ 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/.
[Getting error]
Invalid option -m

stack version 1.5.1

How to write a "config"?

Hello,
I didn't find it mentioned anywhere so how do I write the config that's being used in the -c parameter?
And also what to do with the resulting files (HiFi and a .conf file)?

EDIT: Just found the path /usr/share/alsa/ucm/.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.