From 7455c3ec3954e068090004369600c03b6ede43a2 Mon Sep 17 00:00:00 2001 From: Florian Kagerer Date: Tue, 29 Jun 2010 21:56:04 +0000 Subject: AUDIO: fixed bug when device was set to default and only MDT_MIDI flags were passed to detectDevice() svn-id: r50510 --- sound/mididrv.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'sound/mididrv.cpp') diff --git a/sound/mididrv.cpp b/sound/mididrv.cpp index d164864fc2..aaff78bf92 100644 --- a/sound/mididrv.cpp +++ b/sound/mididrv.cpp @@ -228,6 +228,9 @@ MidiDriver::DeviceHandle MidiDriver::detectDevice(int flags) { tp = MT_ADLIB; else if (flags & MDT_PCSPK) tp = MT_PCSPK; + else if (l == 0) + // if we haven't tried to find a MIDI device yet we do this now. + continue; else tp = MT_AUTO; -- cgit v1.2.3