Variations in the solar calcium K line 1976-1982