projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
127a9cb
)
ASoC: max9867: Use params_width instead of open-coded
author
Axel Lin
<
[email protected]
>
Tue, 23 Feb 2016 06:53:13 +0000
(14:53 +0800)
committer
Mark Brown
<
[email protected]
>
Wed, 24 Feb 2016 04:07:11 +0000
(13:07 +0900)
Signed-off-by: Axel Lin <
[email protected]
>
Acked-by: anish kumar <
[email protected]
>
Signed-off-by: Mark Brown <
[email protected]
>
sound/soc/codecs/max9867.c
patch
|
blob
|
history
diff --git
a/sound/soc/codecs/max9867.c
b/sound/soc/codecs/max9867.c
index 4fb6fc7188c7ac6ab9054ed967abb88e6b7b4200..f371a52fe29d6b9036d42cd45efa810ca953468e 100755
(executable)
--- a/
sound/soc/codecs/max9867.c
+++ b/
sound/soc/codecs/max9867.c
@@
-207,10
+207,9
@@
static int max9867_dai_hw_params(struct snd_pcm_substream *substream,
unsigned long int bclk_rate, pclk_bclk_ratio;
int bclk_value;
- bclk_rate = params_rate(params) * 2 *
- snd_pcm_format_width(params_format(params));
+ bclk_rate = params_rate(params) * 2 * params_width(params);
pclk_bclk_ratio = max9867->pclk/bclk_rate;
- switch (
snd_pcm_format_width(params_format(params)
)) {
+ switch (
params_width(params
)) {
case 8:
case 16:
switch (pclk_bclk_ratio) {