San Francisco 49ers linebacker Aldon Smith was released from prison Friday after he was arrested for suspicion of driving under the influence and marijuana influence.

Smith's arrest was a result of his pickup truck striking into a tree in San Jose.

Officers gave Smith breath tests and other tests after his pickup allegedly struck a tree, hit a curb and left streak marks on a driveway and sidewalk.

"They conducted an investigation and determines he was under the influence, " Sgt. Heather Randol said. "He was the only person inside the vehicle."

Smith, 23, posted a $5,250 bail and was released from the Santa Clara County jail late Friday morning, according to Fox Sports. He is scheduled to appear in court Nov. 4.

Coach Jim Harbaugh told reporters on Friday that he expected Smith will play Sunday when the 49ers host the Indianapolis Colts at Candlestick Park, and that if there is discipline for Smith, it will come directly from the NFL, and not from him.

"I expect Aldon-like today-he'll be back to work and playing on Saturday," Harborough said.

"There will be consequences. There always is," he continued. "Good or bad, we all have consequences."

Smith helped the 49ers get to the Super Bowl just last season, where they lost to the Baltimore Ravens. He also had 37 sacks in 34 career games and was selected to his first Pro Bowl and was an All-Pro last season.

He also won the team's MVP award last year as he set the 'Niner's franchise record with 19 sacks.