os/boardsupport/haitest/bspsvs/suite/bsp/sound/scripts/base-bsp-sound-driver-automated.script
author sl@SLION-WIN7.fritz.box
Fri, 15 Jun 2012 03:10:57 +0200
changeset 0 bde4ae8d615e
permissions -rw-r--r--
First public contribution.
sl@0
     1
//
sl@0
     2
// Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
sl@0
     3
// All rights reserved.
sl@0
     4
// This component and the accompanying materials are made available
sl@0
     5
// under the terms of "Eclipse Public License v1.0"
sl@0
     6
// which accompanies this distribution, and is available
sl@0
     7
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
sl@0
     8
//
sl@0
     9
// Initial Contributors:
sl@0
    10
// Nokia Corporation - initial contribution.
sl@0
    11
//
sl@0
    12
// Contributors:
sl@0
    13
//
sl@0
    14
// Description:
sl@0
    15
//
sl@0
    16
//! @file
sl@0
    17
//! @SYMTestSuiteName  BASE-BSP-SOUND
sl@0
    18
//! @SYMScriptTestEnvironment This test script requires a base rom image
sl@0
    19
sl@0
    20
/////////////////////////////////////////////////////////////////////
sl@0
    21
// BASE-BSP-SOUND-DRIVER-automated.script
sl@0
    22
//
sl@0
    23
//
sl@0
    24
// Tests all the PublishedPartner APIs of the RMdaDevSound
sl@0
    25
// class as a means of confidence that the APIs work as expected.
sl@0
    26
// All test cases will keep the sound system state and 
sl@0
    27
// restore that to initial state when test case finished
sl@0
    28
// Platform dependent configuration is picked up from the global environment files
sl@0
    29
//
sl@0
    30
/////////////////////////////////////////////////////////////////////
sl@0
    31
sl@0
    32
RUN_UTILS MkDir		${SYSDRIVE}\base\
sl@0
    33
RUN_UTILS MkDir		${SYSDRIVE}\base\sound\
sl@0
    34
RUN_UTILS MkDir		${SYSDRIVE}\base\sound\validation
sl@0
    35
sl@0
    36
sl@0
    37
LOAD_SUITE	t_sound
sl@0
    38
DELAY		5000
sl@0
    39
sl@0
    40
/////////////////////////////////////////////
sl@0
    41
// Driver functionality
sl@0
    42
/////////////////////////////////////////////
sl@0
    43
sl@0
    44
START_TESTCASE 			BASE-BSP-SOUND-DRIVER-0001
sl@0
    45
//! @SYMTestCaseID		BASE-BSP-SOUND-DRIVER-0001
sl@0
    46
//! @SYMAPI			RMdaDevSound::Open(TInt)
sl@0
    47
//! @SYMAuthor			Vassili Tsvetkov
sl@0
    48
//! @SYMCreationDate		15/06/2008
sl@0
    49
//! @SYMTestCaseDesc		Open a session to the sound device using the default unit of device value.
sl@0
    50
//!				
sl@0
    51
//! @SYMTestActions		1. Call Open() with unit [UnitEnum]
sl@0
    52
//!				2. Call Close()
sl@0
    53
//!
sl@0
    54
//! @SYMTestStatus		Implemented
sl@0
    55
//! @SYMTestPriority		Critical
sl@0
    56
//! @SYMTestExpectedResults	Function does not leave nor panic. Session to the default sound driver is opened and closed
sl@0
    57
//! @SYMTestType		CIT
sl@0
    58
	START_TEST_BLOCK	100		t_sound			\base\sound\base-bsp-sound-driver.ini
sl@0
    59
		CREATE_OBJECT	RMdaDevSound	devsound  
sl@0
    60
		COMMAND		devsound	new
sl@0
    61
		COMMAND		devsound	Open			UnitEnum
sl@0
    62
		COMMAND		devsound  	Close
sl@0
    63
		COMMAND		devsound  	~
sl@0
    64
	END_TEST_BLOCK
sl@0
    65
END_TESTCASE			BASE-BSP-SOUND-DRIVER-0001
sl@0
    66
sl@0
    67
START_TESTCASE 			BASE-BSP-SOUND-DRIVER-0002
sl@0
    68
//! @SYMTestCaseID		BASE-BSP-SOUND-DRIVER-0002
sl@0
    69
//! @SYMAPI			RMdaDevSound::VersionRequired();
sl@0
    70
//!				RMdaDevSound::IsMdaSound()
sl@0
    71
//! @SYMAuthor			Vassili Tsvetkov
sl@0
    72
//! @SYMCreationDate		15/06/2008
sl@0
    73
//! @SYMTestCaseDesc		Checkwhether the loaded driver is the MdaSound driver
sl@0
    74
//!				and receive the version of sound driver
sl@0
    75
//!				
sl@0
    76
//! @SYMTestActions		1. Call Open() with unit [UnitEnum]				
sl@0
    77
//!				2. Call IsMdaSound() and check if that return KErrNone (it means, that loaded driver is MdaSound driver)
sl@0
    78
//!				3. Call VersionRequired() and verify with expected value from [driver] section
sl@0
    79
//!				4. Call Close()
sl@0
    80
//!
sl@0
    81
//! @SYMTestStatus		Implemented
sl@0
    82
//! @SYMTestPriority		Critical
sl@0
    83
//! @SYMTestExpectedResults	Loaded driver is MdaSound-type driver and version number is as expected
sl@0
    84
//! @SYMTestType		CIT
sl@0
    85
	START_TEST_BLOCK		100		t_sound			\base\sound\base-bsp-sound-driver.ini
sl@0
    86
		CREATE_OBJECT		RMdaDevSound	devsound
sl@0
    87
		COMMAND			devsound	new
sl@0
    88
		COMMAND			devsound	Open			UnitEnum
sl@0
    89
		COMMAND			devsound	IsMdaSound
sl@0
    90
		COMMAND			devsound	VersionRequired		driver
sl@0
    91
		COMMAND			devsound  	Close
sl@0
    92
		COMMAND			devsound  	~
sl@0
    93
	END_TEST_BLOCK
sl@0
    94
END_TESTCASE			BASE-BSP-SOUND-DRIVER-0002
sl@0
    95
sl@0
    96
///////////////////////////////////////////
sl@0
    97
// Format/Volume functionality
sl@0
    98
///////////////////////////////////////////
sl@0
    99
sl@0
   100
START_TESTCASE 			BASE-BSP-SOUND-DRIVER-1001
sl@0
   101
//! @SYMTestCaseID		BASE-BSP-SOUND-DRIVER-1001
sl@0
   102
//! @SYMAPI			RMdaDevSound::PlayFormatsSupported(TSoundFormatsSupportedBuf{ref});
sl@0
   103
//!				RMdaDevSound::GetPlayFormat(TCurrentSoundFormatBuf{ref});
sl@0
   104
//!				RMdaDevSound::PlayVolume();
sl@0
   105
//!				RMdaDevSound::RecordFormatsSupported(TSoundFormatsSupportedBuf{ref});
sl@0
   106
//!				RMdaDevSound::GetRecordFormat(TCurrentSoundFormatBuf{ref});
sl@0
   107
//!				RMdaDevSound::RecodLevel(TInt)
sl@0
   108
//! @SYMAuthor			Vassili Tsvetkov
sl@0
   109
//! @SYMCreationDate		15/06/2008
sl@0
   110
//! @SYMTestCaseDesc		Request the supported formats and default used format for default sound driver
sl@0
   111
//!				
sl@0
   112
//! @SYMTestActions		1. Call Open() with unit [UnitEnum]
sl@0
   113
//!				2. Call PlayFormatsSupported() and verify with list from [play_formats_supported]
sl@0
   114
//!				3. Call GetPlayFormat() and verify with list from [default_play_format]
sl@0
   115
//!				4. Call PlayVolume() and verify with it from [default_play_volume]
sl@0
   116
//!				5. Call RecordFormatsSupported() and verify with list from [record_formats_supported]
sl@0
   117
//!				6. Call GetRecordFormat() and verify with list from [default_record_format]
sl@0
   118
//!				7. Call RecordLevel and verify with it from [default_record_level]
sl@0
   119
//!				8. Call Close()
sl@0
   120
//!
sl@0
   121
//! @SYMTestStatus		Implemented
sl@0
   122
//! @SYMTestPriority		Critical
sl@0
   123
//! @SYMTestExpectedResults	Supported formats are as expected
sl@0
   124
//! @SYMTestType		CIT
sl@0
   125
	START_TEST_BLOCK	100				t_sound			\base\sound\BASE-BSP-SOUND-DRIVER.ini
sl@0
   126
		CREATE_OBJECT	RMdaDevSound			devsound  
sl@0
   127
		COMMAND		devsound			new
sl@0
   128
		COMMAND		devsound			Open			UnitEnum
sl@0
   129
		CREATE_OBJECT	TSoundFormatsSupported		t_formats		
sl@0
   130
		COMMAND		t_formats			new
sl@0
   131
		COMMAND		devsound			PlayFormatsSupported	BSP-SOUND-DRIVER-PlayFormatsSupported
sl@0
   132
		COMMAND		t_formats			imin_rate_get		play_formats_supported
sl@0
   133
		COMMAND		t_formats			imax_rate_get		play_formats_supported
sl@0
   134
		COMMAND		t_formats			ichannels_get		play_formats_supported
sl@0
   135
		COMMAND		t_formats			imin_buffer_size_get	play_formats_supported
sl@0
   136
		COMMAND		t_formats			imax_buffer_size_get	play_formats_supported
sl@0
   137
		COMMAND		t_formats			imin_volume_get		play_formats_supported
sl@0
   138
		COMMAND		t_formats			imax_volume_get		play_formats_supported
sl@0
   139
		COMMAND		t_formats			iencodings_get		play_formats_supported
sl@0
   140
		COMMAND		t_formats			~
sl@0
   141
		CREATE_OBJECT	TCurrentSoundFormat		t_format		
sl@0
   142
		COMMAND		t_format			new			
sl@0
   143
		COMMAND		devsound			GetPlayFormat		BSP-SOUND-DRIVER-GetPlayFormat
sl@0
   144
		COMMAND		t_format			irate_get			default_play_format
sl@0
   145
		COMMAND		t_format			iencoding_get		default_play_format
sl@0
   146
		COMMAND		t_format			ichannels_get		default_play_format
sl@0
   147
		COMMAND		t_format			ibuffer_size_get		default_play_format
sl@0
   148
		COMMAND		devsound			PlayVolume		default_play_volume
sl@0
   149
		COMMAND		t_format			~
sl@0
   150
		COMMAND		t_formats			new
sl@0
   151
		COMMAND		devsound			RecordFormatsSupported	BSP-SOUND-DRIVER-RecordFormatsSupported
sl@0
   152
		COMMAND		t_formats			imin_rate_get		record_formats_supported
sl@0
   153
		COMMAND		t_formats			imax_rate_get		record_formats_supported
sl@0
   154
		COMMAND		t_formats			ichannels_get		record_formats_supported
sl@0
   155
		COMMAND		t_formats			imin_buffer_size_get	record_formats_supported
sl@0
   156
		COMMAND		t_formats			imax_buffer_size_get	record_formats_supported
sl@0
   157
		COMMAND		t_formats			imin_volume_get		record_formats_supported
sl@0
   158
		COMMAND		t_formats			imax_volume_get		record_formats_supported
sl@0
   159
		COMMAND		t_formats			iencodings_get		record_formats_supported
sl@0
   160
		COMMAND		t_formats			~		
sl@0
   161
		COMMAND		t_format			new			
sl@0
   162
		COMMAND		devsound			GetRecordFormat		BSP-SOUND-DRIVER-GetRecordFormat
sl@0
   163
		COMMAND		t_format			irate_get			default_record_format
sl@0
   164
		COMMAND		t_format			iencoding_get		default_record_format
sl@0
   165
		COMMAND		t_format			ichannels_get		default_record_format
sl@0
   166
		COMMAND		t_format			ibuffer_size_get		default_record_format
sl@0
   167
		COMMAND		devsound			RecordLevel		default_record_level
sl@0
   168
		COMMAND		t_format			~
sl@0
   169
		COMMAND		devsound  			Close
sl@0
   170
		COMMAND		devsound  			~
sl@0
   171
	END_TEST_BLOCK
sl@0
   172
END_TESTCASE			BASE-BSP-SOUND-DRIVER-1001
sl@0
   173
sl@0
   174
START_TESTCASE 			BASE-BSP-SOUND-DRIVER-1002
sl@0
   175
//! @SYMTestCaseID		BASE-BSP-SOUND-DRIVER-1002
sl@0
   176
//! @SYMAPI			RMdaDevSound::PlayData(TRequestStatus{ref}, const TDesC8{ref});
sl@0
   177
//!				RMdaDevSound::SetPlayVolume(TInt);
sl@0
   178
//!				RMdaDevSound::PlayVolume()
sl@0
   179
//! @SYMAuthor			Vassili Tsvetkov
sl@0
   180
//! @SYMCreationDate		15/06/2008
sl@0
   181
//! @SYMTestCaseDesc		Play sound with default volume level and maximal volume level
sl@0
   182
//!				
sl@0
   183
//! @SYMTestActions		1. Call Open() with unit [UnitEnum]
sl@0
   184
//!				2. Call GetPlayFormat() with [default_play_format] to verify default play format
sl@0
   185
//!				3. Call NotifyPlayError() //needed because otherwise PlayData() will not really stop after Outstanding
sl@0
   186
//!				4. Call PlayData() with valid sound data from [default_file]
sl@0
   187
//!				5. Call SetPlayVolume() with max volume from [max_play_volume]
sl@0
   188
//!				6. Call NotifyPlayError() //needed because otherwise PlayData() will not really stop after Outstanding
sl@0
   189
//!				7. Call PlayData() with valid sound data from [default_file]
sl@0
   190
//!				8. Call PlayVolume(), where expected result is equal with max volume from [max_play_volume]
sl@0
   191
//!				9. Call Close()
sl@0
   192
//!
sl@0
   193
//! @SYMTestStatus		Implemented
sl@0
   194
//! @SYMTestPriority		Critical
sl@0
   195
//! @SYMTestExpectedResults	Playback finished w/o errors, set and received volume values are equal
sl@0
   196
//! @SYMTestType		CIT
sl@0
   197
	START_TEST_BLOCK	100				t_sound			\base\sound\base-bsp-sound-driver.ini
sl@0
   198
		CREATE_OBJECT	RMdaDevSound			devsound  
sl@0
   199
		COMMAND		devsound			new
sl@0
   200
		COMMAND		devsound			Open			UnitEnum
sl@0
   201
		CREATE_OBJECT	TCurrentSoundFormat		t_format		
sl@0
   202
		COMMAND		t_format			new
sl@0
   203
		COMMAND		devsound			GetPlayFormat		BSP-SOUND-DRIVER-GetPlayFormat
sl@0
   204
		//!verify default play configuration			
sl@0
   205
		COMMAND		t_format			irate_get		default_play_format
sl@0
   206
		COMMAND		t_format			iencoding_get		default_play_format
sl@0
   207
		COMMAND		t_format			ichannels_get		default_play_format
sl@0
   208
		COMMAND		t_format			ibuffer_size_get	default_play_format
sl@0
   209
		COMMAND !AsyncError=-10	devsound			NotifyPlayError
sl@0
   210
		COMMAND		devsound			PlayData		default_file
sl@0
   211
		OUTSTANDING
sl@0
   212
		COMMAND		devsound			SetPlayVolume		max_play_volume
sl@0
   213
		COMMAND		devsound			PlayData		default_file
sl@0
   214
		COMMAND !AsyncError=-10	devsound			NotifyPlayError
sl@0
   215
		OUTSTANDING
sl@0
   216
		COMMAND		devsound			PlayVolume		max_play_volume
sl@0
   217
		COMMAND		t_format			~
sl@0
   218
		COMMAND		devsound  			Close
sl@0
   219
		COMMAND		devsound  			~
sl@0
   220
	END_TEST_BLOCK
sl@0
   221
END_TESTCASE			BASE-BSP-SOUND-DRIVER-1002
sl@0
   222
sl@0
   223
START_TESTCASE 			BASE-BSP-SOUND-DRIVER-1003
sl@0
   224
//! @SYMTestCaseID		BASE-BSP-SOUND-DRIVER-1003
sl@0
   225
//! @SYMAPI			RMdaDevSound::PlayData(TRequestStatus{ref}, const TDesC8{ref});
sl@0
   226
//!				RMdaDevSound::SetPlayFormat(TCurrentSoundFormatBuf{ref});
sl@0
   227
//!				RMdaDevSound::GetPlayFormat(TCurrentSoundFormatBuf{ref})
sl@0
   228
//! @SYMAuthor			Vassili Tsvetkov
sl@0
   229
//! @SYMCreationDate		15/06/2008
sl@0
   230
//! @SYMTestCaseDesc		Play sound with default format and with some valid sound format
sl@0
   231
//!				
sl@0
   232
//! @SYMTestActions		1. Call Open() with unit [UnitEnum]
sl@0
   233
//!				2. Call GetPlayFormat() and verify from [default_play_format]
sl@0
   234
//!				3. Call NotifyPlayError() //needed because otherwise PlayData() will not really stop after Outstanding
sl@0
   235
//!				4. Call PlayData() with valid sound data from [default_file]
sl@0
   236
//!				5. Call SetPlayFormat() with unsupported format value from [unsupported_play_format] with expected error KErrNotSupported
sl@0
   237
//!				6. Call GetPlayFormat() where expected result is equal with format from [default_play_format]
sl@0
   238
//!				7. Call SetPlayFormat() with valid format value from [valid_play_format]
sl@0
   239
//!				8. Call NotifyPlayError() //needed because otherwise PlayData() will not really stop after Outstanding
sl@0
   240
//!				9. Call PlayData() with valid sound data from [valid_file]
sl@0
   241
//!				10. Call GetPlayFormat(), where expected result is equal with format from [valid_play_format]
sl@0
   242
//!				11. Call Close()
sl@0
   243
//!
sl@0
   244
//! @SYMTestStatus		Implemented
sl@0
   245
//! @SYMTestPriority		Critical
sl@0
   246
//! @SYMTestExpectedResults	Playback finished w/o errors errors, set and received playback format values are equal, setting of unsupported format
sl@0
   247
//!				raised KErrNotSupported
sl@0
   248
//! @SYMTestType		CIT
sl@0
   249
	START_TEST_BLOCK		100				t_sound			\base\sound\base-bsp-sound-driver.ini
sl@0
   250
		CREATE_OBJECT		RMdaDevSound			devsound  
sl@0
   251
		COMMAND			devsound			new
sl@0
   252
		COMMAND			devsound			Open			UnitEnum
sl@0
   253
		CREATE_OBJECT		TCurrentSoundFormat		t_format		
sl@0
   254
		COMMAND			t_format			new
sl@0
   255
		COMMAND			devsound			GetPlayFormat		BSP-SOUND-DRIVER-GetPlayFormat
sl@0
   256
		//!verify default play configuration			
sl@0
   257
		COMMAND			t_format			irate_get		default_play_format
sl@0
   258
		COMMAND			t_format			iencoding_get		default_play_format
sl@0
   259
		COMMAND			t_format			ichannels_get		default_play_format
sl@0
   260
		COMMAND			t_format			ibuffer_size_get	default_play_format
sl@0
   261
		COMMAND !AsyncError=-10	devsound			NotifyPlayError
sl@0
   262
		COMMAND			devsound			PlayData		default_file
sl@0
   263
		OUTSTANDING
sl@0
   264
		COMMAND			t_format			irate_set		unsupported_play_format
sl@0
   265
		COMMAND			t_format			iencoding_set		unsupported_play_format
sl@0
   266
		COMMAND			t_format			ichannels_set		unsupported_play_format
sl@0
   267
		COMMAND			t_format			ibuffer_size_set	unsupported_play_format
sl@0
   268
		COMMAND !Error=-5	devsound			SetPlayFormat		BSP-SOUND-DRIVER-SetPlayFormat
sl@0
   269
		COMMAND			devsound			GetPlayFormat		BSP-SOUND-DRIVER-GetPlayFormat
sl@0
   270
		COMMAND			t_format			irate_get		default_play_format	
sl@0
   271
		COMMAND			t_format			iencoding_get		default_play_format	
sl@0
   272
		COMMAND			t_format			ichannels_get		default_play_format	
sl@0
   273
		COMMAND			t_format			ibuffer_size_get	default_play_format
sl@0
   274
		COMMAND !AsyncError=-10	devsound			NotifyPlayError
sl@0
   275
		COMMAND			devsound			PlayData		valid_file
sl@0
   276
		OUTSTANDING
sl@0
   277
		COMMAND			t_format			irate_set		valid_play_format
sl@0
   278
		COMMAND			t_format			iencoding_set		valid_play_format
sl@0
   279
		COMMAND			t_format			ichannels_set		valid_play_format
sl@0
   280
		COMMAND			t_format			ibuffer_size_set	valid_play_format
sl@0
   281
		COMMAND			devsound			SetPlayFormat		BSP-SOUND-DRIVER-SetPlayFormat
sl@0
   282
		COMMAND !AsyncError=-10	devsound			NotifyPlayError
sl@0
   283
		COMMAND			devsound			PlayData		valid_file
sl@0
   284
		OUTSTANDING
sl@0
   285
		COMMAND			devsound			GetPlayFormat		BSP-SOUND-DRIVER-GetPlayFormat
sl@0
   286
		COMMAND			t_format			irate_get		valid_play_format	
sl@0
   287
		COMMAND			t_format			iencoding_get		valid_play_format	
sl@0
   288
		COMMAND			t_format			ichannels_get		valid_play_format	
sl@0
   289
		COMMAND			t_format			ibuffer_size_get	valid_play_format
sl@0
   290
		// set back default play format
sl@0
   291
		COMMAND			t_format			irate_set		default_play_format
sl@0
   292
		COMMAND			t_format			iencoding_set		default_play_format
sl@0
   293
		COMMAND			t_format			ichannels_set		default_play_format
sl@0
   294
		COMMAND			t_format			ibuffer_size_set	default_play_format
sl@0
   295
		COMMAND			devsound			SetPlayFormat		BSP-SOUND-DRIVER-SetPlayFormat
sl@0
   296
		COMMAND			t_format			~
sl@0
   297
		COMMAND			devsound  			Close
sl@0
   298
		COMMAND			devsound  			~
sl@0
   299
	END_TEST_BLOCK
sl@0
   300
END_TESTCASE			BASE-BSP-SOUND-DRIVER-1003
sl@0
   301
sl@0
   302
START_TESTCASE 			BASE-BSP-SOUND-DRIVER-1004
sl@0
   303
//! @SYMTestCaseID		BASE-BSP-SOUND-DRIVER-1004
sl@0
   304
