OAKLAND, Calif. (AP) -- Matt Wieters hit two solo home runs and Endy Chavez had four hits to help the Baltimore Orioles beat the Oakland Athletics 9-5 on Sunday and remain within a game of the New York Yankees in the AL East.
Chavez drove in two runs for the Orioles, who have won four of six in snapping a three-game road losing streak. J.J. Hardy, Mark Reynolds, Manny Machado, Chris Davis and Robert Andino also drove in runs.
Josh Reddick, who drove in three runs, and Stephen Drew hit two-run home runs for the Athletics, who are two games ahead of the Orioles for the first wild-card spot. Adam Rosales had two hits.
Brian Matusz (6-10) retired all six batters he faced, two on strikeouts, to earn the victory. Jim Johnson got the last out for his 43rd save.
A's starter Dan Straily (2-1) lasted 4 2-3 innings, giving up four runs and five hits. He walked five and struck out one.
Straily's effort ended the 44-game streak in which A's pitchers had walked three or fewer batters.
Randy Wolf went four innings in his first start for the Orioles following three relief appearances. He gave up two runs and six hits, walked two and struck out four in his longest outing since going seven for the Milwaukee Brewers in a loss to the Philadelphia Phillies on Aug. 19.
Reddick's 29th home run, a two-run shot into the bleachers in right field, gave the A's a 2-0 lead in the first.
Wieters' first homer, with one out in the second, cut the lead in half. His fourth-inning home run put the Orioles ahead to stay.
Hardy's RBI single in the third tied it. Reynolds walked with the bases loaded in the fifth and Chavez's two-run single followed Machado's RBI double in the seventh.
Drew's two-run homer in the eighth made it 7-4.
Andino and Davis drove in runs for the Orioles in the ninth. Reddick added an RBI for for the A's in the ninth.
Notes: Orioles' LHP Troy Patton (ankle) pitched an inning in instructional league Sunday. He's slated to pitch at least once more and could rejoin the team next weekend. ... A's OF Coco Crisp was out of the lineup with an allergic reaction in his left eye. ... O's DH Jim Thome (neck) is scheduled to play in simulated games Monday and Tuesday. ... RHP Chris Tillman (7-2, 3.39) goes for the Orioles in Seattle on Monday night. He's 3-0 with an 0.83 ERA in three starts against his former team. ... RHP A.J. Griffin (6-0, 1.94) will pitch for the A's in Detroit on Tuesday. He's the only ML pitcher since at least 1918 to allow three runs or fewer and walk two or less in each of his first 11 starts. ... Of Weiters' 21 homers, 12 have been solo shots. ... A's OF Yoenis Cespedes played CF for just the second time. ... The A's tied a season-high by using seven pitchers.