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 /yamaha-mc1n2-audio | |
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 'yamaha-mc1n2-audio')
-rwxr-xr-x[-rw-r--r--] | yamaha-mc1n2-audio/device/galaxys2.c | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/yamaha-mc1n2-audio/device/galaxys2.c b/yamaha-mc1n2-audio/device/galaxys2.c index 371ce83..b4d1510 100644..100755 --- a/yamaha-mc1n2-audio/device/galaxys2.c +++ b/yamaha-mc1n2-audio/device/galaxys2.c @@ -472,6 +472,56 @@ struct yamaha_mc1n2_audio_params_route galaxys2_params_routes[] = { }, }, { + .device = AUDIO_DEVICE_OUT_ANLG_DOCK_HEADSET, + .direction = YAMAHA_MC1N2_AUDIO_DIRECTION_OUTPUT, + + .ae_info = { + .bOnOff = 0x00, + .abBex = { 0x00 }, + .abWide = { 0x00 }, + .abDrc = { 0x00 }, + .abEq5 = { 0x00 }, + .abEq3 = { 0x00 }, + }, + + .path_info.asHpOut[0].abSrcOnOff = { 0 }, + .path_info.asHpOut[1].abSrcOnOff = { 0 }, + .path_info.asSpOut[0].abSrcOnOff = { 0 }, + .path_info.asSpOut[1].abSrcOnOff = { 0 }, + .path_info.asRcOut[0].abSrcOnOff = { 0 }, + .path_info.asLout1[0].abSrcOnOff = { 0 }, + .path_info.asLout1[1].abSrcOnOff = { 0 }, + .path_info.asLout2[0].abSrcOnOff = { 0 }, + .path_info.asLout2[1].abSrcOnOff = { 0 }, + .path_info.asPeak[0].abSrcOnOff = { 0 }, + .path_info.asDit0[0].abSrcOnOff = { 0 }, + .path_info.asDit1[0].abSrcOnOff = { 0 }, + .path_info.asDit2[0].abSrcOnOff = { 0 }, + .path_info.asDac[0].abSrcOnOff = { 0 }, + .path_info.asDac[1].abSrcOnOff = { 0 }, + .path_info.asAe[0].abSrcOnOff = { 0 }, + .path_info.asCdsp[0].abSrcOnOff = { 0 }, + .path_info.asCdsp[1].abSrcOnOff = { 0 }, + .path_info.asCdsp[2].abSrcOnOff = { 0 }, + .path_info.asCdsp[3].abSrcOnOff = { 0 }, + .path_info.asAdc0[0].abSrcOnOff = { 0 }, + .path_info.asAdc0[1].abSrcOnOff = { 0 }, + .path_info.asAdc1[0].abSrcOnOff = { 0 }, + .path_info.asMix[0].abSrcOnOff = { 0 }, + .path_info.asBias[0].abSrcOnOff = { 0 }, + + .path_info.asLout1[0].abSrcOnOff[5] = MCDRV_SRC5_DAC_L_ON, + .path_info.asLout1[1].abSrcOnOff[5] = MCDRV_SRC5_DAC_R_ON, + .path_info.asDac[0].abSrcOnOff[6] = MCDRV_SRC6_MIX_ON, + .path_info.asMix[0].abSrcOnOff[3] = MCDRV_SRC3_DIR0_ON, + + .dac_info = { + .bMasterSwap = 0, + .bVoiceSwap = 0, + .bDcCut = 0, + }, + }, + { .device = AUDIO_DEVICE_IN_BUILTIN_MIC, .direction = YAMAHA_MC1N2_AUDIO_DIRECTION_INPUT, |