mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2026-03-20 05:33:44 -04:00
pcm: Make sure parameter qualifiers match between declaration and definition
Signed-off-by: Michael Forney <mforney@mforney.org> Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
80376889af
commit
630844e36c
1 changed files with 8 additions and 8 deletions
|
|
@ -1997,7 +1997,7 @@ static const char *const snd_pcm_tstamp_type_names[] = {
|
||||||
* \param stream PCM stream type
|
* \param stream PCM stream type
|
||||||
* \return ascii name of PCM stream type
|
* \return ascii name of PCM stream type
|
||||||
*/
|
*/
|
||||||
const char *snd_pcm_stream_name(snd_pcm_stream_t stream)
|
const char *snd_pcm_stream_name(const snd_pcm_stream_t stream)
|
||||||
{
|
{
|
||||||
if (stream > SND_PCM_STREAM_LAST)
|
if (stream > SND_PCM_STREAM_LAST)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
@ -2009,7 +2009,7 @@ const char *snd_pcm_stream_name(snd_pcm_stream_t stream)
|
||||||
* \param acc PCM access type
|
* \param acc PCM access type
|
||||||
* \return ascii name of PCM access type
|
* \return ascii name of PCM access type
|
||||||
*/
|
*/
|
||||||
const char *snd_pcm_access_name(snd_pcm_access_t acc)
|
const char *snd_pcm_access_name(const snd_pcm_access_t acc)
|
||||||
{
|
{
|
||||||
if (acc > SND_PCM_ACCESS_LAST)
|
if (acc > SND_PCM_ACCESS_LAST)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
@ -2021,7 +2021,7 @@ const char *snd_pcm_access_name(snd_pcm_access_t acc)
|
||||||
* \param format PCM sample format
|
* \param format PCM sample format
|
||||||
* \return ascii name of PCM sample format
|
* \return ascii name of PCM sample format
|
||||||
*/
|
*/
|
||||||
const char *snd_pcm_format_name(snd_pcm_format_t format)
|
const char *snd_pcm_format_name(const snd_pcm_format_t format)
|
||||||
{
|
{
|
||||||
if (format > SND_PCM_FORMAT_LAST)
|
if (format > SND_PCM_FORMAT_LAST)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
@ -2033,7 +2033,7 @@ const char *snd_pcm_format_name(snd_pcm_format_t format)
|
||||||
* \param format PCM sample format
|
* \param format PCM sample format
|
||||||
* \return ascii description of PCM sample format
|
* \return ascii description of PCM sample format
|
||||||
*/
|
*/
|
||||||
const char *snd_pcm_format_description(snd_pcm_format_t format)
|
const char *snd_pcm_format_description(const snd_pcm_format_t format)
|
||||||
{
|
{
|
||||||
if (format > SND_PCM_FORMAT_LAST)
|
if (format > SND_PCM_FORMAT_LAST)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
@ -2072,7 +2072,7 @@ snd_pcm_format_t snd_pcm_format_value(const char* name)
|
||||||
* \param subformat PCM sample subformat
|
* \param subformat PCM sample subformat
|
||||||
* \return ascii name of PCM sample subformat
|
* \return ascii name of PCM sample subformat
|
||||||
*/
|
*/
|
||||||
const char *snd_pcm_subformat_name(snd_pcm_subformat_t subformat)
|
const char *snd_pcm_subformat_name(const snd_pcm_subformat_t subformat)
|
||||||
{
|
{
|
||||||
if (subformat > SND_PCM_SUBFORMAT_LAST)
|
if (subformat > SND_PCM_SUBFORMAT_LAST)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
@ -2084,7 +2084,7 @@ const char *snd_pcm_subformat_name(snd_pcm_subformat_t subformat)
|
||||||
* \param subformat PCM sample subformat
|
* \param subformat PCM sample subformat
|
||||||
* \return ascii description of PCM sample subformat
|
* \return ascii description of PCM sample subformat
|
||||||
*/
|
*/
|
||||||
const char *snd_pcm_subformat_description(snd_pcm_subformat_t subformat)
|
const char *snd_pcm_subformat_description(const snd_pcm_subformat_t subformat)
|
||||||
{
|
{
|
||||||
if (subformat > SND_PCM_SUBFORMAT_LAST)
|
if (subformat > SND_PCM_SUBFORMAT_LAST)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
@ -2128,7 +2128,7 @@ link_warning(snd_pcm_xrun_mode_name, "Warning: xrun_mode is deprecated, consider
|
||||||
* \param mode PCM tstamp mode
|
* \param mode PCM tstamp mode
|
||||||
* \return ascii name of PCM tstamp mode setting
|
* \return ascii name of PCM tstamp mode setting
|
||||||
*/
|
*/
|
||||||
const char *snd_pcm_tstamp_mode_name(snd_pcm_tstamp_t mode)
|
const char *snd_pcm_tstamp_mode_name(const snd_pcm_tstamp_t mode)
|
||||||
{
|
{
|
||||||
if (mode > SND_PCM_TSTAMP_LAST)
|
if (mode > SND_PCM_TSTAMP_LAST)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
@ -2152,7 +2152,7 @@ const char *snd_pcm_tstamp_type_name(snd_pcm_tstamp_type_t type)
|
||||||
* \param state PCM state
|
* \param state PCM state
|
||||||
* \return ascii name of PCM state
|
* \return ascii name of PCM state
|
||||||
*/
|
*/
|
||||||
const char *snd_pcm_state_name(snd_pcm_state_t state)
|
const char *snd_pcm_state_name(const snd_pcm_state_t state)
|
||||||
{
|
{
|
||||||
if (state > SND_PCM_STATE_LAST)
|
if (state > SND_PCM_STATE_LAST)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue