Quantcast
Channel: Processors
Viewing all articles
Browse latest Browse all 149075

Forum Post: RE: AM335x interface audio codec TLV320AIC3100 supplies error messages

$
0
0

Hi Patrick,

my BCLK=2.8MHZ MCLK=11MHZ WCLK=48.8KHZ

and used fallowing command to play audio

aplay -D hw:2,0 2L38_01_96kHz\(short\).wav

mplayer -ao alsa:device=hw=1.0 /Waka.mp4

Kindly my audio route mapping code IN MACHINE DRIVER also:

static const struct snd_soc_dapm_widget aic34_dapm_widgets[] = {

        SND_SOC_DAPM_HP("Headphone Jack", NULL),
};

static const struct snd_soc_dapm_widget aic34_dapm_widgetsb[] = {
        SND_SOC_DAPM_SPK("Earphone", NULL),
};

static const struct snd_soc_dapm_route audio_map[] = {
        /* Headphone connected to HPLOUT, HPROUT */
        {"Headphone Jack", NULL, "HPLCOM"},
        {"Headphone Jack", NULL, "HPRCOM"},
};
static int rx51_aic34_init(struct snd_soc_pcm_runtime *rtd)
{
        struct snd_soc_codec *codec = rtd->codec;
        struct snd_soc_dapm_context *dapm = &codec->dapm;
        int err;

        printk("puneet %s\n", __func__);
        

        /* Add RX-51 specific widgets */
        snd_soc_dapm_new_controls(dapm, aic34_dapm_widgets,
                                  ARRAY_SIZE(aic34_dapm_widgets));

        /* Set up RX-51 specific audio path audio_map */
        snd_soc_dapm_add_routes(dapm, audio_map, ARRAY_SIZE(audio_map));

     snd_soc_dapm_nc_pin(dapm, "MIC3L");
        snd_soc_dapm_nc_pin(dapm, "MIC3R");
        snd_soc_dapm_nc_pin(dapm, "LINE1R");
        snd_soc_dapm_nc_pin(dapm, "MONO_LOUT");
        snd_soc_dapm_enable_pin(dapm, "HPLOUT");
        snd_soc_dapm_enable_pin(dapm, "HPROUT");
        snd_soc_dapm_enable_pin(dapm, "HPLCOM");
        snd_soc_dapm_enable_pin(dapm, "HPRCOM");

        /* always connected */
        snd_soc_dapm_enable_pin(dapm, "Headphone Jack");
        snd_soc_dapm_nc_pin(dapm, "Line Out");
        snd_soc_dapm_nc_pin(dapm, "Mic Jack");
        snd_soc_dapm_nc_pin(dapm, "Line In");


        return 0;
}

Regards

Punith


Viewing all articles
Browse latest Browse all 149075

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>