/* * Copyright (c) by Jaroslav Kysela * Creative Labs, Inc. * Routines for control of EMU10K1 chips / proc interface routines * * Copyright (c) by James Courtier-Dutton * Added EMU 1010 support. * * BUGS: * -- * * TODO: * -- * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * */ #include #include #include #include #include "p16v.h" #ifdef CONFIG_PROC_FS static void snd_emu10k1_proc_spdif_status(struct snd_emu10k1 * emu, struct snd_info_buffer *buffer, char *title, int status_reg, int rate_reg) { static char *clkaccy[4] = { "1000ppm", "50ppm", "variable", "unknown" }; static int samplerate[16] = { 44100, 1, 48000, 32000, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 }; static char *channel[16] = { "unspec", "left", "right", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15" }; static char *emphasis[8] = { "none", "50/15 usec 2 channel", "2", "3", "4", "5", "6", "7" }; unsigned int status, rate = 0; status = snd_emu10k1_ptr_read(emu, status_reg, 0); snd_iprintf(buffer, "\n%s\n", title); if (status != 0xffffffff) { snd_iprintf(buffer, "Professional Mode : %s\n", (status & SPCS_PROFESSIONAL) ? "yes" : "no"); snd_iprintf(buffer, "Not Audio Data : %s\n", (status & SPCS_NOTAUDIODATA) ? "yes" : "no"); snd_iprintf(buffer, "Copyright : %s\n", (status & SPCS_COPYRIGHT) ? "yes" : "no"); snd_iprintf(buffer, "Emphasis : %s\n", emphasis[(status & SPCS_EMPHASISMASK) >> 3]); snd_iprintf(buffer, "Mode : %i\n", (status & SPCS_MODEMASK) >> 6); snd_iprintf(buffer, "Category Code : 0x%x\n", (status & SPCS_CATEGORYCODEMASK) >> 8); snd_iprintf(buffer, "Generation Status : %s\n", status & SPCS_GENERATIONSTATUS ? "original" : "copy"); snd_iprintf(buffer, "Source Mask : %i\n", (status & SPCS_SOURCENUMMASK) >> 16); snd_iprintf(buffer, "Channel Number : %s\n", channel[(status & SPCS_CHANNELNUMMASK) >> 20]); snd_iprintf(buffer, "Sample Rate : %iHz\n", samplerate[(status & SPCS_SAMPLERATEMASK) >> 24]); snd_iprintf(buffer, "Clock Accuracy : %s\n", clkaccy[(status & SPCS_CLKACCYMASK) >> 28]); if (rate_reg > 0) { rate = snd_emu10k1_ptr_read(emu, rate_reg, 0); snd_iprintf(buffer, "S/PDIF Valid : %s\n", rate & SRCS_SPDIFVALID ? "on" : "off"); snd_iprintf(buffer, "S/PDIF Locked : %s\n", rate & SRCS_SPDIFLOCKED ? "on" : "off"); snd_iprintf(buffer, "Rate Locked : %s\n", rate & SRCS_RATELOCKED ? "on" : "off"); /* From ((Rate * 48000 ) / 262144); */ snd_iprintf(buffer, "Estimated Sample Rate : %d\n", ((rate & 0xFFFFF ) * 375) >> 11); } } else { snd_iprintf(buffer, "No signal detected.\n"); } } static void snd_emu10k1_proc_read(struct snd_info_entry *entry, struct snd_info_buffer *buffer) { /* FIXME - output names are in emufx.c too */ static char *creative_outs[32] = { /* 00 */ "AC97 Left", /* 01 */ "AC97 Right", /* 02 */ "Optical IEC958 Left", /* 03 */ "Optical IEC958 Right", /* 04 */ "Center", /* 05 */ "LFE", /* 06 */ "Headphone Left", /* 07 */ "Headphone Right", /* 08 */ "Surround Left", /* 09 */ "Surround Right", /* 10 */ "PCM Capture Left", /* 11 */ "PCM Capture Right", /* 12 */ "MIC Capture", /* 13 */ "AC97 Surround Left", /* 14 */ "AC97 Surround Right", /* 15 */ "???", /* 16 */ "???", /* 17 */ "Analog Center", /* 18 */ "Analog LFE", /* 19 */ "???", /* 20 */ "???", /* 21 */ "???", /* 22 */ "???", /* 23 */ "???", /* 24 */ "???", /* 25 */ "???", /* 26 */ "???", /* 27 */ "???", /* 28 */ "???", /* 29 */ "???", /* 30 */ "???", /* 31 */ "???" }; static char *audigy_outs[64] = { /* 00 */ "Digital Front Left", /* 01 */ "Digital Front Right", /* 02 */ "Digital Center", /* 03 */ "Digital LEF", /* 04 */ "Headphone Left", /* 05 */ "Headphone Right", /* 06 */ "Digital Rear Left", /* 07 */ "Digital Rear Right", /* 08 */ "Front Left", /* 09 */ "Front Right", /* 10 */ "Center", /* 11 */ "LFE", /* 12 */ "???", /* 13 */ "???", /* 14 */ "Rear Left", /* 15 */ "Rear Right", /* 16 */ "AC97 Front Left", /* 17 */ "AC97 Front Right", /* 18 */ "ADC Caputre Left", /* 19 */ "ADC Capture Right", /* 20 */ "???", /* 21 */ "???", /* 22 */ "???", /* 23 */ "???", /* 24 */ "???", /* 25 */ "???", /* 26 */ "???", /* 27 */ "???", /* 28 */ "???", /* 29 */ "???", /* 30 */ "???", /* 31 */ "???", /* 32 */ "FXBUS2_0", /* 33 */ "FXBUS2_1", /* 34 */ "FXBUS2_2", /* 35 */ "FXBUS2_3", /* 36 */ "FXBUS2_4", /* 37 */ "FXBUS2_5", /* 38 */ "FXBUS2_6", /* 39 */ "FXBUS2_7", /* 40 */ "FXBUS2_8", /* 41 */ "FXBUS2_9", /* 42 */ "FXBUS2_10", /* 43 */ "FXBUS2_11", /* 44 */ "FXBUS2_12", /* 45 */ "FXBUS2_13", /* 46 */ "FXBUS2_14", /* 47 */ "FXBUS2_15", /* 48 */ "FXBUS2_16", /* 49 */ "FXBUS2_17", /* 50 */ "FXBUS2_18", /* 51 */ "FXBUS2_19", /* 52 */ "FXBUS2_20", /* 53 */ "FXBUS2_21", /* 54 */ "FXBUS2_22", /* 55 */ "FXBUS2_23", /* 56 */ "FXBUS2_24", /* 57 */ "FXBUS2_25", /* 58 */ "FXBUS2_26", /* 59 */ "FXBUS2_27", /* 60 */ "FXBUS2_28", /* 61 */ "FXBUS2_29", /* 62 */ "FXBUS2_30", /* 63 */ "FXBUS2_31" }; struct snd_emu10k1 *emu = entry->private_data; unsigned int val, val1; int nefx = emu->audigy ? 64 : 32; char **outputs = emu->audigy ? audigy_outs : creative_outs; int idx; snd_iprintf(buffer, "EMU10K1\n\n"); snd_iprintf(buffer, "Card : %s\n", emu->audigy ? "Audigy" : (emu->card_capabilities->ecard ? "EMU APS" : "Creative")); snd_iprintf(buffer, "Internal TRAM (words) : 0x%x\n", emu->fx8010.itram_size); snd_iprintf(buffer, "External TRAM (words) : 0x%x\n", (int)emu->fx8010.etram_pages.bytes / 2); snd_iprintf(buffer, "\n"); snd_iprintf(buffer, "Effect Send Routing :\n"); for (idx = 0; idx < NUM_G; idx++) { val = emu->audigy ? snd_emu10k1_ptr_read(emu, A_FXRT1, idx) : snd_emu10k1_ptr_read(emu, FXRT, idx); val1 = emu->audigy ? snd_emu10k1_ptr_read(emu, A_FXRT2, idx) : 0; if (emu->audigy) { snd_iprintf(buffer, "Ch%i: A=%i, B=%i, C=%i, D=%i, ", idx, val & 0x3f, (val >> 8) & 0x3f, (val >> 16) & 0x3f, (val >> 24) & 0x3f); snd_iprintf(buffer, "E=%i, F=%i, G=%i, H=%i\n", val1 & 0x3f, (val1 >> 8) & 0x3f, (val1 >> 16) & 0x3f, (val1 >> 24) & 0x3f); } else { snd_iprintf(buffer, "Ch%i: A=%i, B=%i, C=%i, D=%i\n", idx, (val >> 16) & 0x0f, (val >> 20) & 0x0f, (val >> 24) & 0x0f, (val >> 28) & 0x0f); } } snd_iprintf(buffer, "\nCaptured FX Outputs :\n"); for (idx = 0; idx < nefx; idx++) { if (emu->efx_voices_mask[idx/32] & (1 << (idx%32))) snd_iprintf(buffer, " Output %02i [%s]\n", idx, outputs[idx]); } snd_iprintf(buffer, "\nAll FX Outputs :\n"); for (idx = 0; idx < (emu->audigy ? 64 : 32); idx++) snd_iprintf(buffer, " Output %02i [%s]\n", idx, outputs[idx]); } static void snd_emu10k1_proc_spdif_read(struct snd_info_entry *entry, struct snd_info_buffer *buffer) { struct snd_emu10k1 *emu = entry->private_data; u32 value; u32 value2; u32 rate; if (emu->card_capabilities->emu_model) { snd_emu1010_fpga_read(emu, 0x38, &value); if ((value & 0x1) == 0) { snd_emu1010_fpga_read(emu, 0x2a, &value); snd_emu1010_fpga_read(emu, 0x2b, &value2); rate = 0x1770000 / (((value << 5) | value2)+1); snd_iprintf(buffer, "ADAT Locked : %u\n", rate); } else { snd_iprintf(buffer, "ADAT Unlocked\n"); } snd_emu1010_fpga_read(emu, 0x20, &value); if ((value & 0x4) == 0) { snd_emu1010_fpga_read(emu, 0x28, &value); snd_emu1010_fpga_read(emu, 0x29, &value2); rate = 0
.. This work is licensed under a Creative Commons Attribution 4.0 International
.. License.
.. http://creativecommons.org/licenses/by/4.0
.. (c) OPNFV, Ericsson AB and others.

