[PATCH 2/6] alsa: make visible profile functions

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Export the alsa-mixer mapping API so that it can be used by the UCM core
to create UCM mappings.

Signed-off-by: Margarita Olaya Cabrera <magi at slimlogic.co.uk>
---
 src/modules/alsa/alsa-mixer.c |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/modules/alsa/alsa-mixer.c b/src/modules/alsa/alsa-mixer.c
index f236da0..6e67dab 100644
--- a/src/modules/alsa/alsa-mixer.c
+++ b/src/modules/alsa/alsa-mixer.c
@@ -2979,7 +2979,7 @@ void pa_alsa_profile_set_free(pa_alsa_profile_set *ps) {
     pa_xfree(ps);
 }

-static pa_alsa_mapping *mapping_get(pa_alsa_profile_set *ps, const
char *name) {
+pa_alsa_mapping *mapping_get(pa_alsa_profile_set *ps, const char *name) {
     pa_alsa_mapping *m;

     if (!pa_startswith(name, "Mapping "))
@@ -3434,7 +3434,7 @@ fail:
     return -1;
 }

-static int mapping_verify(pa_alsa_mapping *m, const pa_channel_map *bonus) {
+int mapping_verify(pa_alsa_mapping *m, const pa_channel_map *bonus) {

     static const struct description_map well_known_descriptions[] = {
         { "analog-mono",            N_("Analog Mono") },
@@ -3507,7 +3507,7 @@ void pa_alsa_mapping_dump(pa_alsa_mapping *m) {
                  m->direction);
 }

-static void profile_set_add_auto_pair(
+void profile_set_add_auto_pair(
         pa_alsa_profile_set *ps,
         pa_alsa_mapping *m, /* output */
         pa_alsa_mapping *n  /* input */) {
@@ -3555,7 +3555,7 @@ static void profile_set_add_auto_pair(
     pa_hashmap_put(ps->profiles, p->name, p);
 }

-static void profile_set_add_auto(pa_alsa_profile_set *ps) {
+void profile_set_add_auto(pa_alsa_profile_set *ps) {
     pa_alsa_mapping *m, *n;
     void *m_state, *n_state;

@@ -3572,7 +3572,7 @@ static void
profile_set_add_auto(pa_alsa_profile_set *ps) {
         profile_set_add_auto_pair(ps, NULL, n);
 }

-static int profile_verify(pa_alsa_profile *p) {
+int profile_verify(pa_alsa_profile *p) {

     static const struct description_map well_known_descriptions[] = {
         { "output:analog-mono+input:analog-mono",     N_("Analog Mono
Duplex") },
-- 
1.7.1



[Index of Archives]     [Linux Audio Users]     [AMD Graphics]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux