wm8940.c (4ba24fef3eb3b142197135223b90ced2f319cd53) | wm8940.c (bd1204cb51f15d202f95222e873a94ed5d07b784) |
---|---|
1/* 2 * wm8940.c -- WM8940 ALSA Soc Audio driver 3 * 4 * Author: Jonathan Cameron <jic23@cam.ac.uk> 5 * 6 * Based on wm8510.c 7 * Copyright 2006 Wolfson Microelectronics PLC. 8 * Author: Liam Girdwood <lrg@slimlogic.co.uk> --- 693 unchanged lines hidden (view full) --- 702 u16 reg; 703 704 ret = wm8940_reset(codec); 705 if (ret < 0) { 706 dev_err(codec->dev, "Failed to issue reset\n"); 707 return ret; 708 } 709 | 1/* 2 * wm8940.c -- WM8940 ALSA Soc Audio driver 3 * 4 * Author: Jonathan Cameron <jic23@cam.ac.uk> 5 * 6 * Based on wm8510.c 7 * Copyright 2006 Wolfson Microelectronics PLC. 8 * Author: Liam Girdwood <lrg@slimlogic.co.uk> --- 693 unchanged lines hidden (view full) --- 702 u16 reg; 703 704 ret = wm8940_reset(codec); 705 if (ret < 0) { 706 dev_err(codec->dev, "Failed to issue reset\n"); 707 return ret; 708 } 709 |
710 wm8940_set_bias_level(codec, SND_SOC_BIAS_STANDBY); | 710 snd_soc_codec_force_bias_level(codec, SND_SOC_BIAS_STANDBY); |
711 712 ret = snd_soc_write(codec, WM8940_POWER1, 0x180); 713 if (ret < 0) 714 return ret; 715 716 if (!pdata) 717 dev_warn(codec->dev, "No platform data supplied\n"); 718 else { --- 85 unchanged lines hidden --- | 711 712 ret = snd_soc_write(codec, WM8940_POWER1, 0x180); 713 if (ret < 0) 714 return ret; 715 716 if (!pdata) 717 dev_warn(codec->dev, "No platform data supplied\n"); 718 else { --- 85 unchanged lines hidden --- |