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.

How to configure the Audio driver ( tlv320aic3x) When changes I2c num and the MCLK ?

Hello all:

           On my DM8148 board,the tlv320aic3x device is attached I2c4(I2c1~I2c4) not I2c1 as the EVM,and the tlv320aic3x MCLK use 24M External Crystal Oscillator not 24.576M as EVM board.So How should I change the audio driver according to my board?

I changes the followings:

1.sound/soc/davinci/davinci-evm.c

static struct snd_soc_dai_link ti81xx_evm_dai[]={

.codec_name="tlv320aic3x-codec.4-0018",//If I2c1 then use tlv320aic3x-codec.1-0018 (I2c1~I2c4)

}

2、arch/arm/mach-omap2/board-ti8148-evm.c

static struct i2c_board_info __initdata ti814x_i2c_boardinfo3[] = {
        {
                I2C_BOARD_INFO("tlv320aic3x", 0x18),
        },
};
and:

omap_register_i2c_bus(4, 100, ti814x_i2c_boardinfo3, ARRAY_SIZE(ti814x_i2c_boardinfo3));.

3、

Modify arch/arm/mach-omap2/i2c.c to add correct mux entries.config the I2c3 pins,and enable pull up.

this is all ok.

After the above ,execute :

amixer cset name='PCM Playback Volume' 100%,100%    
test OK.
 
But when execute:
 gst-launch -v alsasrc ! alsasink
the sound is have much noise,and can not hear clealy ,almost all noise,
  ISo,I  use 24M clock as MCLK not 24.576,any other changes should I do?
Thanks.
                                           zhichao.