diff options
author | Paul McLean <pmclean@google.com> | 2015-01-28 12:12:22 -0800 |
---|---|---|
committer | Paul McLean <pmclean@google.com> | 2015-02-02 12:45:38 -0800 |
commit | 9bc8190442966c6c07ce99139e74907a4decd09c (patch) | |
tree | 6c2cc1365d051a8f3c4ee6abadb1f7f29ca2cf8e /include/system | |
parent | b0e3c2faa98e79f2fd84b5f1f7dbe7511c3b5cda (diff) | |
download | system_core-9bc8190442966c6c07ce99139e74907a4decd09c.zip system_core-9bc8190442966c6c07ce99139e74907a4decd09c.tar.gz system_core-9bc8190442966c6c07ce99139e74907a4decd09c.tar.bz2 |
Adding name field to AudioPort for enum/select API.
Change-Id: I9e7a6476f7f2658c6ea1ac255683fefb9f598a2d
Diffstat (limited to 'include/system')
-rw-r--r-- | include/system/audio.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/system/audio.h b/include/system/audio.h index 181a171..c8efdf3 100644 --- a/include/system/audio.h +++ b/include/system/audio.h @@ -872,6 +872,8 @@ typedef enum { typedef int audio_port_handle_t; #define AUDIO_PORT_HANDLE_NONE 0 +/* the maximum length for the human-readable device name. i.e. "Alesis iO4"*/ +#define AUDIO_PORT_MAX_NAME_LEN 128 /* maximum audio device address length */ #define AUDIO_DEVICE_MAX_ADDRESS_LEN 32 @@ -966,11 +968,11 @@ struct audio_port_session_ext { audio_session_t session; /* audio session */ }; - struct audio_port { audio_port_handle_t id; /* port unique ID */ audio_port_role_t role; /* sink or source */ audio_port_type_t type; /* device, mix ... */ + char name[AUDIO_PORT_MAX_NAME_LEN]; unsigned int num_sample_rates; /* number of sampling rates in following array */ unsigned int sample_rates[AUDIO_PORT_MAX_SAMPLING_RATES]; unsigned int num_channel_masks; /* number of channel masks in following array */ |