da732x.c (ab303e4a17f07d6ebbf6f1528f89e3c1c248a4e6) | da732x.c (a3ea8a66f64ace02f91006f06fe904be5780b7d1) |
---|---|
1/* 2 * da732x.c --- Dialog DA732X ALSA SoC Audio Driver 3 * 4 * Copyright (C) 2012 Dialog Semiconductor GmbH 5 * 6 * Author: Michal Hajduk <Michal.Hajduk@diasemi.com> 7 * 8 * This program is free software; you can redistribute it and/or modify --- 1418 unchanged lines hidden (view full) --- 1427 case SND_SOC_BIAS_ON: 1428 snd_soc_update_bits(codec, DA732X_REG_BIAS_EN, 1429 DA732X_BIAS_BOOST_MASK, 1430 DA732X_BIAS_BOOST_100PC); 1431 break; 1432 case SND_SOC_BIAS_PREPARE: 1433 break; 1434 case SND_SOC_BIAS_STANDBY: | 1/* 2 * da732x.c --- Dialog DA732X ALSA SoC Audio Driver 3 * 4 * Copyright (C) 2012 Dialog Semiconductor GmbH 5 * 6 * Author: Michal Hajduk <Michal.Hajduk@diasemi.com> 7 * 8 * This program is free software; you can redistribute it and/or modify --- 1418 unchanged lines hidden (view full) --- 1427 case SND_SOC_BIAS_ON: 1428 snd_soc_update_bits(codec, DA732X_REG_BIAS_EN, 1429 DA732X_BIAS_BOOST_MASK, 1430 DA732X_BIAS_BOOST_100PC); 1431 break; 1432 case SND_SOC_BIAS_PREPARE: 1433 break; 1434 case SND_SOC_BIAS_STANDBY: |
1435 if (codec->dapm.bias_level == SND_SOC_BIAS_OFF) { | 1435 if (snd_soc_codec_get_bias_level(codec) == SND_SOC_BIAS_OFF) { |
1436 /* Init Codec */ 1437 snd_soc_write(codec, DA732X_REG_REF1, 1438 DA732X_VMID_FASTCHG); 1439 snd_soc_write(codec, DA732X_REG_BIAS_EN, 1440 DA732X_BIAS_EN); 1441 1442 mdelay(DA732X_STARTUP_DELAY); 1443 --- 144 unchanged lines hidden --- | 1436 /* Init Codec */ 1437 snd_soc_write(codec, DA732X_REG_REF1, 1438 DA732X_VMID_FASTCHG); 1439 snd_soc_write(codec, DA732X_REG_BIAS_EN, 1440 DA732X_BIAS_EN); 1441 1442 mdelay(DA732X_STARTUP_DELAY); 1443 --- 144 unchanged lines hidden --- |