You are not logged in.

#1 2012-01-10 21:37:10

proc
Member
From: Italy
Registered: 2006-11-27
Posts: 71

asound.conf add virtual control / rename a contol channel

Hi,

short version:
how can I add a virtual control/channel (don't know which is the correct term)  named X to alsa such that X is a copy of PCM?
In alternative: is it possible to rename PCM to X?

I have scripts and configurations shared between different PCs that assume I have a Master control, but on my Xonar U3 I only have PCM.

Thanks,
Massimiliano

Offline

#2 2012-01-10 21:53:50

brebs
Member
Registered: 2007-04-03
Posts: 3,742

Re: asound.conf add virtual control / rename a contol channel

$ amixer | grep  Master
Simple mixer control 'Master',0

Just do a check for that, in your scripts. E.g.:

amixer | grep -q "'Master'" && echo y

Last edited by brebs (2012-01-10 21:54:54)

Offline

#3 2012-01-11 08:48:32

proc
Member
From: Italy
Registered: 2006-11-27
Posts: 71

Re: asound.conf add virtual control / rename a contol channel

Thanks bresbs... the problem is I would have to change other configurations too e.g. mplayer
I would prefer to tune alsa to have a consistent setup across different PCs (my settings and scripts are under version control and shared between 8 PCs), if this is not possible I'll definitely follow your advice.

Offline

#4 2012-01-11 13:35:38

brebs
Member
Registered: 2007-04-03
Posts: 3,742

Re: asound.conf add virtual control / rename a contol channel

I'm not sure whether all cards are meant to have a "Master" - you could ask in #alsa on IRC.

Offline

#5 2012-01-29 13:05:50

masutu
Member
Registered: 2010-01-30
Posts: 40

Re: asound.conf add virtual control / rename a contol channel

I think the softvol plugin is exactly what you are looking for. Have a look at http://alsa.opensrc.org/Softvol. Just name your control "Master".

Offline

Board footer

Powered by FluxBB