wm8737.c (959d851caa48829eb85cb85aa949fd6b4c5d5bc6) | wm8737.c (e6968a1719a88afa4708ff43696d6615f0be90be) |
---|---|
1/* 2 * wm8737.c -- WM8737 ALSA SoC Audio driver 3 * 4 * Copyright 2010 Wolfson Microelectronics plc 5 * 6 * Author: Mark Brown <broonie@opensource.wolfsonmicro.com> 7 * 8 * This program is free software; you can redistribute it and/or modify --- 315 unchanged lines hidden (view full) --- 324 { 12000000, 88200, 1, 0x1f }, 325 { 12000000, 96000, 1, 0xe }, 326}; 327 328static int wm8737_hw_params(struct snd_pcm_substream *substream, 329 struct snd_pcm_hw_params *params, 330 struct snd_soc_dai *dai) 331{ | 1/* 2 * wm8737.c -- WM8737 ALSA SoC Audio driver 3 * 4 * Copyright 2010 Wolfson Microelectronics plc 5 * 6 * Author: Mark Brown <broonie@opensource.wolfsonmicro.com> 7 * 8 * This program is free software; you can redistribute it and/or modify --- 315 unchanged lines hidden (view full) --- 324 { 12000000, 88200, 1, 0x1f }, 325 { 12000000, 96000, 1, 0xe }, 326}; 327 328static int wm8737_hw_params(struct snd_pcm_substream *substream, 329 struct snd_pcm_hw_params *params, 330 struct snd_soc_dai *dai) 331{ |
332 struct snd_soc_pcm_runtime *rtd = substream->private_data; 333 struct snd_soc_codec *codec = rtd->codec; | 332 struct snd_soc_codec *codec = dai->codec; |
334 struct wm8737_priv *wm8737 = snd_soc_codec_get_drvdata(codec); 335 int i; 336 u16 clocking = 0; 337 u16 af = 0; 338 339 for (i = 0; i < ARRAY_SIZE(coeff_div); i++) { 340 if (coeff_div[i].rate != params_rate(params)) 341 continue; --- 422 unchanged lines hidden --- | 333 struct wm8737_priv *wm8737 = snd_soc_codec_get_drvdata(codec); 334 int i; 335 u16 clocking = 0; 336 u16 af = 0; 337 338 for (i = 0; i < ARRAY_SIZE(coeff_div); i++) { 339 if (coeff_div[i].rate != params_rate(params)) 340 continue; --- 422 unchanged lines hidden --- |