TI中文支持网
TI专业的中文技术问题搜集分享网站

TAS5766M在linux下面的驱动参考代码希望提供

各位工程师:

您好,我们是用TAS5766M在基于mstar芯片做tv板,能否提供TAS5766M在linux下面的驱动?谢谢!

Kes Tam:

这个很复杂。第一,我们没有驱动。第二,TAS5766M是智能功放,算法参数是通过跟喇叭健模和调试后产生,参数是嵌入DSP整个代码里面,不同的喇叭的代码是不一样。换句话说,代码是跟喇叭走。不同的喇叭不能使用别的喇叭的代码,不然声音会很差,或有杂音。

walt bai:

回复 Kes Tam:

Kes,您好,

是这样,我们发现这个芯片即使不初始化也能用。但是声音效果不好,而实际上很多tv厂都用这个芯片效果很好。要不然我把问题细化一下:

1) Init的时候是否做哪些操作呢?

2) 有的声音设置有各种模式,比如人声,重低音,高保真,这些i2c怎么设置

3) 还有我们其实mstar给了5711的Init参考代码,里面有些注释,我想问一下您能否对应这个给一份5766M的,谢谢!

MAPI_BOOL device_audio_amp_I2S_TI5711::Init(void){ MAPI_U8 * Pstr = NULL; MAPI_U8 DataLength = 0; MAPI_U8 g_ucTas5711RegAddr = 0; MAPI_U8 AmpInitBin[1024]; MAPI_U8 AmpInitTbl[] = { //DataLength Address DataN DataN+1… // I2C Configuration file for TAS5700x 1, 0x1B, 0x00, 1, 0x06, 0x00, 1, 0x0A, 0xff, 1, 0x09, 0x30, 1, 0x09, 0x29, 1, 0x08, 0x29, 1, 0x14, 0x54, 1, 0x13, 0xAC, 1, 0x12, 0x54, 1, 0x11, 0xAC, 1, 0x0E, 0xD1, 1, 0x1A, 0x95, 4, 0x20, 0x00, 0x01, 0x77, 0x72,//modify data[20][16] for LR channel config 4, 0x21, 0x00, 0x00, 0x42, 0x03, 1, 0x10, 0x02, 1, 0x0B, 0x00, 1, 0x10, 0x02, 1, 0x1C, 0x02, 1, 0x19, 0x30, 4, 0x25, 0x01, 0x01, 0x32, 0x45,

// Biquads 4, 0x50, 0x00, 0x00, 0x00, 0x00, 20, 0x29,0x00,0x80,0x4F,0xD0,0xFF,0x03,0xBF,0x07,0x00,0x7C,0x61,0x5B,0x00,0xFC,0x40,0xF9,0xFF,0x83,0x4E,0xD4, 20, 0x2A,0x00,0x80,0x19,0x16,0xFF,0x04,0x16,0x3F,0x00,0x7C,0x98,0x15,0x00,0xFB,0xE9,0xC1,0xFF,0x83,0x4E,0xD4, 20, 0x2B,0x00,0x80,0x77,0x6E,0xFF,0x11,0xCD,0x6B,0x00,0x6F,0xC9,0x54,0x00,0xEE,0x32,0x95,0xFF,0x8F,0xBF,0x3D, 20, 0x2C,0x00,0x83,0xDB,0x0D,0xFF,0x2F,0x00,0x81,0x00,0x5E,0x5C,0xB7,0x00,0xD0,0xFF,0x7F,0xFF,0x9D,0xC8,0x3B, 20, 0x2D,0x00,0x85,0x7F,0xA9,0xFF,0x56,0x99,0x07,0x00,0x50,0x07,0x36,0x00,0xA9,0x66,0xF9,0xFF,0xAA,0x79,0x20, 20, 0x2E,0x00,0x85,0x7F,0xA9,0xFF,0x95,0x3C,0x90,0x00,0x50,0x07,0x36,0x00,0x6A,0xC3,0x70,0xFF,0xAA,0x79,0x20, 20, 0x2F,0x00,0x80,0x6D,0xA1,0xFF,0x03,0x69,0xA7,0x00,0x7C,0x43,0x8A,0x00,0xFC,0x96,0x59,0xFF,0x83,0x4E,0xD4,

20, 0x30,0x00,0x80,0x4F,0xD0,0xFF,0x03,0xBF,0x07,0x00,0x7C,0x61,0x5B,0x00,0xFC,0x40,0xF9,0xFF,0x83,0x4E,0xD4, 20, 0x31,0x00,0x80,0x19,0x16,0xFF,0x04,0x16,0x3F,0x00,0x7C,0x98,0x15,0x00,0xFB,0xE9,0xC1,0xFF,0x83,0x4E,0xD4, 20, 0x32,0x00,0x80,0x77,0x6E,0xFF,0x11,0xCD,0x6B,0x00,0x6F,0xC9,0x54,0x00,0xEE,0x32,0x95,0xFF,0x8F,0xBF,0x3D, 20, 0x33,0x00,0x83,0xDB,0x0D,0xFF,0x2F,0x00,0x81,0x00,0x5E,0x5C,0xB7,0x00,0xD0,0xFF,0x7F,0xFF,0x9D,0xC8,0x3B, 20, 0x34,0x00,0x85,0x7F,0xA9,0xFF,0x56,0x99,0x07,0x00,0x50,0x07,0x36,0x00,0xA9,0x66,0xF9,0xFF,0xAA,0x79,0x20, 20, 0x35,0x00,0x85,0x7F,0xA9,0xFF,0x95,0x3C,0x90,0x00,0x50,0x07,0x36,0x00,0x6A,0xC3,0x70,0xFF,0xAA,0x79,0x20, 20, 0x36,0x00,0x80,0x6D,0xA1,0xFF,0x03,0x69,0xA7,0x00,0x7C,0x43,0x8A,0x00,0xFC,0x96,0x59,0xFF,0x83,0x4E,0xD4,

20, 0x5A,0x00,0x00,0x05,0x83,0x00,0x00,0x0B,0x06,0x00,0x00,0x05,0x83,0x00,0xFB,0x42,0xC1,0x0F,0x84,0xA7,0x33, 20, 0x5B,0x00,0x00,0x05,0x83,0x00,0x00,0x0B,0x06,0x00,0x00,0x05,0x83,0x00,0xFB,0x42,0xC1,0x0F,0x84,0xA7,0x33, // DRCs 8, 0x3A, 0x00,0x05,0x39,0x47,0x00,0x7A,0xC6,0xB8, 8, 0x3B, 0x00,0x05,0x39,0x47,0x00,0x7A,0xC6,0xB8, 8, 0x3C, 0x00,0x00,0x00,0xF9,0x00,0x7F,0xFF,0x06, 4, 0x40, 0xFD,0xA2,0x14,0x90,//0xFD,0xc1,0xf8,0x89,//0xFC, 0x83, 0x10, 0xD4, //4, 0x40, 0xFD, 0xe1, 0xdc, 0x81,// 4,0×41,0x0F,0x81,0x47,0xAF, //б 4, 0x42, 0x00, 0x08, 0x42, 0x10, 4, 0x46, 0x00, 0x00, 0x00, 0x03, 8, 0x39, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 8, 0x3D, 0x00,0x05,0x39,0x47,0x00,0x7A,0xC6,0xB8, 8, 0x3E, 0x00,0x05,0x39,0x47,0x00,0x7A,0xC6,0xB8, 8, 0x3F, 0x00,0x00,0x00,0xF9,0x00,0x7F,0xFF,0x06, 4, 0x43, 0xFD,0x82,0x30,0x98,//0xFC, 0x83, 0x10, 0xD4, 4, 0x44, 0x0F, 0x83, 0x33, 0x34, 4, 0x45, 0x00, 0x08, 0x42, 0x10, 4, 0x46, 0x00, 0x00, 0x00, 0x03,//0x03, //12, 0x52, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, //8, 0x60, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, //4, 0x56, 0x00, 0x80, 0x00, 0x00, //4, 0x57, 0x00, 0x02, 0x00, 0x00, //16, 0x53, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, //16, 0x54, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, //12, 0x55, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, //12, 0x51, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 1, 0x07, 0xFF, 1, 0x05, 0x84, 1,0x0D,0x35, 0x00, };

赞(0)
未经允许不得转载:TI中文支持网 » TAS5766M在linux下面的驱动参考代码希望提供
分享到: 更多 (0)