Home | History | Annotate | Download | only in alsa_sound

Lines Matching refs:pInfo

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