Re: [PATCH 1/2] ASoC: nau8822: Add operation for internal PLL off and on

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On 6/2/22 17:24, David Lin wrote:
On 2022/5/30 下午 12:01, Hui Wang wrote:
We tried to enable the audio on an imx6sx EVB with the codec nau8822,
after setting the internal PLL fractional parameters, the audio still
couldn't work and the there was no sdma irq at all.


<snip>
+#define NAU8822_PLL_EN_MASK (0x1 << 5)
+#define NAU8822_PLL_ON                (0x1 << 5)
+#define NAU8822_PLL_OFF                (0x0 << 5)
    /* NAU8822_REG_AUDIO_INTERFACE (0x4) */
  #define NAU8822_AIFMT_MASK            (0x3 << 3)

Sorry, reply late.

From our internal discussion, the revise seems to it is redundant operation. The reason is driver set the PLL as a dapm supply node and consider PLL on/off from dapm route.

So when the playback/recording starts, the PLL parameters from Reg 0x25~0x27 will be always set before Reg 0x1[5] power enable bit(PLLEN). When the playback/recording stops, the PLLEN will be disabled.
Thanks for your comment. But it is weird, it doesn't work like you said, probably need specific route setting in the machine driver level?



[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Pulse Audio]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux