|
@@ -28,19 +28,6 @@
|
|
|
#include "uda134x.h"
|
|
|
|
|
|
|
|
|
-#define POWER_OFF_ON_STANDBY 1
|
|
|
-/*
|
|
|
- ALSA SOC usually puts the device in standby mode when it's not used
|
|
|
- for sometime. If you define POWER_OFF_ON_STANDBY the driver will
|
|
|
- turn off the ADC/DAC when this callback is invoked and turn it back
|
|
|
- on when needed. Unfortunately this will result in a very light bump
|
|
|
- (it can be audible only with good earphones). If this bothers you
|
|
|
- just comment this line, you will have slightly higher power
|
|
|
- consumption . Please note that sending the L3 command for ADC is
|
|
|
- enough to make the bump, so it doesn't make difference if you
|
|
|
- completely take off power from the codec.
|
|
|
- */
|
|
|
-
|
|
|
#define UDA134X_RATES SNDRV_PCM_RATE_8000_48000
|
|
|
#define UDA134X_FORMATS (SNDRV_PCM_FMTBIT_S8 | SNDRV_PCM_FMTBIT_S16_LE | \
|
|
|
SNDRV_PCM_FMTBIT_S18_3LE | SNDRV_PCM_FMTBIT_S20_3LE)
|
|
@@ -531,9 +518,11 @@ static int uda134x_soc_probe(struct platform_device *pdev)
|
|
|
codec->num_dai = 1;
|
|
|
codec->read = uda134x_read_reg_cache;
|
|
|
codec->write = uda134x_write;
|
|
|
-#ifdef POWER_OFF_ON_STANDBY
|
|
|
- codec->set_bias_level = uda134x_set_bias_level;
|
|
|
-#endif
|
|
|
+
|
|
|
+ if (!pd->is_powered_on_standby) {
|
|
|
+ codec->set_bias_level = uda134x_set_bias_level;
|
|
|
+ }
|
|
|
+
|
|
|
INIT_LIST_HEAD(&codec->dapm_widgets);
|
|
|
INIT_LIST_HEAD(&codec->dapm_paths);
|
|
|
|