cs4270.c (6a4770e335bd4df0a4577146f76e116ab6e23f40) | cs4270.c (ab92d09d1306c738b751b839d81e867af1039d14) |
---|---|
1/* 2 * CS4270 ALSA SoC (ASoC) codec driver 3 * 4 * Author: Timur Tabi <timur@freescale.com> 5 * 6 * Copyright 2007-2009 Freescale Semiconductor, Inc. This file is licensed 7 * under the terms of the GNU General Public License version 2. This 8 * program is licensed "as is" without any warranty of any kind, whether --- 586 unchanged lines hidden (view full) --- 595 cs4270->supplies); 596 597 return 0; 598} 599 600static int cs4270_soc_resume(struct snd_soc_codec *codec) 601{ 602 struct cs4270_private *cs4270 = snd_soc_codec_get_drvdata(codec); | 1/* 2 * CS4270 ALSA SoC (ASoC) codec driver 3 * 4 * Author: Timur Tabi <timur@freescale.com> 5 * 6 * Copyright 2007-2009 Freescale Semiconductor, Inc. This file is licensed 7 * under the terms of the GNU General Public License version 2. This 8 * program is licensed "as is" without any warranty of any kind, whether --- 586 unchanged lines hidden (view full) --- 595 cs4270->supplies); 596 597 return 0; 598} 599 600static int cs4270_soc_resume(struct snd_soc_codec *codec) 601{ 602 struct cs4270_private *cs4270 = snd_soc_codec_get_drvdata(codec); |
603 int reg; | 603 int reg, ret; |
604 | 604 |
605 regulator_bulk_enable(ARRAY_SIZE(cs4270->supplies), 606 cs4270->supplies); | 605 ret = regulator_bulk_enable(ARRAY_SIZE(cs4270->supplies), 606 cs4270->supplies); 607 if (ret != 0) 608 return ret; |
607 608 /* In case the device was put to hard reset during sleep, we need to 609 * wait 500ns here before any I2C communication. */ 610 ndelay(500); 611 612 /* first restore the entire register cache ... */ 613 snd_soc_cache_sync(codec); 614 --- 126 unchanged lines hidden --- | 609 610 /* In case the device was put to hard reset during sleep, we need to 611 * wait 500ns here before any I2C communication. */ 612 ndelay(500); 613 614 /* first restore the entire register cache ... */ 615 snd_soc_cache_sync(codec); 616 --- 126 unchanged lines hidden --- |