os/mm/mmhais/refacladapt/data/hwdev0x101f9f38s16default.rss
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
sl@0
     1
// Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
sl@0
     2
// All rights reserved.
sl@0
     3
// This component and the accompanying materials are made available
sl@0
     4
// under the terms of "Eclipse Public License v1.0"
sl@0
     5
// which accompanies this distribution, and is available
sl@0
     6
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
sl@0
     7
//
sl@0
     8
// Initial Contributors:
sl@0
     9
// Nokia Corporation - initial contribution.
sl@0
    10
//
sl@0
    11
// Contributors:
sl@0
    12
//
sl@0
    13
// Description:
sl@0
    14
//
sl@0
    15
sl@0
    16
sl@0
    17
sl@0
    18
// INCLUDES
sl@0
    19
#include "resourcehwdeviceinitstructs.rh"
sl@0
    20
#include "hwdeviceimplementationuids.hrh"
sl@0
    21
#include "resourceaudioenums.hrh"
sl@0
    22
sl@0
    23
// RESOURCE DEFINITIONS
sl@0
    24
sl@0
    25
// -----------------------------------------------------------------------------
sl@0
    26
//   
sl@0
    27
// RAW_PCM16_RESOURCE
sl@0
    28
// The RAW_PCM16_RESOURCE resource provides the client with the following 
sl@0
    29
// initialization information:
sl@0
    30
// 1. Hardware device UID. This UID is defined by the client.
sl@0
    31
// 2. The device capabilities parameters consisting of sampling rate,
sl@0
    32
//    type of encoding, channel definition (mono or stereo) and buffer size.
sl@0
    33
//
sl@0
    34
// -----------------------------------------------------------------------------
sl@0
    35
//
sl@0
    36
sl@0
    37
RESOURCE DAL_RESOURCE_DATA_RESOURCE s16_pcmu16_resource
sl@0
    38
{
sl@0
    39
    uid = 0x101F9F38; //KMmfUidHwDeviceS16ToPCMU16
sl@0
    40
    data =
sl@0
    41
        {
sl@0
    42
        DAL_RESOURCE_DATA
sl@0
    43
            {
sl@0
    44
            mode = 2; //EMMFStateRecording
sl@0
    45
              
sl@0
    46
            cap_data =
sl@0
    47
                {
sl@0
    48
                HWDEVICE_CAPABILITIES_DATA
sl@0
    49
                    {
sl@0
    50
                    Rate =   0xff;
sl@0
    51
                    Encoding = EMMFSoundEncoding16BitPCM;
sl@0
    52
                    Channels = 3;
sl@0
    53
                    BufferSize = 4096;
sl@0
    54
                    }
sl@0
    55
                };    // End of cap_data
sl@0
    56
            },    // End of DAL_RESOURCE_DATA (encode mode)
sl@0
    57
sl@0
    58
        DAL_RESOURCE_DATA
sl@0
    59
            {
sl@0
    60
            mode = EMMFStatePlaying;              // Decode or Play
sl@0
    61
                
sl@0
    62
            cap_data =
sl@0
    63
                {
sl@0
    64
                HWDEVICE_CAPABILITIES_DATA
sl@0
    65
                    {
sl@0
    66
                    Rate = 0x67F;           // Binary Rep: 11001111111 = 24000, 12000, 48000, 44100,
sl@0
    67
                                            // 32000, 22050, 16000, 11025 and 8000 Hz
sl@0
    68
                    Encoding = EMMFSoundEncoding16BitPCM;
sl@0
    69
                    Channels = 3;           // 3 EMMFMono | EMMFStereo
sl@0
    70
                    BufferSize = 28800;
sl@0
    71
                    }
sl@0
    72
                }; // End of cap_data
sl@0
    73
            } // End of DMS_RESOURCE_DATA (decode mode)
sl@0
    74
        }; // End of data[]
sl@0
    75
    }
sl@0
    76
sl@0
    77
sl@0
    78
// End of File