diff options
author | Takashi Iwai <tiwai@suse.de> | 2007-10-22 12:22:55 +0200 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2007-10-22 12:22:55 +0200 |
commit | c35050792304e78eff33ddc9beb5756a8f516a9b (patch) | |
tree | 53f1f3335213eef34c81ea1ff8b23e6234c3c5ac | |
parent | c4cc9f3003439c1a8006b113798beefebfc8faea (diff) | |
download | salsa-lib-c35050792304e78eff33ddc9beb5756a8f516a9b.tar.gz |
Suppress "deprecated" compile warnings for TLV
Suppress "deprecated" compile warinigs for TLV when built without TLV
support.
-rw-r--r-- | src/hctl_macros.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/hctl_macros.h b/src/hctl_macros.h index 9d6804f..a57775f 100644 --- a/src/hctl_macros.h +++ b/src/hctl_macros.h @@ -129,6 +129,7 @@ int snd_hctl_elem_write(snd_hctl_elem_t *elem, snd_ctl_elem_value_t *value) return snd_ctl_elem_write(elem->hctl->ctl, value); } +#if SALSA_HAS_TLV_SUPPORT static inline int snd_hctl_elem_tlv_read(snd_hctl_elem_t *elem, unsigned int *tlv, unsigned int tlv_size) @@ -148,6 +149,28 @@ int snd_hctl_elem_tlv_command(snd_hctl_elem_t *elem, const unsigned int *tlv) return snd_ctl_elem_tlv_command(elem->hctl->ctl, &elem->id, tlv); } +#else /* SALSA_HAS_TLV_SUPPORT */ + +static inline __SALSA_NOT_IMPLEMENTED +int snd_hctl_elem_tlv_read(snd_hctl_elem_t *elem, unsigned int *tlv, + unsigned int tlv_size) +{ + return -ENXIO; +} + +static inline __SALSA_NOT_IMPLEMENTED +int snd_hctl_elem_tlv_write(snd_hctl_elem_t *elem, const unsigned int *tlv) +{ + return -ENXIO; +} + +static inline __SALSA_NOT_IMPLEMENTED +int snd_hctl_elem_tlv_command(snd_hctl_elem_t *elem, const unsigned int *tlv) +{ + return -ENXIO; +} +#endif /* SALSA_HAS_TLV_SUPPORT */ + static inline snd_hctl_t *snd_hctl_elem_get_hctl(snd_hctl_elem_t *elem) { |