<audio_platform_info>
|
<!-- kylin platform -->
|
|
<!--
|
Point out what plugins to use.
|
-status
|
off: disable this plugin
|
on: enable this plugin
|
-->
|
<platform_audio_plugins_config>
|
<plugin name="dump_data" status="off"/>
|
<plugin name="audio_3d_surround" status="off"/>
|
<plugin name="bp" status="off"/>
|
</platform_audio_plugins_config>
|
|
<!--
|
platform_devices:
|
-devices
|
What devices are included in this profile.
|
|
snd_card_config:
|
-type
|
frontend/backend/out_backend/in_backend.
|
backend:
|
You need to open and start this out&in PCM device,
|
but do not need to write data to this out&in PCM device.
|
out_backend:
|
You need to open and start this out PCM device,
|
but do not need to write data to this out PCM device.
|
in_backend:
|
You need to open and start this in PCM device,
|
but do not need to read data from this in PCM device.
|
-card_name
|
alsa snd card name.
|
-device
|
alsa device id, refer to pcm_open
|
-channels
|
pcm channel config. 1:mono, 2:stereo. refer to pcm_config
|
-rate
|
sampling rate, e.g. 44100, 48000... refer to pcm_config
|
-period_size
|
refer to pcm_config
|
-period_count
|
refer to pcm_config
|
-->
|
|
<!-- main output profile -->
|
<platform_devices_profile>
|
<platform_devices devices="OUT_SPK|OUT_EAR|OUT_HP|OUT_SPK_AND_HP|OUT_DULSPK|OUT_DULSPK_HP"/>
|
<snd_card_config
|
type="frontend" card_name="audiocodec" device="0"
|
channels="2" rate="48000" period_size="1024" period_count="2"
|
/>
|
</platform_devices_profile>
|
|
<!-- main input profile -->
|
<platform_devices_profile>
|
<platform_devices devices="IN_AMIC|IN_DMIC|IN_HPMIC"/>
|
<snd_card_config
|
type="frontend" card_name="audiocodec" device="0"
|
channels="2" rate="48000" period_size="1024" period_count="2"
|
/>
|
</platform_devices_profile>
|
|
<!-- hdmi -->
|
<platform_devices_profile>
|
<platform_devices devices="OUT_HDMI"/>
|
<snd_card_config
|
type="frontend" card_name="sndhdmi" device="0"
|
channels="2" rate="48000" period_size="512" period_count="2"
|
/>
|
</platform_devices_profile>
|
|
<!-- spdif -->
|
<platform_devices_profile>
|
<platform_devices devices="OUT_SPDIF"/>
|
<snd_card_config
|
type="frontend" card_name="sndspdif" device="0"
|
channels="2" rate="48000" period_size="512" period_count="2"
|
/>
|
</platform_devices_profile>
|
|
<!-- bt sco -->
|
<platform_devices_profile>
|
<platform_devices devices="OUT_BTSCO|IN_BTSCO"/>
|
|
<snd_card_config
|
type="frontend" card_name="audiocodec" device="0"
|
channels="2" rate="8000" period_size="512" period_count="2"
|
/>
|
<snd_card_config
|
type="backend" card_name="audiocodec" device="3"
|
channels="1" rate="8000" period_size="512" period_count="2"
|
/>
|
<snd_card_config
|
type="backend" card_name="audiocodec" device="4"
|
channels="1" rate="8000" period_size="512" period_count="2"
|
/>
|
/>
|
</platform_devices_profile>
|
|
<!-- digital phone -->
|
<platform_devices_profile>
|
<platform_devices devices="DPH_SPK|DPH_EAR|DPH_HP|DPH_HS"/>
|
|
<snd_card_config
|
type="backend" card_name="audiocodec" device="1"
|
channels="1" rate="8000" period_size="512" period_count="2"
|
/>
|
</platform_devices_profile>
|
|
<!-- digital phone bt -->
|
<platform_devices_profile>
|
<platform_devices devices="DPH_BTSCO"/>
|
|
<snd_card_config
|
type="backend" card_name="audiocodec" device="1"
|
channels="1" rate="8000" period_size="512" period_count="2"
|
/>
|
<snd_card_config
|
type="backend" card_name="audiocodec" device="3"
|
channels="1" rate="8000" period_size="512" period_count="2"
|
/>
|
</platform_devices_profile>
|
|
<!-- digital phone playback and record device -->
|
<platform_devices_profile>
|
<platform_devices devices="OUT_DPH_PLAY | IN_DPH_REC"/>
|
|
<snd_card_config
|
type="frontend" card_name="audiocodec" device="1"
|
channels="1" rate="8000" period_size="1024" period_count="2"
|
/>
|
</platform_devices_profile>
|
|
<!-- analog phone playback and record device -->
|
<platform_devices_profile>
|
<platform_devices devices="OUT_APH_PLAY|IN_APH_REC"/>
|
|
<snd_card_config
|
type="frontend" card_name="audiocodec" device="1"
|
channels="1" rate="8000" period_size="1024" period_count="2"
|
/>
|
</platform_devices_profile>
|
|
<!-- audio hub: codec and hdmi -->
|
<platform_devices_profile>
|
<platform_devices devices="OUT_SPK_HDMI|OUT_DULSPK_HDMI|OUT_HP_HDMI"/>
|
<snd_card_config
|
type="frontend" card_name="audiocodec" device="0"
|
channels="2" rate="48000" period_size="1024" period_count="2"
|
/>
|
<snd_card_config
|
type="out_backend" card_name="audiocodec" device="4"
|
channels="2" rate="48000" period_size="1024" period_count="2"
|
/>
|
</platform_devices_profile>
|
|
<!-- audio hub: codec and spdif -->
|
<platform_devices_profile>
|
<platform_devices devices="OUT_SPK_SPDIF|OUT_DULSPK_SPDIF|OUT_HP_SPDIF"/>
|
<snd_card_config
|
type="frontend" card_name="audiocodec" device="0"
|
channels="2" rate="48000" period_size="1024" period_count="2"
|
/>
|
<snd_card_config
|
type="out_backend" card_name="audiocodec" device="5"
|
channels="2" rate="48000" period_size="1024" period_count="2"
|
/>
|
</platform_devices_profile>
|
|
<!-- audio hub: codec, hdmi and spdif -->
|
<platform_devices_profile>
|
<platform_devices devices="OUT_HDMI_SPDIF|OUT_SPK_HDMI_SPDIF|OUT_DULSPK_HDMI_SPDIF|OUT_HP_HDMI_SPDIF"/>
|
<snd_card_config
|
type="frontend" card_name="audiocodec" device="0"
|
channels="2" rate="48000" period_size="1024" period_count="2"
|
/>
|
<snd_card_config
|
type="out_backend" card_name="audiocodec" device="4"
|
channels="2" rate="48000" period_size="1024" period_count="2"
|
/>
|
<snd_card_config
|
type="out_backend" card_name="audiocodec" device="5"
|
channels="2" rate="48000" period_size="1024" period_count="2"
|
/>
|
</platform_devices_profile>
|
|
<!--
|
platform_device_path:
|
Point out the platform device path.
|
-device
|
platform device, refer to platform.h
|
-path
|
the platform device path. refer to audio_mixer_paths.xml
|
-->
|
<platform_device_path>
|
<!-- platform playback device path -->
|
<device_path_map device="OUT_NONE" path="null"/>
|
<device_path_map device="OUT_RESET" path="null"/>
|
<device_path_map device="OUT_EAR" path="media-single-speaker"/>
|
<device_path_map device="OUT_SPK" path="media-single-speaker"/>
|
<device_path_map device="OUT_DULSPK" path="media-speaker"/>
|
<device_path_map device="OUT_HP" path="media-headphones"/>
|
<device_path_map device="OUT_SPK_HP" path="phone-ring-voice"/>
|
<device_path_map device="OUT_DULSPK_HP" path="phone-ring-voice"/>
|
<device_path_map device="OUT_BTSCO" path="com-ap-bt"/>
|
<device_path_map device="OUT_DPH_PLAY" path="null"/>
|
<device_path_map device="OUT_APH_PLAY" path="null"/>
|
<device_path_map device="OUT_HDMI" path="null"/>
|
<device_path_map device="OUT_SPDIF" path="null"/>
|
|
<device_path_map device="OUT_SPK_HDMI" path="null"/>
|
<device_path_map device="OUT_DULSPK_HDMI" path="null"/>
|
<device_path_map device="OUT_HP_HDMI" path="null"/>
|
|
<device_path_map device="OUT_SPK_SPDIF" path="null"/>
|
<device_path_map device="OUT_DULSPK_SPDIF" path="null"/>
|
<device_path_map device="OUT_HP_SPDIF" path="null"/>
|
|
<device_path_map device="OUT_HDMI_SPDIF" path="null"/>
|
<device_path_map device="OUT_SPK_HDMI_SPDIF" path="null"/>
|
<device_path_map device="OUT_DULSPK_HDMI_SPDIF" path="null"/>
|
<device_path_map device="OUT_HP_HDMI_SPDIF" path="null"/>
|
|
<!-- platform record device path -->
|
<device_path_map device="IN_AMIC" path="media-main-mic"/>
|
<device_path_map device="IN_DMIC" path="media-digital-mic"/>
|
<device_path_map device="IN_HPMIC" path="media-headset-mic"/>
|
<device_path_map device="IN_BTSCO" path="com-bt-ap"/>
|
<device_path_map device="IN_DPH_REC" path="null"/>
|
<device_path_map device="IN_APH_REC" path="null"/>
|
|
<!-- phone path -->
|
<device_path_map device="APH_SPK" path="analog-phone-speaker"/>
|
<device_path_map device="APH_EAR" path="analog-phone-earpiece"/>
|
<device_path_map device="APH_HP" path="analog-phone-headphone"/>
|
<device_path_map device="APH_HS" path="analog-phone-headset"/>
|
<device_path_map device="APH_BTSCO" path="analog-phone-bt"/>
|
|
<device_path_map device="DPH_SPK" path="digital-phone-speaker"/>
|
<device_path_map device="DPH_EAR" path="digital-phone-earpiece"/>
|
<device_path_map device="DPH_HP" path="digital-phone-headphone"/>
|
<device_path_map device="DPH_HS" path="digital-phone-headset"/>
|
<device_path_map device="DPH_BTSCO" path="digital-phone-bt"/>
|
</platform_device_path>
|
|
<microphone_characteristics>
|
<microphone valid_mask="0" device_id="builtin_mic_1" type="AUDIO_DEVICE_IN_BUILTIN_MIC" address="bottom" location="AUDIO_MICROPHONE_LOCATION_MAINBODY"
|
group="0" index_in_the_group="0" directionality="AUDIO_MICROPHONE_DIRECTIONALITY_OMNI" num_frequency_responses="0"
|
frequencies="97.16 102.92 109.02 115.48 122.32 129.57 137.25 145.38 153.99 163.12 172.78 183.02 193.87 205.35 217.52 230.41 244.06 258.52 273.84 290.07 307.26 325.46 344.75 365.17 386.81 409.73 434.01 459.73 486.97 515.82 546.39 578.76 613.06 649.38 687.86 728.62 771.79 817.52 865.96 917.28 971.63 1029.20 1090.18 1154.78 1223.21 1295.69 1372.46 1453.78 1539.93 1631.17 1727.83 1830.21 1938.65 2053.53 2175.20 2304.09 2440.62 2585.23 2738.42 2900.68 3072.56 3254.62 3447.47 3651.74 3868.12 4097.32 4340.10 4597.27 4869.68 5158.22 5463.87 5787.62 6130.56 6493.82 6878.60 7286.18 7717.92 8175.23 8659.64 9172.76 9716.28 10292.01 10901.84 11547.82 12232.07 12956.87 13724.61 14537.84 15399.27 16311.73 17278.26 18302.06 19386.53"
|
responses="-0.40 -0.40 -0.60 -0.70 -0.40 -0.40 -0.30 -0.30 -0.30 -0.30 -0.20 -0.60 -0.90 -0.90 -1.00 -0.70 -0.80 -0.70 -0.70 -0.90 -0.70 -0.20 0.60 1.40 1.70 0.80 -0.80 -2.10 -2.30 -1.70 -0.90 0.50 1.30 1.20 0.80 0.10 0.20 0.40 2.30 2.40 0.00 -0.40 -0.10 0.70 -0.40 1.00 0.50 1.40 2.40 2.00 2.50 2.70 1.70 1.40 1.70 -1.90 -3.60 1.70 2.30 0.00 0.80 -0.30 0.60 1.90 1.40 -1.90 0.30 1.70 -0.60 0.40 2.20 3.60 -4.20 2.50 3.60 8.10 -4.30 5.70 7.30 9.60 7.80 10.20 16.40 18.60 20.10 22.50 23.50 17.60 17.90 18.80 17.70 15.10 14.70"
|
sensitivity="-37.0" max_spl="132.5" min_spl="28.5" orientation="0.0 -1.0 0.0" geometric_location="0.0513 0.0 0.0038" />
|
<!-- microphone valid_mask="31" device_id="builtin_mic_2" type="AUDIO_DEVICE_IN_BACK_MIC" address="back" location="AUDIO_MICROPHONE_LOCATION_MAINBODY"
|
group="0" index_in_the_group="1" directionality="AUDIO_MICROPHONE_DIRECTIONALITY_OMNI" num_frequency_responses="93"
|
frequencies="97.16 102.92 109.02 115.48 122.32 129.57 137.25 145.38 153.99 163.12 172.78 183.02 193.87 205.35 217.52 230.41 244.06 258.52 273.84 290.07 307.26 325.46 344.75 365.17 386.81 409.73 434.01 459.73 486.97 515.82 546.39 578.76 613.06 649.38 687.86 728.62 771.79 817.52 865.96 917.28 971.63 1029.20 1090.18 1154.78 1223.21 1295.69 1372.46 1453.78 1539.93 1631.17 1727.83 1830.21 1938.65 2053.53 2175.20 2304.09 2440.62 2585.23 2738.42 2900.68 3072.56 3254.62 3447.47 3651.74 3868.12 4097.32 4340.10 4597.27 4869.68 5158.22 5463.87 5787.62 6130.56 6493.82 6878.60 7286.18 7717.92 8175.23 8659.64 9172.76 9716.28 10292.01 10901.84 11547.82 12232.07 12956.87 13724.61 14537.84 15399.27 16311.73 17278.26 18302.06 19386.53"
|
responses="-1.20 -1.20 -1.40 -1.50 -1.10 -1.10 -1.10 -1.20 -1.20 -1.20 -1.10 -1.50 -1.60 -1.60 -1.60 -1.20 -1.20 -1.00 -0.70 -0.70 -0.50 -0.40 -0.40 -0.60 -1.30 -2.30 -2.10 -1.10 -0.30 -0.10 -0.10 -0.60 -1.00 -1.60 -1.60 -0.90 -1.00 -1.10 -1.80 -0.10 0.00 -0.20 -0.50 -0.50 -0.20 0.20 0.40 1.60 1.90 1.10 1.40 2.20 2.90 2.40 1.80 3.90 6.00 6.30 2.80 4.80 5.10 5.90 7.00 8.00 7.10 4.10 6.60 6.50 6.80 8.90 6.20 6.20 9.60 7.30 6.50 9.30 6.90 9.20 6.60 9.50 9.80 9.60 11.80 11.00 12.80 11.50 11.90 12.60 11.30 10.10 10.90 12.70 13.9"
|
sensitivity="-37.0" max_spl="132.5" min_spl="28.5" orientation="0.0 0.0 -1.0" geometric_location="0.0347 0.1451 0.0" -->
|
</microphone_characteristics>
|
<!-- TODO: Fake channel mapping data, need to populate with actual data -->
|
<snd_devices>
|
<input_snd_device>
|
<input_snd_device_mic_mapping>
|
<snd_dev in_snd_device="IN_AMIC">
|
<mic_info mic_device_id="builtin_mic_1"
|
channel_mapping="AUDIO_MICROPHONE_CHANNEL_MAPPING_DIRECT"/>
|
</snd_dev>
|
<snd_dev in_snd_device="IN_HPMIC">
|
<mic_info mic_device_id="builtin_mic_1"
|
channel_mapping="AUDIO_MICROPHONE_CHANNEL_MAPPING_DIRECT"/>
|
</snd_dev>
|
</input_snd_device_mic_mapping>
|
</input_snd_device>
|
</snd_devices>
|
</audio_platform_info>
|