//! @SYMAPI			RMdaDevSound::RecordData(TRequestStatus{ref}, const TDes8{ref});
sl@0
   305
//!				RMdaDevSound::SetRecordLevel(TInt);
sl@0
   306
//!				RMdaDevSound::RecordLevel()
sl@0
   307
//! @SYMAuthor			Vassili Tsvetkov
sl@0
   308
//! @SYMCreationDate		15/06/2008
sl@0
   309
//! @SYMTestCaseDesc		Record sound with default volume level and max volume level
sl@0
   310
//!				
sl@0
   311
//! @SYMTestActions		1. Call Open() with unit [UnitEnum]
sl@0
   312
//!				2. Call GetRecordFormat() and verify from [default_record_format]
sl@0
   313
//!				3. Call RecordData()
sl@0
   314
//!				4. Call SetRecordLevel() with max record volume value from [max_record_level] variable
sl@0
   315
//!				5. Call FlushRecordBuffer() //needed because otherwise RecordData() will not really stop after 
sl@0
   316
//!				6. Call RecordData()
sl@0
   317
//!				7. Call FlushRecordBuffer() //needed because otherwise operation in next step will fail with KErrInUse
sl@0
   318
//!				8. Call RecordLevel(), where expected result is equal with max record volume value from [max_record_level] variable				
sl@0
   319
//!				9. Call Close()
sl@0
   320
//!
sl@0
   321
//! @SYMTestStatus		Implemented
sl@0
   322
//! @SYMTestPriority		Critical
sl@0
   323
//! @SYMTestExpectedResults	Recording finished w/o errors, set and received volume values are equal
sl@0
   324
//! @SYMTestType		CIT
sl@0
   325
	START_TEST_BLOCK		100				t_sound			\base\sound\base-bsp-sound-driver.ini
sl@0
   326
		CREATE_OBJECT		RMdaDevSound			devsound  
sl@0
   327
		COMMAND			devsound			new
sl@0
   328
		COMMAND			devsound			Open			UnitEnum
sl@0
   329
		CREATE_OBJECT		TCurrentSoundFormat		t_format		
sl@0
   330
		COMMAND			t_format			new
sl@0
   331
		COMMAND			devsound			GetRecordFormat		BSP-SOUND-DRIVER-GetRecordFormat
sl@0
   332
		//!verify default record configuration			
sl@0
   333
		COMMAND			t_format			irate_get		default_record_format
sl@0
   334
		COMMAND			t_format			iencoding_get		default_record_format
sl@0
   335
		COMMAND			t_format			ichannels_get		default_record_format
sl@0
   336
		COMMAND			t_format			ibuffer_size_get	default_record_format
sl@0
   337
		COMMAND			devsound			RecordData		record_data_32kb
sl@0
   338
		OUTSTANDING
sl@0
   339
		COMMAND			devsound			FlushRecordBuffer
sl@0
   340
		COMMAND			devsound			SetRecordLevel		max_record_level
sl@0
   341
		COMMAND			devsound			RecordData		record_data_32kb
sl@0
   342
		OUTSTANDING
sl@0
   343
		COMMAND			devsound			FlushRecordBuffer
sl@0
   344
		COMMAND			devsound			RecordLevel		max_record_level
sl@0
   345
		COMMAND			t_format			~
sl@0
   346
		COMMAND			devsound  			Close
sl@0
   347
		COMMAND			devsound  			~
sl@0
   348
	END_TEST_BLOCK
sl@0
   349
END_TESTCASE			BASE-BSP-SOUND-DRIVER-1004
sl@0
   350
sl@0
   351
START_TESTCASE 			BASE-BSP-SOUND-DRIVER-1005
sl@0
   352
//! @SYMTestCaseID		BASE-BSP-SOUND-DRIVER-1005
sl@0
   353
//! @SYMAPI			RMdaDevSound::RecordData(TRequestStatus{ref}, const TDesC8{ref});
sl@0
   354
//!				RMdaDevSound::SetRecordFormat(TCurrentSoundFormatBuf{ref});
sl@0
   355
//!				RMdaDevSound::GetRecordFormat(TCurrentSoundFormatBuf{ref})
sl@0
   356
//! @SYMAuthor			Vassili Tsvetkov
sl@0
   357
//! @SYMCreationDate		15/06/2008
sl@0
   358
//! @SYMTestCaseDesc		Record sound with default sound format and with some other valid sound format
sl@0
   359
//!				
sl@0
   360
//! @SYMTestActions		1. Call Open() with unit [UnitEnum]
sl@0
   361
//!				2. Call GetRecordFormat() and verify from [default_record_format]
sl@0
   362
//!				3. Call RecordData()
sl@0
   363
//!				4. Call SetRecordFormat() with unsupported format value from [unsupported_record_format] with expected error KErrNotSupported
sl@0
   364
//!				5. Call GetRecordFormat() where expexted result is [default_record_format]
sl@0
   365
//!				6. Call SetRecordFormat() with valid record format value from [valid_record_format]
sl@0
   366
//!				7. Call RecordData()
sl@0
   367
//!				8. Call GetRecordFormat(), where expected result is equal with format from [valid_record_format] variable				
sl@0
   368
//!				9. Call Close()
sl@0
   369
//!
sl@0
   370
//! @SYMTestStatus		Implemented
sl@0
   371
//! @SYMTestPriority		Critical
sl@0
   372
//! @SYMTestExpectedResults	Recording finished w/o errors, set and received record format values are equal
sl@0
   373
//! @SYMTestType		CIT
sl@0
   374
	START_TEST_BLOCK		100				t_sound			\base\sound\base-bsp-sound-driver.ini
sl@0
   375
		CREATE_OBJECT		RMdaDevSound			devsound  
sl@0
   376
		COMMAND			devsound			new
sl@0
   377
		COMMAND			devsound			Open			UnitEnum
sl@0
   378
		CREATE_OBJECT		TCurrentSoundFormat		t_format		
sl@0
   379
		COMMAND			t_format			new
sl@0
   380
		COMMAND			devsound			GetRecordFormat		BSP-SOUND-DRIVER-GetRecordFormat
sl@0
   381
		//!verify default record configuration			
sl@0
   382
		COMMAND			t_format			irate_get		default_record_format
sl@0
   383
		COMMAND			t_format			iencoding_get		default_record_format
sl@0
   384
		COMMAND			t_format			ichannels_get		default_record_format
sl@0
   385
		COMMAND			t_format			ibuffer_size_get	default_record_format
sl@0
   386
		COMMAND			devsound			RecordData		record_data_32kb
sl@0
   387
		OUTSTANDING
sl@0
   388
		COMMAND			devsound			FlushRecordBuffer
sl@0
   389
		COMMAND			t_format			irate_set		unsupported_record_format
sl@0
   390
		COMMAND			t_format			iencoding_set		unsupported_record_format
sl@0
   391
		COMMAND			t_format			ichannels_set		unsupported_record_format
sl@0
   392
		COMMAND			t_format			ibuffer_size_set	unsupported_record_format
sl@0
   393
		COMMAND	!Error=-5	devsound			SetRecordFormat		BSP-SOUND-DRIVER-SetRecordFormat
sl@0
   394
		COMMAND			devsound			GetRecordFormat		BSP-SOUND-DRIVER-GetRecordFormat
sl@0
   395
		COMMAND			t_format			irate_get		default_record_format	
sl@0
   396
		COMMAND			t_format			iencoding_get		default_record_format	
sl@0
   397
		COMMAND			t_format			ichannels_get		default_record_format	
sl@0
   398
		COMMAND			t_format			ibuffer_size_get	default_record_format
sl@0
   399
		COMMAND			devsound			FlushRecordBuffer
sl@0
   400
		COMMAND			devsound			RecordData		record_data_32kb
sl@0
   401
		OUTSTANDING
sl@0
   402
		COMMAND			t_format			irate_set		valid_record_format
sl@0
   403
		COMMAND			t_format			iencoding_set		valid_record_format
sl@0
   404
		COMMAND			t_format			ichannels_set		valid_record_format
sl@0
   405
		COMMAND			t_format			ibuffer_size_set	valid_record_format
sl@0
   406
		COMMAND			devsound			FlushRecordBuffer
sl@0
   407
		COMMAND			devsound			SetRecordFormat		BSP-SOUND-DRIVER-SetRecordFormat
sl@0
   408
		COMMAND			devsound			RecordData		record_data_32kb	
sl@0
   409
		OUTSTANDING
sl@0
   410
		COMMAND			devsound			GetRecordFormat		BSP-SOUND-DRIVER-GetRecordFormat
sl@0
   411
		COMMAND			t_format			irate_get		valid_record_format
sl@0
   412
		COMMAND			t_format			iencoding_get		valid_record_format
sl@0
   413
		COMMAND			t_format			ichannels_get		valid_record_format
sl@0
   414
		COMMAND			t_format			ibuffer_size_get	valid_record_format
sl@0
   415
		// set back default record format
sl@0
   416
		COMMAND			t_format			irate_set		default_record_format
sl@0
   417
		COMMAND			t_format			iencoding_set		default_record_format
sl@0
   418
		COMMAND			t_format			ichannels_set		default_record_format
sl@0
   419
		COMMAND			t_format			ibuffer_size_set	default_record_format
sl@0
   420
		COMMAND			devsound			SetRecordFormat		BSP-SOUND-DRIVER-SetRecordFormat
sl@0
   421
		COMMAND			t_format			~
sl@0
   422
		COMMAND			devsound  			Close
sl@0
   423
		COMMAND			devsound  			~
sl@0
   424
	END_TEST_BLOCK
sl@0
   425
END_TESTCASE			BASE-BSP-SOUND-DRIVER-1005
sl@0
   426
sl@0
   427
START_TESTCASE 			BASE-BSP-SOUND-DRIVER-1006
sl@0
   428
//! @SYMTestCaseID		BASE-BSP-SOUND-DRIVER-1006
sl@0
   429
//! @SYMAPI			RMdaDevSound::PlayData(TRequestStatus{ref}, const TDesC8{ref});
sl@0
   430
//!				RMdaDevSound::SetPlayVolume(TInt);
sl@0
   431
//!				RMdaDevSound::PlayVolume()
sl@0
   432
//! @SYMAuthor			Vassili Tsvetkov
sl@0
   433
//! @SYMCreationDate		15/06/2008
sl@0
   434
//! @SYMTestCaseDesc		Play sound with volume level 25% and verify that sound level is still 25%. Set max volume level 
sl@0
   435
//!				and play again and verify that sound level is still max.
sl@0
   436
//!				
sl@0
   437
//! @SYMTestActions		1. Call Open() with unit [UnitEnum]
sl@0
   438
//!				2. Call GetPlayFormat() and verify from [default_play_format]
sl@0
   439
//!				3. Call SetPlayVolume() with 25% volume from [play_volume_quater]
sl@0
   440
//!				4. Call NotifyPlayError() //needed because otherwise PlayData() will not really stop after Outstanding
sl@0
   441
//!				5. Call PlayData() with valid sound data from [default_file]
sl@0
   442
//!				6. Call PlayVolume() where expected volume level matches [play_volume_quater]
sl@0
   443
//!				7. Call SetPlayVolume() with max volume from [max_play_volume]
sl@0
   444
//!				8. Call NotifyPlayError() //needed because otherwise PlayData() will not really stop after Outstanding
sl@0
   445
//!				9. Call PlayData() with valid sound data from [default_file]
sl@0
   446
//!				10. Call PlayVolume(), where expected result is equal with max volume from [max_play_volume]
sl@0
   447
//!				11. Restore default playback sound volume
sl@0
   448
//!				12. Call Close().
sl@0
   449
//!
sl@0
   450
//! @SYMTestStatus		Implemented
sl@0
   451
//! @SYMTestPriority		Critical
sl@0
   452
//! @SYMTestExpectedResults	Playback finished w/o errors, sound became louder
sl@0
   453
//! @SYMTestType		CIT
sl@0
   454
	START_TEST_BLOCK		100				t_sound			\base\sound\base-bsp-sound-driver.ini
sl@0
   455
		CREATE_OBJECT		RMdaDevSound			devsound  
sl@0
   456
		COMMAND			devsound			new
sl@0
   457
		COMMAND			devsound			Open			UnitEnum
sl@0
   458
		CREATE_OBJECT		TCurrentSoundFormat		t_format		
sl@0
   459
		COMMAND			t_format			new
sl@0
   460
		COMMAND			devsound			GetPlayFormat		BSP-SOUND-DRIVER-GetPlayFormat
sl@0
   461
		//!verify default play configuration			
sl@0
   462
		COMMAND			t_format			irate_get		default_play_format
sl@0
   463
		COMMAND			t_format			iencoding_get		default_play_format
sl@0
   464
		COMMAND			t_format			ichannels_get		default_play_format
sl@0
   465
		COMMAND			t_format			ibuffer_size_get	default_play_format
sl@0
   466
		COMMAND			devsound			SetPlayVolume		play_volume_quater
sl@0
   467
		COMMAND !AsyncError=-10	devsound			NotifyPlayError
sl@0
   468
		COMMAND			devsound			PlayData		default_file
sl@0
   469
		OUTSTANDING
sl@0
   470
		COMMAND			devsound			PlayVolume		play_volume_quater
sl@0
   471
		COMMAND			devsound			SetPlayVolume		max_play_volume
sl@0
   472
		COMMAND !AsyncError=-10	devsound			NotifyPlayError
sl@0
   473
		COMMAND			devsound			PlayData		default_file
sl@0
   474
		OUTSTANDING
sl@0
   475
		COMMAND			devsound			PlayVolume		max_play_volume
sl@0
   476
		//!set back default playback audio level
sl@0
   477
		COMMAND			devsound			SetPlayVolume		default_play_volume
sl@0
   478
		COMMAND			t_format			~
sl@0
   479
		COMMAND			devsound  			Close
sl@0
   480
		COMMAND			devsound  			~
sl@0
   481
	END_TEST_BLOCK
sl@0
   482
END_TESTCASE			BASE-BSP-SOUND-DRIVER-1006
sl@0
   483
sl@0
   484
START_TESTCASE 			BASE-BSP-SOUND-DRIVER-1007
sl@0
   485
//! @SYMTestCaseID		BASE-BSP-SOUND-DRIVER-1007
sl@0
   486
//! @SYMAPI			RMdaDevSound::SetRecordFormat(TCurrentSoundFormatBuf{ref});
sl@0
   487
//!				RMdaDevSound::SetPlayFormat(TCurrentSoundFormatBuf{ref});
sl@0
   488
//!				RMdaDevSound::GetRecordFormat(TCurrentSoundFormatBuf{ref});
sl@0
   489
//!				RMdaDevSound::GetPlayFormat(TCurrentSoundFormatBuf{ref})
sl@0
   490
//! @SYMAuthor			Vassili Tsvetkov
sl@0
   491
//! @SYMCreationDate		15/06/2008
sl@0
   492
//! @SYMTestCaseDesc		Set record format to valid record format. Set play format to some other valid play format 
sl@0
   493
//!				(other than just set record format. Sampling rate should be different). 
sl@0
   494
//!				
sl@0
   495
//!				
sl@0
   496
//! @SYMTestActions		1. Call Open() with unit [UnitEnum]
sl@0
   497
//!				2. Call GetPlayFormat() and verify from [default_play_format]
sl@0
   498
//!				3. Call GetRecordFormat() and verify from [default_record_format]
sl@0
   499
//!				4. Call SetRecordFormat with [valid_record_format]
sl@0
   500
//!				5. Call GetRecordFormat() and verify from [valid_record_format]
sl@0
   501
//!				6. Call SetPlayFormat with [another_valid_play_format]
sl@0
   502
//!				7. Call GetPlayFormat() and verify from [another_valid_play_format]
sl@0
   503
//!				8. Call SetRecordFormat with [default_record_format]
sl@0
   504
//!				9. Call SetPlayFormat with [default_play_format]
sl@0
   505
//!				10. Call Close().
sl@0
   506
//!
sl@0
   507
//! @SYMTestStatus		Implemented
sl@0
   508
//! @SYMTestPriority		Critical
sl@0
   509
//! @SYMTestExpectedResults	SetPlayFormat in step 6 returns KErrAccessDenied 
sl@0
   510
//! @SYMTestType		CIT
sl@0
   511
	START_TEST_BLOCK		100				t_sound			\base\sound\base-bsp-sound-driver.ini
sl@0
   512
		CREATE_OBJECT		RMdaDevSound			devsound  
sl@0
   513
		COMMAND			devsound			new
sl@0
   514
		COMMAND			devsound			Open			UnitEnum
sl@0
   515
		CREATE_OBJECT		TCurrentSoundFormat		t_format		
sl@0
   516
		COMMAND			t_format			new
sl@0
   517
		COMMAND			devsound			GetPlayFormat		BSP-SOUND-DRIVER-GetPlayFormat
sl@0
   518
		//!verify default play configuration			
sl@0
   519
		COMMAND			t_format			irate_get		default_play_format
sl@0
   520
		COMMAND			t_format			iencoding_get		default_play_format
sl@0
   521
		COMMAND			t_format			ichannels_get		default_play_format
sl@0
   522
		COMMAND			t_format			ibuffer_size_get	default_play_format
sl@0
   523
		COMMAND			devsound			GetRecordFormat		BSP-SOUND-DRIVER-GetRecordFormat
sl@0
   524
		//!verify default record configuration			
sl@0
   525
		COMMAND			t_format			irate_get		default_record_format
sl@0
   526
		COMMAND			t_format			iencoding_get		default_record_format
sl@0
   527
		COMMAND			t_format			ichannels_get		default_record_format
sl@0
   528
		COMMAND			t_format			ibuffer_size_get	default_record_format
sl@0
   529
		//set some valid record format
sl@0
   530
		COMMAND			t_format			irate_set		valid_record_format
sl@0
   531
		COMMAND			t_format			iencoding_set		valid_record_format
sl@0
   532
		COMMAND			t_format			ichannels_set		valid_record_format
sl@0
   533
		COMMAND			t_format			ibuffer_size_set	valid_record_format
sl@0
   534
		COMMAND			devsound			SetRecordFormat		BSP-SOUND-DRIVER-SetRecordFormat
sl@0
   535
		COMMAND			devsound			GetRecordFormat		BSP-SOUND-DRIVER-GetRecordFormat
sl@0
   536
		//!verify valid record configuration			
sl@0
   537
		COMMAND			t_format			irate_get		valid_record_format
sl@0
   538
		COMMAND			t_format			iencoding_get		valid_record_format
sl@0
   539
		COMMAND			t_format			ichannels_get		valid_record_format
sl@0
   540
		COMMAND			t_format			ibuffer_size_get	valid_record_format
sl@0
   541
		//set some valid play format
sl@0
   542
		COMMAND			t_format			irate_set		another_valid_play_format
sl@0
   543
		COMMAND			t_format			iencoding_set		another_valid_play_format
sl@0
   544
		COMMAND			t_format			ichannels_set		another_valid_play_format
sl@0
   545
		COMMAND			t_format			ibuffer_size_set	another_valid_play_format
sl@0
   546
		COMMAND	!Error=-21	devsound			SetPlayFormat		BSP-SOUND-DRIVER-SetPlayFormat
sl@0
   547
		COMMAND			devsound			GetPlayFormat		BSP-SOUND-DRIVER-GetPlayFormat
sl@0
   548
		//!verify valid play configuration			
sl@0
   549
		COMMAND			t_format			irate_get		another_valid_play_format
sl@0
   550
		COMMAND			t_format			iencoding_get		another_valid_play_format
sl@0
   551
		COMMAND			t_format			ichannels_get		another_valid_play_format
sl@0
   552
		COMMAND			t_format			ibuffer_size_get	another_valid_play_format
sl@0
   553
		// set back default record format
sl@0
   554
		COMMAND			t_format			irate_set		default_record_format
sl@0
   555
		COMMAND			t_format			iencoding_set		default_record_format
sl@0
   556
		COMMAND			t_format			ichannels_set		default_record_format
sl@0
   557
		COMMAND			t_format			ibuffer_size_set	default_record_format
sl@0
   558
		COMMAND			devsound			SetRecordFormat		BSP-SOUND-DRIVER-SetRecordFormat
sl@0
   559
		// set back default play format
sl@0
   560
		COMMAND			t_format			irate_set		default_play_format
sl@0
   561
		COMMAND			t_format			iencoding_set		default_play_format
sl@0
   562
		COMMAND			t_format			ichannels_set		default_play_format
sl@0
   563
		COMMAND			t_format			ibuffer_size_set	default_play_format
sl@0
   564
		COMMAND			devsound			SetPlayFormat		BSP-SOUND-DRIVER-SetPlayFormat
sl@0
   565
		COMMAND			t_format			~
sl@0
   566
		COMMAND			devsound  			Close
sl@0
   567
		COMMAND			devsound  			~
sl@0
   568
	END_TEST_BLOCK
sl@0
   569
END_TESTCASE			BASE-BSP-SOUND-DRIVER-1007
sl@0
   570
sl@0
   571
START_TESTCASE 			BASE-BSP-SOUND-DRIVER-1008
sl@0
   572
//! @SYMTestCaseID		BASE-BSP-SOUND-DRIVER-1008
sl@0
   573
//! @SYMAPI			RMdaDevSound::SetRecordFormat(TCurrentSoundFormatBuf{ref});
sl@0
   574
//!				RMdaDevSound::SetPlayFormat(TCurrentSoundFormatBuf{ref});
sl@0
   575
//!				RMdaDevSound::GetRecordFormat(TCurrentSoundFormatBuf{ref});
sl@0
   576
//!				RMdaDevSound::GetPlayFormat(TCurrentSoundFormatBuf{ref})
sl@0
   577
//! @SYMAuthor			Vassili Tsvetkov
sl@0
   578
//! @SYMCreationDate		15/06/2008
sl@0
   579
//! @SYMTestCaseDesc		Set play format to valid record format. Set record format to some other valid play format 
sl@0
   580
//!				(other than just set play format. Sampling rate should be different). 
sl@0
   581
//!				
sl@0
   582
//!				
sl@0
   583
//! @SYMTestActions		1. Call Open() with unit [UnitEnum]
sl@0
   584
//!				2. Call GetPlayFormat() and verify from [default_play_format]
sl@0
   585
//!				3. Call GetRecordFormat() and verify from [default_record_format]
sl@0
   586
//!				4. Call SetPlayFormat with [another_valid_play_format]
sl@0
   587
//!				5. Call GetPlayFormat() and verify from [another_valid_play_format]
sl@0
   588
//!				6. Call SetRecordFormat with [valid_record_format]
sl@0
   589
//!				7. Call GetRecordFormat() and verify from [valid_record_format]
sl@0
   590
//!				8. Call SetRecordFormat with [default_record_format]
sl@0
   591
