• Home
  • Raw
  • Download

Lines Matching refs:pInfo

124 bool AudioUtil::getHDMIAudioSinkCaps(EDID_AUDIO_INFO* pInfo) {  in getHDMIAudioSinkCaps()  argument
151 if (pInfo && data) { in getHDMIAudioSinkCaps()
170 memset(pInfo, 0, sizeof(EDID_AUDIO_INFO)); in getHDMIAudioSinkCaps()
171 pInfo->nAudioBlocks = nCountDesc; in getHDMIAudioSinkCaps()
182 for (int i = 0; i < pInfo->nAudioBlocks; i++) { in getHDMIAudioSinkCaps()
185 pInfo->AudioBlocksArray[i].nChannels = channels[i]; in getHDMIAudioSinkCaps()
186 … ALOGV("pInfo->AudioBlocksArray[i].nChannels %d\n", pInfo->AudioBlocksArray[i].nChannels); in getHDMIAudioSinkCaps()
189pInfo->AudioBlocksArray[i].nFormatId = (EDID_AUDIO_FORMAT_ID)printFormatFromEDID(formats[i]); in getHDMIAudioSinkCaps()
190 ALOGV("pInfo->AudioBlocksArray[i].nFormatId %d",pInfo->AudioBlocksArray[i].nFormatId); in getHDMIAudioSinkCaps()
193 pInfo->AudioBlocksArray[i].nSamplingFreq = getSamplingFrequencyFromEDID(frequency[i]); in getHDMIAudioSinkCaps()
194 … ALOGV("pInfo->AudioBlocksArray[i].nSamplingFreq %d",pInfo->AudioBlocksArray[i].nSamplingFreq); in getHDMIAudioSinkCaps()
197pInfo->AudioBlocksArray[i].nBitsPerSample = getBitsPerSampleFromEDID(bitrate[i],formats[i]); in getHDMIAudioSinkCaps()
198 … ALOGV("pInfo->AudioBlocksArray[i].nBitsPerSample %d",pInfo->AudioBlocksArray[i].nBitsPerSample); in getHDMIAudioSinkCaps()
200 getSpeakerAllocation(pInfo); in getHDMIAudioSinkCaps()
208 bool AudioUtil::getSpeakerAllocation(EDID_AUDIO_INFO* pInfo) { in getSpeakerAllocation() argument
231 if(pInfo && data) { in getSpeakerAllocation()
243 pInfo->nSpeakerAllocation[0] = data[0]; in getSpeakerAllocation()
244 pInfo->nSpeakerAllocation[1] = data[1]; in getSpeakerAllocation()
245 pInfo->nSpeakerAllocation[2] = data[2]; in getSpeakerAllocation()
249 if (pInfo->nSpeakerAllocation[0] & BIT(7)) { in getSpeakerAllocation()
251 } else if (pInfo->nSpeakerAllocation[0] & BIT(6)) { in getSpeakerAllocation()
253 } else if (pInfo->nSpeakerAllocation[0] & BIT(5)) { in getSpeakerAllocation()
255 } else if (pInfo->nSpeakerAllocation[0] & BIT(4)) { in getSpeakerAllocation()
257 } else if (pInfo->nSpeakerAllocation[0] & BIT(3)) { in getSpeakerAllocation()
259 } else if (pInfo->nSpeakerAllocation[0] & BIT(2)) { in getSpeakerAllocation()
261 } else if (pInfo->nSpeakerAllocation[0] & BIT(1)) { in getSpeakerAllocation()
263 } else if (pInfo->nSpeakerAllocation[0] & BIT(0)) { in getSpeakerAllocation()
267 if (pInfo->nSpeakerAllocation[1] & BIT(2)) { in getSpeakerAllocation()
269 } else if (pInfo->nSpeakerAllocation[1] & BIT(1)) { in getSpeakerAllocation()
271 } else if (pInfo->nSpeakerAllocation[1] & BIT(0)) { in getSpeakerAllocation()