~ubuntu-branches/ubuntu/wily/oss4/wily

« back to all changes in this revision

Viewing changes to .pc/snd_asoundlib_version.patch/lib/libsalsa/misc.c

  • Committer: Bazaar Package Importer
  • Author(s): Romain Beauxis, Samuel Thibault, Romain Beauxis, Sebastien NOEL
  • Date: 2011-06-14 10:06:56 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20110614100656-cx4oc7u426zn812z
Tags: 4.2-build2004-1
[ Samuel Thibault ]
* debian/control: Add liboss4-salsa2, liboss4-salsa-dev and
  liboss4-salsa-asound2 packages, equivalent to (and will replace) those from
  the oss-libsalsa package (Closes: #589127).
* debian/patches/liboss4-salsa.patch: New patch to rename libsalsa into
  liboss4-salsa to avoid conflicts in the archive for no good reason.
* debian/rules: Make in libOSSlib and libsalsa.
* debian/liboss4-salsa-dev.install, debian/liboss4-salsa2.install,
  debian/liboss4-salsa-asound2.links, debian/liboss4-salsa-dev.links:
  Install liboss4-salsa libraries like was done in the oss-libsalsa package.
* include-alsa: Add a copy of ALSA 1.0.5 headers: Cf ALSA_1.0.* symbols in
  libsalsa, this is the roughly supported version.
* debian/copyright: Update for new include-alsa files.
* alsa.pc: New file for compatibility with libasound-dev.
* debian/control:
  - Add Vcs-Browser and Vcs-Svn fields.
  - Use linux-any instead of the list of Linux archs (Closes: #604679).
  - Make dkms dependency linux-any only.
* debian/patches/hurd_iot.patch: New patch to fix soundcard.h usage in
  libsalsa on hurd-i386.
* debian/patches/libsalsa_fixes.patch: New patch to fix some printf usages
  and ioctl declaration in libsalsa.
* debian/patches/no_EBADE.patch: New patch to cope with hurd-i386 not having
  EBADE.
* debian/patches/CFLAGS.patch: New patch to make oss4 take debian/rules
  CFLAGS into account.
* debian/patches/snd_asoundlib_version.patch: New patch to add
  snd_asoundlib_version().
* debian/patches/generic_srccconf.patch: New patch to fix source
  configuration on unknown archs.

[ Romain Beauxis ]
* Fixed README.Debian to only mention dkms' modules.
* Switch to dpkg-source 3.0 (quilt) format
* Added DM-Upload-Allowed: yes

[ Sebastien NOEL ]
* New upstream release (Closes: #595298, #619272).
* Fix typo in initscript (Closes: #627149).
* debian/control: adjust linux-headers dependencies (Closes: #628879).

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 *  Copyright (c) 2004 by Hannu Savolainen < hannu@opensound.com>
 
3
 *
 
4
 *   This library is free software; you can redistribute it and/or modify
 
5
 *   it under the terms of the GNU Lesser General Public License version 2.1 as
 
6
 *   published by the Free Software Foundation.
 
7
 *
 
8
 *   This program is distributed in the hope that it will be useful,
 
9
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of
 
10
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
11
 *   GNU Lesser General Public License for more details.
 
12
 *
 
13
 *   You should have received a copy of the GNU Lesser General Public
 
14
 *   License along with this library; if not, write to the Free Software
 
15
 *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
 
16
 *
 
17
 */
 
18
#include <stdio.h>
 
19
#include "local.h"
 
20
 
 
21
snd_config_t *snd_config = NULL;
 
22
 
 
23
const char *
 
24
snd_strerror (int errnum)
 
25
{
 
26
  if (errnum < 0)
 
27
    errnum = -errnum;
 
28
 
 
29
  return strerror (errnum);;
 
30
}
 
31
 
 
32
/**
 
33
 * \brief Dumps the contents of a configuration node or tree.
 
34
 * \param config Handle to the (root) configuration node.
 
35
 * \param out Output handle.
 
36
 * \return Zero if successful, otherwise a negative error code.
 
37
 */
 
38
int
 
39
snd_config_save (snd_config_t * config, snd_output_t * out)
 
40
{
 
41
  dbg_printf ("snd_config_save()\n");
 
42
 
 
43
  return 0;
 
44
}
 
45
 
 
46
/**
 
47
 * \brief Searches for a node in a configuration tree.
 
48
 * \param config Handle to the root of the configuration (sub)tree to search.
 
49
 * \param key Search key: one or more node keys, separated with dots.
 
50
 * \param result The function puts the handle to the node found at the address
 
51
 *               specified by \p result.
 
52
 * \return Zero if successful, otherwise a negative error code.
 
53
 */
 
54
int
 
55
snd_config_search (snd_config_t * config, const char *key,
 
56
                   snd_config_t ** result)
 
57
{
 
58
  dbg_printf ("snd_config_search()\n");
 
59
 
 
60
  return 0;
 
61
}
 
62
 
 
63
/**
 
64
 * \brief Updates #snd_config by rereading the global configuration files (if needed).
 
65
 * \return A non-negative value if successful, otherwise a negative error code. * \retval 0 No action is needed.
 
66
 * \retval 1 The configuration tree has been rebuilt.
 
67
 *
 
68
 * The global configuration files are specified in the environment variable
 
69
 * \c ALSA_CONFIG_PATH. If this is not set, the default value is
 
70
 * "/usr/share/alsa/alsa.conf".
 
71
 *
 
72
 * \warning If the configuration tree is reread, all string pointers and
 
73
 * configuration node handles previously obtained from this tree become invalid.
 
74
 */
 
75
int
 
76
snd_config_update (void)
 
77
{
 
78
  dbg_printf ("snd_config_update()\n");
 
79
 
 
80
  return 0;
 
81
}
 
82
 
 
83
/**
 
84
 * \brief Frees the global configuration tree in #snd_config.
 
85
 * \return Zero if successful, otherwise a negative error code.
 
86
 */
 
87
int
 
88
snd_config_update_free_global (void)
 
89
{
 
90
  dbg_printf ("snd_config_update_free_global()\n");
 
91
 
 
92
  return 0;
 
93
}
 
94
 
 
95
/**
 
96
 * \brief Sets the error handler.
 
97
 * \param handler The pointer to the new error handler function.
 
98
 *
 
99
 * This function sets a new error handler, or (if \c handler is \c NULL)
 
100
 * the default one which prints the error messages to \c stderr.
 
101
 */
 
102
int
 
103
snd_lib_error_set_handler (snd_lib_error_handler_t handler)
 
104
{
 
105
  dbg_printf ("snd_lib_error_set_handler()\n");
 
106
  return 0;
 
107
}