//!				9. Call SetPlayFormat with [default_play_format]
sl@0
   592
//!				10. Call Close().
sl@0
   593
//!
sl@0
   594
//! @SYMTestStatus		Implemented
sl@0
   595
//! @SYMTestPriority		Critical
sl@0
   596
//! @SYMTestExpectedResults	SetPlayFormat in step 6 returns KErrAccessDenied 
sl@0
   597
//! @SYMTestType		CIT
sl@0
   598
	START_TEST_BLOCK		100				t_sound			\base\sound\base-bsp-sound-driver.ini
sl@0
   599
		CREATE_OBJECT		RMdaDevSound			devsound  
sl@0
   600
		COMMAND			devsound			new
sl@0
   601
		COMMAND			devsound			Open			UnitEnum
sl@0
   602
		CREATE_OBJECT		TCurrentSoundFormat		t_format		
sl@0
   603
		COMMAND			t_format			new
sl@0
   604
		COMMAND			devsound			GetPlayFormat		BSP-SOUND-DRIVER-GetPlayFormat
sl@0
   605
		//!verify default play configuration			
sl@0
   606
		COMMAND			t_format			irate_get		default_play_format
sl@0
   607
		COMMAND			t_format			iencoding_get		default_play_format
sl@0
   608
		COMMAND			t_format			ichannels_get		default_play_format
sl@0
   609
		COMMAND			t_format			ibuffer_size_get	default_play_format
sl@0
   610
		COMMAND			devsound			GetRecordFormat		BSP-SOUND-DRIVER-GetRecordFormat
sl@0
   611
		//!verify default record configuration			
sl@0
   612
		COMMAND			t_format			irate_get		default_record_format
sl@0
   613
		COMMAND			t_format			iencoding_get		default_record_format
sl@0
   614
		COMMAND			t_format			ichannels_get		default_record_format
sl@0
   615
		COMMAND			t_format			ibuffer_size_get	default_record_format
sl@0
   616
		//set some valid Play format
sl@0
   617
		COMMAND			t_format			irate_set		another_valid_play_format
sl@0
   618
		COMMAND			t_format			iencoding_set		another_valid_play_format
sl@0
   619
		COMMAND			t_format			ichannels_set		another_valid_play_format
sl@0
   620
		COMMAND			t_format			ibuffer_size_set	another_valid_play_format
sl@0
   621
		COMMAND			devsound			SetPlayFormat		BSP-SOUND-DRIVER-SetPlayFormat
sl@0
   622
		COMMAND			devsound			GetPlayFormat		BSP-SOUND-DRIVER-GetPlayFormat
sl@0
   623
		//!verify valid play configuration			
sl@0
   624
		COMMAND			t_format			irate_get		another_valid_play_format
sl@0
   625
		COMMAND			t_format			iencoding_get		another_valid_play_format
sl@0
   626
		COMMAND			t_format			ichannels_get		another_valid_play_format
sl@0
   627
		COMMAND			t_format			ibuffer_size_get	another_valid_play_format
sl@0
   628
		//set some valid record format
sl@0
   629
		COMMAND			t_format			irate_set		valid_record_format
sl@0
   630
		COMMAND			t_format			iencoding_set		valid_record_format
sl@0
   631
		COMMAND			t_format			ichannels_set		valid_record_format
sl@0
   632
		COMMAND			t_format			ibuffer_size_set	valid_record_format
sl@0
   633
		COMMAND	!Error=-21	devsound			SetRecordFormat		BSP-SOUND-DRIVER-SetRecordFormat
sl@0
   634
		COMMAND			devsound			GetRecordFormat		BSP-SOUND-DRIVER-GetRecordFormat
sl@0
   635
		//!verify valid record configuration			
sl@0
   636
		COMMAND			t_format			irate_get		valid_record_format
sl@0
   637
		COMMAND			t_format			iencoding_get		valid_record_format
sl@0
   638
		COMMAND			t_format			ichannels_get		valid_record_format
sl@0
   639
		COMMAND			t_format			ibuffer_size_get	valid_record_format
sl@0
   640
		// set back default record format
sl@0
   641
		COMMAND			t_format			irate_set		default_record_format
sl@0
   642
		COMMAND			t_format			iencoding_set		default_record_format
sl@0
   643
		COMMAND			t_format			ichannels_set		default_record_format
sl@0
   644
		COMMAND			t_format			ibuffer_size_set	default_record_format
sl@0
   645
		COMMAND			devsound			SetRecordFormat		BSP-SOUND-DRIVER-SetRecordFormat
sl@0
   646
		// set back default play format
sl@0
   647
		COMMAND			t_format			irate_set		default_play_format
sl@0
   648
		COMMAND			t_format			iencoding_set		default_play_format
sl@0
   649
		COMMAND			t_format			ichannels_set		default_play_format
sl@0
   650
		COMMAND			t_format			ibuffer_size_set	default_play_format
sl@0
   651
		COMMAND			devsound			SetPlayFormat		BSP-SOUND-DRIVER-SetPlayFormat
sl@0
   652
		COMMAND			t_format			~
sl@0
   653
		COMMAND			devsound  			Close
sl@0
   654
		COMMAND			devsound  			~
sl@0
   655
	END_TEST_BLOCK
sl@0
   656
END_TESTCASE			BASE-BSP-SOUND-DRIVER-1008
sl@0
   657
sl@0
   658
///////////////////////////////////////////
sl@0
   659
// Playback functionality
sl@0
   660
///////////////////////////////////////////
sl@0
   661
sl@0
   662
START_TESTCASE 			BASE-BSP-SOUND-DRIVER-2001
sl@0
   663
//! @SYMTestCaseID		BASE-BSP-SOUND-DRIVER-2001
sl@0
   664
//! @SYMAPI			RMdaDevSound::PlayData(TRequestStatus{ref}, const TDesC8{ref});
sl@0
   665
//!				RMdaDevSound::CancelPlayData()
sl@0
   666
//! @SYMAuthor			Vassili Tsvetkov
sl@0
   667
//! @SYMCreationDate		15/06/2008
sl@0
   668
//! @SYMTestCaseDesc		Play sound, then cancel playing and verify playback status
sl@0
   669
//!				
sl@0
   670
//! @SYMTestActions		1. Call Open() with unit [UnitEnum]
sl@0
   671
//!				2. Call GetPlayFormat() and verify from [default_play_format]
sl@0
   672
//!				3. Call PlayData() with valid sound data from [default_file_cancel]
sl@0
   673
//!				4. Call CancelPlayData()
sl@0
   674
//!				5. Call Close()
sl@0
   675
//!
sl@0
   676
//! @SYMTestStatus		Implemented
sl@0
   677
//! @SYMTestPriority		Critical
sl@0
   678
//! @SYMTestExpectedResults	Playback canceled with KErrCancel
sl@0
   679
//! @SYMTestType		CIT
sl@0
   680
	START_TEST_BLOCK		100				t_sound			\base\sound\base-bsp-sound-driver.ini
sl@0
   681
		CREATE_OBJECT		RMdaDevSound			devsound  
sl@0
   682
		COMMAND			devsound			new
sl@0
   683
		COMMAND			devsound			Open			UnitEnum
sl@0
   684
		CREATE_OBJECT		TCurrentSoundFormat		t_format		
sl@0
   685
		COMMAND			t_format			new
sl@0
   686
		COMMAND			devsound			GetPlayFormat		BSP-SOUND-DRIVER-GetPlayFormat
sl@0
   687
		//!verify default play configuration			
sl@0
   688
		COMMAND			t_format			irate_get		default_play_format
sl@0
   689
		COMMAND			t_format			iencoding_get		default_play_format
sl@0
   690
		COMMAND			t_format			ichannels_get		default_play_format
sl@0
   691
		COMMAND			t_format			ibuffer_size_get	default_play_format
sl@0
   692
		COMMAND !AsyncError=-3	devsound			PlayData		default_file_cancel
sl@0
   693
		OUTSTANDING		
sl@0
   694
		COMMAND			t_format  			~
sl@0
   695
		COMMAND			devsound  			Close
sl@0
   696
		COMMAND			devsound  			~
sl@0
   697
	END_TEST_BLOCK
sl@0
   698
END_TESTCASE			BASE-BSP-SOUND-DRIVER-2001
sl@0
   699
sl@0
   700
START_TESTCASE 			BASE-BSP-SOUND-DRIVER-2002
sl@0
   701
//! @SYMTestCaseID		BASE-BSP-SOUND-DRIVER-2002
sl@0
   702
//! @SYMAPI			RMdaDevSound::PlayData(TRequestStatus{ref}, const TDesC8{ref});
sl@0
   703
//!				RMdaDevSound::PausePlayBuffer();
sl@0
   704
//!				RMdaDevSound::ResumePlaying()
sl@0
   705
//! @SYMAuthor			Vassili Tsvetkov
sl@0
   706
//! @SYMCreationDate		15/06/2008
sl@0
   707
//! @SYMTestCaseDesc		Play sound, pause and resume playback.
sl@0
   708
//!				
sl@0
   709
//! @SYMTestActions		1. Call Open() with unit [UnitEnum]
sl@0
   710
//!				2. Call GetPlayFormat() and verify from [default_play_format]
sl@0
   711
//!				3. Call PlayData() with valid sound data from [default_file]
sl@0
   712
//!				4. Call PausePlayBuffer()
sl@0
   713
//!				5. Resume playback with ResumePlaying()
sl@0
   714
//!				7. Call Close()
sl@0
   715
//!
sl@0
   716
//! @SYMTestStatus		Implemented
sl@0
   717
//! @SYMTestPriority		Critical
sl@0
   718
//! @SYMTestExpectedResults	Playback paused, resumed and finished w/o errors
sl@0
   719
//! @SYMTestType		CIT
sl@0
   720
	START_TEST_BLOCK		100				t_sound			\base\sound\base-bsp-sound-driver.ini
sl@0
   721
		CREATE_OBJECT		RMdaDevSound			devsound  
sl@0
   722
		COMMAND			devsound			new
sl@0
   723
		COMMAND			devsound			Open			UnitEnum
sl@0
   724
		CREATE_OBJECT		TCurrentSoundFormat		t_format		
sl@0
   725
		COMMAND			t_format			new
sl@0
   726
		COMMAND			devsound			GetPlayFormat		BSP-SOUND-DRIVER-GetPlayFormat
sl@0
   727
		//!verify default play configuration			
sl@0
   728
		COMMAND			t_format			irate_get		default_play_format
sl@0
   729
		COMMAND			t_format			iencoding_get		default_play_format
sl@0
   730
		COMMAND			t_format			ichannels_get		default_play_format
sl@0
   731
		COMMAND			t_format			ibuffer_size_get	default_play_format
sl@0
   732
		COMMAND			devsound			PlayData		default_file
sl@0
   733
		COMMAND			devsound			PausePlayBuffer
sl@0
   734
		COMMAND			devsound			ResumePlaying		
sl@0
   735
		OUTSTANDING	
sl@0
   736
		COMMAND			t_format  			~
sl@0
   737
		COMMAND			devsound  			Close
sl@0
   738
		COMMAND			devsound  			~
sl@0
   739
	END_TEST_BLOCK
sl@0
   740
END_TESTCASE			BASE-BSP-SOUND-DRIVER-2002
sl@0
   741
sl@0
   742
START_TESTCASE 			BASE-BSP-SOUND-DRIVER-2003
sl@0
   743
//! @SYMTestCaseID		BASE-BSP-SOUND-DRIVER-2003
sl@0
   744
//! @SYMAPI			RMdaDevSound::PlayData(TRequestStatus{ref}, const TDesC8{ref});
sl@0
   745
//!				RMdaDevSound::PausePlayBuffer();
sl@0
   746
//!				RMdaDevSound::ResumePlaying()
sl@0
   747
//! @SYMAuthor			Vassili Tsvetkov
sl@0
   748
//! @SYMCreationDate		15/06/2008
sl@0
   749
//! @SYMTestCaseDesc		Play sound, pause and resume playback few times
sl@0
   750
//!				
sl@0
   751
//! @SYMTestActions		1. Call Open() with unit [UnitEnum]
sl@0
   752
//!				2. Call GetPlayFormat() and verify from [default_play_format]
sl@0
   753
//!				3. Call PlayData() with valid sound data from [default_file]
sl@0
   754
//!				4. Call PausePlayBuffer()
sl@0
   755
//!				5. Resume playback with ResumePlaying()
sl@0
   756
//!				6. Call PausePlayBuffer()
sl@0
   757
//!				7. Resume playback with ResumePlaying()
sl@0
   758
//!				8. Call PausePlayBuffer()
sl@0
   759
//!				9. Resume playback with ResumePlaying()	
sl@0
   760
//!				10. Call Close()
sl@0
   761
//!
sl@0
   762
//! @SYMTestStatus		Implemented
sl@0
   763
//! @SYMTestPriority		Critical
sl@0
   764
//! @SYMTestExpectedResults	Playback paused, resumed and finished w/o errors
sl@0
   765
//! @SYMTestType		CIT
sl@0
   766
	START_TEST_BLOCK		100				t_sound			\base\sound\base-bsp-sound-driver.ini
sl@0
   767
		CREATE_OBJECT		RMdaDevSound			devsound  
sl@0
   768
		COMMAND			devsound			new
sl@0
   769
		COMMAND			devsound			Open			UnitEnum
sl@0
   770
		CREATE_OBJECT		TCurrentSoundFormat		t_format		
sl@0
   771
		COMMAND			t_format			new
sl@0
   772
		COMMAND			devsound			GetPlayFormat		BSP-SOUND-DRIVER-GetPlayFormat
sl@0
   773
		//!verify default play configuration			
sl@0
   774
		COMMAND			t_format			irate_get		default_play_format
sl@0
   775
		COMMAND			t_format			iencoding_get		default_play_format
sl@0
   776
		COMMAND			t_format			ichannels_get		default_play_format
sl@0
   777
		COMMAND			t_format			ibuffer_size_get	default_play_format
sl@0
   778
		COMMAND			devsound			PlayData		default_file
sl@0
   779
		COMMAND			devsound			PausePlayBuffer
sl@0
   780
		COMMAND			devsound			ResumePlaying		
sl@0
   781
		COMMAND			devsound			PausePlayBuffer
sl@0
   782
		COMMAND			devsound			ResumePlaying		
sl@0
   783
		COMMAND			devsound			PausePlayBuffer
sl@0
   784
		COMMAND			devsound			ResumePlaying		
sl@0
   785
		OUTSTANDING	
sl@0
   786
		COMMAND			t_format  			~
sl@0
   787
		COMMAND			devsound  			Close
sl@0
   788
		COMMAND			devsound  			~
sl@0
   789
	END_TEST_BLOCK
sl@0
   790
END_TESTCASE			BASE-BSP-SOUND-DRIVER-2003
sl@0
   791
sl@0
   792
START_TESTCASE 			BASE-BSP-SOUND-DRIVER-2004
sl@0
   793
//! @SYMTestCaseID		BASE-BSP-SOUND-DRIVER-2004
sl@0
   794
//! @SYMAPI			RMdaDevSound::NotifyPlayError(TRequestStatus{ref});
sl@0
   795
//!				RMdaDevSound::CancelNotifyPlayError()
sl@0
   796
//! @SYMAuthor			Vassili Tsvetkov
sl@0
   797
//! @SYMCreationDate		15/06/2008
sl@0
   798
//! @SYMTestCaseDesc		Execute error notification while playing sound and cancel notification monitoring
sl@0
   799
//!				
sl@0
   800
//! @SYMTestActions		1. Call Open() with unit [UnitEnum]
sl@0
   801
//!				2. Call GetPlayFormat() and verify from [default_play_format]
sl@0
   802
//!				3. Call NotifyPlayError() and starts waiting for a notification on the background
sl@0
   803
//!				4. Call PlayData() with valid sound data from [default_file]
sl@0
   804
//!				5. Call CancelNotifyPlayError()
sl@0
   805
//!				6. Call Close()
sl@0
   806
//!
sl@0
   807
//! @SYMTestStatus		Implemented
sl@0
   808
//! @SYMTestPriority		Critical
sl@0
   809
//! @SYMTestExpectedResults	Notification monitoring canceled with KErrCancel status
sl@0
   810
//! @SYMTestType		CIT
sl@0
   811
	START_TEST_BLOCK		100				t_sound			\base\sound\base-bsp-sound-driver.ini
sl@0
   812
		CREATE_OBJECT		RMdaDevSound			devsound  
sl@0
   813
		COMMAND			devsound			new
sl@0
   814
		COMMAND			devsound			Open			UnitEnum
sl@0
   815
		CREATE_OBJECT		TCurrentSoundFormat		t_format		
sl@0
   816
		COMMAND			t_format			new
sl@0
   817
		COMMAND			devsound			GetPlayFormat		BSP-SOUND-DRIVER-GetPlayFormat
sl@0
   818
		//!verify default play configuration			
sl@0
   819
		COMMAND			t_format			irate_get		default_play_format
sl@0
   820
		COMMAND			t_format			iencoding_get		default_play_format
sl@0
   821
		COMMAND			t_format			ichannels_get		default_play_format
sl@0
   822
		COMMAND			t_format			ibuffer_size_get	default_play_format
sl@0
   823
		COMMAND !AsyncError=-3	devsound			NotifyPlayError
sl@0
   824
		COMMAND			devsound			PlayData		default_file
sl@0
   825
		COMMAND			devsound			CancelNotifyPlayError
sl@0
   826
		OUTSTANDING
sl@0
   827
		COMMAND			t_format  			~	
sl@0
   828
		COMMAND			devsound  			Close
sl@0
   829
		COMMAND			devsound  			~
sl@0
   830
	END_TEST_BLOCK
sl@0
   831
END_TESTCASE			BASE-BSP-SOUND-DRIVER-2004
sl@0
   832
sl@0
   833
START_TESTCASE 			BASE-BSP-SOUND-DRIVER-2005
sl@0
   834
//! @SYMTestCaseID		BASE-BSP-SOUND-DRIVER-2005
sl@0
   835
//! @SYMAPI			RMdaDevSound::NotifyPlayError(TRequestStatus{ref});
sl@0
   836
//!				RMdaDevSound::CancelNotifyPlayError()
sl@0
   837
//! @SYMAuthor			Vassili Tsvetkov
sl@0
   838
//! @SYMCreationDate		15/06/2008
sl@0
   839
//! @SYMTestCaseDesc		Execute error notification without sound playing and cancel notification monitoring
sl@0
   840
//!				
sl@0
   841
//! @SYMTestActions		1. Call Open() with unit [UnitEnum]
sl@0
   842
//!				2. Call NotifyPlayError() and starts waiting for a notification on the background
sl@0
   843
//!				3. Call CancelNotifyPlayError()
sl@0
   844
//!				4. Call Close()
sl@0
   845
//!
sl@0
   846
//! @SYMTestStatus		Implemented
sl@0
   847
//! @SYMTestPriority		Critical
sl@0
   848
//! @SYMTestExpectedResults	Notification monitoring canceled with KErrCancel status
sl@0
   849
//! @SYMTestType		CIT
sl@0
   850
	START_TEST_BLOCK		100				t_sound			\base\sound\base-bsp-sound-driver.ini
sl@0
   851
		CREATE_OBJECT		RMdaDevSound			devsound  
sl@0
   852
		COMMAND			devsound			new
sl@0
   853
		COMMAND			devsound			Open			UnitEnum
sl@0
   854
		COMMAND !AsyncError=-3	devsound			NotifyPlayError
sl@0
   855
		COMMAND			devsound			CancelNotifyPlayError
sl@0
   856
		OUTSTANDING			
sl@0
   857
		COMMAND			devsound  			Close
sl@0
   858
		COMMAND			devsound  			~
sl@0
   859
	END_TEST_BLOCK
sl@0
   860
END_TESTCASE			BASE-BSP-SOUND-DRIVER-2005
sl@0
   861
sl@0
   862
START_TESTCASE 			BASE-BSP-SOUND-DRIVER-2006
sl@0
   863
//! @SYMTestCaseID		BASE-BSP-SOUND-DRIVER-2006
sl@0
   864
//! @SYMAPI			RMdaDevSound::NotifyPlayError(TRequestStatus{ref})
sl@0
   865
//! @SYMAuthor			Vassili Tsvetkov
sl@0
   866
//! @SYMCreationDate		15/06/2008
sl@0
   867
//! @SYMTestCaseDesc		Execute error notification and catch KErrUnderflow message when	playing zero-filled buffer
sl@0
   868
//!				
sl@0
   869
//! @SYMTestActions		1. Call Open() with unit [UnitEnum]
sl@0
   870
//!				2. Call GetPlayFormat() and verify from [default_play_format]
sl@0
   871
//!				3. Call NotifyPlayError() and starts waiting for a notification on the background
sl@0
   872
//!				4. Call PlayData() with zero-filled 32kb data
sl@0
   873
//!				5. Call Close()
sl@0
   874
//!
sl@0
   875
//! @SYMTestStatus		Implemented
sl@0
   876
//! @SYMTestPriority		Critical
sl@0
   877
//! @SYMTestExpectedResults	Notification monitoring catched KErrUnderflow error and also play Playdata catches KErrNone
sl@0
   878
//! @SYMTestType		CIT
sl@0
   879
	START_TEST_BLOCK		100				t_sound			\base\sound\base-bsp-sound-driver.ini
sl@0
   880
		CREATE_OBJECT		RMdaDevSound			devsound  
sl@0
   881
		COMMAND			devsound			new
sl@0
   882
		COMMAND			devsound			Open			UnitEnum
sl@0
   883
		CREATE_OBJECT		TCurrentSoundFormat		t_format		
sl@0
   884
		COMMAND			t_format			new
sl@0
   885
		COMMAND			devsound			GetPlayFormat		BSP-SOUND-DRIVER-GetPlayFormat
sl@0
   886
		//!verify default play configuration			
sl@0
   887
		COMMAND			t_format			irate_get		default_play_format
sl@0
   888
		COMMAND			t_format			iencoding_get		default_play_format
sl@0
   889
		COMMAND			t_format			ichannels_get		default_play_format
sl@0
   890
		COMMAND			t_format			ibuffer_size_get	default_play_format
sl@0
   891
		COMMAND			devsound			PlayData		zero_filled_32kb.raw
sl@0
   892
		OUTSTANDING	
sl@0
   893
		COMMAND			t_format  			~
sl@0
   894
		COMMAND			devsound  			Close
sl@0
   895
		COMMAND			devsound  			~
sl@0
   896
	END_TEST_BLOCK
sl@0
   897
END_TESTCASE			BASE-BSP-SOUND-DRIVER-2006
sl@0
   898
sl@0
   899
START_TESTCASE 			BASE-BSP-SOUND-DRIVER-2007
sl@0
   900
