Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 353390
b: refs/heads/master
c: 8c2d6a9
h: refs/heads/master
v: v3
  • Loading branch information
Kuninori Morimoto authored and Mark Brown committed Jan 30, 2013
1 parent 13a4359 commit 075365f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 15 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: eef28e10821fb671ba797a41e7cf44e3d244e32e
refs/heads/master: 8c2d6a9f9cfa59acfa63ee88e70d58f0ba3eaf21
20 changes: 6 additions & 14 deletions trunk/sound/soc/soc-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -4229,9 +4229,6 @@ unsigned int snd_soc_of_parse_daifmt(struct device_node *np,
{ "pdm", SND_SOC_DAIFMT_PDM},
{ "msb", SND_SOC_DAIFMT_MSB },
{ "lsb", SND_SOC_DAIFMT_LSB },
}, of_clock_table[] = {
{ "continuous", SND_SOC_DAIFMT_CONT },
{ "gated", SND_SOC_DAIFMT_GATED },
};

if (!prefix)
Expand All @@ -4253,19 +4250,14 @@ unsigned int snd_soc_of_parse_daifmt(struct device_node *np,
}

/*
* check "[prefix]clock-gating = xxx"
* check "[prefix]continuous-clock"
* SND_SOC_DAIFMT_CLOCK_MASK area
*/
snprintf(prop, sizeof(prop), "%sclock-gating", prefix);
ret = of_property_read_string(np, prop, &str);
if (ret == 0) {
for (i = 0; i < ARRAY_SIZE(of_clock_table); i++) {
if (strcmp(str, of_clock_table[i].name) == 0) {
format |= of_clock_table[i].val;
break;
}
}
}
snprintf(prop, sizeof(prop), "%scontinuous-clock", prefix);
if (of_get_property(np, prop, NULL))
format |= SND_SOC_DAIFMT_CONT;
else
format |= SND_SOC_DAIFMT_GATED;

/*
* check "[prefix]bitclock-inversion"
Expand Down

0 comments on commit 075365f

Please sign in to comment.