Author Topic: Way to specify ALSA master volume control name  (Read 4792 times)

chrisbirkinshaw

  • Guru
  • ****
  • Posts: 431
    • View Profile
Way to specify ALSA master volume control name
« on: October 12, 2008, 02:11:19 pm »

On some cards it is PCM, some Master, or even in some cases you may be using "Master Output Mono" or something.

It would be nice if this were configurable so LMCE could work with all sound cards, not just a select few.

Would anyone else find this useful?

Regards,

Chris

tschak909

  • LinuxMCE God
  • ****
  • Posts: 5549
  • DOES work for LinuxMCE.
    • View Profile
Re: Way to specify ALSA master volume control name
« Reply #1 on: October 12, 2008, 07:12:15 pm »
it would basically mean adding a device data field for it....actually, don't we already have this?

-Thom

chrisbirkinshaw

  • Guru
  • ****
  • Posts: 431
    • View Profile
Re: Way to specify ALSA master volume control name
« Reply #2 on: October 13, 2008, 11:48:17 am »
Doesn't seem to be obeyed...

I'll ask Demian via email. He was looking quite deep into the audio stuff some time ago.

Chris

1audio

  • Addicted
  • *
  • Posts: 552
    • View Profile
Re: Way to specify ALSA master volume control name
« Reply #3 on: October 13, 2008, 06:44:41 pm »
Alsa is one of the most difficult to work with interfaces. There are several ways to talk to the mixer but that should be handled at a pretty low level. The driver abstracts those issues from LMCE as near as I can see. I have used audio cards from motherboard level to the Hammerfall without problems in terms of the mixer. And you can create an .asoundrc file (look at this for guidance for each card that is supported http://www.alsa-project.org/main/index.php/Matrix:Main ). The format is as non-intuitive as any I have ever seen and many have complained about it.

There are also interactions between the players (Xine, Mplayer) and Alsa that need to be accounted for. Mostly documented in several places.

Linuxmce shouldn't need to get involved with this unless you want custom setups or autoconfiguration of special cards. Its possible with Alsa to have a number of independent cards and audio streams in the same box but LMCE's architecture doesn't really support that in one box. I suspect it would be very complex to manage even if not difficult to program.

I hope this is close to what you wanted to know.