SAI driver can support only 32 channels on imx8 mini

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

SAI driver can support only 32 channels on imx8 mini

836件の閲覧回数
rajeshkorabandi
Contributor I

Hi,

can someone tell me if there is any restriction on number of channels that are supported by sai driver in imx8 mini.

In my system, i have 8 TDM lanes and want to drive 16 channels per TDM line. total we want to do a playback of 128 channels.

in the following code is max_channels is set to 32 for playback. can i change it 128?

 

static struct snd_soc_dai_driver fsl_sai_dai = {
    .probe = fsl_sai_dai_probe,
    .playback = {
        .stream_name = "CPU-Playback",
        .channels_min = 1,
        .channels_max = 32,
        .rate_min = 8000,
        .rate_max = 2822400,
        .rates = SNDRV_PCM_RATE_KNOT,
        .formats = FSL_SAI_FORMATS,
    },
    .capture = {
        .stream_name = "CPU-Capture",
        .channels_min = 1,
        .channels_max = 32,
        .rate_min = 8000,
        .rate_max = 2822400,
        .rates = SNDRV_PCM_RATE_KNOT,
        .formats = FSL_SAI_FORMATS,
    },
    .resume  = fsl_sai_dai_resume,
    .ops = &fsl_sai_pcm_dai_ops,
};

 

タグ(1)
0 件の賞賛
返信
2 返答(返信)

802件の閲覧回数
rajeshkorabandi
Contributor I

i fixed this by increasing the datalines  in this structure .dataline = 0xffff,

 

static struct fsl_sai_soc_data fsl_sai_imx8mq = {
.imx = true,
.dataline = 0xffff,
.fifos = 8,
.fifo_depth = 128,
.flags = 0,
.reg_offset = 8,
.constrain_period_size = false,
};

 

since i increased the slots to 16  should i increase the FIFO depth as well ?

 

0 件の賞賛
返信

811件の閲覧回数
rajeshkorabandi
Contributor I

Hi,

i have one more observation.

when i set the slot mask from dts file i see a failure in the driver registration.

fsl,dataline,dsd = <1 0xffff 0xffff 1 0xffff 0xffff>;

i get this error -

fsl-sai 30010000.sai: fsl,dataline,dsd: dataline cfg[0] setting error, mask is 0xff.

so does it means fsl_sai driver would not support more than 8 slots per lane?

if 16-channels per dataline is supported then the mask should allow me to set more than

0 件の賞賛
返信