Cardiomyopathy is a weakening of the heart muscle or a change in heart muscle structure. It is often associated with inadequate heart pumping or other heart function problems.