[mythtv] Initial Patch to enumerate Alsa Soundcards

Matthew Wire devel at mrwire.co.uk
Sun May 28 22:52:44 UTC 2006

On Sun, 2006-05-28 at 18:18 +0100, Matthew Wire wrote:
> Hi,
> I've written a patch to enumerate a list of alsa soundcards to display
> in the general settings.
> There are a couple of problems at the moment which I would appreciate
> some help with!
> 1. I copied the #IFDEF USING_ALSA etc from audiooutput.cpp.  But they
> don't seem to work in globalsettings.cpp (this patch comments them out
> because of this).  Any ideas why this would be?  I tried including
> config.h but this had no effect.
> 2. Myth shows duplicate devices.  When you first show the
> audiooutputdevice combobox it is filled with an entry for each audio
> device (oss + alsa) + a duplicate for the currently selected entry.
> As soon as I try and change the selected item by clicking the mouse or
> using the keyboard the box fills with duplicates for all devices.  Any
> ideas what is happening here?

Hmm, Just found a problem with this patch.  It seems that when the combo
box is set to readwrite=true it uses the label as the value and ignores
the value.  Is this correct?
Is there any way around this, I've got it setup at the moment to display
device names (such as ALC880 Digital) instead of the corresponding
device ALSA:hw:0,2.  This I think you'll agree is much better from a
user point of view since it is far more obvious what the device actually
is.  I could just set the combobox to readonly, but I get the feeling
some people will still need to type in manual devices - eg. for
Jack/Arts etc where there is no method to enumerate cards.
Any ideas?


More information about the mythtv-dev mailing list