Lines Matching refs:attr

21 static audio_stream_type_t audio_attributes_to_stream_type(const audio_attributes_t *attr)  in audio_attributes_to_stream_type()  argument
24 if ((attr->flags & AUDIO_FLAG_AUDIBILITY_ENFORCED) == AUDIO_FLAG_AUDIBILITY_ENFORCED) { in audio_attributes_to_stream_type()
27 if ((attr->flags & AUDIO_FLAG_SCO) == AUDIO_FLAG_SCO) { in audio_attributes_to_stream_type()
32 switch (attr->usage) { in audio_attributes_to_stream_type()
65 audio_attributes_t *attr) { in stream_type_to_audio_attributes() argument
66 memset(attr, 0, sizeof(audio_attributes_t)); in stream_type_to_audio_attributes()
71 attr->content_type = AUDIO_CONTENT_TYPE_MUSIC; in stream_type_to_audio_attributes()
72 attr->usage = AUDIO_USAGE_MEDIA; in stream_type_to_audio_attributes()
75 attr->content_type = AUDIO_CONTENT_TYPE_SPEECH; in stream_type_to_audio_attributes()
76 attr->usage = AUDIO_USAGE_VOICE_COMMUNICATION; in stream_type_to_audio_attributes()
79 attr->flags |= AUDIO_FLAG_AUDIBILITY_ENFORCED; in stream_type_to_audio_attributes()
82 attr->content_type = AUDIO_CONTENT_TYPE_SONIFICATION; in stream_type_to_audio_attributes()
83 attr->usage = AUDIO_USAGE_ASSISTANCE_SONIFICATION; in stream_type_to_audio_attributes()
86 attr->content_type = AUDIO_CONTENT_TYPE_SONIFICATION; in stream_type_to_audio_attributes()
87 attr->usage = AUDIO_USAGE_NOTIFICATION_TELEPHONY_RINGTONE; in stream_type_to_audio_attributes()
90 attr->content_type = AUDIO_CONTENT_TYPE_SONIFICATION; in stream_type_to_audio_attributes()
91 attr->usage = AUDIO_USAGE_ALARM; in stream_type_to_audio_attributes()
94 attr->content_type = AUDIO_CONTENT_TYPE_SONIFICATION; in stream_type_to_audio_attributes()
95 attr->usage = AUDIO_USAGE_NOTIFICATION; in stream_type_to_audio_attributes()
98 attr->content_type = AUDIO_CONTENT_TYPE_SPEECH; in stream_type_to_audio_attributes()
99 attr->usage = AUDIO_USAGE_VOICE_COMMUNICATION; in stream_type_to_audio_attributes()
100 attr->flags |= AUDIO_FLAG_SCO; in stream_type_to_audio_attributes()
103 attr->content_type = AUDIO_CONTENT_TYPE_SONIFICATION; in stream_type_to_audio_attributes()
104 attr->usage = AUDIO_USAGE_VOICE_COMMUNICATION_SIGNALLING; in stream_type_to_audio_attributes()
107 attr->content_type = AUDIO_CONTENT_TYPE_SPEECH; in stream_type_to_audio_attributes()
108 attr->usage = AUDIO_USAGE_ASSISTANCE_ACCESSIBILITY; in stream_type_to_audio_attributes()