]> git.sesse.net Git - nageru/blobdiff - input_mapping_dialog.cpp
Add some pagination to the main window.
[nageru] / input_mapping_dialog.cpp
index 2d40cc2a500a839557e46aef541fa1c52677a86f..9c8180cce6321750894c1b4547b6c6f991cbca37 100644 (file)
@@ -75,7 +75,8 @@ void InputMappingDialog::setup_channel_choices_from_bus(unsigned row, const Inpu
        for (unsigned channel = 0; channel < 2; ++channel) {
                QComboBox *channel_combo = new QComboBox;
                channel_combo->addItem(QString("(none)"));
-               if (bus.device.type == InputSourceType::CAPTURE_CARD) {
+               if (bus.device.type == InputSourceType::CAPTURE_CARD ||
+                   bus.device.type == InputSourceType::ALSA_INPUT) {
                        auto device_it = devices.find(bus.device);
                        assert(device_it != devices.end());
                        unsigned num_device_channels = device_it->second.num_channels;