This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

About DM365IPNC Audio control

Genius 3400 points

Hi all:

        Using DM365IPNC program, I had deleted the function of Audio and related function;

  //AUDIO_audioCreate()
//gAVSERVER_UI_config.audioSampleRate = AUDIO_GetSampleRate();
//OSA_tskSendMsg(&gAUDIO_ctrl.audioTsk, pTsk, AVSERVER_CMD_CREATE, NULL, OSA_MBX_WAIT_ACK);
//OSA_tskSendMsg(&gAUDIO_ctrl.audioTsk, pTsk, AVSERVER_CMD_CREATE, NULL, OSA_MBX_WAIT_ACK);
//OSA_tskSendMsg(&gAUDIO_ctrl.audioTsk, pTsk, AVSERVER_CMD_CREATE, NULL, OSA_MBX_WAIT_ACK);

   But when I run system_server like this, it show the following error:

# ./system_server &

# IPNC_DM365_2.0 (gomo@gomo-desktop) (gcc version 4.2.0 (MontaVis 
DEMOCFG Value : 0
Videocodecmode : 0
Videocodecres : 0

CPU is DM365
./av_server.out 5MP_720P DM365 H264 4000000 VBR MENUOFF &
Check_device_version : DEVICE VER = 1 !!
ApproDrvInit: 7

AVSERVER UI: Initializing.

DRV_SyncRst: module = 47, domain = 0, state = 0

DRV_SyncRst: module = 47, domain = 0, state = 3

CLK Hz,
ARM Hz = 297000000
DDR Hz = 243000000
VPSS Hz = 243000000
IMCOP Hz = 243000000

CONFIGURED AVSERVER FOR DM365
AVSERVER UI: Starting in mode 12
*** WARNING FD: exceeded max input size for FD, disabling FD (current input 1280x720)!!!
SENSOR FPS VALUE = 15
Common Setting Applied

Default Icon TI Logo

Default Icon TI Logo

DM365MM Init SuccessfulRate Control Type: IVIDEO_STORAGE STREAM: Ext 0: 0x0
STREAM: Ext 1: 0x0

FR : 0 users registered from exsiting face album
IPNC_DM365_2.0 (gomo@gomo-desktop) (gcc version 4.2.0 (MontaVis 
IPNC AUTO_IRIS = 1 #####################
EE SETUP SHIFT VALUE: 3
GBCE in EVAL MODE
ROI DEBUG CONFIG: 0

FeatureMask: NONE.
ALSA lib ../../../src/control/control.c:817:(snd_ctl_open_noupdate) Invalid CTL default
amixer: Mixer attach default error: No such file or directory
ALSA lib ../../../src/control/control.c:817:(snd_ctl_open_noupdate) Invalid CTL default
amixer: Mixer attach default error: No such file or directory

 And I have only run the system_server and av_server program. 

179 root SW [mtdblockd]
201 root SW< [dm_spi.0]
229 root SW< [mmcqd]
233 root SW< [rpciod/0]
304 root 408 S < udevd --daemon
567 root SWN [jffs2_gcd_mtd4]
667 bin 368 S /sbin/portmap
677 root 644 S /usr/sbin/inetd
763 root 636 S /sbin/getty console
4263 root 796 S telnetd
4264 root 932 S -sh
4289 root 1000 S ./system_server
 4299 root 2548 S ./av_server.out 5MP_720P DM365 H264 4000000 VBR MENUO
5029 root 740 R ps -e
 

I don't know which function will case the ALSA error. Anybody can help me?

  • Hi,

    The "amixer" app is called from system_server. This is done to initialize the input audio volume or the input DAC source before AV server starts. You can see that it is being called from ipnc_app/sys_server/src/av_server_ctrl.c

    If you dont want audio at all in the system, you can remove the calls for amixer from the above file.

    Regards,

    Anshuman

    PS: Please mark this post as verified, if you think it has answered your questions. Thanks.

  • Also from the logs it looks like the DDR is set to 243mhz, for dm365 you can run upto 270mhz.

    There are new ubl and uboot available with 2.0, you can upgrade to that.

    you can look at functions setaudioinvolume and setaudiooutvolume to disable amixer call

     

    Regards,

     

    Raghu

     

     

     

     

     

  • Hi:

         Thanks you very much, I have got it.

    #if 0
    SetAudioInVolume(pConfig->audioinvolume);
    SetAudioOutVolume(pConfig->audiooutvolume);
    SetAudioParams();
    #endif

        BTW, I have rebulid ubl, the clock of DDR is update to 330MHz.  Thanks again.