function commFixBrokenLinksRCos(unlnkBlk, newBlk)
%commFixBrokenLinksRCos(unlnkBlk, newBlk)
%
% Fix Input Processing for Raised cosine transmit and receive blocks.
% Called by slupdate.

%   Copyright 2011 The MathWorks, Inc.
                                        
    unlnkBlkHasIP     = localHasIP(unlnkBlk);   

    if ~unlnkBlkHasIP                    
        framing = get_param(unlnkBlk, 'framing');

        if strcmp(framing, 'Maintain input frame size')
        set_param(newBlk, 'InputProcessing', ...
            'Inherited (this choice will be removed - see release notes)');                    
        end                                                                                                                                                          
    end
end

function result = localHasIP(block)
    dp = fields(get_param(block, 'DialogParameters'));
    result = ~isempty(find(cell2mat(strfind(dp, ...
            'InputProcessing')), 1));
end

% END comFixBrokenLinksIP
