CHICAGO (AP) -- Allowing home runs has become a nagging problem for Baltimore starter Jason Hammel.
It resurfaced Tuesday at the wrong time for the Orioles.
Adam Dunn and Conor Gillaspie homered while John Danks pitched into the eighth inning to help the Chicago White Sox snap the Orioles' four-game winning streak with a 5-2 victory.
"It's just balls that are up in the zone that get hit out this year weren't last year," Hammel said. "It's kind of just the way I'm going right now. The mistakes are being amplified."
Hammel, who was looking for his first win since beating Washington on May 27, took the loss and gave up his 17th and 18th homers in 17 starts. Hammel (7-5) pitched seven innings and gave up five runs and nine hits.
Hammel isn't alone with this problem. The Orioles have allowed a major league-high 115 home runs on the year.
"We're not going to look too much into it," Hammel said. "We're aggressive. We're aggressive in the zone. That's what we do.
"You know, you get yourself into more trouble nitpicking and nibbling on the corners than actually challenging guys. Obviously you don't want to give up home runs. The solo home run doesn't hurt you, but if you put guys on in front of him then it starts to hurt."
Gillaspie's homer snapped a 1-1 tie in the sixth, and Dunn's 22nd, a two-run homer in the seventh, gave Chicago a 5-1 lead. Addison Reed pitched a scoreless ninth for his 22nd save in 26 attempts.
The home runs didn't bother Orioles manager Buck Showalter as much as the fact his team's lack of offense against Danks.
"That's where some people will make the focus, but we just didn't score any runs tonight," Showalter said. "He pitched, it was 2-1. A lot of times, that's enough. It was John Danks tonight and their pitching.
"Hamm, that's what some people will remember, but I'll look at how well he pitched up until that home run by Dunn."
Chicago ended a five-game losing streak and avoided falling a season-high 16 games below .500.
Danks (2-5) earned his first win since June 8 against Oakland, pitching seven innings and allowing two runs and six hits while striking out four. Following that win against the Athletics, Danks had been winless in three starts while allowing 13 earned runs.
"That changeup was his baby tonight," Orioles cleanup hitter Adam Jones said. "He kept everybody off balance with it.
"Any time it was a hitter's count, he went to that changeup and it was good."
Batting ninth, Brian Roberts homered for the first time since April 2011 for the Orioles, who were trying for their first five-game winning streak of the season after sweeping three games from the Yankees. With the loss, Baltimore fell 3
Copyright 2013 The Associated Press. All rights reserved. This material may not be published, broadcast, rewritten or redistributed.