This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Change default audio device in DRA7x EVM(Vayu board) in android kitkat.

Hi All,

I want to play audio on JAMR3 board.

I want to change default setting for audio out only in android kitkat.

I try to change output in audio_policy.conf but unable to change default audio out.

global_configuration {
  attached_output_devices AUDIO_DEVICE_OUT_SPEAKER|AUDIO_DEVICE_OUT_WIRED_HEADPHONE|AUDIO_DEVICE_OUT_WIRED_HEADPHONE2
  default_output_device AUDIO_DEVICE_OUT_SPEAKER
  attached_input_devices AUDIO_DEVICE_IN_BUILTIN_MIC|AUDIO_DEVICE_IN_ANLG_DOCK_HEADSET
}

Can anyone guide me how to change default audio output in android kitkat?

Regards,

Bharat Gohil

  • Hello Bharat,

    You can change the default audio outputs as apply necessary settings in audio routing.

    See the audio routing in arch/arm/boot/dts/dra7-evm.dts

    sound {
            compatible = "ti,dra7-evm-sound";
            ti,model = "dra7evm";
            ti,always-on;

            gpios = <&pcf_hdmi 1 0>;

            /* Audio routing */
            ti,audio-routing =
                "LINE1L", "Line In",
                "LINE1R", "Line In",
                "MIC3L", "Mic Bias 2V",
                "MIC3R", "Mic Bias 2V",
                "Mic Bias 2V", "Main Mic",
                "Headphone", "HPLOUT",
                "Headphone", "HPROUT",
                "Line Out", "LLOUT",
                "Line Out", "RLOUT",
                "J3A LINE1L", "JAMR3 Stereo Aux In",
                "J3A LINE1R", "JAMR3 Stereo Aux In",
                "J3B LINE1L", "JAMR3 Mono Mic 1",
                "J3B LINE1R", "JAMR3 Mono Mic 2",
                "JAMR3 Line Out 1", "J3A LLOUT",
                "JAMR3 Line Out 1", "J3A RLOUT",
                "JAMR3 Line Out 2", "J3B LLOUT",
                "JAMR3 Line Out 2", "J3B RLOUT",
                "JAMR3 Line Out 3", "J3C LLOUT",
                "JAMR3 Line Out 3", "J3C RLOUT";

    See in sound/soc/omap/dra7-evm.c:

    /* DRA7 CPU board widgets */
    static const struct snd_soc_dapm_widget dra7_snd_dapm_widgets[] = {
        /* CPU board input */
        SND_SOC_DAPM_MIC("Main Mic", NULL),
        SND_SOC_DAPM_LINE("Line In", NULL),

        /* CPU board outputs */
        SND_SOC_DAPM_HP("Headphone", NULL),
        SND_SOC_DAPM_LINE("Line Out", NULL),

        /* JAMR3 board inputs */
        SND_SOC_DAPM_LINE("JAMR3 Stereo Aux In", NULL),
        SND_SOC_DAPM_LINE("JAMR3 Mono Mic 1", NULL),
        SND_SOC_DAPM_LINE("JAMR3 Mono Mic 2", NULL),

        /* JAMR3 board outputs */
        SND_SOC_DAPM_LINE("JAMR3 Line Out 1", NULL),
        SND_SOC_DAPM_LINE("JAMR3 Line Out 2", NULL),
        SND_SOC_DAPM_LINE("JAMR3 Line Out 3", NULL),
    };


    Best regards,

    Yanko