Bug 228669 - only 2 channels available for unhide, and 5 for choosing master ?!
Summary: only 2 channels available for unhide, and 5 for choosing master ?!
Status: RESOLVED FIXED
Alias: None
Product: kmix
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: unspecified Linux
: VHI normal
Target Milestone: ---
Assignee: Christian Esken
URL:
Keywords:
: 228907 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-02-26 21:51 UTC by schmirrwurst
Modified: 2010-05-19 17:02 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
kmix channels (34.10 KB, image/png)
2010-02-27 11:27 UTC, schmirrwurst
Details
alsamixer channels (40.67 KB, image/png)
2010-02-27 11:28 UTC, schmirrwurst
Details
kmixrc (1.23 KB, application/octet-stream)
2010-02-28 11:50 UTC, schmirrwurst
Details
built-in card profile (299 bytes, text/xml)
2010-02-28 11:52 UTC, schmirrwurst
Details
Usb Speaker profile (where channels are displayed properly!) (584 bytes, text/xml)
2010-02-28 11:54 UTC, schmirrwurst
Details

Note You need to log in before you can comment on or make changes to this bug.
Description schmirrwurst 2010-02-26 21:51:22 UTC
Version:           3.6-alpha2 (using 4.4.00 (KDE 4.4.0), Kubuntu packages)
Compiler:          cc
OS:                Linux (x86_64) release 2.6.32-14-generic

Card: HDA Intel                                                                                                                 Chip: SigmaTel STAC9872AK  

When opening kmix, I have only 2 channels for my card                                                                                                 IEC98 default PCM and PCM, when I go on alsamixer, I can see 6 channels...
If I go to add channels in kmix, again 2 channels, but If I go to select Master, then 6 !
Comment 1 Christian Esken 2010-02-26 23:07:24 UTC
KMix only shows the most important controls by default, but you can show more if you like. Please use the context menu's in the KMix main menu to do that.
Comment 2 schmirrwurst 2010-02-27 11:27:59 UTC
Created attachment 41157 [details]
kmix channels
Comment 3 schmirrwurst 2010-02-27 11:28:25 UTC
Created attachment 41158 [details]
alsamixer channels
Comment 4 schmirrwurst 2010-02-27 11:31:31 UTC
I've already try that, when I went to "add channels in kmix"... See attatchment...
They are only present if I go to "select master", then I see them, but when I go to unhide them, they don't appear in the list...
That really seems to be a bug
Comment 5 Christian Esken 2010-02-27 12:18:21 UTC
Hello,

did you ever run a pre-release of KDE4.4? If yes, this might explain it (but it fixes itself after you used the channel selector once, quit kmix and call the channel selector again).

For further inspection I need to see your KMix configuration. It is in below your home directory, either below ~/.kde4/ or ~/.kde/:

