Index: /trunk/libffado/tests/test-dice-eap.cpp =================================================================== --- /trunk/libffado/tests/test-dice-eap.cpp (revision 1776) +++ /trunk/libffado/tests/test-dice-eap.cpp (revision 1781) @@ -262,11 +262,11 @@ if(m == NULL) { printMessage("Element is not a MatrixMixer control element\n"); - } else { + }/* else { for(int row=0; row < 16; row++) { for(int col=0; col < 18; col++) { -// m->setValue(row, col, 0); + m->setValue(row, col, 0); } } - } + }*/ } // after unlocking, these should not be used anymore @@ -284,28 +284,9 @@ printMessage("Element is not a CrossbarRouter control element\n"); } else { -// if(cnt == 0) { -// Control::CrossbarRouter::NameVector n; -// n = c->getSourceNames(); -// for(int i=0; igetDestinationNames(); -// for(int i=0; igetDestinationIndex("MixerIn:00"); -// for(int i=0; igetSourceForDestination(dstidx + i); -// peaks[i] = c->getPeakValue(srcids[i], dstidx + i); -// } -// for(int i=0; igetSourceName(srcids[i]); -// std::string dstname = c->getDestinationName(dstidx + i); -// printMessage("Peak %3d (%10s => %10s): %f\n", i, srcname.c_str(), dstname.c_str(), peaks[i]); -// } + std::map peaks = c->getPeakValues(); + for (std::map::iterator it=peaks.begin(); it!=peaks.end(); + ++it) { + printMessage("%s: %g\n", it->first.c_str(), it->second); + } } }