Re: K7VT4APro board (VT8233) - volume doesn't change when using "master" volume

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi!

According to my experience, at least older version of kmix won't let you 
choose the master volume control. In my opinion, this is not a bug. It 
displays sliders for all available controls, but one of them is easier 
to access than other: the control that is called "Master". IMO, this 
control should control the volume of everything that is processed by 
that sound card. That's why it's called "Master volume control"!

Now, Tomasz, let's get your volume control to work.

 > It wasn't clear for me what is meant by:
 >
 > "To test this device, use:
 > speaker-test -D<device name> -c<channel number> -twav"
 >
 > Especially, what is the <device>, and the <channel number>.

<device> should be an existing and working virtual pcm device. "front" 
is probably a good choise. I asume that you only have two channels, 
because there is a front device, but no "back" or "center_lfe" device. 
If that's true, <channel number> is "2". I'm just realising that 
"channel number" is actually not very clear. Maybe it should say 
"channel count". As I'm not a native English speaker, I ask you to 
change the wiki to whatever you thing makes it easier to understand.

OK, now, what we are going to do is create two virtual pcm devices in 
your asoundrc file, so the audio data will go this way:

application -> "default" device -> "softvol" device -> "front" device -> 
sound card

I didn't test the following code, but I hope it works anyway:

pcm.!default {
     type        plug
     slave.pcm   "softvol"
}

pcm.softvol {
     type            softvol
     slave {
         pcm         "front"
     }
     control {
         name        "Master"
         card        0
     }
}

This will create another volume control called "Master", which is the 
one that kmix and most other mixers use as the master volume control.

If you have more than two channels, things get a bit more complicated, 
but the same thing as above can be achieved by replacing the slave 
"front" by "surround51" or by a multi device like I did in the example 
in the howto.

So, I hope this helps you to understand the howto. If you have more 
questions, please tell me! It is necessary that people tell me what they 
don't understand in the howto, so I can change it.

Regards, Ingo



Lee Revell schrieb:
> On 3/16/07, Tomasz Chmielewski <mangoo@xxxxxxxx> wrote:
>> Anyway - can't it be done with ALSA? Switch PCM with master?
>>
>> kmix can't do it; besides, I would have to do it in every application...
> 
> No.  It's a bug for an app to assume that a mixer control "PCM" or
> "Master" or whatever exists.  And, how many mixer apps do you use?
> 
> According to Simon, kmix can do it:
> 
> "If you using kmix or gamix then you can change the toolbar fader to be the
> headphone master."
> 
> Lee


Tomasz Chmielewski schrieb:
 > Ingo Müller schrieb:
 >> Hi!
 >>
 >> Did you see the softvol master volume howto? If you don't get it to
 >> work in another way, maybe this one may help you:
 >>
 >> http://alsa.opensrc.org/How_to_use_softvol_to_control_the_master_volume
 >
 > Yes, I tried, it didn't work.
 >
 >
 >> If you have any questions or suggestions for the howto, please let me
 >> know.
 >
 > OK, so I followed the guide:
 >
 > $ aplay -L
 > default:CARD=V8237
 >     VIA 8237, VIA 8237
 >     Default Audio Device
 > front:CARD=V8237,DEV=0
 >     VIA 8237, VIA 8237
 >     Front speakers
 > surround40:CARD=V8237,DEV=0
 >     VIA 8237, VIA 8237
 >     4.0 Surround output to Front and Rear speakers
 > surround41:CARD=V8237,DEV=0
 >     VIA 8237, VIA 8237
 >     4.1 Surround output to Front, Rear and Subwoofer speakers
 > surround50:CARD=V8237,DEV=0
 >     VIA 8237, VIA 8237
 >     5.0 Surround output to Front, Center and Rear speakers
 > surround51:CARD=V8237,DEV=0
 >     VIA 8237, VIA 8237
 >     5.1 Surround output to Front, Center, Rear and Subwoofer speakers
 > iec958:CARD=V8237,DEV=0
 >     VIA 8237, VIA 8237
 >     IEC958 (S/PDIF) Digital Audio Output
 > null
 >     Discard all samples (playback) or generate zero samples (capture)
 >
 >
 >
 > It wasn't clear for me what is meant by:
 >
 > "To test this device, use:
 > speaker-test -D<device name> -c<channel number> -twav"
 >
 >
 > Especially, what is the <device>, and the <channel number>.
 >
 > I tried "CARD=V8237", "VIA 8237", and in the end, "default" and "front"
 > worked, combined with a channel of 0 or 1.
 > Perhaps it needs some clarification.
 >
 >
 >
 > Then, I began to create .asoundrc:
 >
 > $ cat .asoundrc
 > pcm.softvol {
 >     type            softvol
 >     slave {
 >         pcm         "default"
 >     }
 >     control {
 >         name        "testdevice"
 >         card        0
 >     }
 > }
 >
 >
 > Running speaker-test confirmed I get some audio:
 > $ speaker-test -Dsoftvol -c0 -twav
 >
 > speaker-test 1.0.14rc2
 >
 > Playback device is softvol
 > Stream parameters are 48000Hz, S16_LE, 1 channels
 > WAV file(s)
 > Rate set to 48000Hz (requested 48000Hz)
 > Buffer size range from 32 to 32768
 > Period size range from 16 to 16384
 > Using max buffer size 32768
 > Periods = 4
 > was set period_size = 8192
 > was set buffer_size = 32768
 >  0 - Front Left
 > Time per period = 0,867245
 >  0 - Front Left
 >
 >
 >
 > Then, I followed the "Make applications use it" part of the guide, and
 > this is where I got stuck - to the bottom of .asoundrc I added:
 >
 > pcm.!default {
 >     type             plug
 >     slave.pcm       "softvol"
 > }
 >
 >
 > Now, it doesn't work anymore:
 >
 > $ speaker-test -Dsoftvol -c0 -twav
 >
 > speaker-test 1.0.14rc2
 >
 > Playback device is softvol
 > Stream parameters are 48000Hz, S16_LE, 1 channels
 > WAV file(s)
 > ALSA lib conf.c:4036:(snd_config_check_hop) Too many definition levels
 > (looped?)
 >
 > Playback open error: -22,Invalid argument
 > ALSA lib conf.c:4036:(snd_config_check_hop) Too many definition levels
 > (looped?)
 >
 > Playback open error: -22,Invalid argument
 > ALSA lib conf.c:4036:(snd_config_check_hop) Too many definition levels
 > (looped?)
 >
 > Playback open error: -22,Invalid argument
 >
 >
 >
 > Google didn't reveal much information about "Too many definition levels".
 >
 >
 > My whole .asoundrc looks like that:
 >
 > $ cat .asoundrc
 > pcm.softvol {
 >     type            softvol
 >     slave {
 >         pcm         "default"
 >     }
 >     control {
 >         name        "testdevice"
 >         card        0
 >     }
 > }
 >
 >
 > pcm.!default {
 >     type             plug
 >     slave.pcm       "softvol"
 > }
 >
 >
 > So still, I don't know how to configure the audio device so that it
 > works properly (including regulating volume using master fader.
 >
 >


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Alsa-user mailing list
Alsa-user@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/alsa-user


[Index of Archives]     [ALSA Devel]     [Linux Audio Users]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]

  Powered by Linux