SAN DIEGO -- Yangervis Solarte hit his second homer in seven games as a Padre on Wednesday night, leading San Diego to a 3-1 victory over the St. Louis Cardinals at Petco Park.

The third baseman drove in a run in all but one of his seven starts since the Padres acquired him in a July 22 trade that sent third baseman Chase Headley to the New York Yankees.

Solarte's solo homer was a 342-foot drive down the line in right off Cardinals reliever Jason Motte in the seventh, providing the final run of the game.

San Diego second baseman Jedd Gyorko, in his second start back from the disabled list after missing 44 games with plantar fasciitis in his left foot, broke a 1-1 tie with a two-out RBI single off Cardinals starter Lance Lynn (11-8) in the sixth.

Padres right-hander Tyson Ross (10-10) allowed one run, four hits and five walks while striking out seven in six inniings. Joaquin Benoit picked up his second save since becoming the Padres' closer on July 18.

Ross, who opened the game with a 1.03 ERA in his previous five July starts, struggled with his command at the start of the game. He issued five walks in the first three innings after walking only five hitters in the previous 35 innings.

However, he took a 1-0 lead into the top of the fifth thanks to a two-base throwing error by Cardinals second baseman Kolten Wong on a third-inning grounder.

Catcher Rene Rivera was safe on the error, moved to third on shortstop Everth Cabrera's single to center off Cardinals right-hander Lance Lynn and scored on center fielder Alexi Amarista's sacrifice fly to center.

Wong got the Cardinals even at 1-1 with a sacrifice fly in the fifth.

The Padres broke the tie in the bottom of the sixth.

Lynn walked Solarte and Seth Smith to open the inning, and Solarte slid home under the throw from left fielder Holliday on Gyorko's single.

Lynn allowed two runs (one earned) on four hits and three walks with six strikeouts in six innings.

NOTES: The Cardinals released C George Kottaras, who was designated for assignment Saturday when C A.J. Pierzynski was signed. ... The Padres designated LHP Jason Lane for assignment a day after the 37-year-old former major league outfielder held Atlanta to one run on six hits over six innings. ... The Padres activated SS Everth Cabrera from the disabled list. Cabrera was sidelined since July 3 due to a left hamstring strain. ... San Diego RHP Ian Kennedy, who missed his scheduled start Monday because of a mild oblique issue, is expected to make his next scheduled start Saturday.