Summary: | kmix doesn't show newly plugged devices (i.e. usb microphone) | ||
---|---|---|---|
Product: | [Applications] kmix | Reporter: | Tomasz Chmielewski <mangoo> |
Component: | general | Assignee: | Christian Esken <esken> |
Status: | RESOLVED FIXED | ||
Severity: | wishlist | CC: | lea.gris, sven.burmeister |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Mandrake RPMs | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: |
Description
Tomasz Chmielewski
2004-06-29 12:45:51 UTC
I agree with you. Unfortunately this is not to be implemented soon. Because it is very difficult (e.g. how often should I look for new devices, and what might be their names?) Well, I suppose it's not that hard - I'm not a coder so I'm just guessing - but you could just add a new "Settings -> Configure KMix" option, something like below: 1) a checkbox "Scan periodically for new devices" 2) below another field which could be manipulated when "Scan for new devices" checkbox is enabled - this field would be time, which you could decrease and increase (default - 30 secs - I guess checking for audio devices is not that CPU-consuming? it should run with lowest priority possible anyway), 3) there should be a "help-cloud", which would appear when mouse is over above described points (1 and 2) and it should tell the user something like "Check this box if you plug in other audio devices (e.g. USB-microphone) after KMix is started". What do you think? > Because it is very difficult (e.g. how often should I look for new devices,
> and what might be their names?)
I don't understand the second part of your question: "what might be their names?"
For me the name of the soundcard is "VIA 82C686A/B rev20" and it's shown by KMix.
When I plug in USB-microphone and run KMix after that, I can choose between this "VIA..." and "USB-something...".
So this part of difficulties is not relevant I suppose?
Yes, I also don't understand why this would be so difficult to implement. KMix automatically detects my ALSA devices every time it runs. I don't see how the device "names" have anything to do with this. Modifying KMix so that it instead runs the card detection algorithm periodically instead of just once at the beginning doesn't sound so complicated to me... but then I'm obviously not familiar with KMix's code. :) (FYI, the mixer program for Windows immediately recognizes devices that have been added/removed on the fly while the mixer is running. I haven't played around with it enough to notice whether it uses polling or some kind of hooks to be notified by device changes. However it works, I don't see any harm in using polling for KMix.) I also have a laptop and have KMix running all the time. So it would be great for me if KMix automatically recognized my Griffin iMic USB sound card without my needing to restart the program. Could hal+dbus offer a adequate sollution? The media:/ kio-slave is using dbus for volume detection, maybe they can extend the media-manager service to become a general device detection/notification daemon within kde. That way you wont have to poll for devices, just register for DCOP-calls with the device-manager. This should be a goal for kde4 I think. @Bart: I have no idea what you mean with the media:/ -kio-slave. That one is handling file systems. There is no hal+dbus solution I am aware off. *** Bug 115878 has been marked as a duplicate of this bug. *** @Christian: Since KDE 3.4 there's the KDED media-manager service which I guess is only being used by the media:/ kio-slave. Maybe a similar service can be created for KDE4 that notifies the addition of ALL device-classes known to HAL, not just storage-media. And then KMix can use that instead of probing, this is not a quick fix obviously. Simmilr problems with some more side effects here with an USB headset: Plantronics Headset Manufacturer: Plantronics Interface Number: 0 Name: snd-usb-audio Alternate Number: 0 Class: 01(audio) Using Alsa without any software mixer (no arts, no ESD...) First and same problem: - Kmix doesn't show the Plantronics mixer if it is plugged after kmix started. Second problem: - If the headset is unplugged after kmix has the mixer in charge, then kmix takes 100% CPU trying to talk to a non existant mixer device. I can conform the latter! Yet you should open another bug for that issue. What about making hotplug call kmix rescanHardware() dcop function upon detecting a new PCM device? Should be easy to implement (just needs rescan function in kmix and a small modification to hotplug/udev/hal/whatever scripts...) Just my $0.01, but should work until we get KDE4 with full DBUS support This would need a tremendous change in the KMix infrastructure. I estimate this to be 10-15 days of work. In short: It will NOT be done for KDE3.x. Update: KMix can now fully rebuild its GUI on run-time, so we get very close on supporting hot-plugging. Hot-Plugging is now fully working in the KDE4 version. This feature will ship with KDE4.0, and will be available starting with the next KDE4 preview release. This closes the wish with the most votes for KMix. Please enjoy it. :-) |