diff options
author | David Čížek <DavidCizek@seznam.cz> | 2015-04-21 10:06:51 +0200 |
---|---|---|
committer | David Čížek <DavidCizek@seznam.cz> | 2015-04-22 06:49:34 +0000 |
commit | e3591e7a641044f28598dfe628c4e0d46d3d7435 (patch) | |
tree | dcb7051617e79546f85f842f93bbb36244d65f05 /configs | |
parent | 7b432a83f4574352f990be56d7f9930972613252 (diff) | |
download | device_samsung_galaxys2-common-e3591e7a641044f28598dfe628c4e0d46d3d7435.zip device_samsung_galaxys2-common-e3591e7a641044f28598dfe628c4e0d46d3d7435.tar.gz device_samsung_galaxys2-common-e3591e7a641044f28598dfe628c4e0d46d3d7435.tar.bz2 |
Car dock analog audio support (fixes CYAN-40 on i9100).
Change-Id: Ie1b26cc1d67ada9c1d639dc6fc6f69fd7504707a
Diffstat (limited to 'configs')
-rwxr-xr-x[-rw-r--r--] | configs/audio_policy.conf | 2 | ||||
-rwxr-xr-x[-rw-r--r--] | configs/tinyalsa-audio.xml | 10 |
2 files changed, 11 insertions, 1 deletions
diff --git a/configs/audio_policy.conf b/configs/audio_policy.conf index d85af14..e020d1f 100644..100755 --- a/configs/audio_policy.conf +++ b/configs/audio_policy.conf @@ -26,7 +26,7 @@ audio_hw_modules { sampling_rates 44100 channel_masks AUDIO_CHANNEL_OUT_STEREO formats AUDIO_FORMAT_PCM_16_BIT - devices AUDIO_DEVICE_OUT_EARPIECE|AUDIO_DEVICE_OUT_SPEAKER|AUDIO_DEVICE_OUT_WIRED_HEADSET|AUDIO_DEVICE_OUT_WIRED_HEADPHONE|AUDIO_DEVICE_OUT_ALL_SCO|AUDIO_DEVICE_OUT_AUX_DIGITAL|AUDIO_DEVICE_OUT_DGTL_DOCK_HEADSET + devices AUDIO_DEVICE_OUT_EARPIECE|AUDIO_DEVICE_OUT_SPEAKER|AUDIO_DEVICE_OUT_WIRED_HEADSET|AUDIO_DEVICE_OUT_WIRED_HEADPHONE|AUDIO_DEVICE_OUT_ALL_SCO|AUDIO_DEVICE_OUT_AUX_DIGITAL|AUDIO_DEVICE_OUT_DGTL_DOCK_HEADSET|AUDIO_DEVICE_OUT_ANLG_DOCK_HEADSET flags AUDIO_OUTPUT_FLAG_PRIMARY } # deep_buffer { diff --git a/configs/tinyalsa-audio.xml b/configs/tinyalsa-audio.xml index c35d8f5..d406ab8 100644..100755 --- a/configs/tinyalsa-audio.xml +++ b/configs/tinyalsa-audio.xml @@ -79,6 +79,16 @@ <ctrl name="Headphone Playback Switch" value="off" /> </path> </device> + <device type="analog-dock-headset"> + <path type="enable"> + <ctrl name="Line 1 Playback Volume" value="31" /> + <ctrl name="Line 1 Playback Switch" value="on" /> + </path> + <path type="disable"> + <ctrl name="Line 1 Playback Volume" value="0" /> + <ctrl name="Line 1 Playback Switch" value="off" /> + </path> + </device> </output> <input card="0" device="0" |