Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 316291
b: refs/heads/master
c: 949e6bc
h: refs/heads/master
i:
  316289: 435d3cb
  316287: e3ee2f9
v: v3
  • Loading branch information
Mark Brown committed Jul 4, 2012
1 parent 2bce1a3 commit 2b100d6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 1520ffd218f4aa53bc7652c0f6454da3cb428337
refs/heads/master: 949e6bc75fea779b433679601641ea641456283b
12 changes: 6 additions & 6 deletions trunk/sound/soc/codecs/arizona.c
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ static int arizona_set_fmt(struct snd_soc_dai *dai, unsigned int fmt)
return 0;
}

static const int arizona_48k_rates[] = {
static const int arizona_48k_bclk_rates[] = {
-1,
48000,
64000,
Expand All @@ -385,7 +385,7 @@ static const int arizona_48k_rates[] = {
24576000,
};

static const int arizona_44k1_rates[] = {
static const int arizona_44k1_bclk_rates[] = {
-1,
44100,
58800,
Expand Down Expand Up @@ -445,17 +445,17 @@ static int arizona_hw_params(struct snd_pcm_substream *substream,
int bclk, lrclk, wl, frame, sr_val;

if (params_rate(params) % 8000)
rates = &arizona_44k1_rates[0];
rates = &arizona_44k1_bclk_rates[0];
else
rates = &arizona_48k_rates[0];
rates = &arizona_48k_bclk_rates[0];

for (i = 0; i < ARRAY_SIZE(arizona_44k1_rates); i++) {
for (i = 0; i < ARRAY_SIZE(arizona_44k1_bclk_rates); i++) {
if (rates[i] == snd_soc_params_to_bclk(params)) {
bclk = i;
break;
}
}
if (i == ARRAY_SIZE(arizona_44k1_rates)) {
if (i == ARRAY_SIZE(arizona_44k1_bclk_rates)) {
arizona_aif_err(dai, "Unsupported sample rate %dHz\n",
params_rate(params));
return -EINVAL;
Expand Down

0 comments on commit 2b100d6

Please sign in to comment.