Bug 61905 - kmix misidentifies the control that controls master volume (ALSA, fm801)
Summary: kmix misidentifies the control that controls master volume (ALSA, fm801)
Status: RESOLVED DUPLICATE of bug 55078
Alias: None
Product: kmix
Classification: Applications
Component: general (show other bugs)
Version: 1.91
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Christian Esken
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-07-31 15:47 UTC by Alexander Patrakov
Modified: 2003-09-23 23:38 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Patrakov 2003-07-31 15:47:47 UTC
Version:           1.91 (using KDE 3.1.3)
Installed from:    compiled sources
Compiler:          gcc version 3.2.1
OS:          Linux (i686) release 2.4.20-ac1

There are the following controls in KMix when used with ALSA on FM801-based card (ABIT AU10):

Master
Master Mono
Master (shows as Master 1 in alsamixer)
Master Mono (shows as Master Mono 1 in alsamixer)

The control that works as master is Master. Others do nothing at least on headphones (ALSA issue). But KMix thinks that it should show Master Mono when I click on the icon, and it mutes Master Mono (=> no effect) when I try to turn sound off using the context menu of that icon. I expect it to use the Master control, not Master Mono.

If you don't have that card, feel free to mail me test programs so that you can know more about it.
Comment 1 Alexander Patrakov 2003-08-13 15:01:46 UTC
1) Looks like Bug 47110 and Bug 57949 are related to this one. Feel free to 
mark this as a dupe. 
2) The current magic to find out the master control is just wrong. 
 
m_masterDevice = snd_mixer_selem_id_get_index( sid ); 
 
This number has nothing to do with the position of the slider! It is always 0 
or 1 on fm801, even not for masters! It is 0 for "Master" and 1 for "Master 
1", 0 for "Master Mono" and 1 for "Master Mono 1", etc. 
 
The correct magic seems as follows. If the zeroth control is called "Master", 
use it. If it isn't, it means that there is no master, use nothing. Of course, 
the user must have freedom to override that choice from the configuration 
dialog and even "glue" different controls together. 
 
Comment 2 Christian Esken 2003-09-23 23:38:09 UTC
I know this is slightly different from Bug #55078, but it is similar enough for me to mark 
it as duplicate. 

*** This bug has been marked as a duplicate of 55078 ***