Post Go back to editing

ssm4567 驱动初始化时soft_reset写入0,出错,返回-5,其它寄存器写入默认值正常,可以正常读出

Hi ADI,

   we using ssm4567 on linux 3.10, while driver init, write soft_reset(0xff) to 0, return error code -5. other register can read write ok. what's the problem?



attach debug log
[edited by: sarvdo at 1:43 AM (GMT -5) on 10 Nov 2021]
Parents
  • Hi ADI,

       we using ssm4567 on  allwinner A40i platform(Linux 3.10).i2c(0x34) interface can detect and read register value as following,but while insmod the codec driver module which got from github.com, the Soft_reset(0xff) return -5.(issue #1)

       #2 issue, which we are using tinymix cmd, to config the control path, there is no any control path return.

      #3. how to config the control path?

  • Hello sarvdo,

    I moved this over to the Linux part of the forum. I think they can help more than I can. The address you are writing to is 0xFF, that is not the address of the Soft Reset register so the driver must be translating to the correct address? 0xF890 is the correct address. I am not certain why it would return a -5. When you engage the soft reset the DSP will need to be reprogrammed. I am not sure if you are using Selfboot or not. 

    You mentioned the control path. This part has no standard or default signal path. You have to program the DSP using SigmaStudio and then the control objects will have addresses that have to be defined in any control programs. I think the Linux driver is only for the registers. This is why I moved this over to this forum so someone who is more knowledgeable of the Linux drivers. 

    We do have this tutorial for microcontroller interfacing which might be helpful for you. 

    Interfacing SigmaDSP Processors with a Microcontroller [Analog Devices Wiki]

    Dave T

Reply
  • Hello sarvdo,

    I moved this over to the Linux part of the forum. I think they can help more than I can. The address you are writing to is 0xFF, that is not the address of the Soft Reset register so the driver must be translating to the correct address? 0xF890 is the correct address. I am not certain why it would return a -5. When you engage the soft reset the DSP will need to be reprogrammed. I am not sure if you are using Selfboot or not. 

    You mentioned the control path. This part has no standard or default signal path. You have to program the DSP using SigmaStudio and then the control objects will have addresses that have to be defined in any control programs. I think the Linux driver is only for the registers. This is why I moved this over to this forum so someone who is more knowledgeable of the Linux drivers. 

    We do have this tutorial for microcontroller interfacing which might be helpful for you. 

    Interfacing SigmaDSP Processors with a Microcontroller [Analog Devices Wiki]

    Dave T

Children
No Data