wm9713.c (b3e5ced63e051e8f911b795ac5b06229a5328f7b) wm9713.c (bd1204cb51f15d202f95222e873a94ed5d07b784)
1/*
2 * wm9713.c -- ALSA Soc WM9713 codec support
3 *
4 * Copyright 2006-10 Wolfson Microelectronics PLC.
5 * Author: Liam Girdwood <lrg@slimlogic.co.uk>
6 *
7 * This program is free software; you can redistribute it and/or modify it
8 * under the terms of the GNU General Public License as published by the

--- 1187 unchanged lines hidden (view full) ---

1196 struct wm9713_priv *wm9713 = snd_soc_codec_get_drvdata(codec);
1197 int i, ret;
1198 u16 *cache = codec->reg_cache;
1199
1200 ret = wm9713_reset(codec, 1);
1201 if (ret < 0)
1202 return ret;
1203
1/*
2 * wm9713.c -- ALSA Soc WM9713 codec support
3 *
4 * Copyright 2006-10 Wolfson Microelectronics PLC.
5 * Author: Liam Girdwood <lrg@slimlogic.co.uk>
6 *
7 * This program is free software; you can redistribute it and/or modify it
8 * under the terms of the GNU General Public License as published by the

--- 1187 unchanged lines hidden (view full) ---

1196 struct wm9713_priv *wm9713 = snd_soc_codec_get_drvdata(codec);
1197 int i, ret;
1198 u16 *cache = codec->reg_cache;
1199
1200 ret = wm9713_reset(codec, 1);
1201 if (ret < 0)
1202 return ret;
1203
1204 wm9713_set_bias_level(codec, SND_SOC_BIAS_STANDBY);
1204 snd_soc_codec_force_bias_level(codec, SND_SOC_BIAS_STANDBY);
1205
1206 /* do we need to re-start the PLL ? */
1207 if (wm9713->pll_in)
1208 wm9713_set_pll(codec, 0, wm9713->pll_in, 0);
1209
1210 /* only synchronise the codec if warm reset failed */
1211 if (ret == 0) {
1212 for (i = 2; i < ARRAY_SIZE(wm9713_reg) << 1; i += 2) {

--- 106 unchanged lines hidden ---
1205
1206 /* do we need to re-start the PLL ? */
1207 if (wm9713->pll_in)
1208 wm9713_set_pll(codec, 0, wm9713->pll_in, 0);
1209
1210 /* only synchronise the codec if warm reset failed */
1211 if (ret == 0) {
1212 for (i = 2; i < ARRAY_SIZE(wm9713_reg) << 1; i += 2) {

--- 106 unchanged lines hidden ---