//! @SYMTestCaseID		BASE-BSP-SOUND-DRIVER-2007
sl@0
   901
//! @SYMAPI			RMdaDevSound::FlushPlayBuffer()
sl@0
   902
//! @SYMAuthor			Vassili Tsvetkov
sl@0
   903
//! @SYMCreationDate		15/06/2008
sl@0
   904
//! @SYMTestCaseDesc		Execute playback and flush sound buffer to stop playback
sl@0
   905
//!				
sl@0
   906
//! @SYMTestActions		1. Call Open() with unit [UnitEnum]
sl@0
   907
//!				2. Call GetPlayFormat() and verify from [default_play_format]
sl@0
   908
//!				3. Call PlayData() with valid sound data from [default_file_flush]
sl@0
   909
//!				4. Call FlushPlayBuffer()
sl@0
   910
//!				5. Call Close()
sl@0
   911
//!
sl@0
   912
//! @SYMTestStatus		Implemented
sl@0
   913
//! @SYMTestPriority		Critical
sl@0
   914
//! @SYMTestExpectedResults	Playback canceled with KErrCancel
sl@0
   915
//! @SYMTestType		CIT
sl@0
   916
	START_TEST_BLOCK		100				t_sound			\base\sound\base-bsp-sound-driver.ini
sl@0
   917
		CREATE_OBJECT		RMdaDevSound			devsound  
sl@0
   918
		COMMAND			devsound			new
sl@0
   919
		COMMAND			devsound			Open			UnitEnum
sl@0
   920
		CREATE_OBJECT		TCurrentSoundFormat		t_format		
sl@0
   921
		COMMAND			t_format			new
sl@0
   922
		COMMAND			devsound			GetPlayFormat		BSP-SOUND-DRIVER-GetPlayFormat
sl@0
   923
		//!verify default play configuration			
sl@0
   924
		COMMAND			t_format			irate_get		default_play_format
sl@0
   925
		COMMAND			t_format			iencoding_get		default_play_format
sl@0
   926
		COMMAND			t_format			ichannels_get		default_play_format
sl@0
   927
		COMMAND			t_format			ibuffer_size_get	default_play_format
sl@0
   928
		COMMAND	!AsyncError=-3	devsound			PlayData		default_file_flush
sl@0
   929
		OUTSTANDING		
sl@0
   930
		COMMAND			t_format  			~	
sl@0
   931
		COMMAND			devsound  			Close
sl@0
   932
		COMMAND			devsound  			~
sl@0
   933
	END_TEST_BLOCK
sl@0
   934
END_TESTCASE			BASE-BSP-SOUND-DRIVER-2007
sl@0
   935
sl@0
   936
START_TESTCASE 			BASE-BSP-SOUND-DRIVER-2008
sl@0
   937
//! @SYMTestCaseID		BASE-BSP-SOUND-DRIVER-2008
sl@0
   938
//! @SYMAPI			RMdaDevSound::ResetBytesPlayed();
sl@0
   939
//!				RMdaDevSound::BytesPlayed())
sl@0
   940
//! @SYMAuthor			Vassili Tsvetkov
sl@0
   941
//! @SYMCreationDate		15/06/2008
sl@0
   942
//! @SYMTestCaseDesc		Count and verify bytes played before and after playback
sl@0
   943
//!				
sl@0
   944
//! @SYMTestActions		1. Call Open() with unit [UnitEnum]
sl@0
   945
//!				2. Call GetPlayFormat() and verify from [default_play_format]
sl@0
   946
//!				3. Call BytesPlayed(), expected value 0
sl@0
   947
//!				4. Call ResetBytesPlayed()
sl@0
   948
//!				5. Call BytesPlayed(), expected value 0
sl@0
   949
//!				6. Call NotifyPlayError() //needed because otherwise PlayData() will not really stop after Outstanding
sl@0
   950
//!				7. Call PlayData() with zero-filled 2-byte sound data
sl@0
   951
//!				8. Call FlushPlayBuffer
sl@0
   952
//!				9. Call BytesPlayed(), expected value is 2
sl@0
   953
//!				10. Call ResetBytesPlayed()
sl@0
   954
//!				11. Call BytesPlayed(), expected value 0
sl@0
   955
//!				12. Call Close()
sl@0
   956
//!
sl@0
   957
//! @SYMTestStatus		Implemented
sl@0
   958
//! @SYMTestPriority		Critical
sl@0
   959
//! @SYMTestExpectedResults	ResetBytesPlayed() resets the played bytes count and BytesPlayed() returns the number of bytes as expected
sl@0
   960
//! @SYMTestType		CIT
sl@0
   961
	START_TEST_BLOCK		100				t_sound			\base\sound\base-bsp-sound-driver.ini
sl@0
   962
		CREATE_OBJECT		RMdaDevSound			devsound  
sl@0
   963
		COMMAND			devsound			new
sl@0
   964
		COMMAND			devsound			Open			UnitEnum
sl@0
   965
		CREATE_OBJECT		TCurrentSoundFormat		t_format		
sl@0
   966
		COMMAND			t_format			new
sl@0
   967
		COMMAND			devsound			GetPlayFormat		BSP-SOUND-DRIVER-GetPlayFormat
sl@0
   968
		//!verify default play configuration			
sl@0
   969
		COMMAND			t_format			irate_get		default_play_format
sl@0
   970
		COMMAND			t_format			iencoding_get		default_play_format
sl@0
   971
		COMMAND			t_format			ichannels_get		default_play_format
sl@0
   972
		COMMAND			t_format			ibuffer_size_get	default_play_format
sl@0
   973
		COMMAND			devsound			BytesPlayed		bytes_played_expected_zero
sl@0
   974
		COMMAND			devsound			ResetBytesPlayed
sl@0
   975
		COMMAND			devsound			BytesPlayed		bytes_played_expected_zero
sl@0
   976
		COMMAND !AsyncError=-10	devsound			NotifyPlayError
sl@0
   977
		COMMAND			devsound			PlayData		zero_filled_2_bytes.raw
sl@0
   978
		OUTSTANDING
sl@0
   979
		COMMAND			devsound			FlushPlayBuffer
sl@0
   980
		COMMAND			devsound			BytesPlayed		bytes_played_expected_2_bytes
sl@0
   981
		COMMAND			devsound			ResetBytesPlayed
sl@0
   982
		COMMAND			devsound			BytesPlayed		bytes_played_expected_zero
sl@0
   983
		
sl@0
   984
		COMMAND			t_format  			~	
sl@0
   985
		COMMAND			devsound  			Close
sl@0
   986
		COMMAND			devsound  			~
sl@0
   987
	END_TEST_BLOCK
sl@0
   988
END_TESTCASE			BASE-BSP-SOUND-DRIVER-2008
sl@0
   989
sl@0
   990
///////////////////////////////////////////
sl@0
   991
// Record functionality
sl@0
   992
///////////////////////////////////////////
sl@0
   993
sl@0
   994
START_TESTCASE 			BASE-BSP-SOUND-DRIVER-3001
sl@0
   995
//! @SYMTestCaseID		BASE-BSP-SOUND-DRIVER-3001
sl@0
   996
//! @SYMAPI			RMdaDevSound::RecordData(TRequestStatus{ref}, const TDesC8{ref});
sl@0
   997
//!				RMdaDevSound::CancelRecordData()
sl@0
   998
//! @SYMAuthor			Vassili Tsvetkov
sl@0
   999
//! @SYMCreationDate		15/06/2008
sl@0
  1000
//! @SYMTestCaseDesc		Record sound and cancel recording
sl@0
  1001
//!				
sl@0
  1002
//! @SYMTestActions		1. Call Open() with unit [UnitEnum]
sl@0
  1003
//!				2. Call GetRecordFormat() and verify from [default_record_format]
sl@0
  1004
//!				3. Call RecordData() with [record_data_32kb_cancel]
sl@0
  1005
//!				4. Call CancelRecordData()
sl@0
  1006
//!				5. Call Close()
sl@0
  1007
//!
sl@0
  1008
//! @SYMTestStatus		Implemented
sl@0
  1009
//! @SYMTestPriority		Critical
sl@0
  1010
//! @SYMTestExpectedResults	Recording canceled with KErrCancel
sl@0
  1011
//! @SYMTestType		CIT
sl@0
  1012
	START_TEST_BLOCK		100				t_sound			\base\sound\base-bsp-sound-driver.ini
sl@0
  1013
		CREATE_OBJECT		RMdaDevSound			devsound  
sl@0
  1014
		COMMAND			devsound			new
sl@0
  1015
		COMMAND			devsound			Open			UnitEnum
sl@0
  1016
		CREATE_OBJECT		TCurrentSoundFormat		t_format		
sl@0
  1017
		COMMAND			t_format			new
sl@0
  1018
		COMMAND			devsound			GetRecordFormat		BSP-SOUND-DRIVER-GetRecordFormat
sl@0
  1019
		//!verify default record configuration			
sl@0
  1020
		COMMAND			t_format			irate_get		default_record_format
sl@0
  1021
		COMMAND			t_format			iencoding_get		default_record_format
sl@0
  1022
		COMMAND			t_format			ichannels_get		default_record_format
sl@0
  1023
		COMMAND			t_format			ibuffer_size_get	default_record_format
sl@0
  1024
		COMMAND	!AsyncError=-3	devsound			RecordData		record_data_32kb_cancel
sl@0
  1025
		OUTSTANDING
sl@0
  1026
		COMMAND			t_format  			~
sl@0
  1027
		COMMAND			devsound  			Close
sl@0
  1028
		COMMAND			devsound  			~
sl@0
  1029
	END_TEST_BLOCK
sl@0
  1030
END_TESTCASE			BASE-BSP-SOUND-DRIVER-3001
sl@0
  1031
sl@0
  1032
START_TESTCASE 			BASE-BSP-SOUND-DRIVER-3002
sl@0
  1033
//! @SYMTestCaseID		BASE-BSP-SOUND-DRIVER-3002
sl@0
  1034
//! @SYMAPI			RMdaDevSound::NotifyRecordError(TRequestStatus{ref});
sl@0
  1035
//!				RMdaDevSound::CancelNotifyRecordError()
sl@0
  1036
//! @SYMAuthor			Vassili Tsvetkov
sl@0
  1037
//! @SYMCreationDate		15/06/2008
sl@0
  1038
//! @SYMTestCaseDesc		Execute error notification, then record sound and cancel notification monitoring
sl@0
  1039
//!				
sl@0
  1040
//! @SYMTestActions		1. Call Open() with unit [UnitEnum]
sl@0
  1041
//!				2. Call GetRecordFormat() and verify from [default_record_format]
sl@0
  1042
//!				3. Call NotifyRecordError() and starts waiting for a notification on the background
sl@0
  1043
//!				4. Call RecordData()
sl@0
  1044
//!				5. Call CancelNotifyRecordError()
sl@0
  1045
//!				6. Call Close()
sl@0
  1046
//!
sl@0
  1047
//! @SYMTestStatus		Implemented
sl@0
  1048
//! @SYMTestPriority		Critical
sl@0
  1049
//! @SYMTestExpectedResults	Notification monitoring canceled with KErrCancel status
sl@0
  1050
//! @SYMTestType		CIT
sl@0
  1051
	START_TEST_BLOCK		100				t_sound			\base\sound\base-bsp-sound-driver.ini
sl@0
  1052
		CREATE_OBJECT		RMdaDevSound			devsound  
sl@0
  1053
		COMMAND			devsound			new
sl@0
  1054
		COMMAND			devsound			Open			UnitEnum
sl@0
  1055
		CREATE_OBJECT		TCurrentSoundFormat		t_format		
sl@0
  1056
		COMMAND			t_format			new
sl@0
  1057
		COMMAND			devsound			GetRecordFormat		BSP-SOUND-DRIVER-GetRecordFormat
sl@0
  1058
		//!verify default record configuration			
sl@0
  1059
		COMMAND			t_format			irate_get		default_record_format
sl@0
  1060
		COMMAND			t_format			iencoding_get		default_record_format
sl@0
  1061
		COMMAND			t_format			ichannels_get		default_record_format
sl@0
  1062
		COMMAND			t_format			ibuffer_size_get	default_record_format
sl@0
  1063
		COMMAND !AsyncError=-3	devsound			NotifyRecordError
sl@0
  1064
		COMMAND			devsound			RecordData		record_data_32kb
sl@0
  1065
		COMMAND			devsound			CancelNotifyRecordError
sl@0
  1066
		OUTSTANDING
sl@0
  1067
		COMMAND			t_format  			~	
sl@0
  1068
		COMMAND			devsound  			Close
sl@0
  1069
		COMMAND			devsound  			~
sl@0
  1070
	END_TEST_BLOCK
sl@0
  1071
END_TESTCASE			BASE-BSP-SOUND-DRIVER-3002
sl@0
  1072
sl@0
  1073
START_TESTCASE 			BASE-BSP-SOUND-DRIVER-3003
sl@0
  1074
//! @SYMTestCaseID		BASE-BSP-SOUND-DRIVER-3003
sl@0
  1075
//! @SYMAPI			RMdaDevSound::NotifyRecordError(TRequestStatus{ref});
sl@0
  1076
//!				RMdaDevSound::CancelNotifyRecordError()
sl@0
  1077
//! @SYMAuthor			Vassili Tsvetkov
sl@0
  1078
//! @SYMCreationDate		15/06/2008
sl@0
  1079
//! @SYMTestCaseDesc		Execute error notification and cancel notification monitoring without recording
sl@0
  1080
//!				
sl@0
  1081
//! @SYMTestActions		1. Call Open() with unit [UnitEnum]
sl@0
  1082
//!				2. Call NotifyRecordError() and starts waiting for a notification on the background
sl@0
  1083
//!				3. Call CancelNotifyRecordError()
sl@0
  1084
//!				4. Call Close()
sl@0
  1085
//!
sl@0
  1086
//! @SYMTestStatus		Implemented
sl@0
  1087
//! @SYMTestPriority		Critical
sl@0
  1088
//! @SYMTestExpectedResults	Notification monitoring canceled with KErrCancel status
sl@0
  1089
//! @SYMTestType		CIT
sl@0
  1090
	START_TEST_BLOCK		100				t_sound			\base\sound\base-bsp-sound-driver.ini
sl@0
  1091
		CREATE_OBJECT		RMdaDevSound			devsound  
sl@0
  1092
		COMMAND			devsound			new
sl@0
  1093
		COMMAND			devsound			Open			UnitEnum
sl@0
  1094
		COMMAND !AsyncError=-3	devsound			NotifyRecordError
sl@0
  1095
		COMMAND			devsound			CancelNotifyRecordError
sl@0
  1096
		OUTSTANDING	
sl@0
  1097
		COMMAND			devsound  			Close
sl@0
  1098
		COMMAND			devsound  			~
sl@0
  1099
	END_TEST_BLOCK
sl@0
  1100
END_TESTCASE			BASE-BSP-SOUND-DRIVER-3003
sl@0
  1101
sl@0
  1102
START_TESTCASE 			BASE-BSP-SOUND-DRIVER-3004
sl@0
  1103
//! @SYMTestCaseID		BASE-BSP-SOUND-DRIVER-3004
sl@0
  1104
//! @SYMAPI			RMdaDevSound::FlushRecordBuffer()
sl@0
  1105
//! @SYMAuthor			Vassili Tsvetkov
sl@0
  1106
//! @SYMCreationDate		15/06/2008
sl@0
  1107
//! @SYMTestCaseDesc		Execute recording and flush sound buffer to stop recording
sl@0
  1108
//!				
sl@0
  1109
//! @SYMTestActions		1. Call Open() with unit [UnitEnum]
sl@0
  1110
//!				2. Call GetRecordFormat() and verify from [default_record_format]
sl@0
  1111
//!				3. Call RecordData() with [record_data_32kb_flush]
sl@0
  1112
//!				4. Call FlushRecordBuffer()
sl@0
  1113
//!				5. Call Close()
sl@0
  1114
//!
sl@0
  1115
//! @SYMTestStatus		Implemented
sl@0
  1116
//! @SYMTestPriority		Critical
sl@0
  1117
//! @SYMTestExpectedResults	Recording stopped with KErrNone
sl@0
  1118
//! @SYMTestType		CIT
sl@0
  1119
	START_TEST_BLOCK		100				t_sound			\base\sound\base-bsp-sound-driver.ini
sl@0
  1120
		CREATE_OBJECT		RMdaDevSound			devsound  
sl@0
  1121
		COMMAND			devsound			new
sl@0
  1122
		COMMAND			devsound			Open			UnitEnum
sl@0
  1123
		CREATE_OBJECT		TCurrentSoundFormat		t_format		
sl@0
  1124
		COMMAND			t_format			new
sl@0
  1125
		COMMAND			devsound			GetRecordFormat		BSP-SOUND-DRIVER-GetRecordFormat
sl@0
  1126
		//!verify default record configuration			
sl@0
  1127
		COMMAND			t_format			irate_get		default_record_format
sl@0
  1128
		COMMAND			t_format			iencoding_get		default_record_format
sl@0
  1129
		COMMAND			t_format			ichannels_get		default_record_format
sl@0
  1130
		COMMAND			t_format			ibuffer_size_get	default_record_format
sl@0
  1131
		COMMAND			devsound			RecordData		record_data_32kb_flush
sl@0
  1132
		OUTSTANDING		
sl@0
  1133
		COMMAND			t_format  			~	
sl@0
  1134
		COMMAND			devsound  			Close
sl@0
  1135
		COMMAND			devsound  			~
sl@0
  1136
	END_TEST_BLOCK
sl@0
  1137
END_TESTCASE			BASE-BSP-SOUND-DRIVER-3004
sl@0
  1138
sl@0
  1139
///////////////////////////////////////////
sl@0
  1140
// Different audio types and encodings playback
sl@0
  1141
///////////////////////////////////////////
sl@0
  1142
sl@0
  1143
START_TESTCASE 			BASE-BSP-SOUND-DRIVER-4001
sl@0
  1144
//! @SYMTestCaseID		BASE-BSP-SOUND-DRIVER-4001
sl@0
  1145
//! @SYMAPI			RMdaDevSound::PlayData(TRequestStatus {ref}, TDes8 {ref})
sl@0
  1146
//! @SYMAuthor			Vassili Tsvetkov
sl@0
  1147
//! @SYMCreationDate		15/06/2008
sl@0
  1148
//! @SYMTestCaseDesc		Execute playing audio in pcm8 mono 8khz
sl@0
  1149
//!				
sl@0
  1150
//! @SYMTestActions		1. Call Open() with unit [UnitEnum]
sl@0
  1151
//!				2. Call SetPlayFormat() with [set_set_settings_pcm8_mono_8khz_32kb]
sl@0
  1152
//!				3. Call PlayData() with valid sound data from [pcm8_mono_8khz_32kb.raw]
sl@0
  1153
//!				4. Call FlushPlayBuffer
sl@0
  1154
//!				5. Call GetPlayFormat() and verify the sound found configuration
sl@0
  1155
//!				6. Restore initial sound h/w configuration
sl@0
  1156
//!				7. Call Close()
sl@0
  1157
//!
sl@0
  1158
//! @SYMTestStatus		Implemented
sl@0
  1159
//! @SYMTestPriority		Critical
sl@0
  1160
//! @SYMTestExpectedResults	Playing completes without any errors, sound format is set and verified
sl@0
  1161
//! @SYMTestType		CIT
sl@0
  1162
	START_TEST_BLOCK	100					t_sound			\base\sound\base-bsp-sound-driver.ini
sl@0
  1163
		CREATE_OBJECT	RMdaDevSound				devsound
sl@0
  1164
		COMMAND		devsound				new
sl@0
  1165
		COMMAND		devsound				Open			UnitEnum
sl@0
  1166
		CREATE_OBJECT	TCurrentSoundFormat			t_format		
sl@0
  1167
		COMMAND		t_format				new
sl@0
  1168
		COMMAND		t_format				irate_set			set_settings_pcm8_mono_8khz_32kb
sl@0
  1169
		COMMAND		t_format				ibuffer_size_set		set_settings_pcm8_mono_8khz_32kb
sl@0
  1170
		COMMAND		t_format				iencoding_set		set_settings_pcm8_mono_8khz_32kb
sl@0
  1171
		COMMAND		t_format				ichannels_set		set_settings_pcm8_mono_8khz_32kb
sl@0
  1172
		COMMAND		devsound				SetPlayFormat		BSP-SOUND-DRIVER-SetPlayFormat
sl@0
  1173
		COMMAND		devsound				PlayData		pcm8_mono_8khz_32kb.raw
sl@0
  1174
		OUTSTANDING
sl@0
  1175
		COMMAND		devsound				FlushPlayBuffer
sl@0
  1176
                COMMAND		devsound				GetPlayFormat		BSP-SOUND-DRIVER-GetPlayFormat
sl@0
  1177
		COMMAND		t_format				irate_get			set_settings_pcm8_mono_8khz_32kb_expected
sl@0
  1178
		COMMAND		t_format				iencoding_get		set_settings_pcm8_mono_8khz_32kb_expected
sl@0
  1179
		COMMAND		t_format				ichannels_get		set_settings_pcm8_mono_8khz_32kb_expected
sl@0
  1180
		COMMAND		t_format				ibuffer_size_get		set_settings_pcm8_mono_8khz_32kb_expected
sl@0
  1181
                //!set back default play configuration
sl@0
  1182
		COMMAND		t_format				irate_set			default_play_format
sl@0
  1183
		COMMAND		t_format				iencoding_set		default_play_format
sl@0
  1184
		COMMAND		t_format				ichannels_set		default_play_format
sl@0
  1185
		COMMAND		t_format				ibuffer_size_set		default_play_format
sl@0
  1186
		COMMAND		devsound				SetPlayFormat		BSP-SOUND-DRIVER-SetPlayFormat
sl@0
  1187
		COMMAND		devsound				SetPlayVolume		default_play_volume
sl@0
  1188
		COMMAND		t_format				~
sl@0
  1189
		COMMAND		devsound				Close
sl@0
  1190
		COMMAND		devsound				~
sl@0
  1191
	END_TEST_BLOCK
sl@0
  1192
END_TESTCASE			BASE-BSP-SOUND-DRIVER-4001
sl@0
  1193
sl@0
  1194
START_TESTCASE 			BASE-BSP-SOUND-DRIVER-4002
sl@0
  1195
//! @SYMTestCaseID		BASE-BSP-SOUND-DRIVER-4002
sl@0
  1196
//! @SYMAPI			RMdaDevSound::PlayData(TRequestStatus {ref}, TDes8 {ref})
sl@0
  1197
//! @SYMAuthor			Vassili Tsvetkov
sl@0
  1198
//! @SYMCreationDate		15/06/2008
sl@0
  1199