====================
Yardstick Test Cases
====================

Abstract
========

This chapter lists available Yardstick test cases.
Yardstick test cases are divided in two main categories:

* *Generic NFVI Test Cases* - Test Cases developed to realize the methodology
described in :doc:`02-methodology`

* *OPNFV Feature Test Cases* - Test Cases developed to verify one or more
aspect of a feature delivered by an OPNFV Project, including the test cases
developed for the :term:`VTC`.

Generic NFVI Test Case Descriptions
===================================

.. toctree::
   :maxdepth: 1

   opnfv_yardstick_tc001.rst
   opnfv_yardstick_tc002.rst
   opnfv_yardstick_tc004.rst
   opnfv_yardstick_tc005.rst
   opnfv_yardstick_tc008.rst
   opnfv_yardstick_tc009.rst
   opnfv_yardstick_tc010.rst
   opnfv_yardstick_tc011.rst
   opnfv_yardstick_tc012.rst
   opnfv_yardstick_tc014.rst
   opnfv_yardstick_tc024.rst
   opnfv_yardstick_tc037.rst
   opnfv_yardstick_tc038.rst
   opnfv_yardstick_tc042.rst
   opnfv_yardstick_tc043.rst
   opnfv_yardstick_tc044.rst
   opnfv_yardstick_tc055.rst
   opnfv_yardstick_tc061.rst
   opnfv_yardstick_tc063.rst
   opnfv_yardstick_tc069.rst
   opnfv_yardstick_tc070.rst
   opnfv_yardstick_tc071.rst
   opnfv_yardstick_tc072.rst
   opnfv_yardstick_tc073.rst
   opnfv_yardstick_tc074.rst
   opnfv_yardstick_tc075.rst
   opnfv_yardstick_tc076.rst
   opnfv_yardstick_tc078.rst
   opnfv_yardstick_tc079.rst
   opnfv_yardstick_tc080.rst
   opnfv_yardstick_tc081.rst
   opnfv_yardstick_tc083.rst

OPNFV Feature Test Cases
========================

H A
---

.. toctree::
   :maxdepth: 1

   opnfv_yardstick_tc019.rst
   opnfv_yardstick_tc025.rst
   opnfv_yardstick_tc045.rst
   opnfv_yardstick_tc046.rst
   opnfv_yardstick_tc047.rst
   opnfv_yardstick_tc048.rst
   opnfv_yardstick_tc049.rst
   opnfv_yardstick_tc050.rst
   opnfv_yardstick_tc051.rst
   opnfv_yardstick_tc052.rst
   opnfv_yardstick_tc053.rst
   opnfv_yardstick_tc054.rst

IPv6
----

.. toctree::
   :maxdepth: 1

   opnfv_yardstick_tc027.rst

KVM
---

.. toctree::
   :maxdepth: 1

   opnfv_yardstick_tc028.rst

Parser
------

.. toctree::
   :maxdepth: 1

   opnfv_yardstick_tc040.rst

   StorPerf
-----------

.. toctree