Changeset 2201

Show
Ignore:
Timestamp:
09/02/12 23:33:09 (12 years ago)
Author:
jwoithe
Message:

DICE: an attempt to further refine the patch from r2200 based on the direction of the ports being constructed. Compile-tested only.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/libffado/src/dice/dice_avdevice.cpp

    r2200 r2201  
    869869    // request the channel names 
    870870    if (names_audio.size() != nb_audio) { 
     871        char *dir_str = (direction == Streaming::Port::E_Capture) ? "input" : "output"; 
    871872        debugWarning("The audio channel name vector is incorrect, using default names\n"); 
    872873        names_audio.clear(); 
     
    874875        for (unsigned int j=0;j<nb_audio;j++) { 
    875876            std::ostringstream newname; 
    876             newname << "1394_" << i << ":" << j; 
     877            newname << dir_str << i << ":" << j; 
    877878            names_audio.push_back(newname.str()); 
    878879        }