/* < DTS2012032901360 leiheiping 20120329 begin */ void get_audio_property(char *audio_property) { unsigned int property = AUDIO_PROPERTY_INVALID; audio_property_type mic_type = MIC_NONE; audio_property_type fir_enable = FIR_DISABLE; audio_property_type fm_type = FM_BROADCOM; mic_type = get_audio_mic_type(); fir_enable = get_audio_fir_enabled(); fm_type = get_audio_fm_type(); property = fir_enable | mic_type | fm_type; sprintf(audio_property, "%8x", property); }
void get_audio_property(char *audio_property) { unsigned int property = AUDIO_PROPERTY_INVALID; audio_property_type mic_type = MIC_NONE; audio_property_type fir_enable = FIR_DISABLE; audio_property_type fm_type = FM_BROADCOM; audio_property_type spk_type = MONO_SPEAKER; audio_property_type secondmic_type = SECONDMIC_NONE; mic_type = get_audio_mic_type(); fir_enable = get_audio_fir_enabled(); fm_type = get_audio_fm_type(); spk_type = get_audio_speaker_type(); secondmic_type = get_audio_2ndmic_type(); property = secondmic_type | spk_type | fm_type | fir_enable | mic_type ; sprintf(audio_property, "%8x", property); }
/* Add DTS property */ void get_audio_property(char *audio_property) { unsigned int property = AUDIO_PROPERTY_INVALID; audio_property_type mic_type = MIC_NONE; audio_property_type fir_enable = FIR_DISABLE; audio_property_type fm_type = FM_BROADCOM; audio_property_type spk_type = MONO_SPEAKER; audio_property_type spkmic_type = SPK_MAIN_MIC; audio_property_type dts_enable = DTS_DISABLE; mic_type = get_audio_mic_type(); fir_enable = get_audio_fir_enabled(); fm_type = get_audio_fm_type(); spk_type = get_audio_speaker_type(); spkmic_type = get_audio_spkmic_type(); dts_enable = get_audio_dts_enable(); property = spkmic_type | spk_type | fm_type | fir_enable | mic_type | dts_enable; sprintf(audio_property, "%8x", property); }