//! @SYMTestCaseDesc		Execute playing audio in pcm16 mono 8khz
sl@0
  1200
//!				
sl@0
  1201
//! @SYMTestActions		1. Call Open() with unit [UnitEnum]
sl@0
  1202
//!				2. Call SetPlayFormat() with [set_set_settings_pcm16_mono_8khz]
sl@0
  1203
//!				3. Call PlayData() with valid sound data from [pcm16_mono_8khz_32kb.raw]
sl@0
  1204
//!				4. Call FlushPlayBuffer
sl@0
  1205
//!				5. Call GetPlayFormat() and verify the sound found configuration
sl@0
  1206
//!				6. Restore initial sound h/w configuration
sl@0
  1207
//!				7. Call Close()
sl@0
  1208
//!
sl@0
  1209
//! @SYMTestStatus		Implemented
sl@0
  1210
//! @SYMTestPriority		Critical
sl@0
  1211
//! @SYMTestExpectedResults	Playing completes without any errors, sound format is set and verified
sl@0
  1212
//! @SYMTestType		CIT
sl@0
  1213
	START_TEST_BLOCK	100					t_sound			\base\sound\base-bsp-sound-driver.ini
sl@0
  1214
		CREATE_OBJECT	RMdaDevSound				devsound
sl@0
  1215
		COMMAND		devsound				new
sl@0
  1216
		COMMAND		devsound				Open			UnitEnum
sl@0
  1217
		CREATE_OBJECT	TCurrentSoundFormat			t_format		
sl@0
  1218
		COMMAND		t_format				new
sl@0
  1219
		COMMAND		t_format				irate_set			set_settings_pcm16_mono_8khz
sl@0
  1220
		COMMAND		t_format				ibuffer_size_set		set_settings_pcm16_mono_8khz
sl@0
  1221
		COMMAND		t_format				iencoding_set		set_settings_pcm16_mono_8khz
sl@0
  1222
		COMMAND		t_format				ichannels_set		set_settings_pcm16_mono_8khz
sl@0
  1223
		COMMAND		devsound				SetPlayFormat		BSP-SOUND-DRIVER-SetPlayFormat
sl@0
  1224
		COMMAND		devsound				PlayData		pcm16_mono_8khz_32kb.raw
sl@0
  1225
		OUTSTANDING
sl@0
  1226
		COMMAND		devsound				FlushPlayBuffer
sl@0
  1227
		COMMAND		devsound				GetPlayFormat		BSP-SOUND-DRIVER-GetPlayFormat
sl@0
  1228
		COMMAND		t_format				irate_get			set_settings_pcm16_mono_8khz_expected
sl@0
  1229
		COMMAND		t_format				iencoding_get		set_settings_pcm16_mono_8khz_expected
sl@0
  1230
		COMMAND		t_format				ichannels_get		set_settings_pcm16_mono_8khz_expected
sl@0
  1231
		COMMAND		t_format				ibuffer_size_get		set_settings_pcm16_mono_8khz_expected
sl@0
  1232
		//!set back default play configuration
sl@0
  1233
		COMMAND		t_format				irate_set			default_play_format
sl@0
  1234
		COMMAND		t_format				iencoding_set		default_play_format
sl@0
  1235
		COMMAND		t_format				ichannels_set		default_play_format
sl@0
  1236
		COMMAND		t_format				ibuffer_size_set		default_play_format
sl@0
  1237
		COMMAND		devsound				SetPlayFormat		BSP-SOUND-DRIVER-SetPlayFormat
sl@0
  1238
		COMMAND		devsound				SetPlayVolume		default_play_volume
sl@0
  1239
		COMMAND		t_format  				~
sl@0
  1240
		COMMAND		devsound				Close
sl@0
  1241
		COMMAND		devsound				~
sl@0
  1242
	END_TEST_BLOCK
sl@0
  1243
END_TESTCASE			BASE-BSP-SOUND-DRIVER-4002
sl@0
  1244
sl@0
  1245
sl@0
  1246
START_TESTCASE 			BASE-BSP-SOUND-DRIVER-4003
sl@0
  1247
//! @SYMTestCaseID		BASE-BSP-SOUND-DRIVER-4003
sl@0
  1248
//! @SYMAPI			RMdaDevSound::PlayData(TRequestStatus {ref}, TDes8 {ref})
sl@0
  1249
//! @SYMAuthor			Vassili Tsvetkov
sl@0
  1250
//! @SYMCreationDate		15/06/2008
sl@0
  1251
//! @SYMTestCaseDesc		Execute playing audio in pcm16 mono 11khz
sl@0
  1252
//!				
sl@0
  1253
//! @SYMTestActions		1. Call Open() with unit [UnitEnum]
sl@0
  1254
//!				2. Call SetPlayFormat() with [set_set_settings_pcm16_mono_11khz]
sl@0
  1255
//!				3. Call PlayData() with valid sound data from [pcm16_mono_11khz_32kb.raw]
sl@0
  1256
//!				4. Call FlushPlayBuffer
sl@0
  1257
//!				5. Call GetPlayFormat() and verify the sound found configuration
sl@0
  1258
//!				6. Restore initial sound h/w configuration
sl@0
  1259
//!				7. Call Close()
sl@0
  1260
//!
sl@0
  1261
//! @SYMTestStatus		Implemented
sl@0
  1262
//! @SYMTestPriority		Critical
sl@0
  1263
//! @SYMTestExpectedResults	Playing completes without any errors, sound format is set and verified
sl@0
  1264
//! @SYMTestType		CIT
sl@0
  1265
	START_TEST_BLOCK	100					t_sound			\base\sound\base-bsp-sound-driver.ini
sl@0
  1266
		CREATE_OBJECT	RMdaDevSound				devsound
sl@0
  1267
		COMMAND		devsound				new
sl@0
  1268
		COMMAND		devsound				Open			UnitEnum
sl@0
  1269
		CREATE_OBJECT	TCurrentSoundFormat			t_format		
sl@0
  1270
		COMMAND		t_format				new
sl@0
  1271
		COMMAND		t_format				irate_set			set_settings_pcm16_mono_11khz
sl@0
  1272
		COMMAND		t_format				ibuffer_size_set		set_settings_pcm16_mono_11khz
sl@0
  1273
		COMMAND		t_format				iencoding_set		set_settings_pcm16_mono_11khz
sl@0
  1274
		COMMAND		t_format				ichannels_set		set_settings_pcm16_mono_11khz
sl@0
  1275
		COMMAND		devsound				SetPlayFormat		BSP-SOUND-DRIVER-SetPlayFormat
sl@0
  1276
		COMMAND		devsound				PlayData		pcm16_mono_11khz_32kb.raw
sl@0
  1277
		OUTSTANDING
sl@0
  1278
		COMMAND		devsound				FlushPlayBuffer
sl@0
  1279
		COMMAND		devsound				GetPlayFormat		BSP-SOUND-DRIVER-GetPlayFormat
sl@0
  1280
		COMMAND		t_format				irate_get			set_settings_pcm16_mono_11khz_expected
sl@0
  1281
		COMMAND		t_format				iencoding_get		set_settings_pcm16_mono_11khz_expected
sl@0
  1282
		COMMAND		t_format				ichannels_get		set_settings_pcm16_mono_11khz_expected
sl@0
  1283
		COMMAND		t_format				ibuffer_size_get		set_settings_pcm16_mono_11khz_expected
sl@0
  1284
		//!set back default play configuration
sl@0
  1285
		COMMAND		t_format				irate_set			default_play_format
sl@0
  1286
		COMMAND		t_format				iencoding_set		default_play_format
sl@0
  1287
		COMMAND		t_format				ichannels_set		default_play_format
sl@0
  1288
		COMMAND		t_format				ibuffer_size_set		default_play_format
sl@0
  1289
		COMMAND		devsound				SetPlayFormat		BSP-SOUND-DRIVER-SetPlayFormat
sl@0
  1290
		COMMAND		devsound				SetPlayVolume		default_play_volume
sl@0
  1291
		COMMAND		t_format  				~
sl@0
  1292
		COMMAND		devsound				Close
sl@0
  1293
		COMMAND		devsound				~
sl@0
  1294
	END_TEST_BLOCK
sl@0
  1295
END_TESTCASE			BASE-BSP-SOUND-DRIVER-4003
sl@0
  1296
sl@0
  1297
START_TESTCASE 			BASE-BSP-SOUND-DRIVER-4004
sl@0
  1298
//! @SYMTestCaseID		BASE-BSP-SOUND-DRIVER-4004
sl@0
  1299
//! @SYMAPI			RMdaDevSound::PlayData(TRequestStatus {ref}, TDes8 {ref})
sl@0
  1300
//! @SYMAuthor			Vassili Tsvetkov
sl@0
  1301
//! @SYMCreationDate		15/06/2008
sl@0
  1302
//! @SYMTestCaseDesc		Execute playing audio in pcm16 mono 12khz
sl@0
  1303
//!				
sl@0
  1304
//! @SYMTestActions		1. Call Open() with unit [UnitEnum]
sl@0
  1305
//!				2. Call SetPlayFormat() with [set_set_settings_pcm16_mono_12khz]
sl@0
  1306
//!				3. Call PlayData() with valid sound data from [pcm16_mono_12khz_32kb.raw]
sl@0
  1307
//!				4. Call FlushPlayBuffer
sl@0
  1308
//!				5. Call GetPlayFormat() and verify the sound found configuration
sl@0
  1309
//!				6. Restore initial sound h/w configuration
sl@0
  1310
//!				7. Call Close()
sl@0
  1311
//!
sl@0
  1312
//! @SYMTestStatus		Implemented
sl@0
  1313
//! @SYMTestPriority		Critical
sl@0
  1314
//! @SYMTestExpectedResults	Playing completes without any errors, sound format is set and verified
sl@0
  1315
//! @SYMTestType		CIT
sl@0
  1316
	START_TEST_BLOCK	100					t_sound			\base\sound\base-bsp-sound-driver.ini
sl@0
  1317
		CREATE_OBJECT	RMdaDevSound				devsound
sl@0
  1318
		COMMAND		devsound				new
sl@0
  1319
		COMMAND		devsound				Open			UnitEnum
sl@0
  1320
		CREATE_OBJECT	TCurrentSoundFormat			t_format		
sl@0
  1321
		COMMAND		t_format				new
sl@0
  1322
		COMMAND		t_format				irate_set			set_settings_pcm16_mono_12khz
sl@0
  1323
		COMMAND		t_format				ibuffer_size_set		set_settings_pcm16_mono_12khz
sl@0
  1324
		COMMAND		t_format				iencoding_set		set_settings_pcm16_mono_12khz
sl@0
  1325
		COMMAND		t_format				ichannels_set		set_settings_pcm16_mono_12khz
sl@0
  1326
		COMMAND		devsound				SetPlayFormat		BSP-SOUND-DRIVER-SetPlayFormat
sl@0
  1327
		COMMAND		devsound				PlayData		pcm16_mono_12khz_32kb.raw
sl@0
  1328
		OUTSTANDING
sl@0
  1329
		COMMAND		devsound				FlushPlayBuffer
sl@0
  1330
		COMMAND		devsound				GetPlayFormat		BSP-SOUND-DRIVER-GetPlayFormat
sl@0
  1331
		COMMAND		t_format				irate_get			set_settings_pcm16_mono_12khz_expected
sl@0
  1332
		COMMAND		t_format				iencoding_get		set_settings_pcm16_mono_12khz_expected
sl@0
  1333
		COMMAND		t_format				ichannels_get		set_settings_pcm16_mono_12khz_expected
sl@0
  1334
		COMMAND		t_format				ibuffer_size_get		set_settings_pcm16_mono_12khz_expected
sl@0
  1335
		//!set back default play configuration
sl@0
  1336
		COMMAND		t_format				irate_set			default_play_format
sl@0
  1337
		COMMAND		t_format				iencoding_set		default_play_format
sl@0
  1338
		COMMAND		t_format				ichannels_set		default_play_format
sl@0
  1339
		COMMAND		t_format				ibuffer_size_set		default_play_format
sl@0
  1340
		COMMAND		devsound				SetPlayFormat		BSP-SOUND-DRIVER-SetPlayFormat
sl@0
  1341
		COMMAND		devsound				SetPlayVolume		default_play_volume
sl@0
  1342
		COMMAND		t_format				~
sl@0
  1343
		COMMAND		devsound				Close
sl@0
  1344
		COMMAND		devsound				~
sl@0
  1345
	END_TEST_BLOCK
sl@0
  1346
END_TESTCASE			BASE-BSP-SOUND-DRIVER-4004
sl@0
  1347
sl@0
  1348
START_TESTCASE 			BASE-BSP-SOUND-DRIVER-4005
sl@0
  1349
//! @SYMTestCaseID		BASE-BSP-SOUND-DRIVER-4005
sl@0
  1350
//! @SYMAPI			RMdaDevSound::PlayData(TRequestStatus {ref}, TDes8 {ref})
sl@0
  1351
//! @SYMAuthor			Vassili Tsvetkov
sl@0
  1352
//! @SYMCreationDate		15/06/2008
sl@0
  1353
//! @SYMTestCaseDesc		Execute playing audio in pcm16 mono 16khz
sl@0
  1354
//!				
sl@0
  1355
//! @SYMTestActions		1. Call Open() with unit [UnitEnum]
sl@0
  1356
//!				2. Call SetPlayFormat() with [set_set_settings_pcm16_mono_16khz]
sl@0
  1357
//!				3. Call PlayData() with valid sound data from [pcm16_mono_16khz_32kb.raw]
sl@0
  1358
//!				4. Call FlushPlayBuffer
sl@0
  1359
//!				5. Call GetPlayFormat() and verify the sound found configuration
sl@0
  1360
//!				6. Restore initial sound h/w configuration
sl@0
  1361
//!				7. Call Close()
sl@0
  1362
//!
sl@0
  1363
//! @SYMTestStatus		Implemented
sl@0
  1364
//! @SYMTestPriority		Critical
sl@0
  1365
//! @SYMTestExpectedResults	Playing completes without any errors, sound format is set and verified
sl@0
  1366
//! @SYMTestType		CIT
sl@0
  1367
	START_TEST_BLOCK	100					t_sound			\base\sound\base-bsp-sound-driver.ini
sl@0
  1368
		CREATE_OBJECT	RMdaDevSound				devsound
sl@0
  1369
		COMMAND		devsound				new
sl@0
  1370
		COMMAND		devsound				Open			UnitEnum
sl@0
  1371
		CREATE_OBJECT	TCurrentSoundFormat			t_format		
sl@0
  1372
		COMMAND		t_format				new
sl@0
  1373
		COMMAND		t_format				irate_set			set_settings_pcm16_mono_16khz
sl@0
  1374
		COMMAND		t_format				ibuffer_size_set		set_settings_pcm16_mono_16khz
sl@0
  1375
		COMMAND		t_format				iencoding_set		set_settings_pcm16_mono_16khz
sl@0
  1376
		COMMAND		t_format				ichannels_set		set_settings_pcm16_mono_16khz
sl@0
  1377
		COMMAND		devsound				SetPlayFormat		BSP-SOUND-DRIVER-SetPlayFormat
sl@0
  1378
		COMMAND		devsound				PlayData		pcm16_mono_16khz_32kb.raw
sl@0
  1379
		OUTSTANDING
sl@0
  1380
		COMMAND		devsound				FlushPlayBuffer
sl@0
  1381
		COMMAND		devsound				GetPlayFormat		BSP-SOUND-DRIVER-GetPlayFormat
sl@0
  1382
		COMMAND		t_format				irate_get			set_settings_pcm16_mono_16khz_expected
sl@0
  1383
		COMMAND		t_format				iencoding_get		set_settings_pcm16_mono_16khz_expected
sl@0
  1384
		COMMAND		t_format				ichannels_get		set_settings_pcm16_mono_16khz_expected
sl@0
  1385
		COMMAND		t_format				ibuffer_size_get		set_settings_pcm16_mono_16khz_expected
sl@0
  1386
		//!set back default play configuration
sl@0
  1387
		COMMAND		t_format				irate_set			default_play_format
sl@0
  1388
		COMMAND		t_format				iencoding_set		default_play_format
sl@0
  1389
		COMMAND		t_format				ichannels_set		default_play_format
sl@0
  1390
		COMMAND		t_format				ibuffer_size_set		default_play_format
sl@0
  1391
		COMMAND		devsound				SetPlayFormat		BSP-SOUND-DRIVER-SetPlayFormat
sl@0
  1392
		COMMAND		devsound				SetPlayVolume		default_play_volume
sl@0
  1393
		COMMAND		t_format				~
sl@0
  1394
		COMMAND		devsound				Close
sl@0
  1395
		COMMAND		devsound				~
sl@0
  1396
	END_TEST_BLOCK
sl@0
  1397
END_TESTCASE			BASE-BSP-SOUND-DRIVER-4005
sl@0
  1398
sl@0
  1399
START_TESTCASE 			BASE-BSP-SOUND-DRIVER-4006
sl@0
  1400
//! @SYMTestCaseID		BASE-BSP-SOUND-DRIVER-4006
sl@0
  1401
//! @SYMAPI			RMdaDevSound::PlayData(TRequestStatus {ref}, TDes8 {ref})
sl@0
  1402
//! @SYMAuthor			Vassili Tsvetkov
sl@0
  1403
//! @SYMCreationDate		15/06/2008
sl@0
  1404
//! @SYMTestCaseDesc		Execute playing audio in pcm16 mono 22khz
sl@0
  1405
//!				
sl@0
  1406
//! @SYMTestActions		1. Call Open() with unit [UnitEnum]
sl@0
  1407
//!				2. Call SetPlayFormat() with [set_set_settings_pcm16_mono_22khz]
sl@0
  1408
//!				3. Call PlayData() with valid sound data from [pcm16_mono_22khz_32kb.raw]
sl@0
  1409
//!				4. Call FlushPlayBuffer
sl@0
  1410
//!				5. Call GetPlayFormat() and verify the sound found configuration
sl@0
  1411
//!				6. Restore initial sound h/w configuration
sl@0
  1412
//!				7. Call Close()
sl@0
  1413
//!
sl@0
  1414
//! @SYMTestStatus		Implemented
sl@0
  1415
//! @SYMTestPriority		Critical
sl@0
  1416
//! @SYMTestExpectedResults	Playing completes without any errors, sound format is set and verified
sl@0
  1417
//! @SYMTestType		CIT
sl@0
  1418
	START_TEST_BLOCK	100					t_sound			\base\sound\base-bsp-sound-driver.ini
sl@0
  1419
		CREATE_OBJECT	RMdaDevSound				devsound
sl@0
  1420
		COMMAND		devsound				new
sl@0
  1421
		COMMAND		devsound				Open			UnitEnum
sl@0
  1422
		CREATE_OBJECT	TCurrentSoundFormat			t_format		
sl@0
  1423
		COMMAND		t_format				new
sl@0
  1424
		COMMAND		t_format				irate_set			set_settings_pcm16_mono_22khz
sl@0
  1425
		COMMAND		t_format				ibuffer_size_set		set_settings_pcm16_mono_22khz
sl@0
  1426
		COMMAND		t_format				iencoding_set		set_settings_pcm16_mono_22khz
sl@0
  1427
		COMMAND		t_format				ichannels_set		set_settings_pcm16_mono_22khz
sl@0
  1428
		COMMAND		devsound				SetPlayFormat		BSP-SOUND-DRIVER-SetPlayFormat
sl@0
  1429
		COMMAND		devsound				PlayData		pcm16_mono_22khz_32kb.raw
sl@0
  1430
		OUTSTANDING
sl@0
  1431
		COMMAND		devsound				FlushPlayBuffer
sl@0
  1432
		COMMAND		devsound				GetPlayFormat		BSP-SOUND-DRIVER-GetPlayFormat
sl@0
  1433
		COMMAND		t_format				irate_get			set_settings_pcm16_mono_22khz_expected
sl@0
  1434
		COMMAND		t_format				iencoding_get		set_settings_pcm16_mono_22khz_expected
sl@0
  1435
		COMMAND		t_format				ichannels_get		set_settings_pcm16_mono_22khz_expected
sl@0
  1436
		COMMAND		t_format				ibuffer_size_get		set_settings_pcm16_mono_22khz_expected
sl@0
  1437
		//!set back default play configuration
sl@0
  1438
		COMMAND		t_format				irate_set			default_play_format
sl@0
  1439
		COMMAND		t_format				iencoding_set		default_play_format
sl@0
  1440
		COMMAND		t_format				ichannels_set		default_play_format
sl@0
  1441
		COMMAND		t_format				ibuffer_size_set		default_play_format
sl@0
  1442
		COMMAND		devsound				SetPlayFormat		BSP-SOUND-DRIVER-SetPlayFormat
sl@0
  1443
		COMMAND		devsound				SetPlayVolume		default_play_volume
sl@0
  1444
		COMMAND		t_format				~
sl@0
  1445
		COMMAND		devsound				Close
sl@0
  1446
		COMMAND		devsound				~
sl@0
  1447
	END_TEST_BLOCK
sl@0
  1448
END_TESTCASE			BASE-BSP-SOUND-DRIVER-4006
sl@0
  1449
sl@0
  1450
START_TESTCASE 			BASE-BSP-SOUND-DRIVER-4007
sl@0
  1451
//! @SYMTestCaseID		BASE-BSP-SOUND-DRIVER-4007
sl@0
  1452
//! @SYMAPI			RMdaDevSound::PlayData(TRequestStatus {ref}, TDes8 {ref})
sl@0
  1453
//! @SYMAuthor			Vassili Tsvetkov
sl@0
  1454
//! @SYMCreationDate		15/06/2008
sl@0
  1455
//! @SYMTestCaseDesc		Execute playing audio in pcm16 mono 24khz
sl@0
  1456
//!				
sl@0
  1457
//! @SYMTestActions		1. Call Open() with unit [UnitEnum]
sl@0
  1458
//!				2. Call SetPlayFormat() with [set_set_settings_pcm16_mono_24khz]
sl@0
  1459
//!				3. Call PlayData() with valid sound data from [pcm16_mono_24khz_32kb.raw]
sl@0
  1460
//!				4. Call FlushPlayBuffer
sl@0
  1461
//!				5. Call GetPlayFormat() and verify the sound found configuration
sl@0
  1462
//!				6. Restore initial sound h/w configuration
sl@0
  1463
//!				7. Call Close()
sl@0
  1464
//!
sl@0
  1465
//! @SYMTestStatus		Implemented
sl@0
  1466
//! @SYMTestPriority		Critical
sl@0
  1467
//! @SYMTestExpectedResults	Playing completes without any errors, sound format is set and verified
sl@0
  1468
//! @SYMTestType		CIT
sl@0
  1469
	START_TEST_BLOCK	100					t_sound			\base\sound\base-bsp-sound-driver.ini
