All-linear control of attosecond pulse generation