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.

J6EVM5777: RadioApp 150.21.01 command line options

Part Number: J6EVM5777
Other Parts Discussed in Thread: DRA752

Hello.

I just upgraded to RadioApp (RA) 1.50.21.01 from 1.50.20.02. I am running 6AM.1.3. I replaced all the prebuilts on the device with the ones from the 21.01 distribution.

(With the exception of cmem - we compiled that one directly from the 6AM.1.3 source, to match the kernel (had to do the same when using 20.02).

I can no longer successfully tune radio stations (JAMR3) using Dracon (the version included with 1.50.21.01), or my own simple Android socket client app.

My company has a custom RA_1.50.20.02 from TI that resolved a garbled audio issue. 1.50.21.01 was expected to work without modification.

I suspect I just need to dial in the command line options - I see that there are new options in 21.01.

With 20.02, I started the app:

RadioApp -h eth -o ARM -a 127.0.0.1

I did not background it, so I could see the messages.

My clients (Dracon included) run on the board, and connect to 127.0.0.1/3125. I use TUNER_ONBOARD, and '

RM_HDMRC_SD_CUNCURRENCY_EN' (14) (I don't get HD coverage in my area - this concurrency allows me to at least get static).

With the above options, Dracon hangs after the 'Connected!' log message. Similarly for 'RadioApp -h eth -o ARM -t 0 -a 127.0.0.1'.

I also tried

'RadioApp -h eth -h cli -t 0 -a 127.0.0.1'

and the commands 'tunerselect onboard 14` (which responded '

SV: SV_RADIO_SELECT_TUNER') followed by 

'radioband 0 FM' and 'radiotune 0 98.1', which responded 'Waiting for the acknowledgment of previous user command'

Finally:

'RadioApp -o ARM -h cli -h eth -a 127.0.0.1 -t 1 -l 1 -u 14'

That configuration never gives me a 'CLI>'

As a first step, please let me know which command line options I should use, then, let me know what other information you might need.

-Thanks