sl@0
  1470
		CREATE_OBJECT	RMdaDevSound				devsound
sl@0
  1471
		COMMAND		devsound				new
sl@0
  1472
		COMMAND		devsound				Open			UnitEnum
sl@0
  1473
		CREATE_OBJECT	TCurrentSoundFormat			t_format		
sl@0
  1474
		COMMAND		t_format				new
sl@0
  1475
		COMMAND		t_format				irate_set			set_settings_pcm16_mono_24khz
sl@0
  1476
		COMMAND		t_format				ibuffer_size_set		set_settings_pcm16_mono_24khz
sl@0
  1477
		COMMAND		t_format				iencoding_set		set_settings_pcm16_mono_24khz
sl@0
  1478
		COMMAND		t_format				ichannels_set		set_settings_pcm16_mono_24khz
sl@0
  1479
		COMMAND		devsound				SetPlayFormat		BSP-SOUND-DRIVER-SetPlayFormat
sl@0
  1480
		COMMAND		devsound				PlayData		pcm16_mono_24khz_32kb.raw
sl@0
  1481
		OUTSTANDING
sl@0
  1482
		COMMAND		devsound				FlushPlayBuffer
sl@0
  1483
                COMMAND		devsound				GetPlayFormat		BSP-SOUND-DRIVER-GetPlayFormat
sl@0
  1484
		COMMAND		t_format				irate_get			set_settings_pcm16_mono_24khz_expected
sl@0
  1485
		COMMAND		t_format				iencoding_get		set_settings_pcm16_mono_24khz_expected
sl@0
  1486
		COMMAND		t_format				ichannels_get		set_settings_pcm16_mono_24khz_expected
sl@0
  1487
		COMMAND		t_format				ibuffer_size_get		set_settings_pcm16_mono_24khz_expected
sl@0
  1488
                //!set back default play configuration
sl@0
  1489
		COMMAND		t_format				irate_set			default_play_format
sl@0
  1490
		COMMAND		t_format				iencoding_set		default_play_format
sl@0
  1491
		COMMAND		t_format				ichannels_set		default_play_format
sl@0
  1492
		COMMAND		t_format				ibuffer_size_set		default_play_format
sl@0
  1493
		COMMAND		devsound				SetPlayFormat		BSP-SOUND-DRIVER-SetPlayFormat
sl@0
  1494
		COMMAND		devsound				SetPlayVolume		default_play_volume
sl@0
  1495
		COMMAND		t_format				~
sl@0
  1496
		COMMAND		devsound				Close
sl@0
  1497
		COMMAND		devsound				~
sl@0
  1498
	END_TEST_BLOCK
sl@0
  1499
END_TESTCASE			BASE-BSP-SOUND-DRIVER-4007
sl@0
  1500
sl@0
  1501
START_TESTCASE 			BASE-BSP-SOUND-DRIVER-4008
sl@0
  1502
//! @SYMTestCaseID		BASE-BSP-SOUND-DRIVER-4008
sl@0
  1503
//! @SYMAPI			RMdaDevSound::PlayData(TRequestStatus {ref}, TDes8 {ref})
sl@0
  1504
//! @SYMAuthor			Vassili Tsvetkov
sl@0
  1505
//! @SYMCreationDate		15/06/2008
sl@0
  1506
//! @SYMTestCaseDesc		Execute playing audio in pcm16 mono 32khz
sl@0
  1507
//!				
sl@0
  1508
//! @SYMTestActions		1. Call Open() with unit [UnitEnum]
sl@0
  1509
//!				2. Call SetPlayFormat() with [set_set_settings_pcm16_mono_32khz]
sl@0
  1510
//!				3. Call PlayData() with valid sound data from [pcm16_mono_32khz_32kb.raw]
sl@0
  1511
//!				4. Call FlushPlayBuffer
sl@0
  1512
//!				5. Call GetPlayFormat() and verify the sound found configuration
sl@0
  1513
//!				6. Restore initial sound h/w configuration
sl@0
  1514
//!				7. Call Close()
sl@0
  1515
//!
sl@0
  1516
//! @SYMTestStatus		Implemented
sl@0
  1517
//! @SYMTestPriority		Critical
sl@0
  1518
//! @SYMTestExpectedResults	Playing completes without any errors, sound format is set and verified
sl@0
  1519
//! @SYMTestType		CIT
sl@0
  1520
	START_TEST_BLOCK	100					t_sound			\base\sound\base-bsp-sound-driver.ini
sl@0
  1521
		CREATE_OBJECT	RMdaDevSound				devsound
sl@0
  1522
		COMMAND		devsound				new
sl@0
  1523
		COMMAND		devsound				Open			UnitEnum
sl@0
  1524
		CREATE_OBJECT	TCurrentSoundFormat			t_format		
sl@0
  1525
		COMMAND		t_format				new
sl@0
  1526
		COMMAND		t_format				irate_set			set_settings_pcm16_mono_32khz
sl@0
  1527
		COMMAND		t_format				ibuffer_size_set		set_settings_pcm16_mono_32khz
sl@0
  1528
		COMMAND		t_format				iencoding_set		set_settings_pcm16_mono_32khz
sl@0
  1529
		COMMAND		t_format				ichannels_set		set_settings_pcm16_mono_32khz
sl@0
  1530
		COMMAND		devsound				SetPlayFormat		BSP-SOUND-DRIVER-SetPlayFormat
sl@0
  1531
		COMMAND		devsound				PlayData		pcm16_mono_32khz_32kb.raw
sl@0
  1532
		OUTSTANDING
sl@0
  1533
		COMMAND		devsound				FlushPlayBuffer
sl@0
  1534
                COMMAND		devsound				GetPlayFormat		BSP-SOUND-DRIVER-GetPlayFormat
sl@0
  1535
		COMMAND		t_format				irate_get			set_settings_pcm16_mono_32khz_expected
sl@0
  1536
		COMMAND		t_format				iencoding_get		set_settings_pcm16_mono_32khz_expected
sl@0
  1537
		COMMAND		t_format				ichannels_get		set_settings_pcm16_mono_32khz_expected
sl@0
  1538
		COMMAND		t_format				ibuffer_size_get		set_settings_pcm16_mono_32khz_expected
sl@0
  1539
                //!set back default play configuration
sl@0
  1540
		COMMAND		t_format				irate_set			default_play_format
sl@0
  1541
		COMMAND		t_format				iencoding_set		default_play_format
sl@0
  1542
		COMMAND		t_format				ichannels_set		default_play_format
sl@0
  1543
		COMMAND		t_format				ibuffer_size_set		default_play_format
sl@0
  1544
		COMMAND		devsound				SetPlayFormat		BSP-SOUND-DRIVER-SetPlayFormat
sl@0
  1545
		COMMAND		devsound				SetPlayVolume		default_play_volume
sl@0
  1546
		COMMAND		t_format				~
sl@0
  1547
		COMMAND		devsound				Close
sl@0
  1548
		COMMAND		devsound				~
sl@0
  1549
	END_TEST_BLOCK
sl@0
  1550
END_TESTCASE			BASE-BSP-SOUND-DRIVER-4008
sl@0
  1551
sl@0
  1552
START_TESTCASE 			BASE-BSP-SOUND-DRIVER-4009
sl@0
  1553
//! @SYMTestCaseID		BASE-BSP-SOUND-DRIVER-4009
sl@0
  1554
//! @SYMAPI			RMdaDevSound::PlayData(TRequestStatus {ref}, TDes8 {ref})
sl@0
  1555
//! @SYMAuthor			Vassili Tsvetkov
sl@0
  1556
//! @SYMCreationDate		15/06/2008
sl@0
  1557
//! @SYMTestCaseDesc		Execute playing audio in pcm16 mono 44.1khz
sl@0
  1558
//!		
sl@0
  1559
//! @SYMTestActions		1. Call Open() with unit [UnitEnum]
sl@0
  1560
//!				2. Call SetPlayFormat() with [set_set_settings_pcm16_mono_44.1khz]
sl@0
  1561
//!				3. Call PlayData() with valid sound data from [pcm16_mono_44.1khz_32kb.raw]
sl@0
  1562
//!				4. Call FlushPlayBuffer
sl@0
  1563
//!				5. Call GetPlayFormat() and verify the sound found configuration
sl@0
  1564
//!				6. Restore initial sound h/w configuration
sl@0
  1565
//!				7. Call Close()
sl@0
  1566
//!
sl@0
  1567
//! @SYMTestStatus		Implemented
sl@0
  1568
//! @SYMTestPriority		Critical
sl@0
  1569
//! @SYMTestExpectedResults	Playing completes without any errors, sound format is set and verified
sl@0
  1570
//! @SYMTestType		CIT
sl@0
  1571
	START_TEST_BLOCK	100					t_sound			\base\sound\base-bsp-sound-driver.ini
sl@0
  1572
		CREATE_OBJECT	RMdaDevSound				devsound
sl@0
  1573
		COMMAND		devsound				new
sl@0
  1574
		COMMAND		devsound				Open			UnitEnum
sl@0
  1575
		CREATE_OBJECT	TCurrentSoundFormat			t_format		
sl@0
  1576
		COMMAND		t_format				new
sl@0
  1577
		COMMAND		t_format				irate_set			set_settings_pcm16_mono_44.1khz
sl@0
  1578
		COMMAND		t_format				ibuffer_size_set		set_settings_pcm16_mono_44.1khz
sl@0
  1579
		COMMAND		t_format				iencoding_set		set_settings_pcm16_mono_44.1khz
sl@0
  1580
		COMMAND		t_format				ichannels_set		set_settings_pcm16_mono_44.1khz
sl@0
  1581
		COMMAND		devsound				SetPlayFormat		BSP-SOUND-DRIVER-SetPlayFormat
sl@0
  1582
		COMMAND		devsound				PlayData		pcm16_mono_44.1khz_32kb.raw
sl@0
  1583
		OUTSTANDING
sl@0
  1584
		COMMAND		devsound				FlushPlayBuffer
sl@0
  1585
                COMMAND		devsound				GetPlayFormat		BSP-SOUND-DRIVER-GetPlayFormat
sl@0
  1586
		COMMAND		t_format				irate_get			set_settings_pcm16_mono_41.1khz_expected
sl@0
  1587
		COMMAND		t_format				iencoding_get		set_settings_pcm16_mono_41.1khz_expected
sl@0
  1588
		COMMAND		t_format				ichannels_get		set_settings_pcm16_mono_41.1khz_expected
sl@0
  1589
		COMMAND		t_format				ibuffer_size_get		set_settings_pcm16_mono_41.1khz_expected
sl@0
  1590
                //!set back default play configuration
sl@0
  1591
		COMMAND		t_format				irate_set			default_play_format
sl@0
  1592
		COMMAND		t_format				iencoding_set		default_play_format
sl@0
  1593
		COMMAND		t_format				ichannels_set		default_play_format
sl@0
  1594
		COMMAND		t_format				ibuffer_size_set		default_play_format
sl@0
  1595
		COMMAND		devsound				SetPlayFormat		BSP-SOUND-DRIVER-SetPlayFormat
sl@0
  1596
		COMMAND		devsound				SetPlayVolume		default_play_volume
sl@0
  1597
		COMMAND		t_format				~
sl@0
  1598
		COMMAND		devsound				Close
sl@0
  1599
		COMMAND		devsound				~
sl@0
  1600
	END_TEST_BLOCK
sl@0
  1601
END_TESTCASE			BASE-BSP-SOUND-DRIVER-4009
sl@0
  1602
sl@0
  1603
START_TESTCASE 			BASE-BSP-SOUND-DRIVER-4010
sl@0
  1604
//! @SYMTestCaseID		BASE-BSP-SOUND-DRIVER-4010
sl@0
  1605
//! @SYMAPI			RMdaDevSound::PlayData(TRequestStatus {ref}, TDes8 {ref})
sl@0
  1606
//! @SYMAuthor			Vassili Tsvetkov
sl@0
  1607
//! @SYMCreationDate		15/06/2008
sl@0
  1608
//! @SYMTestCaseDesc		Execute playing audio in pcm16 mono 48khz
sl@0
  1609
//!				
sl@0
  1610
//! @SYMTestActions		1. Call Open() with unit [UnitEnum]
sl@0
  1611
//!				2. Call SetPlayFormat() with [set_set_settings_pcm16_mono_48khz]
sl@0
  1612
//!				3. Call PlayData() with valid sound data from [pcm16_mono_48khz_32kb.raw]
sl@0
  1613
//!				4. Call FlushPlayBuffer
sl@0
  1614
//!				5. Call GetPlayFormat() and verify the sound found configuration
sl@0
  1615
//!				6. Restore initial sound h/w configuration
sl@0
  1616
//!				7. Call Close()
sl@0
  1617
//!
sl@0
  1618
//! @SYMTestStatus		Implemented
sl@0
  1619
//! @SYMTestPriority		Critical
sl@0
  1620
//! @SYMTestExpectedResults	Playing completes without any errors, sound format is set and verified
sl@0
  1621
//! @SYMTestType		CIT
sl@0
  1622
	START_TEST_BLOCK	100					t_sound			\base\sound\base-bsp-sound-driver.ini
sl@0
  1623
		CREATE_OBJECT	RMdaDevSound				devsound
sl@0
  1624
		COMMAND		devsound				new
sl@0
  1625
		COMMAND		devsound				Open			UnitEnum
sl@0
  1626
		CREATE_OBJECT	TCurrentSoundFormat			t_format		
sl@0
  1627
		COMMAND		t_format				new
sl@0
  1628
		COMMAND		t_format				irate_set			set_settings_pcm16_mono_48khz
sl@0
  1629
		COMMAND		t_format				ibuffer_size_set		set_settings_pcm16_mono_48khz
sl@0
  1630
		COMMAND		t_format				iencoding_set		set_settings_pcm16_mono_48khz
sl@0
  1631
		COMMAND		t_format				ichannels_set		set_settings_pcm16_mono_48khz
sl@0
  1632
		COMMAND		devsound				SetPlayFormat		BSP-SOUND-DRIVER-SetPlayFormat
sl@0
  1633
		COMMAND		devsound				PlayData		pcm16_mono_48khz_32kb.raw
sl@0
  1634
		OUTSTANDING
sl@0
  1635
		COMMAND		devsound				FlushPlayBuffer
sl@0
  1636
                COMMAND		devsound				GetPlayFormat		BSP-SOUND-DRIVER-GetPlayFormat
sl@0
  1637
		COMMAND		t_format				irate_get			set_settings_pcm16_mono_48khz_expected
sl@0
  1638
		COMMAND		t_format				iencoding_get		set_settings_pcm16_mono_48khz_expected
sl@0
  1639
		COMMAND		t_format				ichannels_get		set_settings_pcm16_mono_48khz_expected
sl@0
  1640
		COMMAND		t_format				ibuffer_size_get		set_settings_pcm16_mono_48khz_expected
sl@0
  1641
                //!set back default play configuration
sl@0
  1642
		COMMAND		t_format				irate_set			default_play_format
sl@0
  1643
		COMMAND		t_format				iencoding_set		default_play_format
sl@0
  1644
		COMMAND		t_format				ichannels_set		default_play_format
sl@0
  1645
		COMMAND		t_format				ibuffer_size_set		default_play_format
sl@0
  1646
		COMMAND		devsound				SetPlayFormat		BSP-SOUND-DRIVER-SetPlayFormat
sl@0
  1647
		COMMAND		devsound				SetPlayVolume		default_play_volume
sl@0
  1648
		COMMAND		t_format				~
sl@0
  1649
		COMMAND		devsound				Close
sl@0
  1650
		COMMAND		devsound				~
sl@0
  1651
	END_TEST_BLOCK
sl@0
  1652
END_TESTCASE			BASE-BSP-SOUND-DRIVER-4010
sl@0
  1653
sl@0
  1654
START_TESTCASE 			BASE-BSP-SOUND-DRIVER-4011
sl@0
  1655
//! @SYMTestCaseID		BASE-BSP-SOUND-DRIVER-4011
sl@0
  1656
//! @SYMAPI			RMdaDevSound::PlayData(TRequestStatus {ref}, TDes8 {ref})
sl@0
  1657
//! @SYMAuthor			Vassili Tsvetkov
sl@0
  1658
//! @SYMCreationDate		15/06/2008
sl@0
  1659
//! @SYMTestCaseDesc		Execute playing audio in pcm16 stereo 8khz
sl@0
  1660
//!				
sl@0
  1661
//! @SYMTestActions		1. Call Open() with unit [UnitEnum]
sl@0
  1662
//!				2. Call SetPlayFormat() with [set_set_settings_pcm16_stereo_8khz]
sl@0
  1663
//!				3. Call PlayData() with valid sound data from [pcm16_stereo_8khz_32kb.raw]
sl@0
  1664
//!				4. Call FlushPlayBuffer
sl@0
  1665
//!				5. Call GetPlayFormat() and verify the sound found configuration
sl@0
  1666
//!				6. Restore initial sound h/w configuration
sl@0
  1667
//!				7. Call Close()
sl@0
  1668
//!
sl@0
  1669
//! @SYMTestStatus		Implemented
sl@0
  1670
//! @SYMTestPriority		Critical
sl@0
  1671
//! @SYMTestExpectedResults	Playing completes without any errors, sound format is set and verified
sl@0
  1672
//! @SYMTestType		CIT
sl@0
  1673
	START_TEST_BLOCK	100					t_sound			\base\sound\base-bsp-sound-driver.ini
sl@0
  1674
		CREATE_OBJECT	RMdaDevSound				devsound
sl@0
  1675
		COMMAND		devsound				new
sl@0
  1676
		COMMAND		devsound				Open			UnitEnum
sl@0
  1677
		CREATE_OBJECT	TCurrentSoundFormat			t_format		
sl@0
  1678
		COMMAND		t_format				new
sl@0
  1679
		COMMAND		t_format				irate_set			set_settings_pcm16_stereo_8khz
sl@0
  1680
		COMMAND		t_format				ibuffer_size_set		set_settings_pcm16_stereo_8khz
sl@0
  1681
		COMMAND		t_format				iencoding_set		set_settings_pcm16_stereo_8khz
sl@0
  1682
		COMMAND		t_format				ichannels_set		set_settings_pcm16_stereo_8khz
sl@0
  1683
		COMMAND		devsound				SetPlayFormat		BSP-SOUND-DRIVER-SetPlayFormat
sl@0
  1684
		COMMAND		devsound				PlayData		pcm16_stereo_8khz_32kb.raw
sl@0
  1685
		OUTSTANDING
sl@0
  1686
		COMMAND		devsound				FlushPlayBuffer
sl@0
  1687
                COMMAND		devsound				GetPlayFormat		BSP-SOUND-DRIVER-GetPlayFormat
sl@0
  1688
		COMMAND		t_format				irate_get			set_settings_pcm16_stereo_8khz_expected
sl@0
  1689
		COMMAND		t_format				iencoding_get		set_settings_pcm16_stereo_8khz_expected	
sl@0
  1690
		COMMAND		t_format				ichannels_get		set_settings_pcm16_stereo_8khz_expected
sl@0
  1691
		COMMAND		t_format				ibuffer_size_get		set_settings_pcm16_stereo_8khz_expected
sl@0
  1692
                //!set back default play configuration
sl@0
  1693
		COMMAND		t_format				irate_set			default_play_format
sl@0
  1694
		COMMAND		t_format				iencoding_set		default_play_format
sl@0
  1695
		COMMAND		t_format				ichannels_set		default_play_format
sl@0
  1696
		COMMAND		t_format				ibuffer_size_set		default_play_format
sl@0
  1697
		COMMAND		devsound				SetPlayFormat		BSP-SOUND-DRIVER-SetPlayFormat
sl@0
  1698
		COMMAND		devsound				SetPlayVolume		default_play_volume
sl@0
  1699
		COMMAND		t_format				~
sl@0
  1700
		COMMAND		devsound				Close
sl@0
  1701
		COMMAND		devsound				~
sl@0
  1702
	END_TEST_BLOCK
sl@0
  1703
END_TESTCASE			BASE-BSP-SOUND-DRIVER-4011
sl@0
  1704
sl@0
  1705
START_TESTCASE 			BASE-BSP-SOUND-DRIVER-4012
sl@0
  1706
//! @SYMTestCaseID		BASE-BSP-SOUND-DRIVER-4012
sl@0
  1707
//! @SYMAPI			RMdaDevSound::PlayData(TRequestStatus {ref}, TDes8 {ref})
sl@0
  1708
//! @SYMAuthor			Vassili Tsvetkov
sl@0
  1709
//! @SYMCreationDate		15/06/2008
sl@0
  1710
//! @SYMTestCaseDesc		Execute playing audio in pcm16 stereo 11khz
sl@0
  1711
//!				
sl@0
  1712
//! @SYMTestActions		1. Call Open() with unit [UnitEnum]
sl@0
  1713
//!				2. Call SetPlayFormat() with [set_set_settings_pcm16_stereo_11khz]
sl@0
  1714
//!				3. Call PlayData() with valid sound data from [pcm16_stereo_11khz_32kb.raw]
sl@0
  1715
//!				4. Call FlushPlayBuffer
sl@0
  1716
//!				5. Call GetPlayFormat() and verify the sound found configuration
sl@0
  1717
//!				6. Restore initial sound h/w configuration
sl@0
  1718
//!				7. Call Close()
sl@0
  1719
//!
sl@0
  1720
//! @SYMTestStatus		Implemented
sl@0
  1721
//! @SYMTestPriority		Critical
sl@0
  1722
//! @SYMTestExpectedResults	Playing completes without any errors, sound format is set and verified
sl@0
  1723
//! @SYMTestType		CIT
sl@0
  1724
	START_TEST_BLOCK	100					t_sound			\base\sound\base-bsp-sound-driver.ini
sl@0
  1725
		CREATE_OBJECT	RMdaDevSound				devsound
sl@0
  1726
		COMMAND		devsound				new
sl@0
  1727
		COMMAND		devsound				Open			UnitEnum
sl@0
  1728
		CREATE_OBJECT	TCurrentSoundFormat			t_format		
sl@0
  1729
		COMMAND		t_format				new
sl@0
  1730
		COMMAND		t_format				irate_set			set_settings_pcm16_stereo_11khz
sl@0
  1731
		COMMAND		t_format				ibuffer_size_set		set_settings_pcm16_stereo_11khz
sl@0
  1732
		COMMAND		t_format				iencoding_set		set_settings_pcm16_stereo_11khz
sl@0
  1733
		COMMAND		t_format				ichannels_set		set_settings_pcm16_stereo_11khz
sl@0
  1734
		COMMAND		devsound				SetPlayFormat		BSP-SOUND-DRIVER-SetPlayFormat
