Manny Machado, right, is congratulated by Nate McLouth after hitting a two-run home run. The Orioles ended an 11-game road trip with a 7-4 record. (Mark J. Terrill/AP)

With the opportunity to end their three-city, 11-game West Coast road trip with a series win in Los Angeles, the Baltimore Orioles overcame an early two-run deficit to beat the Angels, 8-4, on Sunday afternoon at Angel Stadium.

The Orioles (19-13) completed their road trip to Oakland, Seattle and Los Angeles with a 7-4 mark.

Sunday’s win was the Orioles’ 12th road victory of the season, the second-most in the majors behind the St. Louis Cardinals (13).

“We’re going to have to do it again and again,” Orioles Manager Buck Showalter said. “You turn to another challenge. Usually your challenge, after a long road trip is the first couple days at home.”

Third baseman Manny Machado put the Orioles ahead in the fifth when he blasted a two-run homer off starter Jerome Williams.

Orioles starter Jason Hammel struggled early, allowing three runs in a 39-pitch first inning, but turned in a gritty six-inning effort for the win. He allowed three straight two-out, run-scoring singles to Alberto Callapso, Howie Kendrick and Hank Conger, but Hammel probably should have already been out of the inning.

Before the Angels rallied for three runs, Mike Trout was called safe on a steal attempt of second base, but replays showed that Matt Wieters’ throw beat Trout’s hand to the bag.

Still, Hammel limited the damage. He stranded the bases loaded in the first and third innings and despite compiling a high pitch count early, he worked through six innings and won his fourth straight decision.

With the tying run on second with two outs in the sixth, Hammel ended the inning by striking out Trout looking with a nasty curveball on his 107th and final pitch of the afternoon. He allowed four runs on nine hits with five strikeouts and three walks.

Hammel (5-1) earned his first win against the Angels in his fourth career start (fifth appearance). He entered the afternoon with a career 0-3 mark and 7.02 ERA against the Angels.

The Orioles had just four hits against Williams, but all were for extra-bases, including home runs by Machado and J.J. Hardy.

With the Orioles trailing 3-1 in the fourth, Hardy hit his second homer in as many days with one on and two outs, taking Williams over the left field fence with a game-tying two-run shot.

Trout gave the Angels (11-20) a 4-3 lead with a solo homer off Hammel in the fourth — the only run Hammel allowed after the first inning — on a blast that landed in the fountain portion of Angel Stadium’s rock fixture in left-center field.

But Machado, who has come into his own offensively the past two weeks, answered with the winning blast, a high line-drive shot that gave the Orioles a 5-4 lead.

The blast was Machado’s fifth homer of the season and his third in his last five games. He’s hit safely in 13 of his last 14 games, hitting .367 (22-for-60) with 12 runs, three homers and 12 RBI in that span.

— Baltimore Sun