sound: minor fix make array data ready only, short delay

PD#156734: sound: minor fix make array data ready only, short delay

Change-Id: I12d2de5d52c5774bdf56b9358fb9213c8c77fafa
Signed-off-by: Xing Wang <xing.wang@amlogic.com>
This commit is contained in:
Xing Wang
2018-02-28 20:03:30 +08:00
committed by Yixun Lan
parent d99d7d0d23
commit f15e19089e
2 changed files with 13 additions and 8 deletions

View File

@@ -1200,7 +1200,7 @@
*/
datain_src = <4>;
datain_chnum = <8>;
datain_chmask = <0xf0>;
datain_chmask = <0x7f>;
/* tdmin_lb src
* 0: tdmoutA
@@ -1211,9 +1211,13 @@
* 5: PAD_tdminC
*/
datalb_src = <4>;
datalb_chnum = <4>;
datalb_chmask = <0xf>;
/*if tdmin_lb >= 3, use external loopback*/
datalb_src = <2>;
datalb_chnum = <2>;
/*config which data pin as loopback*/
/*datalb-lane-mask-in = <0 0 0 1>;*/
datalb_chmask = <0x1>;
status = "okay";
};

View File

@@ -48,6 +48,7 @@ static int ad82584f_reg_init(struct snd_soc_codec *codec);
static int ad82584f_set_eq_drc(struct snd_soc_codec *codec);
//static int reset_ad82584f(struct snd_soc_codec *codec);
/* Power-up register defaults */
static const
struct reg_default ad82584f_reg_defaults[AD82584F_REGISTER_COUNT] = {
{0x00, 0x00},//##State_Control_1
{0x01, 0x04},//##State_Control_2
@@ -186,7 +187,7 @@ struct reg_default ad82584f_reg_defaults[AD82584F_REGISTER_COUNT] = {
};
static int m_reg_tab[AD82584F_REGISTER_COUNT][2] = {
static const int m_reg_tab[AD82584F_REGISTER_COUNT][2] = {
{0x00, 0x00},//##State_Control_1
{0x01, 0x04},//##State_Control_2
{0x02, 0x00},//##State_Control_3
@@ -324,7 +325,7 @@ static int m_reg_tab[AD82584F_REGISTER_COUNT][2] = {
};
static int m_ram1_tab[][4] = {
static const int m_ram1_tab[][4] = {
{0x00, 0x00, 0x00, 0x00},//##Channel_1_EQ1_A1
{0x01, 0x00, 0x00, 0x00},//##Channel_1_EQ1_A2
{0x02, 0x00, 0x00, 0x00},//##Channel_1_EQ1_B1
@@ -763,9 +764,9 @@ static int reset_ad82584f_GPIO(struct snd_soc_codec *codec)
return -1;
gpio_direction_output(pdata->reset_pin, GPIOF_OUT_INIT_LOW);
mdelay(10);
mdelay(1);
gpio_direction_output(pdata->reset_pin, GPIOF_OUT_INIT_HIGH);
mdelay(15);
mdelay(1);
return 0;
}