resourcemgmt/hwresourcesmgr/server/src/HWRMFmTxCommonData.cpp
changeset 78 3f0699f2e14c
parent 0 4e1aa6a622a0
equal deleted inserted replaced
77:8a984d260a2d 78:3f0699f2e14c
   276         {
   276         {
   277         // Notify Audio Policy first
   277         // Notify Audio Policy first
   278         THWRMFmTxAvailableFlag nowAvailable = FmTxAvailableState(newState);
   278         THWRMFmTxAvailableFlag nowAvailable = FmTxAvailableState(newState);
   279         THWRMFmTxAvailableFlag wasAvailable = FmTxAvailableState(iFmTxState);
   279         THWRMFmTxAvailableFlag wasAvailable = FmTxAvailableState(iFmTxState);
   280 
   280 
       
   281         COMPONENT_TRACE3( _L("HWRM Server - CHWRMFmTxCommonData::UpdateStatus - nowAvailable: %d, wasAvailable: %d"), 
       
   282             nowAvailable, wasAvailable ); 
   281         if ( nowAvailable != wasAvailable )
   283         if ( nowAvailable != wasAvailable )
   282             {
   284             {
   283             COMPONENT_TRACE2(_L("HWRM Server - CHWRMFmTxCommonData::UpdateStatus - Audio Policy notification: %d"), nowAvailable );
   285             COMPONENT_TRACE2( _L("HWRM Server - CHWRMFmTxCommonData::UpdateStatus - iAudioRoutingEnabled: %d"), 
   284             TInt err = iFmTxIsAvailableProperty.Set(nowAvailable);      
   286                 iAudioRoutingEnabled ); 
   285             if ( err != KErrNone )
   287             if ( iAudioRoutingEnabled )
   286                 {
   288                 {
   287                 COMPONENT_TRACE2( _L("HWRM Server - CHWRMFmTxCommonData::UpdateStatus - Audio Policy notification failed: %d"), err );
   289                 COMPONENT_TRACE2(_L("HWRM Server - CHWRMFmTxCommonData::UpdateStatus - Audio Policy notification: %d"), nowAvailable );
       
   290                 TInt err = iFmTxIsAvailableProperty.Set(nowAvailable);      
       
   291                 if ( err != KErrNone )
       
   292                     {
       
   293                     COMPONENT_TRACE2( _L("HWRM Server - CHWRMFmTxCommonData::UpdateStatus - Audio Policy notification failed: %d"), err );
       
   294                     }
   288                 }
   295                 }
   289             
   296             
   290             // Update power save status if Fm Tx is available
   297             // Update power save status if Fm Tx is available
   291             if( nowAvailable == EHWRMFmTxAvailableOn )
   298             if( nowAvailable == EHWRMFmTxAvailableOn )
   292                 {
   299                 {
   532         iRdsData.iLanguageId = aLanguageId;         
   539         iRdsData.iLanguageId = aLanguageId;         
   533         }
   540         }
   534     }
   541     }
   535     
   542     
   536 // -----------------------------------------------------------------------------
   543 // -----------------------------------------------------------------------------
       
   544 // CHWRMFmTxCommonData::EnableAudioRouting
       
   545 // Enables or disables audio routing
       
   546 // -----------------------------------------------------------------------------
       
   547 //
       
   548 void CHWRMFmTxCommonData::EnableAudioRouting(TBool aEnable, TBool aNotifyAudioPolicy)
       
   549     {
       
   550     COMPONENT_TRACE3( _L("HWRM Server - CHWRMFmTxCommonData::EnableAudioRouting %d, %d"), 
       
   551             aEnable, aNotifyAudioPolicy );
       
   552     iAudioRoutingEnabled = aEnable;
       
   553     if ( aNotifyAudioPolicy )
       
   554         {
       
   555         TInt err = iFmTxIsAvailableProperty.Set( aEnable );      
       
   556         if ( err != KErrNone )
       
   557             {
       
   558             COMPONENT_TRACE2( _L("HWRM Server - CHWRMFmTxCommonData::EnableAudioRouting - Audio Policy notification failed: %d"), err );
       
   559             }
       
   560         }
       
   561     }
       
   562     
       
   563 // -----------------------------------------------------------------------------
   537 // CHWRMFmTxCommonData::SetFrequencyRange
   564 // CHWRMFmTxCommonData::SetFrequencyRange
   538 // Set the Central Repository data, frequency range and step size
   565 // Set the Central Repository data, frequency range and step size
   539 // -----------------------------------------------------------------------------
   566 // -----------------------------------------------------------------------------
   540 //
   567 //
   541 void CHWRMFmTxCommonData::SetFrequencyRange(TInt aMinFrequency, TInt aMaxFrequency, TInt aStepSize)
   568 void CHWRMFmTxCommonData::SetFrequencyRange(TInt aMinFrequency, TInt aMaxFrequency, TInt aStepSize)