os/mm/mmhais/refacladapt/data/hwdev0x101ffa05pcm16default.rss
changeset 0 bde4ae8d615e
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/os/mm/mmhais/refacladapt/data/hwdev0x101ffa05pcm16default.rss	Fri Jun 15 03:10:57 2012 +0200
     1.3 @@ -0,0 +1,78 @@
     1.4 +// Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
     1.5 +// All rights reserved.
     1.6 +// This component and the accompanying materials are made available
     1.7 +// under the terms of "Eclipse Public License v1.0"
     1.8 +// which accompanies this distribution, and is available
     1.9 +// at the URL "http://www.eclipse.org/legal/epl-v10.html".
    1.10 +//
    1.11 +// Initial Contributors:
    1.12 +// Nokia Corporation - initial contribution.
    1.13 +//
    1.14 +// Contributors:
    1.15 +//
    1.16 +// Description:
    1.17 +//
    1.18 +
    1.19 +
    1.20 +
    1.21 +// INCLUDES
    1.22 +#include "resourcehwdeviceinitstructs.rh"
    1.23 +#include "hwdeviceimplementationuids.hrh"
    1.24 +#include "resourceaudioenums.hrh"
    1.25 +
    1.26 +// RESOURCE DEFINITIONS
    1.27 +
    1.28 +// -----------------------------------------------------------------------------
    1.29 +//   
    1.30 +// PCM16_GSM610_RESOURCE
    1.31 +// The PCM16_GSM610_RESOURCE resource provides the client with the following 
    1.32 +// initialization information:
    1.33 +// 1. Hardware device UID. This UID is defined by the client.
    1.34 +// 2. The device capabilities parameters consisting of sampling rate,
    1.35 +//    type of encoding, channel definition (mono or stereo) and buffer size.
    1.36 +//
    1.37 +// -----------------------------------------------------------------------------
    1.38 +//
    1.39 +
    1.40 +RESOURCE DAL_RESOURCE_DATA_RESOURCE pcm16_gsm610_enc_resource
    1.41 +{
    1.42 +    uid =0x101FFA05; // //KMmfUidHwDevicePCM16ToGSM610;;;
    1.43 +    data =
    1.44 +        {
    1.45 +        DAL_RESOURCE_DATA
    1.46 +            {
    1.47 +            mode = 2; //EMMFStateRecording
    1.48 +              
    1.49 +            cap_data =
    1.50 +                {
    1.51 +                HWDEVICE_CAPABILITIES_DATA
    1.52 +                    {
    1.53 +                    Rate =   0xff;
    1.54 +                    Encoding = EMMFSoundEncoding16BitPCM;
    1.55 +                    Channels = 3;
    1.56 +                    BufferSize = 4096;
    1.57 +                    }
    1.58 +                };    // End of cap_data
    1.59 +            },    // End of DAL_RESOURCE_DATA (encode mode)
    1.60 +
    1.61 +        DAL_RESOURCE_DATA
    1.62 +            {
    1.63 +            mode = EMMFStatePlaying;              // Decode or Play
    1.64 +                
    1.65 +            cap_data =
    1.66 +                {
    1.67 +                HWDEVICE_CAPABILITIES_DATA
    1.68 +                    {
    1.69 +                    Rate = 0x67F;           // Binary Rep: 11001111111 = 24000, 12000, 48000, 44100,
    1.70 +                                            // 32000, 22050, 16000, 11025 and 8000 Hz
    1.71 +                    Encoding = EMMFSoundEncoding16BitPCM;
    1.72 +                    Channels = 3;           // 3 EMMFMono | EMMFStereo
    1.73 +                    BufferSize = 28800;
    1.74 +                    }
    1.75 +                }; // End of cap_data
    1.76 +            } // End of DMS_RESOURCE_DATA (decode mode)
    1.77 +        }; // End of data[]
    1.78 +    }
    1.79 +
    1.80 +
    1.81 +// End of File