diff options
Diffstat (limited to 'sound/soc/codecs/wm5102.c')
-rw-r--r-- | sound/soc/codecs/wm5102.c | 53 |
1 files changed, 21 insertions, 32 deletions
diff --git a/sound/soc/codecs/wm5102.c b/sound/soc/codecs/wm5102.c index 282fd232cdf7..8bbddc151aa8 100644 --- a/sound/soc/codecs/wm5102.c +++ b/sound/soc/codecs/wm5102.c | |||
@@ -998,6 +998,8 @@ SND_SOC_DAPM_INPUT("IN2R"), | |||
998 | SND_SOC_DAPM_INPUT("IN3L"), | 998 | SND_SOC_DAPM_INPUT("IN3L"), |
999 | SND_SOC_DAPM_INPUT("IN3R"), | 999 | SND_SOC_DAPM_INPUT("IN3R"), |
1000 | 1000 | ||
1001 | SND_SOC_DAPM_OUTPUT("DRC1 Signal Activity"), | ||
1002 | |||
1001 | SND_SOC_DAPM_PGA_E("IN1L PGA", ARIZONA_INPUT_ENABLES, ARIZONA_IN1L_ENA_SHIFT, | 1003 | SND_SOC_DAPM_PGA_E("IN1L PGA", ARIZONA_INPUT_ENABLES, ARIZONA_IN1L_ENA_SHIFT, |
1002 | 0, NULL, 0, arizona_in_ev, | 1004 | 0, NULL, 0, arizona_in_ev, |
1003 | SND_SOC_DAPM_PRE_PMD | SND_SOC_DAPM_POST_PMD | | 1005 | SND_SOC_DAPM_PRE_PMD | SND_SOC_DAPM_POST_PMD | |
@@ -1421,9 +1423,6 @@ static const struct snd_soc_dapm_route wm5102_dapm_routes[] = { | |||
1421 | { "Tone Generator 1", NULL, "TONE" }, | 1423 | { "Tone Generator 1", NULL, "TONE" }, |
1422 | { "Tone Generator 2", NULL, "TONE" }, | 1424 | { "Tone Generator 2", NULL, "TONE" }, |
1423 | 1425 | ||
1424 | { "Mic Mute Mixer", NULL, "Noise Mixer" }, | ||
1425 | { "Mic Mute Mixer", NULL, "Mic Mixer" }, | ||
1426 | |||
1427 | { "AIF1 Capture", NULL, "AIF1TX1" }, | 1426 | { "AIF1 Capture", NULL, "AIF1TX1" }, |
1428 | { "AIF1 Capture", NULL, "AIF1TX2" }, | 1427 | { "AIF1 Capture", NULL, "AIF1TX2" }, |
1429 | { "AIF1 Capture", NULL, "AIF1TX3" }, | 1428 | { "AIF1 Capture", NULL, "AIF1TX3" }, |
@@ -1499,23 +1498,6 @@ static const struct snd_soc_dapm_route wm5102_dapm_routes[] = { | |||
1499 | { "IN3L PGA", NULL, "IN3L" }, | 1498 | { "IN3L PGA", NULL, "IN3L" }, |
1500 | { "IN3R PGA", NULL, "IN3R" }, | 1499 | { "IN3R PGA", NULL, "IN3R" }, |
1501 | 1500 | ||
1502 | { "ASRC1L", NULL, "ASRC1L Input" }, | ||
1503 | { "ASRC1R", NULL, "ASRC1R Input" }, | ||
1504 | { "ASRC2L", NULL, "ASRC2L Input" }, | ||
1505 | { "ASRC2R", NULL, "ASRC2R Input" }, | ||
1506 | |||
1507 | { "ISRC1DEC1", NULL, "ISRC1DEC1 Input" }, | ||
1508 | { "ISRC1DEC2", NULL, "ISRC1DEC2 Input" }, | ||
1509 | |||
1510 | { "ISRC1INT1", NULL, "ISRC1INT1 Input" }, | ||
1511 | { "ISRC1INT2", NULL, "ISRC1INT2 Input" }, | ||
1512 | |||
1513 | { "ISRC2DEC1", NULL, "ISRC2DEC1 Input" }, | ||
1514 | { "ISRC2DEC2", NULL, "ISRC2DEC2 Input" }, | ||
1515 | |||
1516 | { "ISRC2INT1", NULL, "ISRC2INT1 Input" }, | ||
1517 | { "ISRC2INT2", NULL, "ISRC2INT2 Input" }, | ||
1518 | |||
1519 | ARIZONA_MIXER_ROUTES("OUT1L", "HPOUT1L"), | 1501 | ARIZONA_MIXER_ROUTES("OUT1L", "HPOUT1L"), |
1520 | ARIZONA_MIXER_ROUTES("OUT1R", "HPOUT1R"), | 1502 | ARIZONA_MIXER_ROUTES("OUT1R", "HPOUT1R"), |
1521 | ARIZONA_MIXER_ROUTES("OUT2L", "HPOUT2L"), | 1503 | ARIZONA_MIXER_ROUTES("OUT2L", "HPOUT2L"), |
@@ -1567,22 +1549,25 @@ static const struct snd_soc_dapm_route wm5102_dapm_routes[] = { | |||
1567 | ARIZONA_MIXER_ROUTES("LHPF3", "LHPF3"), | 1549 | ARIZONA_MIXER_ROUTES("LHPF3", "LHPF3"), |
1568 | ARIZONA_MIXER_ROUTES("LHPF4", "LHPF4"), | 1550 | ARIZONA_MIXER_ROUTES("LHPF4", "LHPF4"), |
1569 | 1551 | ||
1570 | ARIZONA_MUX_ROUTES("ASRC1L"), | 1552 | ARIZONA_MIXER_ROUTES("Mic Mute Mixer", "Noise"), |
1571 | ARIZONA_MUX_ROUTES("ASRC1R"), | 1553 | ARIZONA_MIXER_ROUTES("Mic Mute Mixer", "Mic"), |
1572 | ARIZONA_MUX_ROUTES("ASRC2L"), | ||
1573 | ARIZONA_MUX_ROUTES("ASRC2R"), | ||
1574 | 1554 | ||
1575 | ARIZONA_MUX_ROUTES("ISRC1INT1"), | 1555 | ARIZONA_MUX_ROUTES("ASRC1L", "ASRC1L"), |
1576 | ARIZONA_MUX_ROUTES("ISRC1INT2"), | 1556 | ARIZONA_MUX_ROUTES("ASRC1R", "ASRC1R"), |
1557 | ARIZONA_MUX_ROUTES("ASRC2L", "ASRC2L"), | ||
1558 | ARIZONA_MUX_ROUTES("ASRC2R", "ASRC2R"), | ||
1577 | 1559 | ||
1578 | ARIZONA_MUX_ROUTES("ISRC1DEC1"), | 1560 | ARIZONA_MUX_ROUTES("ISRC1INT1", "ISRC1INT1"), |
1579 | ARIZONA_MUX_ROUTES("ISRC1DEC2"), | 1561 | ARIZONA_MUX_ROUTES("ISRC1INT2", "ISRC1INT2"), |
1580 | 1562 | ||
1581 | ARIZONA_MUX_ROUTES("ISRC2INT1"), | 1563 | ARIZONA_MUX_ROUTES("ISRC1DEC1", "ISRC1DEC1"), |
1582 | ARIZONA_MUX_ROUTES("ISRC2INT2"), | 1564 | ARIZONA_MUX_ROUTES("ISRC1DEC2", "ISRC1DEC2"), |
1583 | 1565 | ||
1584 | ARIZONA_MUX_ROUTES("ISRC2DEC1"), | 1566 | ARIZONA_MUX_ROUTES("ISRC2INT1", "ISRC2INT1"), |
1585 | ARIZONA_MUX_ROUTES("ISRC2DEC2"), | 1567 | ARIZONA_MUX_ROUTES("ISRC2INT2", "ISRC2INT2"), |
1568 | |||
1569 | ARIZONA_MUX_ROUTES("ISRC2DEC1", "ISRC2DEC1"), | ||
1570 | ARIZONA_MUX_ROUTES("ISRC2DEC2", "ISRC2DEC2"), | ||
1586 | 1571 | ||
1587 | ARIZONA_DSP_ROUTES("DSP1"), | 1572 | ARIZONA_DSP_ROUTES("DSP1"), |
1588 | 1573 | ||
@@ -1614,6 +1599,9 @@ static const struct snd_soc_dapm_route wm5102_dapm_routes[] = { | |||
1614 | { "SPKDAT1R", NULL, "OUT5R" }, | 1599 | { "SPKDAT1R", NULL, "OUT5R" }, |
1615 | 1600 | ||
1616 | { "MICSUPP", NULL, "SYSCLK" }, | 1601 | { "MICSUPP", NULL, "SYSCLK" }, |
1602 | |||
1603 | { "DRC1 Signal Activity", NULL, "DRC1L" }, | ||
1604 | { "DRC1 Signal Activity", NULL, "DRC1R" }, | ||
1617 | }; | 1605 | }; |
1618 | 1606 | ||
1619 | static int wm5102_set_fll(struct snd_soc_codec *codec, int fll_id, int source, | 1607 | static int wm5102_set_fll(struct snd_soc_codec *codec, int fll_id, int source, |
@@ -1781,6 +1769,7 @@ static int wm5102_codec_probe(struct snd_soc_codec *codec) | |||
1781 | return ret; | 1769 | return ret; |
1782 | 1770 | ||
1783 | arizona_init_spk(codec); | 1771 | arizona_init_spk(codec); |
1772 | arizona_init_gpio(codec); | ||
1784 | 1773 | ||
1785 | snd_soc_dapm_disable_pin(&codec->dapm, "HAPTICS"); | 1774 | snd_soc_dapm_disable_pin(&codec->dapm, "HAPTICS"); |
1786 | 1775 | ||