share/config/kmixrc
share/apps/kmix/profiles/*

  Christian
Comment 6 Christian Esken 2010-02-27 12:30:13 UTC
Ouch. I thought I had fixed it *before* KDED4.4 was branched. Obviously I didn't. This is a bad, bad bug. Sorry.

Please still post your configuration, as I'd like to verify it.

Big thanks to you for reporting and inisting the bug is actually there. :-)
Comment 7 Christian Esken 2010-02-27 12:32:40 UTC
SVN commit 1096684 by esken:

Fix "disappearing channels" issue.
Possibly a workaround for users with defective profiles will
need tobe developed.
CCBUGS: 228669


 M  +8 -0      dialogviewconfiguration.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1096684
Comment 8 schmirrwurst 2010-02-28 11:49:15 UTC
I've installed lucid on a formated partition, for a couple of day, so I think it was after 4.4 was released...
Comment 9 schmirrwurst 2010-02-28 11:50:48 UTC
Created attachment 41194 [details]
kmixrc
Comment 10 schmirrwurst 2010-02-28 11:52:54 UTC
Created attachment 41195 [details]
built-in card profile
Comment 11 schmirrwurst 2010-02-28 11:54:25 UTC
Created attachment 41196 [details]
Usb Speaker profile (where channels are displayed properly!)
Comment 12 schmirrwurst 2010-02-28 12:17:04 UTC
"but it
fixes itself after you used the channel selector once, quit kmix and call the
channel selector again)."
that doesn't work by me...
Comment 13 Christian Esken 2010-02-28 15:13:50 UTC
The provided profiles confirm the bug. It will go into KDE4.4.1 (it was already corrected fot trunk/KDE4.5). 

About comment #12.This is because I actually did not commit the correct version for 4.4 (see comment #6). You need a fixed version to do this - this usually means KDE 4.4.1 after it will be released (no date set yet).

If you want your channels back now, you must do this workaround:
- Quit KMix
- Remove all KMix profiles [1]
- Start KMix

Unfortunately the next time you configure the controls, they will again disappear. For a fianl fix => KDE4.4.1. :-(



[1] Or if your proficient with XML, you can insert the following line:
<control id="^.*$" subcontrols=".*" tab="Base" show="extended" />
Comment 14 Christian Esken 2010-02-28 23:18:44 UTC
*** Bug 228907 has been marked as a duplicate of this bug. ***
Comment 15 Christian Esken 2010-02-28 23:20:24 UTC
Brainstorming: How can the profile be auto-fixed after the user updates to KDE4.4.1?


1) I could  simply increase the "generation" in the shipped profile, but then
users would lose their changes (which would actually be "OK", as the profile is
broken anyways).
2) When the profile is read, and the kmixrc version number is <4, then fix up
the profile somehow (optimal). I need to use a new kmixrc version number for
Comment 16 Christian Esken 2010-03-02 20:12:40 UTC
Correction: This will go into KDE4.4.2, as KDE4.4.1 was already tagged 2 days before I applied the patch.
Comment 17 Johannes Obermayr 2010-03-30 22:52:16 UTC
(In reply to comment #16)
> Correction: This will go into KDE4.4.2, as KDE4.4.1 was already tagged 2 days
> before I applied the patch.

It is not auto-fixed in KDE SC 4.4.2 ...
Comment 18 Christian Esken 2010-03-31 14:11:45 UTC
It only fixes itself after one usage.
Did you use the channel selector once, quit kmix and call the
channel selector again?
Comment 19 Johannes Obermayr 2010-03-31 14:46:05 UTC
(In reply to comment #18)
> It only fixes itself after one usage.
> Did you use the channel selector once, quit kmix and call the
> channel selector again?

Yes.

1. trying your way does not work

2. rm -rf ~/.kde4/share/apps/kmix/profiles/ works ...

3. restoring removed files (backup) and trying your way again does not work, too.
Comment 20 Christian Esken 2010-04-01 11:50:13 UTC
I just did a code review (KMix version from KDE4.4.1), and now I even don't know why the bug happens at all.

And I cannot reproduce it at the moment under KDE4.4.1. I know that the bug is there. But when I hide controls they are actually saved to the profile (as show="extended", which is correct). Even if I "destroy" the profile manually the channels don't disappear (which absolutely makes no sense).

Johannes, can you give me a hint how to reproduce it? Is it dragging a control to the inactive list, hiding a control with the context menu or something else?
Comment 21 Christian Esken 2010-04-01 12:38:35 UTC
OK, I rebuild the 4.4.1 version from source, and it is reproducable again.

But when I build 4.4 branch (*), it fixes itself. One thing is important though:

Open the channel selector, click OK (important!!!), and open the channel selector again (BTW: no needto quit KMix in between).



(*) KMix is identical from 4.4 branch with 4.4.2 tag:

svn diff https://svn.kde.org/home/kde/tags/KDE/4.4.2/kdemultimedia/kmix https://svn.kde.org/home/kde/branches/KDE/4.4/kdemultimedia/kmix
Comment 22 schmirrwurst 2010-04-10 16:32:02 UTC
Still doesn't work for me on updated lucid with 4.4.2....
Comment 23 Christian Esken 2010-05-13 17:29:03 UTC
This issue is getting weird. I have now build KMix in two versions on Ubuntu (actually an "Easy Peasy 1.6"):

- regular build: Bug is there
- "debugfull": Bug is not there

I will try to see whether this is reproducable.
Comment 24 Christian Esken 2010-05-13 18:16:01 UTC
SVN commit 1126310 by esken:

Fix profile selection - backport to KDE4.4 branch.
Might be reason number 2 for disappearing channels.
BUGS: 228669


 M  +37 -28    mixertoolbox.cpp  
 M  +2 -1      mixertoolbox.h  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1126310
Comment 25 Christian Esken 2010-05-19 17:02:55 UTC
Oh, even though I closed this as fixed, I would be grateful if some early testing before KDE4.5 could be performed.