About adau1961 driver

I found the  macro in here https://github.com/analogdevicesinc/linux/blob/adau17x1/sound/soc/codecs/adau17x1.h

#define ADUA_SERIAL_PORT1_BCLK32          (0x0 << 5)

#define ADUA_SERIAL_PORT1_BCLK48          (0x1 << 5)

#define ADUA_SERIAL_PORT1_BCLK64          (0x2 << 5)

But I am strange that on page 55 of datasheet

Table 41. Serial Port Control 1 Register

Bits Bit Name Description

[7:5] BPF[2:0] Number of bit clock cycles per LRCLK audio frame.

Setting Bit Clock Cycles

000 64 (default)

001 32

010 48

011 128

100 256

who is right one ?

I am also puzzle that why  the Headphone playback switch is alway on  but my lineout switch always off?

numid=14,iface=MIXER,name='Headphone Playback Switch'

  ; type=BOOLEAN,access=rw------,values=2

  : values=on,on

numid=13,iface=MIXER,name='Headphone Playback Volume'

  ; type=INTEGER,access=rw---R--,values=2,min=0,max=63,step=0

  : values=37,37

  | dBscale-min=-57.00dB,step=1.00dB,mute=0

There is no script in the filesystem do such behavior.

Can anybody tell me why?

I use PLL, so the core clock is 1024fs =1024*44.1kHz, My MCLK input is 24MHz,

How to set or configure the BCLK? The BCLK and LRCLK of ADAU1961 is master.

Thank you

Parents
  • >>For I2S mode the number of BLCKs per frame is fixed to 64,

    My fs set by aplay is 44.1kHz ,is that mean the BCLK frequence will be 64*44.1Hz=2.8244MHz on the scope?

    Why in I2S mode the  BCLKs per frame is fixed to 64? My  audio data will be the following format


    case SNDRV_PCM_FORMAT_S16_LE:

    If it is fixed to 64 ,is that mean that  there will be 32 BCLKs per frame  no audio data  on the DAC_SDATA pin of adau1961?

    You just use the default value of BPF[2:0]?

    >>Do the Headphone/Lineout switches stay On/Off even if you toggle them?

    no ,it do works

    And what is the least kcontrols should be set by amixer to make the the adau1961 work?I am use the lineout not headphone.

    The headphone pin is left open.

    I use amixer cset   command set  the controls,however I do not hear the song.

    thank you

Reply
  • >>For I2S mode the number of BLCKs per frame is fixed to 64,

    My fs set by aplay is 44.1kHz ,is that mean the BCLK frequence will be 64*44.1Hz=2.8244MHz on the scope?

    Why in I2S mode the  BCLKs per frame is fixed to 64? My  audio data will be the following format


    case SNDRV_PCM_FORMAT_S16_LE:

    If it is fixed to 64 ,is that mean that  there will be 32 BCLKs per frame  no audio data  on the DAC_SDATA pin of adau1961?

    You just use the default value of BPF[2:0]?

    >>Do the Headphone/Lineout switches stay On/Off even if you toggle them?

    no ,it do works

    And what is the least kcontrols should be set by amixer to make the the adau1961 work?I am use the lineout not headphone.

    The headphone pin is left open.

    I use amixer cset   command set  the controls,however I do not hear the song.

    thank you

Children
No Data