Lines Matching full:audio
10 /* maps MSM_HDMI_AUDIO_CHANNEL_n consts used by audio driver to # of channels: */
13 /* Supported HDMI Audio sample rates */
36 /* Audio constants lookup table for hdmi_msm_audio_acr_setup */
76 struct hdmi_audio *audio = &hdmi->audio; in msm_hdmi_audio_update() local
77 struct hdmi_audio_infoframe *info = &audio->infoframe; in msm_hdmi_audio_update()
79 bool enabled = audio->enabled; in msm_hdmi_audio_update()
83 DBG("audio: enabled=%d, channels=%d, channel_allocation=0x%x, " in msm_hdmi_audio_update()
85 audio->enabled, info->channels, info->channel_allocation, in msm_hdmi_audio_update()
86 info->level_shift_value, info->downmix_inhibit, audio->rate); in msm_hdmi_audio_update()
90 DBG("disabling audio: no video"); in msm_hdmi_audio_update()
97 DBG("disabling audio: unsupported pixclock: %lu", in msm_hdmi_audio_update()
118 n = arcs->lut[audio->rate].n; in msm_hdmi_audio_update()
119 cts = arcs->lut[audio->rate].cts; in msm_hdmi_audio_update()
121 if ((MSM_HDMI_SAMPLE_RATE_192KHZ == audio->rate) || in msm_hdmi_audio_update()
122 (MSM_HDMI_SAMPLE_RATE_176_4KHZ == audio->rate)) { in msm_hdmi_audio_update()
125 } else if ((MSM_HDMI_SAMPLE_RATE_96KHZ == audio->rate) || in msm_hdmi_audio_update()
126 (MSM_HDMI_SAMPLE_RATE_88_2KHZ == audio->rate)) { in msm_hdmi_audio_update()
139 if ((MSM_HDMI_SAMPLE_RATE_48KHZ == audio->rate) || in msm_hdmi_audio_update()
140 (MSM_HDMI_SAMPLE_RATE_96KHZ == audio->rate) || in msm_hdmi_audio_update()
141 (MSM_HDMI_SAMPLE_RATE_192KHZ == audio->rate)) in msm_hdmi_audio_update()
143 else if ((MSM_HDMI_SAMPLE_RATE_44_1KHZ == audio->rate) || in msm_hdmi_audio_update()
144 (MSM_HDMI_SAMPLE_RATE_88_2KHZ == audio->rate) || in msm_hdmi_audio_update()
145 (MSM_HDMI_SAMPLE_RATE_176_4KHZ == audio->rate)) in msm_hdmi_audio_update()
212 DBG("audio %sabled", enabled ? "en" : "dis"); in msm_hdmi_audio_update()
221 struct hdmi_audio *audio; in msm_hdmi_audio_info_setup() local
226 audio = &hdmi->audio; in msm_hdmi_audio_info_setup()
231 audio->enabled = enabled; in msm_hdmi_audio_info_setup()
232 audio->infoframe.channels = nchannels[num_of_channels]; in msm_hdmi_audio_info_setup()
233 audio->infoframe.channel_allocation = channel_allocation; in msm_hdmi_audio_info_setup()
234 audio->infoframe.level_shift_value = level_shift; in msm_hdmi_audio_info_setup()
235 audio->infoframe.downmix_inhibit = down_mix; in msm_hdmi_audio_info_setup()
242 struct hdmi_audio *audio; in msm_hdmi_audio_set_sample_rate() local
247 audio = &hdmi->audio; in msm_hdmi_audio_set_sample_rate()
252 audio->rate = rate; in msm_hdmi_audio_set_sample_rate()