retry i2c dma chn for 10s

This commit is contained in:
dong.yan
2024-03-08 10:13:46 +08:00
committed by Han Gao
parent 85890f4a0b
commit e7aceec67d
2 changed files with 5 additions and 5 deletions

View File

@@ -2162,7 +2162,7 @@
clocks = <&clk CLKGEN_I2C1_PCLK>;
clock-names = "pclk";
clock-frequency = <100000>;
// i2c_mode = "dma";
i2c_mode = "dma";
dmas = <&dmac0 14>, <&dmac0 15>;
dma-names = "tx", "rx";
#dma-cells = <1>;
@@ -2238,7 +2238,7 @@
clocks = <&clk CLKGEN_I2C4_PCLK>;
clock-names = "pclk";
clock-frequency = <100000>;
// i2c_mode = "dma";
i2c_mode = "dma";
dmas = <&dmac0 20>, <&dmac0 21>;
dma-names = "tx", "rx";
#dma-cells = <1>;

View File

@@ -685,11 +685,11 @@ static int es8323_set_dai_fmt(struct snd_soc_dai *codec_dai, unsigned int fmt)
u8 iface = 0;
u8 adciface = 0;
u8 daciface = 0;
printk(KERN_EMERG "yd %s %d\n", __func__, __LINE__);
iface = snd_soc_component_read(component, ES8323_IFACE);
adciface = snd_soc_component_read(component, ES8323_ADC_IFACE);
daciface = snd_soc_component_read(component, ES8323_DAC_IFACE);
printk(KERN_EMERG "yd %s %d\n", __func__, __LINE__);
/* set master/slave audio interface */
switch (fmt & SND_SOC_DAIFMT_MASTER_MASK) {
case SND_SOC_DAIFMT_CBM_CFM: /* MASTER MODE */
@@ -749,7 +749,7 @@ static int es8323_set_dai_fmt(struct snd_soc_dai *codec_dai, unsigned int fmt)
snd_soc_component_write(component, ES8323_IFACE, iface);
snd_soc_component_write(component, ES8323_ADC_IFACE, adciface);
snd_soc_component_write(component, ES8323_DAC_IFACE, daciface);
printk(KERN_EMERG "yd %s %d\n", __func__, __LINE__);
return 0;
}