[Gta04-owner] [PATCH 3/6] configs: fix tinyalsa settings for 4.10 kernels
Andreas Kemnade
andreas at kemnade.info
Sun Apr 23 12:47:19 CEST 2017
On Sun, 23 Apr 2017 09:36:12 +0200
Andreas Kemnade <andreas at kemnade.info> wrote:
> This adapts for new mixer names in 4.10 kernel
> Voice PCM Interface login seems to be working
>
> Known problem:
>
> - Voice PCM Out cannot be set this way for some unknown reason.
> but can be switched via amixer.
Arggh, the proper name here is "Voice PCM Out Switch"
> - The mediaserver needs to be killed once after bootup to have sound
> at all (probably not related to this patch)
I have a hacky solution to add commands to load-modules.sh to just wait
some seconds after module loading and kill the mediaserver
With that changes I was able to do a phone call without any adb
intervention.
So be prepared for a v2 patch. Maybe then everything besides that sms
hack can be applied. Probably the sms hack thing is not needed for older
firmware.
Regards,
Andreas
>
> Signed-off-by: Andreas Kemnade <andreas at kemnade.info>
> ---
> configs/tinyalsa-audio_hwrouting.xml | 9 ++++++---
> 1 file changed, 6 insertions(+), 3 deletions(-)
>
> diff --git a/configs/tinyalsa-audio_hwrouting.xml b/configs/tinyalsa-audio_hwrouting.xml
> index 9d03f08..f5cd983 100644
> --- a/configs/tinyalsa-audio_hwrouting.xml
> +++ b/configs/tinyalsa-audio_hwrouting.xml
> @@ -5,7 +5,8 @@
> <device type="default">
> <path type="enable">
> <ctrl name="Codec Operation Mode" value="Option 2 (voice/audio)" /> <!-- needed for hwrouting, can only be set if no streams open -->
> - <ctrl name="Voice route" value="Voice to SoC" />
> + <ctrl name="Voice PCM Interface" value="inactive" /> <!-- needed for hwrouting -->
> + <ctrl name="Voice PCM Out" value="off" /> <!-- needed for hwrouting -->
> <ctrl name="AVADC Clock Priority" value="HiFi high priority" />
>
> <ctrl name="DAC1 Analog Playback Switch" value="off" /> <!-- DAC1 not used in GTA04 -->
> @@ -132,7 +133,8 @@
> <modem card="0" device="0">
> <device type="default">
> <path type="enable">
> - <ctrl name="Voice route" value="Voice to twl4030" /> <!-- needed for hwrouting -->
> + <ctrl name="Voice PCM Interface" value="active" /> <!-- needed for hwrouting -->
> + <ctrl name="Voice PCM Out" value="on" /> <!-- needed for hwrouting -->
> <ctrl name="AVADC Clock Priority" value="Voice high priority" /> <!-- needed for hwrouting -->
>
> <ctrl name="TX1 Capture Route" value="Analog" />
> @@ -148,7 +150,8 @@
> <ctrl name="DAC Voice Analog Downlink Switch" value="off" />
> <ctrl name="DAC2 Analog Playback Switch" value="on" />
>
> - <ctrl name="Voice route" value="Voice to SoC" />
> + <ctrl name="Voice PCM Interface" value="inactive" />
> + <ctrl name="Voice PCM Out" value="off" /> <!-- needed for hwrouting -->
> <ctrl name="AVADC Clock Priority" value="HiFi high priority" />
> </path>
> </device>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <http://lists.goldelico.com/pipermail/gta04-owner/attachments/20170423/dd423a90/attachment.asc>
More information about the Gta04-owner
mailing list