aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/wm8994.c
diff options
context:
space:
mode:
Diffstat (limited to 'sound/soc/codecs/wm8994.c')
-rw-r--r--sound/soc/codecs/wm8994.c17
1 files changed, 12 insertions, 5 deletions
diff --git a/sound/soc/codecs/wm8994.c b/sound/soc/codecs/wm8994.c
index 522249d5c2b4..f3732c20806f 100644
--- a/sound/soc/codecs/wm8994.c
+++ b/sound/soc/codecs/wm8994.c
@@ -2519,18 +2519,18 @@ SND_SOC_DAPM_SUPPLY("DSPINTCLK", WM8994_CLOCKING_1, 1, 0, NULL, 0),
2519SND_SOC_DAPM_SUPPLY("AIF1CLK", WM8994_AIF1_CLOCKING_1, 0, 0, NULL, 0), 2519SND_SOC_DAPM_SUPPLY("AIF1CLK", WM8994_AIF1_CLOCKING_1, 0, 0, NULL, 0),
2520SND_SOC_DAPM_SUPPLY("AIF2CLK", WM8994_AIF2_CLOCKING_1, 0, 0, NULL, 0), 2520SND_SOC_DAPM_SUPPLY("AIF2CLK", WM8994_AIF2_CLOCKING_1, 0, 0, NULL, 0),
2521 2521
2522SND_SOC_DAPM_AIF_OUT("AIF1ADC1L", "AIF1 Capture", 2522SND_SOC_DAPM_AIF_OUT("AIF1ADC1L", NULL,
2523 0, WM8994_POWER_MANAGEMENT_4, 9, 0), 2523 0, WM8994_POWER_MANAGEMENT_4, 9, 0),
2524SND_SOC_DAPM_AIF_OUT("AIF1ADC1R", "AIF1 Capture", 2524SND_SOC_DAPM_AIF_OUT("AIF1ADC1R", NULL,
2525 0, WM8994_POWER_MANAGEMENT_4, 8, 0), 2525 0, WM8994_POWER_MANAGEMENT_4, 8, 0),
2526SND_SOC_DAPM_AIF_IN("AIF1DAC1L", NULL, 0, 2526SND_SOC_DAPM_AIF_IN("AIF1DAC1L", NULL, 0,
2527 WM8994_POWER_MANAGEMENT_5, 9, 0), 2527 WM8994_POWER_MANAGEMENT_5, 9, 0),
2528SND_SOC_DAPM_AIF_IN("AIF1DAC1R", NULL, 0, 2528SND_SOC_DAPM_AIF_IN("AIF1DAC1R", NULL, 0,
2529 WM8994_POWER_MANAGEMENT_5, 8, 0), 2529 WM8994_POWER_MANAGEMENT_5, 8, 0),
2530 2530
2531SND_SOC_DAPM_AIF_OUT("AIF1ADC2L", "AIF1 Capture", 2531SND_SOC_DAPM_AIF_OUT("AIF1ADC2L", NULL,
2532 0, WM8994_POWER_MANAGEMENT_4, 11, 0), 2532 0, WM8994_POWER_MANAGEMENT_4, 11, 0),
2533SND_SOC_DAPM_AIF_OUT("AIF1ADC2R", "AIF1 Capture", 2533SND_SOC_DAPM_AIF_OUT("AIF1ADC2R", NULL,
2534 0, WM8994_POWER_MANAGEMENT_4, 10, 0), 2534 0, WM8994_POWER_MANAGEMENT_4, 10, 0),
2535SND_SOC_DAPM_AIF_IN("AIF1DAC2L", NULL, 0, 2535SND_SOC_DAPM_AIF_IN("AIF1DAC2L", NULL, 0,
2536 WM8994_POWER_MANAGEMENT_5, 11, 0), 2536 WM8994_POWER_MANAGEMENT_5, 11, 0),
@@ -2571,6 +2571,7 @@ SND_SOC_DAPM_AIF_IN("AIF2DACR", NULL, 0,
2571 2571
2572SND_SOC_DAPM_AIF_IN("AIF1DACDAT", "AIF1 Playback", 0, SND_SOC_NOPM, 0, 0), 2572SND_SOC_DAPM_AIF_IN("AIF1DACDAT", "AIF1 Playback", 0, SND_SOC_NOPM, 0, 0),
2573SND_SOC_DAPM_AIF_IN("AIF2DACDAT", "AIF2 Playback", 0, SND_SOC_NOPM, 0, 0), 2573SND_SOC_DAPM_AIF_IN("AIF2DACDAT", "AIF2 Playback", 0, SND_SOC_NOPM, 0, 0),
2574SND_SOC_DAPM_AIF_OUT("AIF1ADCDAT", "AIF1 Capture", 0, SND_SOC_NOPM, 0, 0),
2574SND_SOC_DAPM_AIF_OUT("AIF2ADCDAT", "AIF2 Capture", 0, SND_SOC_NOPM, 0, 0), 2575SND_SOC_DAPM_AIF_OUT("AIF2ADCDAT", "AIF2 Capture", 0, SND_SOC_NOPM, 0, 0),
2575 2576
2576SND_SOC_DAPM_MUX("AIF1DAC Mux", SND_SOC_NOPM, 0, 0, &aif1dac_mux), 2577SND_SOC_DAPM_MUX("AIF1DAC Mux", SND_SOC_NOPM, 0, 0, &aif1dac_mux),
@@ -2766,6 +2767,11 @@ static const struct snd_soc_dapm_route intercon[] = {
2766 { "AIF2DAC2R Mixer", "Left Sidetone Switch", "Left Sidetone" }, 2767 { "AIF2DAC2R Mixer", "Left Sidetone Switch", "Left Sidetone" },
2767 { "AIF2DAC2R Mixer", "Right Sidetone Switch", "Right Sidetone" }, 2768 { "AIF2DAC2R Mixer", "Right Sidetone Switch", "Right Sidetone" },
2768 2769
2770 { "AIF1ADCDAT", NULL, "AIF1ADC1L" },
2771 { "AIF1ADCDAT", NULL, "AIF1ADC1R" },
2772 { "AIF1ADCDAT", NULL, "AIF1ADC2L" },
2773 { "AIF1ADCDAT", NULL, "AIF1ADC2R" },
2774
2769 { "AIF2ADCDAT", NULL, "AIF2ADC Mux" }, 2775 { "AIF2ADCDAT", NULL, "AIF2ADC Mux" },
2770 2776
2771 /* AIF3 output */ 2777 /* AIF3 output */
@@ -2914,6 +2920,7 @@ static int wm8994_set_fll(struct snd_soc_dai *dai, int id, int src,
2914 /* Allow no source specification when stopping */ 2920 /* Allow no source specification when stopping */
2915 if (freq_out) 2921 if (freq_out)
2916 return -EINVAL; 2922 return -EINVAL;
2923 src = wm8994->fll[id].src;
2917 break; 2924 break;
2918 case WM8994_FLL_SRC_MCLK1: 2925 case WM8994_FLL_SRC_MCLK1:
2919 case WM8994_FLL_SRC_MCLK2: 2926 case WM8994_FLL_SRC_MCLK2:
@@ -3485,7 +3492,7 @@ static int wm8994_set_tristate(struct snd_soc_dai *codec_dai, int tristate)
3485 else 3492 else
3486 val = 0; 3493 val = 0;
3487 3494
3488 return snd_soc_update_bits(codec, reg, mask, reg); 3495 return snd_soc_update_bits(codec, reg, mask, val);
3489} 3496}
3490 3497
3491#define WM8994_RATES SNDRV_PCM_RATE_8000_96000 3498#define WM8994_RATES SNDRV_PCM_RATE_8000_96000