Coder Social home page Coder Social logo

How to write a "config"? about xml2ucm HOT 4 OPEN

z3ntu avatar z3ntu commented on June 22, 2024
How to write a "config"?

from xml2ucm.

Comments (4)

ford-prefect avatar ford-prefect commented on June 22, 2024

@z3ntu sorry about the sparse documentation -- the examples were meant to help get started. I wrote about some of the concepts and motivation at https://arunraghavan.net/2016/01/audio-devices-and-configuration/

I see you found where ALSA picks up UCM files from.

Feel free to ask more questions here.

from xml2ucm.

z3ntu avatar z3ntu commented on June 22, 2024

As I never did anything with UCM/ALSA before, all the terms are pretty confusing (although I know the word "use case" in context of project management^^)

from xml2ucm.

z3ntu avatar z3ntu commented on June 22, 2024
localhost:~# alsaucm -c msm8974-taiko-mtp-snd-card -i
ALSA lib main.c:438:(execute_sequence) unable to execute cset 'name='SLIMBUS_0_RX Port Mixer INT_BT_SCO_TX' 0'

ALSA lib main.c:536:(import_master_config) Unable to execute default sequence
ALSA lib main.c:946:(snd_use_case_mgr_open) error: failed to import msm8974-taiko-mtp-snd-card use case configuration -2
alsaucm: error failed to open sound card msm8974-taiko-mtp-snd-card: No such file or directory

After removing the line with SLIMBUS_0_RX Port Mixer INT_BT_SCO_TX and INTERNAL_BT_SCO_RX Audio Mixer Multimedia6 from my /usr/share/alsa/ucm/msm8974-taiko-mtp-snd-card/msm8974-taiko-mtp-snd-card.conf, I can finally launch alsaucm

(I began writing the above comment because I wanted help but apparently I managed to work around it myself)

Now aplay is still throwing errors: aplay: main:807: audio open error: Invalid argument. Any idea how I could find out why it's doing that? (maybe some magic command that tells me? ^^)

from xml2ucm.

ford-prefect avatar ford-prefect commented on June 22, 2024

Hmm, the invalid argument will need more looking at. See what parameters don't work. For the mixer controls, unfortunately, the set of mixer controls varies from kernel to kernel (I don't know if any of this is upstream), and probably based on the platform itself. When I wrote this, it was all done blind without access to any spec sheets. If you have these, it'll probably be a lot easier going.

from xml2ucm.

Related Issues (4)

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.