diff options
Diffstat (limited to 'sound/soc/soc-dapm.c')
-rw-r--r-- | sound/soc/soc-dapm.c | 25 |
1 files changed, 22 insertions, 3 deletions
diff --git a/sound/soc/soc-dapm.c b/sound/soc/soc-dapm.c index 9ca9c08610fa..efbd0b37810a 100644 --- a/sound/soc/soc-dapm.c +++ b/sound/soc/soc-dapm.c | |||
@@ -2,8 +2,7 @@ | |||
2 | * soc-dapm.c -- ALSA SoC Dynamic Audio Power Management | 2 | * soc-dapm.c -- ALSA SoC Dynamic Audio Power Management |
3 | * | 3 | * |
4 | * Copyright 2005 Wolfson Microelectronics PLC. | 4 | * Copyright 2005 Wolfson Microelectronics PLC. |
5 | * Author: Liam Girdwood | 5 | * Author: Liam Girdwood <lrg@slimlogic.co.uk> |
6 | * liam.girdwood@wolfsonmicro.com or linux@wolfsonmicro.com | ||
7 | * | 6 | * |
8 | * This program is free software; you can redistribute it and/or modify it | 7 | * This program is free software; you can redistribute it and/or modify it |
9 | * under the terms of the GNU General Public License as published by the | 8 | * under the terms of the GNU General Public License as published by the |
@@ -1484,6 +1483,26 @@ int snd_soc_dapm_disable_pin(struct snd_soc_codec *codec, char *pin) | |||
1484 | EXPORT_SYMBOL_GPL(snd_soc_dapm_disable_pin); | 1483 | EXPORT_SYMBOL_GPL(snd_soc_dapm_disable_pin); |
1485 | 1484 | ||
1486 | /** | 1485 | /** |
1486 | * snd_soc_dapm_nc_pin - permanently disable pin. | ||
1487 | * @codec: SoC codec | ||
1488 | * @pin: pin name | ||
1489 | * | ||
1490 | * Marks the specified pin as being not connected, disabling it along | ||
1491 | * any parent or child widgets. At present this is identical to | ||
1492 | * snd_soc_dapm_disable_pin() but in future it will be extended to do | ||
1493 | * additional things such as disabling controls which only affect | ||
1494 | * paths through the pin. | ||
1495 | * | ||
1496 | * NOTE: snd_soc_dapm_sync() needs to be called after this for DAPM to | ||
1497 | * do any widget power switching. | ||
1498 | */ | ||
1499 | int snd_soc_dapm_nc_pin(struct snd_soc_codec *codec, char *pin) | ||
1500 | { | ||
1501 | return snd_soc_dapm_set_pin(codec, pin, 0); | ||
1502 | } | ||
1503 | EXPORT_SYMBOL_GPL(snd_soc_dapm_nc_pin); | ||
1504 | |||
1505 | /** | ||
1487 | * snd_soc_dapm_get_pin_status - get audio pin status | 1506 | * snd_soc_dapm_get_pin_status - get audio pin status |
1488 | * @codec: audio codec | 1507 | * @codec: audio codec |
1489 | * @pin: audio signal pin endpoint (or start point) | 1508 | * @pin: audio signal pin endpoint (or start point) |
@@ -1521,6 +1540,6 @@ void snd_soc_dapm_free(struct snd_soc_device *socdev) | |||
1521 | EXPORT_SYMBOL_GPL(snd_soc_dapm_free); | 1540 | EXPORT_SYMBOL_GPL(snd_soc_dapm_free); |
1522 | 1541 | ||
1523 | /* Module information */ | 1542 | /* Module information */ |
1524 | MODULE_AUTHOR("Liam Girdwood, liam.girdwood@wolfsonmicro.com, www.wolfsonmicro.com"); | 1543 | MODULE_AUTHOR("Liam Girdwood, lrg@slimlogic.co.uk"); |
1525 | MODULE_DESCRIPTION("Dynamic Audio Power Management core for ALSA SoC"); | 1544 | MODULE_DESCRIPTION("Dynamic Audio Power Management core for ALSA SoC"); |
1526 | MODULE_LICENSE("GPL"); | 1545 | MODULE_LICENSE("GPL"); |