Skip to content

Commit

Permalink
Revert "ASoC: bcm2835: setup clock only if CPU is clock master"
Browse files Browse the repository at this point in the history
This reverts commit 60507fe.
  • Loading branch information
popcornmix committed Aug 23, 2016
1 parent b3b4815 commit d4481e2
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions sound/soc/bcm/bcm2835-i2s.c
Original file line number Diff line number Diff line change
Expand Up @@ -276,15 +276,8 @@ static int bcm2835_i2s_hw_params(struct snd_pcm_substream *substream,
/* otherwise calculate a fitting block ratio */
bclk_ratio = 2 * data_length;

/* Clock should only be set up here if CPU is clock master */
switch (dev->fmt & SND_SOC_DAIFMT_MASTER_MASK) {
case SND_SOC_DAIFMT_CBS_CFS:
case SND_SOC_DAIFMT_CBS_CFM:
clk_set_rate(dev->clk, sampling_rate * bclk_ratio);
break;
default:
break;
}
/* set target clock rate*/
clk_set_rate(dev->clk, sampling_rate * bclk_ratio);

/* Setup the frame format */
format = BCM2835_I2S_CHEN;
Expand Down

0 comments on commit d4481e2

Please sign in to comment.