Other Parts Discussed in Thread: TAS5731
hi,
We have a project based on the amlogic platform。and PA use tas5733L.now there are accompaniments but no vocals when playing music.
Register initialization code is as follows.
What should I do with this problem?
#define DDX_CHANNEL1_VOL 0x08 #define DDX_CHANNEL2_VOL 0x09 #define DDX_INPUT_MUX 0x20 #define DDX_CH4_SOURCE_SELECT 0x21 #define DDX_PWM_MUX 0x25
unsigned char burst_data[][4] = { { 0x00, 0x01, 0x77, 0x72 }, { 0x01, 0x02, 0x13, 0x45 }, { 0x00, 0x02, 0x00, 0x00 }, }; unsigned char volume_data[][2] = { { 0x01, 0x00}, { 0x00, 0xc0}, { 0x00, 0xc0}, }; struct tas5707_priv *tas5707 = snd_soc_codec_get_drvdata(codec); reset_tas5707_GPIO(codec); dev_info(codec->dev, "tas5707_init!\n"); snd_soc_write(codec, 0x06, 0x07); snd_soc_write(codec, 0x05, 0x40); snd_soc_write(codec, 0x03, 0xa0); snd_soc_write(codec, 0x04, 0x05); //snd_soc_write(codec, 0x07, 0x01);// // snd_soc_write(codec, 0x08, 0x00); // snd_soc_write(codec, 0x09, 0x00); regmap_raw_write(tas5707->regmap, DDX_MASTER_VOLUME, volume_data[0], 2); regmap_raw_write(tas5707->regmap, DDX_CHANNEL1_VOL, volume_data[1], 2); regmap_raw_write(tas5707->regmap, DDX_CHANNEL2_VOL, volume_data[2], 2); snd_soc_write(codec, 0x0e, 0xf0); snd_soc_write(codec, 0x10, 0x01); snd_soc_write(codec, 0x11, 0xac); snd_soc_write(codec, 0x12, 0x54); snd_soc_write(codec, 0x13, 0xac); snd_soc_write(codec, 0x14, 0x54); snd_soc_write(codec, 0x19, 0x30); snd_soc_write(codec, 0x1a, 0x68); snd_soc_write(codec, 0x1b, 0xc0); snd_soc_write(codec, 0x1c, 0x57); regmap_raw_write(tas5707->regmap, DDX_INPUT_MUX, burst_data[0], 4); regmap_raw_write(tas5707->regmap, DDX_PWM_MUX, burst_data[1], 4); regmap_raw_write(tas5707->regmap, DDX_DRC_CTL, burst_data[2], 4);