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.

Compiler/TAS5760L: Can you provide an android driver software to me ?

Part Number: TAS5760L
Other Parts Discussed in Thread: TAS5782M

Tool/software: TI C/C++ Compiler

Can you provide an android driver software to me ?

  • Hi Abby,

    As far as I know, we don't have Android driver for TAS5760L. Users have to develop the driver by themselves. Please try to generate the configuration by PPC GUI and send write the driver with it.

    Fortunately we have Linux for another device TAS5782M. Please find it in below, hope it helps you.

    5040.tas5782m.c
    Fullscreen
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    /*
    * Driver for the TAS5782M Audio Amplifier
    *
    * Author: Andy Liu <andy-liu@ti.com>
    *
    * This program is free software; you can redistribute it and/or
    * modify it under the terms of the GNU General Public License
    * version 2 as published by the Free Software Foundation.
    *
    * This program is distributed in the hope that it will be useful, but
    * WITHOUT ANY WARRANTY; without even the implied warranty of
    * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
    * General Public License for more details.
    */
    #include <linux/module.h>
    #include <linux/moduleparam.h>
    #include <linux/slab.h>
    #include <linux/of.h>
    #include <linux/init.h>
    #include <linux/i2c.h>
    #include <linux/regmap.h>
    #include <sound/soc.h>
    #include <sound/pcm.h>
    #include <sound/initval.h>
    #include "ppc3_tuning_-30dB.h"
    #define TAS5872M_DRV_NAME "tas5782m"
    #define TAS5872M_RATES (SNDRV_PCM_RATE_48000)
    #define TAS5782M_FORMATS (SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S20_3LE |\
    SNDRV_PCM_FMTBIT_S24_LE | SNDRV_PCM_FMTBIT_S32_LE)
    #define TAS5782M_REG_00 (0x00)
    #define TAS5782M_REG_03 (0x03)
    #define TAS5782M_REG_7F (0x7F)
    #define TAS5782M_REG_14 (0x14)
    #define TAS5782M_REG_15 (0x15)
    #define TAS5782M_REG_16 (0x16)
    #define TAS5782M_REG_17 (0x17)
    #define TAS5782M_REG_44 (0x44)
    #define TAS5782M_REG_45 (0x45)
    #define TAS5782M_REG_46 (0x46)
    #define TAS5782M_REG_47 (0x47)
    #define TAS5782M_REG_48 (0x48)
    #define TAS5782M_REG_49 (0x49)
    #define TAS5782M_REG_4A (0x4A)
    #define TAS5782M_REG_4B (0x4B)
    #define TAS5782M_PAGE_00 (0x00)
    #define TAS5782M_PAGE_8C (0x8C)
    #define TAS5782M_PAGE_1E (0x1E)
    #define TAS5782M_PAGE_23 (0x23)
    const uint32_t tas5782m_volume[] = {
    0x07ECA9CD, //24dB
    0x07100C4D, //23dB
    0x064B6CAE, //22dB
    0x059C2F02, //21dB
    0x05000000, //20dB
    0x0474CD1B, //19dB
    0x03F8BD7A, //18dB
    0x038A2BAD, //17dB
    0x0327A01A, //16dB
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    Best regards,

    Shawn Zheng