-Greg

  • Hi Greg,

    I have forwarded your question to a radio expert.

    Regards,
    Yordan
  • Hi Greg,

    Thank you for all the information.

    I have tried to recreate the issue on my J6EVM running Android M 6AM.1.3. What is your linux kernel version that you are using here? I ask the kernel version is to figure out the reason for recompiling cmem.

    If your kernel version is 4.4, could you please try all the pre-builts with 01.50.21.01 release including the CMEM and Dracon.

    Also please ensure that the dracon.ini is copied to the /sdcard/dracon.ini location. Kindly verify on the INI file that the IP_Address= field is set to localhost or 127.0.0.1.

    The CLI commands you typed for radiotune is "radiotune 0 98.1" seems incorrect. Is it a typo for "radiotune 0 FM 98.1"

    Let me know if this helps.

     - Manoj 

  • Hi Manoj -

    I did set the ip to 127.0.0.1 in both dracon.ini and in Configuration::loadConfigSettings() on line 34, the default there seemed to override the value in dracon.ini. (The spell checker _really_ wants 'dracon' to be 'dragon' ;)). A qDebug() in the constructor of Communication confirmed that ipAddress was 127.0.0.1 (I did see 'Connected!' after changing the value in both places, too.).

    The kernel:

    root@jacinto6evm:/ # uname -a

    Linux localhost 4.4.45 #1 SMP PREEMPT Wed Feb 22 22:06:01 EST 2017 armv7l

    I may have made a cut and paste error with the 'radiotune' information in the OP - here is the full dialog:

    //++

    root@jacinto6evm:/ # RadioApp -h eth -o ARM -h cli -a 127.0.0.1

    Configuring JAMR3

    EVM Name : DRA752

    IIC creation for Switchconfig Success

    VCP availablity is 1

    VCP Enable returned success

    1495563371

    1495563371

    CMEM initialized.

    Creating Dsp to Arm RingIO for RDE output 

    App_create: Succeeded in creating GateMP for RingIO

    *************************************************************

    DSP Version 01.50.21.01

    RadioApp Version 01.50.21.01

    *************************************************************

    AL_CMEM_alloc: size 1612 ==> VA: 0xB62C7000, PA: 0x95653000

    AL_CMEM_alloc: Success

    SV: DSP initialization success 

    RM: Sending MQ notification

    RM: Sent MQ notification

    RM: Waiting for Sup notification

    RM: Opening message queue for RDE 0

    SV: Radio Manager initialization success 

    RM: Opened message queue for RDE 0

    RM: Opening message queue for RDE 1

    RM: Opened message queue for RDE 1

    RM: Opening message queue for RID

    RM: Opened message queue for RID

    AL_CMEM_alloc: size 16384 ==> VA: 0xB5CC1000, PA: 0x956E0000

    AL_CMEM_alloc: Success

    AMGR: Opened message queue for APPE 

    AL_CMEM_alloc: size 672 ==> VA: 0xB5CC0000, PA: 0x95652000

    AL_CMEM_alloc: Success

    Copying pcmdsp_play0

    Copying pcmdsp_play1

    Copying appe_inrio6

    Copying ioa_riomic

    SV: Audio Manager initialization success 

    SV: Output Manager thread creation success 

    HI_ethernetNotificationTask: Task Created

    ************************************************

    Command line interface to  MultiZoneAudio player

    ************************************************

    CLI>Output Manager thread started

    Output Manager: Semaphore created

    OutputMgr: Writer RingIO name rde_pcmrio

    CLI>tunerselect onboard 14

    CLI>

    SV: SV_RADIO_SELECT_TUNER

    radioband 0 FM

    CLI>

    radiotune 0 FM 98.1

    CLI>

    Waiting for the acknowledgment of previous user command 

    //++

    I did use the prebuilt cmemk (I thought), and got an error, I thought, however when I recopy the 21.01 version on now, there is no error,  I must've copied the 20.02 version. The result is the same as above, though.

    With the 21.01 Dracon (only changing the ip address, and leaving the concurrency at HD Only), running against 'RadioApp -h eth -o ARM -h cli -a 127.0.0.1' logcat shows:

    //++

    gpeters-06064:~ gpeters$ adb logcat -v time -s libDracon.so:*, Qt:*

    --------- beginning of main

    --------- beginning of system

    05-23 11:51:48.352 I/Qt      ( 1398): qt start

    05-23 11:51:56.160 D/libDracon.so( 1398): ../Dracon/main.cpp:42 (int main(int, char**)): Launching Dracon

    05-23 11:51:56.192 D/libDracon.so( 1398): ../Dracon/utility/src/configuration.cpp:42 (void Configuration::loadConfigSettings()): radioType =  "HD"

    05-23 11:51:56.192 D/libDracon.so( 1398): ../Dracon/utility/src/configuration.cpp:63 (void Configuration::loadConfigSettings()): HD Only Concurrency

    05-23 11:51:56.256 D/libDracon.so( 1398): ../Dracon/communication/src/communication.cpp:38 (Communication::Communication(QString, uint)): ipAddress:  "127.0.0.1"  portNum:  3125

    05-23 11:51:56.256 D/libDracon.so( 1398): ../Dracon/communication/src/communication.cpp:116 (void Communication::connected()): Connected!

    05-23 11:51:56.256 D/libDracon.so( 1398): ../Dracon/communication/src/communication.cpp:42 (Communication::Communication(QString, uint)): Connection status:  true

    05-23 11:52:27.808 D/libDracon.so( 1398): ../Dracon/radio/hd/src/hd.cpp:12 (HD::HD()): HD Constructed

    //++

    But the screen is black, except for the 'Dracon' title.

    RadioApp is displaying just the start up messages:
    //++

    root@jacinto6evm:/ # RadioApp -h eth -o ARM -h cli -a 127.0.0.1

    Configuring JAMR3

    EVM Name : DRA752

    IIC creation for Switchconfig Success

    VCP availablity is 1

    VCP Enable returned success

    1495565474

    1495565474

    CMEM initialized.

    Creating Dsp to Arm RingIO for RDE output 

    App_create: Succeeded in creating GateMP for RingIO

    *************************************************************

    DSP Version 01.50.21.01

    RadioApp Version 01.50.21.01

    *************************************************************

    AL_CMEM_alloc: size 1612 ==> VA: 0xB6183000, PA: 0x95653000

    AL_CMEM_alloc: Success

    SV: DSP initialization success 

    RM: Sending MQ notification

    RM: Sent MQ notification

    RM: Waiting for Sup notification

    RM: Opening message queue for RDE 0

    SV: Radio Manager initialization success 

    RM: Opened message queue for RDE 0

    RM: Opening message queue for RDE 1

    RM: Opened message queue for RDE 1

    RM: Opening message queue for RID

    RM: Opened message queue for RID

    AL_CMEM_alloc: size 16384 ==> VA: 0xB5C66000, PA: 0x956E0000

    AL_CMEM_alloc: Success

    AMGR: Opened message queue for APPE 

    AL_CMEM_alloc: size 672 ==> VA: 0xB5C5C000, PA: 0x95652000

    AL_CMEM_alloc: Success

    Copying pcmdsp_play0

    Copying pcmdsp_play1

    Copying appe_inrio6

    Copying ioa_riomic

    SV: Audio Manager initialization success 

    SV: Output Manager thread creation success 

    HI_ethernetNotificationTask: Task Created

    ************************************************

    Command line interface to  MultiZoneAudio player

    ************************************************

    CLI>Output Manager thread started

    Output Manager: Semaphore created

    OutputMgr: Writer RingIO name rde_pcmrio

    //++

    Whew.

    Let me know if you need any more information, or if I missed any of your questions, and thanks.

    -Greg

  • Hi Greg,

    Thanks for all the logs . That information is very useful. Sorry about all the issues you are encountering. 

    RadioAppStartup_GSS.txt
    root@jacinto6evm:/ #  RadioApp -h eth -o ARM -h cli -a 127.0.0.1
    Configuring JAMR3
    EVM Name : DRA752
    IIC creation for Switchconfig Success
    VCP availablity is 1
    VCP Enable returned success
    39
    39
    CMEM initialized.
    Creating Dsp to Arm RingIO for RDE output
    App_create: Succeeded in creating GateMP for RingIO
    
    *************************************************************
    DSP Version 01.50.21.01
    RadioApp Version 01.50.21.01
    *************************************************************
    AL_CMEM_alloc: size 1612 ==> VA: 0xB61C1000, PA: 0x956A3000
    AL_CMEM_alloc: Success
    SV: DSP initialization success
    
    RM: Sending MQ notification
    
    RM: Sent MQ notification
    SV: Radio Manager initialization success
    
    RM: Waiting for Sup notification
    RM: Opening message queue for RDE 0
    RM: Opened message queue for RDE 0
    RM: Opening message queue for RDE 1
    RM: Opened message queue for RDE 1
    RM: Opening message queue for RID
    RM: Opened message queue for RID
    AL_CMEM_alloc: size 51200 ==> VA: 0xB5CA7000, PA: 0x956E0000
    AL_CMEM_alloc: Success
    AL_CMEM_alloc: size 51200 ==> VA: 0xB5C97000, PA: 0x956D0000
    AL_CMEM_alloc: Success
    
    RM: Received Sup notification
    AL_CMEM_alloc: size 16384 ==> VA: 0xB5C81000, PA: 0x956C0000
    AL_CMEM_alloc: Success
    AMGR: Opened message queue for APPE
    AL_CMEM_alloc: size 672 ==> VA: 0xB5C80000, PA: 0x956A2000
    AL_CMEM_alloc: Success
    Copying pcmdsp_play0
    Copying pcmdsp_play1
    Copying appe_inrio6
    Copying ioa_riomic
    SV: Audio Manager initialization success
    SV: Output Manager thread creation success
    Output Manager thread started
    Output Manager: Semaphore created
    OutputMgr: Writer RingIO name rde_pcmrio
    OutputMgr: RingIO_open successful handle b6287500
    OutputMgr: Reader RingIO name appe_outrio0
    OutputMgr: RingIO_open successful handle b62875a0
    OutputMgr: Pending Attribute
    OutputMgr: RingIO Transfer Size 8192
    OutputMgr:RingIO_getvAttribute success
    ************************************************
    Command line interface to  MultiZoneAudio player
    HI_ethernetNotificationTask: Task Created
    ************************************************
    
    CLI>customAudioLoopback Constructor-> Num of Tracks = 1
    RadioTrack0 ............, Created Successfully
    AudioRecord created successfully ....
    customAudioLoopback::start -> TrackId 0
    customAudioLoopback::asyncPlaybackStart : track 0
    
    
    
    CLI>
    
    
    CLI>
    
    
    CLI>
    
    
    CLI>tunerselect onboard 14
    radioband 0 FM
    radiotune
    
    CLI>
    
    CLI>
    
    Waiting for the acknowledgment of previous user command
    
    SV: SV_RADIO_SELECT_TUNER
    RM: RM_TUNER_SELECT_OPCODE
    
    Concurrency: HDMRC/SD
    
     RM: GetTunerI2cAddress: Case OnBoardTuner
    
     I2C Address for Tuner1: 4b.
    
     I2C Address for Tuner2: 49.
    IIC creation for Tuner successful
    0 FM 98.1TCD: TCD_detectTunerVersion ==> PG3 Tuner
    TCD: TCD_detectTunerVersion ==> PG3 Tuner
    TCD_Setup tunerId 0 radioBand 1 dOut0Config 0x21345 dOut1Config 0x0
    TCD_Setup tunerId 1 radioBand 1 dOut0Config 0x21345 dOut1Config 0x0
    TCD_Setup tunerId 0 radioBand 0 dOut0Config 0x2143a dOut1Config 0x0
    TCD_Setup tunerId 1 radioBand 0 dOut0Config 0x2143a dOut1Config 0x0
    TCD_SetDriveStrength tunerId 0 dfs_input_path 0x2040 dout_params 0xb641
    TCD_SetDriveStrength tunerId 1 dfs_input_path 0x2040 dout_params 0xb641
    TCD_SetBand tunerId 0 radioBand 0
    TCD_SetBand tunerId 1 radioBand 0
    TCD:TCD_Start 0
    TCD_InitializeTuner - Band = 0
    Writing Register1 - cnt = 34
    Writing mem1 - cnt = 59
    Writing mem2 - cnt = 129
    Writing mem3 - cnt = 129
    Writing Register2 - cnt = 23
    Writing Register3 - cnt = 13
    CX and CY Tank filters not set.
    TCD:TCD_Start 1
    TCD_InitializeTuner - Band = 0
    Writing Register1 - cnt = 34
    Writing mem1 - cnt = 59
    Writing mem2 - cnt = 129
    Writing mem3 - cnt = 129
    Writing Register2 - cnt = 23
    Writing Register3 - cnt = 13
    CX and CY Tank filters not set.
    RM: RID Configuration -> HDMRC+SD mode
    RM:RID_INIT_REQ sent to DSP.
    
    RM:RID_INIT_RES Received: EDMA Configuration Success.
    
    RM: Entered RM_sendRdeStart function.
    
    RM: RDE_START_REQ sent to 0.
    RM:RDE START response received
    RM:RDE Setting Concurrency
    RM: Setting Road Set up command
    Sending RDE_SET_CONCURRENCY_CMD ...
    RM:RDE Set Concurrency response received
    RM:Entered RDE RM_sendSwitchState
    DSP Error interrupt 122
    HI_send_notification_msg: Notification Counter 1
    DSP Error interrupt 122
    DSP Error interrupt 122
    RM:RDE IDLE Switch state response received
    RM:Entered RDE RM_sendSwitchState
    RM:RDE EXECUTING Switch state response received
    
    RM:RID_START_RES Received: McASP Initialization Success.
    
    

    So looks like the RadioApp is freezing up on CLI commands. When you do the "TunerSelect" command, we expect this printout to appear at the end:

    RM:RID_START_RES Received: McASP Initialization Success.


    Just to establish if the baseline is working, could you follow the below steps:

    1. Start RadioApp as "RadioApp -h eth -h cli " .

    2. Tunerselect "tunerselect onboard 5" . This will start RADIO with HD_FM concurrency. Expect to see several printouts before the console is available for next command.

    3. Band selection "radioband 0 FM"  Expect to see several printouts before the console is available for next command.

    4. Tune frequency " radiotune 0 FM 98.1"  Expect to see several printouts before the console is available for next command.

    Could you please try out these steps and see if we can hear any Radio audio? 

    -Manoj 

  • Hi again, Manoj -

    I just copied back the 20.02 prebuilt, and our TI supplied 'RadioApp_with_audio_fix' (the the audio was garbled without it). The startup difference is striking. (/data/app/autostart.sh is my script that runs 'RadioApp -o ARM -h eth -a 127.0.0.1). Not only do the start messages announce the creation of the loopback, and the radio track, but there is a small pop from the speakers connected to P13.

    //++
    root@jacinto6evm:/ # /data/app/autostart.sh
    Configuring JAMR3
    EVM Name : DRA752
    IIC creation for Switchconfig Success
    VCP availablity is 1
    VCP Enable returned success
    CMEM initialized.
    Creating Dsp to Arm RingIO for RDE output
    App_create: Succeeded in creating GateMP for RingIO

    *************************************************************
    DSP Version 01.50.20.02
    RadioApp Version 01.50.20.02
    *************************************************************
    AL_CMEM_alloc: size 1612 ==> VA: 0xB622D000, PA: 0x95657000
    AL_CMEM_alloc: Success
    SV: DSP initialization success

    RM: Sending MQ notification

    RM: Sent MQ notification

    RM: Waiting for Sup notification
    RM: Opening message queue for RDE 0
    SV: Radio Manager initialization success
    RM: Opened message queue for RDE 0
    RM: Opening message queue for RDE 1
    RM: Opened message queue for RDE 1
    RM: Opening message queue for RID
    RM: Opened message queue for RID
    AL_CMEM_alloc: size 51200 ==> VA: 0xB5D13000, PA: 0x95700000
    AL_CMEM_alloc: Success
    AL_CMEM_alloc: size 51200 ==> VA: 0xB5D03000, PA: 0x956F0000
    AL_CMEM_alloc: Success

    RM: Received Sup notification
    AL_CMEM_alloc: size 16384 ==> VA: 0xB59B3000, PA: 0x956E0000
    AL_CMEM_alloc: Success
    AMGR: Opened message queue for APPE
    AL_CMEM_alloc: size 672 ==> VA: 0xB58AA000, PA: 0x95656000
    AL_CMEM_alloc: Success
    Copying pcmdsp_play0
    Copying pcmdsp_play1
    Copying appe_inrio6
    Copying ioa_riomic
    SV: Audio Manager initialization success
    Calling Outmgr Main
    Completed Outmgr Main
    Output Manager thread started
    Output Manager: Semaphore created
    OutputMgr: Writer RingIO name rde_pcmrio
    HI_ethernetNotificationTask: Task Created
    OutputMgr: RingIO_open successful handle b6307280
    OutputMgr: Reader RingIO name appe_outrio0
    OutputMgr: RingIO_open successful handle b6307320
    OutputMgr: Pending Attribute
    OutputMgr: RingIO Transfer Size 8192
    OutputMgr:RingIO_getvAttribute success
    customAudioLoopback Constructor-> Num of Tracks = 1
    RadioTrack0 ............, Created Successfully
    AudioRecord created successfully ....
    customAudioLoopback::start -> TrackId 0
    customAudioLoopback::asyncPlaybackStart : track 0
    //++

    -Greg
  • Hi Manoj -

    Here're the results from both 20.02, as a control and 21.01. (I used concurrency 14, because I don't get HD here - with 14 I get 'modulable' static - that is, I can tell when stations are changing, at least).

    --Greg

    20.02
    //++
    shell@jacinto6evm:/ $ su
    root@jacinto6evm:/ # RadioApp -h eth -h cli -o ARM
    Configuring JAMR3
    EVM Name : DRA752
    IIC creation for Switchconfig Success
    VCP availablity is 1
    VCP Enable returned success
    CMEM initialized.
    Creating Dsp to Arm RingIO for RDE output
    App_create: Succeeded in creating GateMP for RingIO

    *************************************************************
    DSP Version 01.50.20.02
    RadioApp Version 01.50.20.02
    *************************************************************
    AL_CMEM_alloc: size 1612 ==> VA: 0xB6189000, PA: 0x95657000
    AL_CMEM_alloc: Success
    SV: DSP initialization success

    RM: Sending MQ notification

    RM: Sent MQ notification

    RM: Waiting for Sup notification
    RM: Opening message queue for RDE 0
    SV: Radio Manager initialization success
    RM: Opened message queue for RDE 0
    RM: Opening message queue for RDE 1
    RM: Opened message queue for RDE 1
    RM: Opening message queue for RID
    RM: Opened message queue for RID
    AL_CMEM_alloc: size 51200 ==> VA: 0xB5C2D000, PA: 0x95700000
    AL_CMEM_alloc: Success
    AL_CMEM_alloc: size 51200 ==> VA: 0xB5C1D000, PA: 0x956F0000
    AL_CMEM_alloc: Success

    RM: Received Sup notification
    AL_CMEM_alloc: size 16384 ==> VA: 0xB590D000, PA: 0x956E0000
    AL_CMEM_alloc: Success
    AMGR: Opened message queue for APPE
    AL_CMEM_alloc: size 672 ==> VA: 0xB5C81000, PA: 0x95656000
    AL_CMEM_alloc: Success
    Copying pcmdsp_play0
    Copying pcmdsp_play1
    Copying appe_inrio6
    Copying ioa_riomic
    SV: Audio Manager initialization success
    Calling Outmgr Main
    Completed Outmgr Main
    HI_ethernetNotificationTask: Task Created
    ************************************************
    Command line interface to MultiZoneAudio player
    ************************************************

    CLI>Output Manager thread started
    Output Manager: Semaphore created
    OutputMgr: Writer RingIO name rde_pcmrio
    OutputMgr: RingIO_open successful handle b65dbc80
    OutputMgr: Reader RingIO name appe_outrio0
    OutputMgr: RingIO_open successful handle b65dbd20
    OutputMgr: Pending Attribute
    OutputMgr: RingIO Transfer Size 8192
    OutputMgr:RingIO_getvAttribute success
    customAudioLoopback Constructor-> Num of Tracks = 1
    RadioTrack0 ............, Created Successfully
    AudioRecord created successfully ....
    customAudioLoopback::start -> TrackId 0
    customAudioLoopback::asyncPlaybackStart : track 0



    CLI>tunerselect onboard 14


    CLI>

    SV: SV_RADIO_SELECT_TUNER
    RM: RM_TUNER_SELECT_OPCODE

    Concurrency: HDMRC/SD

    RM: GetTunerI2cAddress: Case OnBoardTuner

    I2C Address for Tuner1: 4b.

    I2C Address for Tuner2: 49.
    IIC creation for Tuner successful
    TCD: TCD_detectTunerVersion ==> PG3 Tuner
    TCD: TCD_detectTunerVersion ==> PG3 Tuner
    TCD_Setup tunerId 0 radioBand 1 dOut0Config 0x21345 dOut1Config 0x0
    TCD_Setup tunerId 1 radioBand 1 dOut0Config 0x21345 dOut1Config 0x0
    TCD_Setup tunerId 0 radioBand 0 dOut0Config 0x2143a dOut1Config 0x0
    TCD_Setup tunerId 1 radioBand 0 dOut0Config 0x2143a dOut1Config 0x0
    TCD_SetDriveStrength tunerId 0 dfs_input_path 0x2040 dout_params 0xb641
    TCD_SetDriveStrength tunerId 1 dfs_input_path 0x2040 dout_params 0xb641
    TCD_SetBand tunerId 0 radioBand 0
    TCD_SetBand tunerId 1 radioBand 0
    TCD:TCD_Start 0
    TCD_InitializeTuner - Band = 0
    Writing Register1 - cnt = 34
    Writing mem1 - cnt = 59
    Writing mem2 - cnt = 129
    Writing mem3 - cnt = 129
    Writing Register2 - cnt = 23
    Writing Register3 - cnt = 13
    CX and CY Tank filters not set.
    TCD:TCD_Start 1
    TCD_InitializeTuner - Band = 0
    Writing Register1 - cnt = 34
    Writing mem1 - cnt = 59
    Writing mem2 - cnt = 129
    Writing mem3 - cnt = 129
    Writing Register2 - cnt = 23
    Writing Register3 - cnt = 13
    CX and CY Tank filters not set.
    RM: RID Configuration -> HDMRC+SD mode
    RM:RID_INIT_REQ sent to DSP.

    RM:RID_INIT_RES Received: EDMA Configuration Success.

    RM: Entered RM_sendRdeStart function.

    RM: RDE_START_REQ sent to 0.
    RM:RDE START response received
    RM:RDE Setting Concurrency
    RM: Setting Road Set up command
    Sending RDE_SET_CONCURRENCY_CMD ...
    RM:RDE Set Concurrency response received
    RM:Entered RDE RM_sendSwitchState
    DSP Error interrupt 122
    HI_send_notification_msg: Notification Counter 1
    DSP Error interrupt 122
    DSP Error interrupt 122
    RM:RDE IDLE Switch state response received
    RM:Entered RDE RM_sendSwitchState
    RM:RDE EXECUTING Switch state response received

    RM:RID_START_RES Received: McASP Initialization Success.



    CLI>radioband 0 FM


    CLI>
    RM: RM_BAND_SELECT_OPCODE
    RM_handle_BandCommand ....Entry
    RM_execute_BandCommand ....Entry
    FM band - Tuner1
    TCD_SetBand tunerId 0 radioBand 1

    New Band: TCD_InitializeTuner - Band = 1
    Writing Register1 - cnt = 42
    TCD_Standby
    Writing mem1 - cnt = 45
    Writing mem2 - cnt = 129
    Writing mem3 - cnt = 129
    Writing mem4 - cnt = 51
    Writing mem5 - cnt = 129
    Writing Register2 - cnt = 9
    Writing Register3 - cnt = 27
    Changing the channel filter....FM
    CX and CY Tank filters not set.
    board type 3, TunerId: 0, band 1, lnaEnFlag 1
    LNA_Read : Data 0x0 feff
    LNA: Nothing done for Band 1
    Setting AF CF

    RM :ridBandChangeReq->band = 1 ridBandChangeReq->tunerId = 0
    RM_execute_BandCommand ....Exit
    RM_execute_BandCommand ....Entry
    FM band - Tuner2
    TCD_SetBand tunerId 1 radioBand 1

    New Band: TCD_InitializeTuner - Band = 1
    Writing Register1 - cnt = 42
    TCD_Standby
    Writing mem1 - cnt = 45
    Writing mem2 - cnt = 129
    Writing mem3 - cnt = 129
    Writing mem4 - cnt = 51
    Writing mem5 - cnt = 129
    Writing Register2 - cnt = 9
    Writing Register3 - cnt = 27
    Changing the channel filter....FM
    CX and CY Tank filters not set.
    board type 3, TunerId: 1, band 1, lnaEnFlag 1
    LNA_Read : Data 0x1 feff
    LNA: Nothing done for Band 1
    Setting AF CF

    RM :ridBandChangeReq->band = 1 ridBandChangeReq->tunerId = 1
    RM_execute_BandCommand ....Exit
    RM_handle_BandCommand ....Exit
    RM:Sending RDE BandSwitch
    RM: Sending band switch to RDE 1
    RM: Sent band switch to RDE 1
    RM:RDE_BAND_SWITCH_RES
    RM:RDE_BAND_SWITCH_RES received - InstanceId 1



    CLI>radiotune 0 FM 107.5


    CLI>
    RM: RM_TUNER_TUNE_OPCODE
    RM_handle_TuneCommand ....Entry
    RM_execute_BandCommand ....Entry
    RM_execute_BandCommand ....Do Nothing. We're already in the same band
    RM_execute_BandCommand ....Exit
    Tuner1 Frequency 107500 kHz
    RM_execute_BandCommand ....Entry
    RM_execute_BandCommand ....Do Nothing. We're already in the same band
    RM_execute_BandCommand ....Exit
    RM: Going to send tune to RDE1
    RM:Sending RDE Tune
    RM:Sent RM_sendRdeTune to instance 1
    RM: Sending Tune command to RDE
    RM: Sent Tune command to RDE
    RM_handle_TuneCommand ....Exit
    RM:RDE_TUNE_RES received
    ^C

    root@jacinto6evm:/ # exit
    shell@jacinto6evm:/ $ exit

    //++

    21.01
    //++
    shell@jacinto6evm:/ $ su
    root@jacinto6evm:/ # RadioApp -o ARM -h eth -h cli
    Configuring JAMR3
    EVM Name : DRA752
    IIC creation for Switchconfig Success
    VCP availablity is 1
    VCP Enable returned success
    1495577988
    1495577988
    CMEM initialized.
    Creating Dsp to Arm RingIO for RDE output
    App_create: Succeeded in creating GateMP for RingIO

    *************************************************************
    DSP Version 01.50.21.01
    RadioApp Version 01.50.21.01
    *************************************************************
    AL_CMEM_alloc: size 1612 ==> VA: 0xB616F000, PA: 0x95653000
    AL_CMEM_alloc: Success
    SV: DSP initialization success

    RM: Sending MQ notification

    RM: Sent MQ notification

    RM: Waiting for Sup notification
    RM: Opening message queue for RDE 0
    SV: Radio Manager initialization success
    RM: Opened message queue for RDE 0
    RM: Opening message queue for RDE 1
    RM: Opened message queue for RDE 1
    RM: Opening message queue for RID
    RM: Opened message queue for RID
    AL_CMEM_alloc: size 16384 ==> VA: 0xB5C49000, PA: 0x956E0000
    AL_CMEM_alloc: Success
    AMGR: Opened message queue for APPE
    AL_CMEM_alloc: size 672 ==> VA: 0xB5C48000, PA: 0x95652000
    AL_CMEM_alloc: Success
    Copying pcmdsp_play0
    Copying pcmdsp_play1
    Copying appe_inrio6
    Copying ioa_riomic
    SV: Audio Manager initialization success
    SV: Output Manager thread creation success
    HI_ethernetNotificationTask: Task Created
    ************************************************
    Command line interface to MultiZoneAudio player
    ************************************************

    CLI>Output Manager thread started
    Output Manager: Semaphore created
    OutputMgr: Writer RingIO name rde_pcmrio



    CLI>tunerselect onboard 14


    CLI>

    SV: SV_RADIO_SELECT_TUNER



    CLI>radioband 0 FM


    CLI>



    CLI>radiotune 0 FM 107.5


    CLI>
    Waiting for the acknowledgment of previous user command



    CLI>^C


    CLI>

    CLI>

    CLI>

    CLI>

    CLI>

    CLI>

    CLI>

    CLI>

    CLI>

    CLI>
    root@jacinto6evm:/ # exit
    shell@jacinto6evm:/ $ exit

    //++
  • Hi Greg,

    The startup pop sound from the speaker is ALSA dependent I think. But you can control the same as follows. This was suggested by our Linux Audio Expert:

    The tlv320aic3xx driver has two ALSA kcontrols that deal with the codec’s output driver:
    “Output Driver Power-On time”
    “Output Driver Ramp-up step”

    So, try these commands:
    • Find the kcontrol numid for both controls
    o # tinymix | grep “Output Driver Power-On time”
    o # tinymix | grep “Output Driver Ramp-up step”
    • Once you have identified the numid for each, you can get the current values:
    o # tinymix <numid>
    • Or set a new value for the controls:
    o # tinymix <numid> <value>

    Hope this helps.

    -Manoj
  • Hi Greg,

    A quick comparison between the 20.02 and 21.01 startup logs shows the the RadioManager (RM) start up is different. Could you try to restart the CMEMK kernel module before you start up RadioApp. To do that , run the below commands:

    rmmod cmemk

    insmod /system/lib/modules/cmemk.ko phys_start=0x95400000 phys_end=0x95800000 pools=25x65536,40x4096 allowOverlap=1

    RadioApp -h eth -h cli -o ARM

    Let me know if this works. If this works for you I can explain the reason.

    Thanks.

    -Manoj 

  • Hi Manoj -

    Cool.

    I'm always open to new shell commands.

    It wasn't a bad pop though - I considered it a telltale that the app was working, and had brought the speakers up (20.02). I hadn't noticed that the sound was missing on 21.01, until then.

    -Greg

  • Hi Manoj -

    No joy.

    //++
    shell@jacinto6evm:/ $ su
    root@jacinto6evm:/ # rmmod cmemk
    root@jacinto6evm:/ # insmod /system/lib/modules/cmemk.ko phys_start=0x95400000 phys_end=0x95800000 pools=25x65536,40x4096 allowOverlap=1
    root@jacinto6evm:/ # RadioApp -o ARM -h eth -h cli
    Configuring JAMR3
    EVM Name : DRA752
    IIC creation for Switchconfig Success
    VCP availablity is 1
    VCP Enable returned success
    1495644885
    1495644885
    CMEM initialized.
    Creating Dsp to Arm RingIO for RDE output
    App_create: Succeeded in creating GateMP for RingIO

    *************************************************************
    DSP Version 01.50.21.01
    RadioApp Version 01.50.21.01
    *************************************************************
    AL_CMEM_alloc: size 1612 ==> VA: 0xB61B3000, PA: 0x95653000
    AL_CMEM_alloc: Success
    SV: DSP initialization success

    RM: Sending MQ notification

    RM: Sent MQ notification

    : Radio Manager initialization sucRM: Opening message queue for RDE 0
    RM: Opening message queue for RDE 0
    RM: Opened message queue for RDE 0
    RM: Opening message queue for RDE 1
    RM: Opened message queue for RDE 1
    RM: Opening message queue for RID
    RM: Opened message queue for RID
    AL_CMEM_alloc: size 16384 ==> VA: 0xB5C8D000, PA: 0x956E0000
    AL_CMEM_alloc: Success
    AMGR: Opened message queue for APPE
    AL_CMEM_alloc: size 672 ==> VA: 0xB5C8C000, PA: 0x95652000
    AL_CMEM_alloc: Success
    Copying pcmdsp_play0
    Copying pcmdsp_play1
    Copying appe_inrio6
    Copying ioa_riomic
    SV: Audio Manager initialization success
    SV: Output Manager thread creation success
    HI_ethernetNotificationTask: Task Created
    ************************************************
    Command line interface to MultiZoneAudio player
    ************************************************

    CLI>Output Manager thread started
    Output Manager: Semaphore created
    OutputMgr: Writer RingIO name rde_pcmrio



    CLI>tunerselect onboard 14


    CLI>

    SV: SV_RADIO_SELECT_TUNER



    CLI>radioband 0 FM


    CLI>



    CLI>radiotune 0 FM 107.5


    CLI>
    Waiting for the acknowledgment of previous user command
    ^C

    //++
  • Hi Greg,

    Sorry to hear that it still is not working for you. Could you also try without the -o ARM option and just see if the "tunerselect" is responded ?
    RadioApp -h eth -h cli

    I am unable to reproduce the issue on my setup here with 6AM.1.3.

    -Manoj
  • Hi Greg,

    As discussed offline , could you please try and apply this patch on the DTS source http://review.omapzoom.org/#/c/38276

    Let me know if this works.

    Best Regards,
    Manoj

  • Hi Manoj -

    Applying the patch did work. Here's a log of a successful RadioApp launch, for comparison's sake:

    shell@jacinto6evm:/ $ su
    root@jacinto6evm:/ # RadioApp -o ARM -h eth
    Configuring JAMR3
    EVM Name : DRA752
    IIC creation for Switchconfig Success
    VCP availablity is 1
    VCP Enable returned success
    1496358796
    1496358796
    CMEM initialized.
    Creating Dsp to Arm RingIO for RDE output
    App_create: Succeeded in creating GateMP for RingIO

    *************************************************************
    DSP Version 01.50.21.01
    RadioApp Version 01.50.21.01
    *************************************************************
    AL_CMEM_alloc: size 1612 ==> VA: 0xB6281000, PA: 0x95653000
    AL_CMEM_alloc: Success
    SV: DSP initialization success

    RM: Sending MQ notification

    RM: Sent MQ notification

    RM: Waiting for Sup notification
    RM: Opening message queue for RDE 0
    RM: Opening message queue for RDE 0
    RM: Opened message queue for RDE 0
    RM: Opening message queue for RDE 1
    RM: Opened message queue for RDE 1
    RM: Opening message queue for RID
    RM: Opened message queue for RID
    AL_CMEM_alloc: size 51200 ==> VA: 0xB5D16000, PA: 0x956E0000
    AL_CMEM_alloc: Success
    AL_CMEM_alloc: size 51200 ==> VA: 0xB5D06000, PA: 0x956D0000
    AL_CMEM_alloc: Success

    RM: Received Sup notification
    AL_CMEM_alloc: size 16384 ==> VA: 0xB58AE000, PA: 0x956C0000
    AL_CMEM_alloc: Success
    AMGR: Opened message queue for APPE
    AL_CMEM_alloc: size 672 ==> VA: 0xB6280000, PA: 0x95652000
    AL_CMEM_alloc: Success
    Copying pcmdsp_play0
    Copying pcmdsp_play1
    Copying appe_inrio6
    Copying ioa_riomic
    SV: Audio Manager initialization success
    SV: Output Manager thread creation success
    HI_ethernetNotificationTask: Task Created
    Output Manager thread started
    Output Manager: Semaphore created
    OutputMgr: Writer RingIO name rde_pcmrio
    OutputMgr: RingIO_open successful handle b6247280
    OutputMgr: Reader RingIO name appe_outrio0
    OutputMgr: RingIO_open successful handle b6247320
    OutputMgr: Pending Attribute
    OutputMgr: RingIO Transfer Size 8192
    OutputMgr:RingIO_getvAttribute success
    customAudioLoopback Constructor-> Num of Tracks = 1
    RadioTrack0 ............, Created Successfully
    AudioRecord created successfully ....
    customAudioLoopback::start -> TrackId 0
    customAudioLoopback::asyncPlaybackStart : track 0

    Also, that speaker 'pop' that had been missing returned as soon as the patch was applied.

    Thank you so much for your help.

    -Greg