sl@0
  1735
		COMMAND		devsound				PlayData		pcm16_stereo_11khz_32kb.raw
sl@0
  1736
		OUTSTANDING
sl@0
  1737
		COMMAND		devsound				FlushPlayBuffer
sl@0
  1738
                COMMAND		devsound				GetPlayFormat		BSP-SOUND-DRIVER-GetPlayFormat
sl@0
  1739
		COMMAND		t_format				irate_get			set_settings_pcm16_stereo_11khz_expected
sl@0
  1740
		COMMAND		t_format				iencoding_get		set_settings_pcm16_stereo_11khz_expected
sl@0
  1741
		COMMAND		t_format				ichannels_get		set_settings_pcm16_stereo_11khz_expected
sl@0
  1742
		COMMAND		t_format				ibuffer_size_get		set_settings_pcm16_stereo_11khz_expected
sl@0
  1743
                //!set back default play configuration
sl@0
  1744
		COMMAND		t_format				irate_set			default_play_format
sl@0
  1745
		COMMAND		t_format				iencoding_set		default_play_format
sl@0
  1746
		COMMAND		t_format				ichannels_set		default_play_format
sl@0
  1747
		COMMAND		t_format				ibuffer_size_set		default_play_format
sl@0
  1748
		COMMAND		devsound				SetPlayFormat		BSP-SOUND-DRIVER-SetPlayFormat
sl@0
  1749
		COMMAND		devsound				SetPlayVolume		default_play_volume
sl@0
  1750
		COMMAND		t_format				~
sl@0
  1751
		COMMAND		devsound				Close
sl@0
  1752
		COMMAND		devsound				~
sl@0
  1753
	END_TEST_BLOCK
sl@0
  1754
END_TESTCASE			BASE-BSP-SOUND-DRIVER-4012
sl@0
  1755
sl@0
  1756
START_TESTCASE 			BASE-BSP-SOUND-DRIVER-4013
sl@0
  1757
//! @SYMTestCaseID		BASE-BSP-SOUND-DRIVER-4013
sl@0
  1758
//! @SYMAPI			RMdaDevSound::PlayData(TRequestStatus {ref}, TDes8 {ref})
sl@0
  1759
//! @SYMAuthor			Vassili Tsvetkov
sl@0
  1760
//! @SYMCreationDate		15/06/2008
sl@0
  1761
//! @SYMTestCaseDesc		Execute playing audio in pcm16 stereo 12khz
sl@0
  1762
//!				
sl@0
  1763
//! @SYMTestActions		1. Call Open() with unit [UnitEnum]
sl@0
  1764
//!				2. Call SetPlayFormat() with [set_set_settings_pcm16_stereo_12khz]
sl@0
  1765
//!				3. Call PlayData() with valid sound data from [pcm16_stereo_12khz_32kb.raw]
sl@0
  1766
//!				4. Call FlushPlayBuffer
sl@0
  1767
//!				5. Call GetPlayFormat() and verify the sound found configuration
sl@0
  1768
//!				6. Restore initial sound h/w configuration
sl@0
  1769
//!				7. Call Close()
sl@0
  1770
//!
sl@0
  1771
//! @SYMTestStatus		Implemented
sl@0
  1772
//! @SYMTestPriority		Critical
sl@0
  1773
//! @SYMTestExpectedResults	Playing completes without any errors, sound format is set and verified
sl@0
  1774
//! @SYMTestType		CIT
sl@0
  1775
	START_TEST_BLOCK	100					t_sound			\base\sound\base-bsp-sound-driver.ini
sl@0
  1776
		CREATE_OBJECT	RMdaDevSound				devsound
sl@0
  1777
		COMMAND		devsound				new
sl@0
  1778
		COMMAND		devsound				Open			UnitEnum
sl@0
  1779
		CREATE_OBJECT	TCurrentSoundFormat			t_format		
sl@0
  1780
		COMMAND		t_format				new
sl@0
  1781
		COMMAND		t_format				irate_set			set_settings_pcm16_stereo_12khz
sl@0
  1782
		COMMAND		t_format				ibuffer_size_set		set_settings_pcm16_stereo_12khz
sl@0
  1783
		COMMAND		t_format				iencoding_set		set_settings_pcm16_stereo_12khz
sl@0
  1784
		COMMAND		t_format				ichannels_set		set_settings_pcm16_stereo_12khz
sl@0
  1785
		COMMAND		devsound				SetPlayFormat		BSP-SOUND-DRIVER-SetPlayFormat
sl@0
  1786
		COMMAND		devsound				PlayData		pcm16_stereo_12khz_32kb.raw
sl@0
  1787
		OUTSTANDING
sl@0
  1788
		COMMAND		devsound				FlushPlayBuffer
sl@0
  1789
                COMMAND		devsound				GetPlayFormat		BSP-SOUND-DRIVER-GetPlayFormat
sl@0
  1790
		COMMAND		t_format				irate_get			set_settings_pcm16_stereo_12khz_expected
sl@0
  1791
		COMMAND		t_format				iencoding_get		set_settings_pcm16_stereo_12khz_expected
sl@0
  1792
		COMMAND		t_format				ichannels_get		set_settings_pcm16_stereo_12khz_expected
sl@0
  1793
		COMMAND		t_format				ibuffer_size_get		set_settings_pcm16_stereo_12khz_expected
sl@0
  1794
                //!set back default play configuration
sl@0
  1795
		COMMAND		t_format				irate_set			default_play_format
sl@0
  1796
		COMMAND		t_format				iencoding_set		default_play_format
sl@0
  1797
		COMMAND		t_format				ichannels_set		default_play_format
sl@0
  1798
		COMMAND		t_format				ibuffer_size_set		default_play_format
sl@0
  1799
		COMMAND		devsound				SetPlayFormat		BSP-SOUND-DRIVER-SetPlayFormat
sl@0
  1800
		COMMAND		devsound				SetPlayVolume		default_play_volume
sl@0
  1801
		COMMAND		t_format				~
sl@0
  1802
		COMMAND		devsound				Close
sl@0
  1803
		COMMAND		devsound				~
sl@0
  1804
	END_TEST_BLOCK
sl@0
  1805
END_TESTCASE			BASE-BSP-SOUND-DRIVER-4013
sl@0
  1806
sl@0
  1807
START_TESTCASE 			BASE-BSP-SOUND-DRIVER-4014
sl@0
  1808
//! @SYMTestCaseID		BASE-BSP-SOUND-DRIVER-4014
sl@0
  1809
//! @SYMAPI			RMdaDevSound::PlayData(TRequestStatus {ref}, TDes8 {ref})
sl@0
  1810
//! @SYMAuthor			Vassili Tsvetkov
sl@0
  1811
//! @SYMCreationDate		15/06/2008
sl@0
  1812
//! @SYMTestCaseDesc		Execute playing audio in pcm16 stereo 16khz
sl@0
  1813
//!				
sl@0
  1814
//! @SYMTestActions		1. Call Open() with unit [UnitEnum]
sl@0
  1815
//!				2. Call SetPlayFormat() with [set_set_settings_pcm16_stereo_16khz]
sl@0
  1816
//!				3. Call PlayData() with valid sound data from [pcm16_stereo_16khz_32kb.raw]
sl@0
  1817
//!				4. Call FlushPlayBuffer
sl@0
  1818
//!				5. Call GetPlayFormat() and verify the sound found configuration
sl@0
  1819
//!				6. Restore initial sound h/w configuration
sl@0
  1820
//!				7. Call Close()
sl@0
  1821
//!
sl@0
  1822
//! @SYMTestStatus		Implemented
sl@0
  1823
//! @SYMTestPriority		Critical
sl@0
  1824
//! @SYMTestExpectedResults	Playing completes without any errors, sound format is set and verified
sl@0
  1825
//! @SYMTestType		CIT
sl@0
  1826
	START_TEST_BLOCK	100					t_sound			\base\sound\base-bsp-sound-driver.ini
sl@0
  1827
		CREATE_OBJECT	RMdaDevSound				devsound
sl@0
  1828
		COMMAND		devsound				new
sl@0
  1829
		COMMAND		devsound				Open			UnitEnum
sl@0
  1830
		CREATE_OBJECT	TCurrentSoundFormat			t_format		
sl@0
  1831
		COMMAND		t_format				new
sl@0
  1832
		COMMAND		t_format				irate_set			set_settings_pcm16_stereo_16khz
sl@0
  1833
		COMMAND		t_format				ibuffer_size_set		set_settings_pcm16_stereo_16khz
sl@0
  1834
		COMMAND		t_format				iencoding_set		set_settings_pcm16_stereo_16khz
sl@0
  1835
		COMMAND		t_format				ichannels_set		set_settings_pcm16_stereo_16khz
sl@0
  1836
		COMMAND		devsound				SetPlayFormat		BSP-SOUND-DRIVER-SetPlayFormat
sl@0
  1837
		COMMAND		devsound				PlayData		pcm16_stereo_16khz_32kb.raw
sl@0
  1838
		OUTSTANDING
sl@0
  1839
		COMMAND		devsound				FlushPlayBuffer
sl@0
  1840
                COMMAND		devsound				GetPlayFormat		BSP-SOUND-DRIVER-GetPlayFormat
sl@0
  1841
		COMMAND		t_format				irate_get			set_settings_pcm16_stereo_16khz_expected
sl@0
  1842
		COMMAND		t_format				iencoding_get		set_settings_pcm16_stereo_16khz_expected
sl@0
  1843
		COMMAND		t_format				ichannels_get		set_settings_pcm16_stereo_16khz_expected
sl@0
  1844
		COMMAND		t_format				ibuffer_size_get		set_settings_pcm16_stereo_16khz_expected
sl@0
  1845
                //!set back default play configuration
sl@0
  1846
		COMMAND		t_format				irate_set			default_play_format
sl@0
  1847
		COMMAND		t_format				iencoding_set		default_play_format
sl@0
  1848
		COMMAND		t_format				ichannels_set		default_play_format
sl@0
  1849
		COMMAND		t_format				ibuffer_size_set		default_play_format
sl@0
  1850
		COMMAND		devsound				SetPlayFormat		BSP-SOUND-DRIVER-SetPlayFormat
sl@0
  1851
		COMMAND		devsound				SetPlayVolume		default_play_volume
sl@0
  1852
		COMMAND		t_format				~
sl@0
  1853
		COMMAND		devsound				Close
sl@0
  1854
		COMMAND		devsound				~
sl@0
  1855
	END_TEST_BLOCK
sl@0
  1856
END_TESTCASE			BASE-BSP-SOUND-DRIVER-4014
sl@0
  1857
sl@0
  1858
START_TESTCASE 			BASE-BSP-SOUND-DRIVER-4015
sl@0
  1859
//! @SYMTestCaseID		BASE-BSP-SOUND-DRIVER-4015
sl@0
  1860
//! @SYMAPI			RMdaDevSound::PlayData(TRequestStatus {ref}, TDes8 {ref})
sl@0
  1861
//! @SYMAuthor			Vassili Tsvetkov
sl@0
  1862
//! @SYMCreationDate		15/06/2008
sl@0
  1863
//! @SYMTestCaseDesc		Execute playing audio in pcm16 stereo 22khz
sl@0
  1864
//!				
sl@0
  1865
//! @SYMTestActions		1. Call Open() with unit [UnitEnum]
sl@0
  1866
//!				2. Call SetPlayFormat() with [set_set_settings_pcm16_stereo_22khz]
sl@0
  1867
//!				3. Call PlayData() with valid sound data from [pcm16_stereo_22khz_32kb.raw]
sl@0
  1868
//!				4. Call FlushPlayBuffer
sl@0
  1869
//!				5. Call GetPlayFormat() and verify the sound found configuration
sl@0
  1870
//!				6. Restore initial sound h/w configuration
sl@0
  1871
//!				7. Call Close()
sl@0
  1872
//!
sl@0
  1873
//! @SYMTestStatus		Implemented
sl@0
  1874
//! @SYMTestPriority		Critical
sl@0
  1875
//! @SYMTestExpectedResults	Playing completes without any errors, sound format is set and verified
sl@0
  1876
//! @SYMTestType		CIT
sl@0
  1877
	START_TEST_BLOCK	100					t_sound			\base\sound\base-bsp-sound-driver.ini
sl@0
  1878
		CREATE_OBJECT	RMdaDevSound				devsound
sl@0
  1879
		COMMAND		devsound				new
sl@0
  1880
		COMMAND		devsound				Open			UnitEnum
sl@0
  1881
		CREATE_OBJECT	TCurrentSoundFormat			t_format		
sl@0
  1882
		COMMAND		t_format				new
sl@0
  1883
		COMMAND		t_format				irate_set			set_settings_pcm16_stereo_22khz
sl@0
  1884
		COMMAND		t_format				ibuffer_size_set		set_settings_pcm16_stereo_22khz
sl@0
  1885
		COMMAND		t_format				iencoding_set		set_settings_pcm16_stereo_22khz
sl@0
  1886
		COMMAND		t_format				ichannels_set		set_settings_pcm16_stereo_22khz
sl@0
  1887
		COMMAND		devsound				SetPlayFormat		BSP-SOUND-DRIVER-SetPlayFormat
sl@0
  1888
		COMMAND		devsound				PlayData		pcm16_stereo_22khz_32kb.raw
sl@0
  1889
		OUTSTANDING
sl@0
  1890
		COMMAND		devsound				FlushPlayBuffer
sl@0
  1891
                COMMAND		devsound				GetPlayFormat		BSP-SOUND-DRIVER-GetPlayFormat
sl@0
  1892
		COMMAND		t_format				irate_get			set_settings_pcm16_stereo_22khz_expected
sl@0
  1893
		COMMAND		t_format				iencoding_get		set_settings_pcm16_stereo_22khz_expected
sl@0
  1894
		COMMAND		t_format				ichannels_get		set_settings_pcm16_stereo_22khz_expected
sl@0
  1895
		COMMAND		t_format				ibuffer_size_get		set_settings_pcm16_stereo_22khz_expected
sl@0
  1896
                //!set back default play configuration
sl@0
  1897
		COMMAND		t_format				irate_set			default_play_format
sl@0
  1898
		COMMAND		t_format				iencoding_set		default_play_format
sl@0
  1899
		COMMAND		t_format				ichannels_set		default_play_format
sl@0
  1900
		COMMAND		t_format				ibuffer_size_set		default_play_format
sl@0
  1901
		COMMAND		devsound				SetPlayFormat		BSP-SOUND-DRIVER-SetPlayFormat
sl@0
  1902
		COMMAND		devsound				SetPlayVolume		default_play_volume
sl@0
  1903
		COMMAND		t_format				~
sl@0
  1904
		COMMAND		devsound				Close
sl@0
  1905
		COMMAND		devsound				~
sl@0
  1906
	END_TEST_BLOCK
sl@0
  1907
END_TESTCASE			BASE-BSP-SOUND-DRIVER-4015
sl@0
  1908
sl@0
  1909
START_TESTCASE 			BASE-BSP-SOUND-DRIVER-4016
sl@0
  1910
//! @SYMTestCaseID		BASE-BSP-SOUND-DRIVER-4016
sl@0
  1911
//! @SYMAPI			RMdaDevSound::PlayData(TRequestStatus {ref}, TDes8 {ref})
sl@0
  1912
//! @SYMAuthor			Vassili Tsvetkov
sl@0
  1913
//! @SYMCreationDate		15/06/2008
sl@0
  1914
//! @SYMTestCaseDesc		Execute playing audio in pcm16 stereo 24khz
sl@0
  1915
//!				
sl@0
  1916
//! @SYMTestActions		1. Call Open() with unit [UnitEnum]
sl@0
  1917
//!				2. Call SetPlayFormat() with [set_set_settings_pcm16_stereo_24khz]
sl@0
  1918
//!				3. Call PlayData() with valid sound data from [pcm16_stereo_24khz_32kb.raw]
sl@0
  1919
//!				4. Call FlushPlayBuffer
sl@0
  1920
//!				5. Call GetPlayFormat() and verify the sound found configuration
sl@0
  1921
//!				6. Restore initial sound h/w configuration
sl@0
  1922
//!				7. Call Close()
sl@0
  1923
//!
sl@0
  1924
//! @SYMTestStatus		Implemented
sl@0
  1925
//! @SYMTestPriority		Critical
sl@0
  1926
//! @SYMTestExpectedResults	Playing completes without any errors, sound format is set and verified
sl@0
  1927
//! @SYMTestType		CIT
sl@0
  1928
	START_TEST_BLOCK	100					t_sound			\base\sound\base-bsp-sound-driver.ini
sl@0
  1929
		CREATE_OBJECT	RMdaDevSound				devsound
sl@0
  1930
		COMMAND		devsound				new
sl@0
  1931
		COMMAND		devsound				Open			UnitEnum
sl@0
  1932
		CREATE_OBJECT	TCurrentSoundFormat			t_format		
sl@0
  1933
		COMMAND		t_format				new
sl@0
  1934
		COMMAND		t_format				irate_set			set_settings_pcm16_stereo_24khz
sl@0
  1935
		COMMAND		t_format				ibuffer_size_set		set_settings_pcm16_stereo_24khz
sl@0
  1936
		COMMAND		t_format				iencoding_set		set_settings_pcm16_stereo_24khz
sl@0
  1937
		COMMAND		t_format				ichannels_set		set_settings_pcm16_stereo_24khz
sl@0
  1938
		COMMAND		devsound				SetPlayFormat		BSP-SOUND-DRIVER-SetPlayFormat
sl@0
  1939
		COMMAND		devsound				PlayData		pcm16_stereo_24khz_32kb.raw
sl@0
  1940
		OUTSTANDING
sl@0
  1941
		COMMAND		devsound				FlushPlayBuffer
sl@0
  1942
                COMMAND		devsound				GetPlayFormat		BSP-SOUND-DRIVER-GetPlayFormat
sl@0
  1943
		COMMAND		t_format				irate_get			set_settings_pcm16_stereo_24khz_expected
sl@0
  1944
		COMMAND		t_format				iencoding_get		set_settings_pcm16_stereo_24khz_expected
sl@0
  1945
		COMMAND		t_format				ichannels_get		set_settings_pcm16_stereo_24khz_expected
sl@0
  1946
		COMMAND		t_format				ibuffer_size_get		set_settings_pcm16_stereo_24khz_expected
sl@0
  1947
                //!set back default play configuration
sl@0
  1948
		COMMAND		t_format				irate_set			default_play_format
sl@0
  1949
		COMMAND		t_format				iencoding_set		default_play_format
sl@0
  1950
		COMMAND		t_format				ichannels_set		default_play_format
sl@0
  1951
		COMMAND		t_format				ibuffer_size_set		default_play_format
sl@0
  1952
		COMMAND		devsound				SetPlayFormat		BSP-SOUND-DRIVER-SetPlayFormat
sl@0
  1953
		COMMAND		devsound				SetPlayVolume		default_play_volume
sl@0
  1954
		COMMAND		t_format				~
sl@0
  1955
		COMMAND		devsound				Close
sl@0
  1956
		COMMAND		devsound				~
sl@0
  1957
	END_TEST_BLOCK
sl@0
  1958
END_TESTCASE			BASE-BSP-SOUND-DRIVER-4016
sl@0
  1959
sl@0
  1960
START_TESTCASE 			BASE-BSP-SOUND-DRIVER-4017
sl@0
  1961
//! @SYMTestCaseID		BASE-BSP-SOUND-DRIVER-4017
sl@0
  1962
//! @SYMAPI			RMdaDevSound::PlayData(TRequestStatus {ref}, TDes8 {ref})
sl@0
  1963
//! @SYMAuthor			Vassili Tsvetkov
sl@0
  1964
//! @SYMCreationDate		15/06/2008
sl@0
  1965
//! @SYMTestCaseDesc		Execute playing audio in pcm16 stereo 32khz
sl@0
  1966
//!				
sl@0
  1967
//! @SYMTestActions		1. Call Open() with unit [UnitEnum]
sl@0
  1968
//!				2. Call SetPlayFormat() with [set_set_settings_pcm16_stereo_32khz]
sl@0
  1969
//!				3. Call PlayData() with valid sound data from [pcm16_stereo_32khz_32kb.raw]
sl@0
  1970
//!				4. Call FlushPlayBuffer
sl@0
  1971
//!				5. Call GetPlayFormat() and verify the sound found configuration
sl@0
  1972
//!				6. Restore initial sound h/w configuration
sl@0
  1973
//!				7. Call Close()
sl@0
  1974
//!
sl@0
  1975
//! @SYMTestStatus		Implemented
sl@0
  1976
//! @SYMTestPriority		Critical
sl@0
  1977
//! @SYMTestExpectedResults	Playing completes without any errors, sound format is set and verified
sl@0
  1978
//! @SYMTestType		CIT
sl@0
  1979
	START_TEST_BLOCK	100					t_sound			\base\sound\base-bsp-sound-driver.ini
sl@0
  1980
		CREATE_OBJECT	RMdaDevSound				devsound
sl@0
  1981
		COMMAND		devsound				new
sl@0
  1982
		COMMAND		devsound				Open			UnitEnum
sl@0
  1983
		CREATE_OBJECT	TCurrentSoundFormat			t_format		
sl@0
  1984
		COMMAND		t_format				new
sl@0
  1985
		COMMAND		t_format				irate_set			set_settings_pcm16_stereo_32khz
sl@0
  1986
		COMMAND		t_format				ibuffer_size_set		set_settings_pcm16_stereo_32khz
sl@0
  1987
		COMMAND		t_format				iencoding_set		set_settings_pcm16_stereo_32khz
sl@0
  1988
		COMMAND		t_format				ichannels_set		set_settings_pcm16_stereo_32khz
sl@0
  1989
		COMMAND		devsound				SetPlayFormat		BSP-SOUND-DRIVER-SetPlayFormat
sl@0
  1990
		COMMAND		devsound				PlayData		pcm16_stereo_32khz_32kb.raw
sl@0
  1991
		OUTSTANDING
sl@0
  1992
		COMMAND		devsound				FlushPlayBuffer
sl@0
  1993
                COMMAND		devsound				GetPlayFormat		BSP-SOUND-DRIVER-GetPlayFormat
sl@0
  1994
		COMMAND		t_format				irate_get			set_settings_pcm16_stereo_32khz_expected
sl@0
  1995
		COMMAND		t_format				iencoding_get		set_settings_pcm16_stereo_32khz_expected
sl@0
  1996
		COMMAND		t_format				ichannels_get		set_settings_pcm16_stereo_32khz_expected
sl@0
  1997
		COMMAND		t_format				ibuffer_size_get		set_settings_pcm16_stereo_32khz_expected
sl@0
  1998
                //!set back default play configuration
sl@0
  1999
		COMMAND		t_format				irate_set			default_play_format
