- debug code for bug 6663

svn path=/trunk/; revision=54571
This commit is contained in:
Johannes Anderwald 2011-12-03 13:55:07 +00:00
parent 75bfaddc5e
commit 8ee7ad7bcb
2 changed files with 11 additions and 5 deletions

View file

@ -468,12 +468,15 @@ MMixerCountMixerControls(
/* get next nodes */ /* get next nodes */
MMixerGetNextNodesFromPinIndex(MixerContext, Topology, PinId, bUpStream, &NodesCount, Nodes); MMixerGetNextNodesFromPinIndex(MixerContext, Topology, PinId, bUpStream, &NodesCount, Nodes);
if (NodesCount > 1) if (NodesCount == 0)
{ {
/* FIXME: the pin is connected by several nodes */ /* a pin which is not connected from any node
DPRINT1("Topology split detected at Pin %lu bUpStream %lu NodesCount %lu", PinId, bUpStream, NodesCount); * a) it is a topology bug (driver bug)
for(NodeIndex = 0; NodeIndex < NodesCount; NodeIndex++) * b) the request is from an alternative mixer
DPRINT1("Pin Connected from Node %lu", Nodes[NodeIndex]); alternative mixer code scans all pins which have not been used and tries to build lines
*/
DPRINT1("MMixerCountMixerControls PinId %lu is not connected by any node\n", PinId);
MMixerPrintTopology(Topology);
return MM_STATUS_UNSUCCESSFUL; return MM_STATUS_UNSUCCESSFUL;
} }

View file

@ -523,3 +523,6 @@ MMixerGetConnectedFromLogicalTopologyPins(
IN ULONG NodeIndex, IN ULONG NodeIndex,
OUT PULONG OutPinCount, OUT PULONG OutPinCount,
OUT PULONG OutPins); OUT PULONG OutPins);
VOID
MMixerPrintTopology();