sl@0
  2000
		COMMAND		t_format				iencoding_set		default_play_format
sl@0
  2001
		COMMAND		t_format				ichannels_set		default_play_format
sl@0
  2002
		COMMAND		t_format				ibuffer_size_set		default_play_format
sl@0
  2003
		COMMAND		devsound				SetPlayFormat		BSP-SOUND-DRIVER-SetPlayFormat
sl@0
  2004
		COMMAND		devsound				SetPlayVolume		default_play_volume
sl@0
  2005
		COMMAND		t_format				~
sl@0
  2006
		COMMAND		devsound				Close
sl@0
  2007
		COMMAND		devsound				~
sl@0
  2008
	END_TEST_BLOCK
sl@0
  2009
END_TESTCASE			BASE-BSP-SOUND-DRIVER-4017
sl@0
  2010
sl@0
  2011
START_TESTCASE 			BASE-BSP-SOUND-DRIVER-4018
sl@0
  2012
//! @SYMTestCaseID		BASE-BSP-SOUND-DRIVER-4018
sl@0
  2013
//! @SYMAPI			RMdaDevSound::PlayData(TRequestStatus {ref}, TDes8 {ref})
sl@0
  2014
//! @SYMAuthor			Vassili Tsvetkov
sl@0
  2015
//! @SYMCreationDate		15/06/2008
sl@0
  2016
//! @SYMTestCaseDesc		Execute playing audio in pcm16 stereo 44.1khz
sl@0
  2017
//!				
sl@0
  2018
//! @SYMTestActions		1. Call Open() with unit [UnitEnum]
sl@0
  2019
//!				2. Call SetPlayFormat() with [set_set_settings_pcm16_stereo_44.1khz]
sl@0
  2020
//!				3. Call PlayData() with valid sound data from [pcm16_stereo_44.1khz_32kb.raw]
sl@0
  2021
//!				4. Call FlushPlayBuffer
sl@0
  2022
//!				5. Call GetPlayFormat() and verify the sound found configuration
sl@0
  2023
//!				6. Restore initial sound h/w configuration
sl@0
  2024
//!				7. Call Close()
sl@0
  2025
//!
sl@0
  2026
//! @SYMTestStatus		Implemented
sl@0
  2027
//! @SYMTestPriority		Critical
sl@0
  2028
//! @SYMTestExpectedResults	Playing completes without any errors, sound format is set and verified
sl@0
  2029
//! @SYMTestType		CIT
sl@0
  2030
	START_TEST_BLOCK	100					t_sound			\base\sound\base-bsp-sound-driver.ini
sl@0
  2031
		CREATE_OBJECT	RMdaDevSound				devsound
sl@0
  2032
		COMMAND		devsound				new
sl@0
  2033
		COMMAND		devsound				Open			UnitEnum
sl@0
  2034
		CREATE_OBJECT	TCurrentSoundFormat			t_format		
sl@0
  2035
		COMMAND		t_format				new
sl@0
  2036
		COMMAND		t_format				irate_set			set_settings_pcm16_stereo_44.1khz
sl@0
  2037
		COMMAND		t_format				ibuffer_size_set		set_settings_pcm16_stereo_44.1khz
sl@0
  2038
		COMMAND		t_format				iencoding_set		set_settings_pcm16_stereo_44.1khz
sl@0
  2039
		COMMAND		t_format				ichannels_set		set_settings_pcm16_stereo_44.1khz
sl@0
  2040
		COMMAND		devsound				SetPlayFormat		BSP-SOUND-DRIVER-SetPlayFormat
sl@0
  2041
		COMMAND		devsound				PlayData		pcm16_stereo_44.1khz_32kb.raw
sl@0
  2042
		OUTSTANDING
sl@0
  2043
		COMMAND		devsound				FlushPlayBuffer
sl@0
  2044
                COMMAND		devsound				GetPlayFormat		BSP-SOUND-DRIVER-GetPlayFormat
sl@0
  2045
		COMMAND		t_format				irate_get			set_settings_pcm16_stereo_44.1khz_expected
sl@0
  2046
		COMMAND		t_format				iencoding_get		set_settings_pcm16_stereo_44.1khz_expected
sl@0
  2047
		COMMAND		t_format				ichannels_get		set_settings_pcm16_stereo_44.1khz_expected
sl@0
  2048
		COMMAND		t_format				ibuffer_size_get		set_settings_pcm16_stereo_44.1khz_expected
sl@0
  2049
                //!set back default play configuration
sl@0
  2050
		COMMAND		t_format				irate_set			default_play_format
sl@0
  2051
		COMMAND		t_format				iencoding_set		default_play_format
sl@0
  2052
		COMMAND		t_format				ichannels_set		default_play_format
sl@0
  2053
		COMMAND		t_format				ibuffer_size_set		default_play_format
sl@0
  2054
		COMMAND		devsound				SetPlayFormat		BSP-SOUND-DRIVER-SetPlayFormat
sl@0
  2055
		COMMAND		devsound				SetPlayVolume		default_play_volume
sl@0
  2056
		COMMAND		t_format				~
sl@0
  2057
		COMMAND		devsound				Close
sl@0
  2058
		COMMAND		devsound				~
sl@0
  2059
	END_TEST_BLOCK
sl@0
  2060
END_TESTCASE			BASE-BSP-SOUND-DRIVER-4018
sl@0
  2061
sl@0
  2062
START_TESTCASE 			BASE-BSP-SOUND-DRIVER-4019
sl@0
  2063
//! @SYMTestCaseID		BASE-BSP-SOUND-DRIVER-4019
sl@0
  2064
//! @SYMAPI			RMdaDevSound::PlayData(TRequestStatus {ref}, TDes8 {ref})
sl@0
  2065
//! @SYMAuthor			Vassili Tsvetkov
sl@0
  2066
//! @SYMCreationDate		15/06/2008
sl@0
  2067
//! @SYMTestCaseDesc		Execute playing audio in pcm16 stereo 48khz
sl@0
  2068
//!				
sl@0
  2069
//! @SYMTestActions		1. Call Open() with unit [UnitEnum]
sl@0
  2070
//!				2. Call SetPlayFormat() with [set_set_settings_pcm16_stereo_48khz]
sl@0
  2071
//!				3. Call PlayData() with valid sound data from [pcm16_stereo_48khz_32kb.raw]
sl@0
  2072
//!				4. Call FlushPlayBuffer
sl@0
  2073
//!				5. Call GetPlayFormat() and verify the sound found configuration
sl@0
  2074
//!				6. Restore initial sound h/w configuration
sl@0
  2075
//!				7. Call Close()
sl@0
  2076
//!
sl@0
  2077
//! @SYMTestStatus		Implemented
sl@0
  2078
//! @SYMTestPriority		Critical
sl@0
  2079
//! @SYMTestExpectedResults	Playing completes without any errors, sound format is set and verified
sl@0
  2080
//! @SYMTestType		CIT
sl@0
  2081
	START_TEST_BLOCK	100					t_sound			\base\sound\base-bsp-sound-driver.ini
sl@0
  2082
		CREATE_OBJECT	RMdaDevSound				devsound
sl@0
  2083
		COMMAND		devsound				new
sl@0
  2084
		COMMAND		devsound				Open			UnitEnum
sl@0
  2085
		CREATE_OBJECT	TCurrentSoundFormat			t_format		
sl@0
  2086
		COMMAND		t_format				new
sl@0
  2087
		COMMAND		t_format				irate_set			set_settings_pcm16_stereo_48khz
sl@0
  2088
		COMMAND		t_format				ibuffer_size_set		set_settings_pcm16_stereo_48khz
sl@0
  2089
		COMMAND		t_format				iencoding_set		set_settings_pcm16_stereo_48khz
sl@0
  2090
		COMMAND		t_format				ichannels_set		set_settings_pcm16_stereo_48khz
sl@0
  2091
		COMMAND		devsound				SetPlayFormat		BSP-SOUND-DRIVER-SetPlayFormat
sl@0
  2092
		COMMAND		devsound				PlayData		pcm16_stereo_48khz_32kb.raw
sl@0
  2093
		OUTSTANDING
sl@0
  2094
		COMMAND		devsound				FlushPlayBuffer
sl@0
  2095
                COMMAND		devsound				GetPlayFormat		BSP-SOUND-DRIVER-GetPlayFormat
sl@0
  2096
		COMMAND		t_format				irate_get			set_settings_pcm16_stereo_48khz_expected
sl@0
  2097
		COMMAND		t_format				iencoding_get		set_settings_pcm16_stereo_48khz_expected
sl@0
  2098
		COMMAND		t_format				ichannels_get		set_settings_pcm16_stereo_48khz_expected
sl@0
  2099
		COMMAND		t_format				ibuffer_size_get		set_settings_pcm16_stereo_48khz_expected
sl@0
  2100
                //!set back default play configuration
sl@0
  2101
		COMMAND		t_format				irate_set			default_play_format
sl@0
  2102
		COMMAND		t_format				iencoding_set		default_play_format
sl@0
  2103
		COMMAND		t_format				ichannels_set		default_play_format
sl@0
  2104
		COMMAND		t_format				ibuffer_size_set		default_play_format
sl@0
  2105
		COMMAND		devsound				SetPlayFormat		BSP-SOUND-DRIVER-SetPlayFormat
sl@0
  2106
		COMMAND		devsound				SetPlayVolume		default_play_volume
sl@0
  2107
		COMMAND		t_format				~
sl@0
  2108
		COMMAND		devsound				Close
sl@0
  2109
		COMMAND		devsound				~
sl@0
  2110
	END_TEST_BLOCK
sl@0
  2111
END_TESTCASE			BASE-BSP-SOUND-DRIVER-4019
sl@0
  2112
sl@0
  2113
START_TESTCASE 			BASE-BSP-SOUND-DRIVER-4020
sl@0
  2114
//! @SYMTestCaseID		BASE-BSP-SOUND-DRIVER-4020
sl@0
  2115
//! @SYMAPI			RMdaDevSound::PlayData(TRequestStatus {ref}, TDes8 {ref})
sl@0
  2116
//! @SYMAuthor			Vassili Tsvetkov
sl@0
  2117
//! @SYMCreationDate		15/06/2008
sl@0
  2118
//! @SYMTestCaseDesc		Execute playing audio in alaw8 mono 8khz
sl@0
  2119
//!				
sl@0
  2120
//! @SYMTestActions		1. Call Open() with unit [UnitEnum]
sl@0
  2121
//!				2. Call SetPlayFormat() with [set_set_settings_alaw8bit_mono_8khz]
sl@0
  2122
//!				3. Call PlayData() with valid sound data from [alaw8bit_mono_8khz_32kb.raw]
sl@0
  2123
//!				4. Call FlushPlayBuffer
sl@0
  2124
//!				5. Call GetPlayFormat() and verify the sound found configuration
sl@0
  2125
//!				6. Restore initial sound h/w configuration
sl@0
  2126
//!				7. Call Close()
sl@0
  2127
//!
sl@0
  2128
//! @SYMTestStatus		Implemented
sl@0
  2129
//! @SYMTestPriority		Critical
sl@0
  2130
//! @SYMTestExpectedResults	Playing completes without any errors, sound format is set and verified
sl@0
  2131
//! @SYMTestType		CIT
sl@0
  2132
	START_TEST_BLOCK	100					t_sound			\base\sound\base-bsp-sound-driver.ini
sl@0
  2133
		CREATE_OBJECT	RMdaDevSound				devsound
sl@0
  2134
		COMMAND		devsound				new
sl@0
  2135
		COMMAND		devsound				Open			UnitEnum
sl@0
  2136
		CREATE_OBJECT	TCurrentSoundFormat			t_format		
sl@0
  2137
		COMMAND		t_format				new
sl@0
  2138
		COMMAND		t_format				irate_set			set_settings_alaw8bit_mono_8khz
sl@0
  2139
		COMMAND		t_format				ibuffer_size_set		set_settings_alaw8bit_mono_8khz
sl@0
  2140
		COMMAND		t_format				iencoding_set		set_settings_alaw8bit_mono_8khz
sl@0
  2141
		COMMAND		t_format				ichannels_set		set_settings_alaw8bit_mono_8khz
sl@0
  2142
		COMMAND		devsound				SetPlayFormat		BSP-SOUND-DRIVER-SetPlayFormat
sl@0
  2143
		COMMAND		devsound				PlayData		alaw8bit_mono_8khz_32kb.raw
sl@0
  2144
		OUTSTANDING
sl@0
  2145
		COMMAND		devsound				FlushPlayBuffer
sl@0
  2146
                COMMAND		devsound				GetPlayFormat		BSP-SOUND-DRIVER-GetPlayFormat
sl@0
  2147
		COMMAND		t_format				irate_get			set_settings_alaw8bit_mono_8khz_expected
sl@0
  2148
		COMMAND		t_format				iencoding_get		set_settings_alaw8bit_mono_8khz_expected
sl@0
  2149
		COMMAND		t_format				ichannels_get		set_settings_alaw8bit_mono_8khz_expected
sl@0
  2150
		COMMAND		t_format				ibuffer_size_get		set_settings_alaw8bit_mono_8khz_expected
sl@0
  2151
                //!set back default play configuration
sl@0
  2152
		COMMAND		t_format				irate_set			default_play_format
sl@0
  2153
		COMMAND		t_format				iencoding_set		default_play_format
sl@0
  2154
		COMMAND		t_format				ichannels_set		default_play_format
sl@0
  2155
		COMMAND		t_format				ibuffer_size_set		default_play_format
sl@0
  2156
		COMMAND		devsound				SetPlayFormat		BSP-SOUND-DRIVER-SetPlayFormat
sl@0
  2157
		COMMAND		devsound				SetPlayVolume		default_play_volume
sl@0
  2158
		COMMAND		t_format				~
sl@0
  2159
		COMMAND		devsound				Close
sl@0
  2160
		COMMAND		devsound				~
sl@0
  2161
	END_TEST_BLOCK
sl@0
  2162
END_TESTCASE			BASE-BSP-SOUND-DRIVER-4020
sl@0
  2163
sl@0
  2164
START_TESTCASE 			BASE-BSP-SOUND-DRIVER-4021
sl@0
  2165
//! @SYMTestCaseID		BASE-BSP-SOUND-DRIVER-4021
sl@0
  2166
//! @SYMAPI			RMdaDevSound::PlayData(TRequestStatus {ref}, TDes8 {ref})
sl@0
  2167
//! @SYMAuthor			Vassili Tsvetkov
sl@0
  2168
//! @SYMCreationDate		15/06/2008
sl@0
  2169
//! @SYMTestCaseDesc		Execute playing audio in alaw8 stereo 24khz
sl@0
  2170
//!				
sl@0
  2171
//! @SYMTestActions		1. Call Open() with unit [UnitEnum]
sl@0
  2172
//!				2. Call SetPlayFormat() with [set_set_settings_alaw8bit_stereo_24khz]
sl@0
  2173
//!				3. Call PlayData() with valid sound data from [alaw8bit_stereo_24khz_32kb.raw]
sl@0
  2174
//!				4. Call FlushPlayBuffer
sl@0
  2175
//!				5. Call GetPlayFormat() and verify the sound found configuration
sl@0
  2176
//!				6. Restore initial sound h/w configuration
sl@0
  2177
//!				7. Call Close()
sl@0
  2178
//!
sl@0
  2179
//! @SYMTestStatus		Implemented
sl@0
  2180
//! @SYMTestPriority		Critical
sl@0
  2181
//! @SYMTestExpectedResults	Playing completes without any errors, sound format is set and verified
sl@0
  2182
//! @SYMTestType		CIT
sl@0
  2183
	START_TEST_BLOCK	100					t_sound			\base\sound\base-bsp-sound-driver.ini
sl@0
  2184
		CREATE_OBJECT	RMdaDevSound				devsound
sl@0
  2185
		COMMAND		devsound				new
sl@0
  2186
		COMMAND		devsound				Open			UnitEnum
sl@0
  2187
		CREATE_OBJECT	TCurrentSoundFormat			t_format		
sl@0
  2188
		COMMAND		t_format				new
sl@0
  2189
		COMMAND		t_format				irate_set			set_settings_alaw8bit_stereo_24khz
sl@0
  2190
		COMMAND		t_format				ibuffer_size_set		set_settings_alaw8bit_stereo_24khz
sl@0
  2191
		COMMAND		t_format				iencoding_set		set_settings_alaw8bit_stereo_24khz
sl@0
  2192
		COMMAND		t_format				ichannels_set		set_settings_alaw8bit_stereo_24khz
sl@0
  2193
		COMMAND		devsound				SetPlayFormat		BSP-SOUND-DRIVER-SetPlayFormat
sl@0
  2194
		COMMAND		devsound				PlayData		alaw8bit_stereo_24khz_32kb.raw
sl@0
  2195
		OUTSTANDING
sl@0
  2196
		COMMAND		devsound				FlushPlayBuffer
sl@0
  2197
                COMMAND		devsound				GetPlayFormat		BSP-SOUND-DRIVER-GetPlayFormat
sl@0
  2198
		COMMAND		t_format				irate_get			set_settings_alaw8bit_stereo_24khz_expected
sl@0
  2199
		COMMAND		t_format				iencoding_get		set_settings_alaw8bit_stereo_24khz_expected
sl@0
  2200
		COMMAND		t_format				ichannels_get		set_settings_alaw8bit_stereo_24khz_expected
sl@0
  2201
		COMMAND		t_format				ibuffer_size_get		set_settings_alaw8bit_stereo_24khz_expected
sl@0
  2202
                //!set back default play configuration
sl@0
  2203
		COMMAND		t_format				irate_set			default_play_format
sl@0
  2204
		COMMAND		t_format				iencoding_set		default_play_format
sl@0
  2205
		COMMAND		t_format				ichannels_set		default_play_format
sl@0
  2206
		COMMAND		t_format				ibuffer_size_set		default_play_format
sl@0
  2207
		COMMAND		devsound				SetPlayFormat		BSP-SOUND-DRIVER-SetPlayFormat
sl@0
  2208
		COMMAND		devsound				SetPlayVolume		default_play_volume
sl@0
  2209
		COMMAND		t_format				~
sl@0
  2210
		COMMAND		devsound				Close
sl@0
  2211
		COMMAND		devsound				~
sl@0
  2212
	END_TEST_BLOCK
sl@0
  2213
END_TESTCASE			BASE-BSP-SOUND-DRIVER-4021
sl@0
  2214
sl@0
  2215
START_TESTCASE 			BASE-BSP-SOUND-DRIVER-4022
sl@0
  2216
//! @SYMTestCaseID		BASE-BSP-SOUND-DRIVER-4022
sl@0
  2217
//! @SYMAPI			RMdaDevSound::PlayData(TRequestStatus {ref}, TDes8 {ref})
sl@0
  2218
//! @SYMAuthor			Vassili Tsvetkov
sl@0
  2219
//! @SYMCreationDate		15/06/2008
sl@0
  2220
//! @SYMTestCaseDesc		Execute playing audio in mulaw8 mono 12khz
sl@0
  2221
//!				
sl@0
  2222
//! @SYMTestActions		1. Call Open() with unit [UnitEnum]
sl@0
  2223
//!				2. Call SetPlayFormat() with [set_set_settings_mulaw8bit_mono_12khz]
sl@0
  2224
//!				3. Call PlayData() with valid sound data from [mulaw8bit_mono_12khz_32kb.raw]
sl@0
  2225
//!				4. Call FlushPlayBuffer
sl@0
  2226
//!				5. Call GetPlayFormat() and verify the sound found configuration
sl@0
  2227
//!				6. Restore initial sound h/w configuration
sl@0
  2228
//!				7. Call Close()
sl@0
  2229
//!
sl@0
  2230
//! @SYMTestStatus		Implemented
sl@0
  2231
//! @SYMTestPriority		Critical
sl@0
  2232
//! @SYMTestExpectedResults	Playing completes without any errors, sound format is set and verified
sl@0
  2233
//! @SYMTestType		CIT
sl@0
  2234
	START_TEST_BLOCK	100					t_sound			\base\sound\base-bsp-sound-driver.ini
sl@0
  2235
		CREATE_OBJECT	RMdaDevSound				devsound
sl@0
  2236
		COMMAND		devsound				new
sl@0
  2237
		COMMAND		devsound				Open			UnitEnum
sl@0
  2238
		CREATE_OBJECT	TCurrentSoundFormat			t_format		
sl@0
  2239
		COMMAND		t_format				new
sl@0
  2240
		COMMAND		t_format				irate_set			set_settings_mulaw8bit_mono_12khz
sl@0
  2241
		COMMAND		t_format				ibuffer_size_set		set_settings_mulaw8bit_mono_12khz
sl@0
  2242
		COMMAND		t_format				iencoding_set		set_settings_mulaw8bit_mono_12khz
sl@0
  2243
		COMMAND		t_format				ichannels_set		set_settings_mulaw8bit_mono_12khz
sl@0
  2244
		COMMAND		devsound				SetPlayFormat		BSP-SOUND-DRIVER-SetPlayFormat
sl@0
  2245
		COMMAND		devsound				PlayData		mulaw8bit_mono_12khz_32kb.raw
sl@0
  2246
		OUTSTANDING
sl@0
  2247
		COMMAND		devsound				FlushPlayBuffer
sl@0
  2248
                COMMAND		devsound				GetPlayFormat		BSP-SOUND-DRIVER-GetPlayFormat
sl@0
  2249
		COMMAND		t_format				irate_get			set_settings_mulaw8bit_mono_12khz_expected
sl@0
  2250
		COMMAND		t_format				iencoding_get		set_settings_mulaw8bit_mono_12khz_expected
sl@0
  2251
		COMMAND		t_format				ichannels_get		set_settings_mulaw8bit_mono_12khz_expected
sl@0
  2252
		COMMAND		t_format				ibuffer_size_get		set_settings_mulaw8bit_mono_12khz_expected
sl@0
  2253
                //!set back default play configuration
sl@0
  2254
		COMMAND		t_format				irate_set			default_play_format
sl@0
  2255
		COMMAND		t_format				iencoding_set		default_play_format
sl@0
  2256
		COMMAND		t_format				ichannels_set		default_play_format
sl@0
  2257
		COMMAND		t_format				ibuffer_size_set		default_play_format
sl@0
  2258
		COMMAND		devsound				SetPlayFormat		BSP-SOUND-DRIVER-SetPlayFormat
sl@0
  2259
		COMMAND		devsound				SetPlayVolume		default_play_volume
sl@0
  2260
		COMMAND		t_format				~
sl@0
  2261
		COMMAND		devsound				Close
sl@0
  2262
		COMMAND		devsound				~
sl@0
  2263
	END_TEST_BLOCK
sl@0
  2264
END_TESTCASE			BASE-BSP-SOUND-DRIVER-4022
sl@0