Tools

list

 

EXAMPLES OF USING MEMTESTER

ABOUT OPTION.

#memtester

Usage: memtester [-p physaddrbase [-d device]] <mem>[B|K|M|G] [loops]

EXAMPLE

s5p4418 : memtester 50M & (x3)
s5p6818 : memtester 50M & (x7)
– check process alive over 12 hours.


EXAMPLES OF USING TINYPLAY

This application tested at android.

about option.

# tinyplay

Usage: tinyplay file.wav [-D card] [-d device] [-p period_size] [-n n_periods]

EXAMPLE

#  tinyplay S16_2CH_48000HZ.wav -D 0 -d 0

#  tinyplay S16_2CH_48000HZ.wav -D 1 -d 0


EXAMPLES OF USING APLAY

ABOUT OPTION.

# aplay
Usage: aplay [OPTION]… [FILE]…

-h, –help help
–version print current version
-l, –list-devices list all soundcards and digital audio devices
-L, –list-pcms list device names
-D, –device=NAME select PCM by name
-q, –quiet quiet mode
-t, –file-type TYPE file type (voc, wav, raw or au)
-c, –channels=# channels
-f, –format=FORMAT sample format (case insensitive)
-r, –rate=# sample rate
-d, –duration=# interrupt after # seconds
-s, –samples=# interrupt after # samples per channel
-M, –mmap mmap stream
-N, –nonblock nonblocking mode
-F, –period-time=# distance between interrupts is # microseconds
-B, –buffer-time=# buffer duration is # microseconds
–period-size=# distance between interrupts is # frames
–buffer-size=# buffer duration is # frames
-A, –avail-min=# min available space for wakeup is # microseconds
-R, –start-delay=# delay for automatic PCM start is # microseconds
(relative to buffer size if <= 0)
-T, –stop-delay=# delay for automatic PCM stop is # microseconds from xrun
-v, –verbose show PCM structure and setup (accumulative)
-V, –vumeter=TYPE enable VU meter (TYPE: mono or stereo)
-I, –separate-channels one file for each channel
-i, –interactive allow interactive operation from stdin
-m, –chmap=ch1,ch2,.. Give the channel map to override or follow
–disable-resample disable automatic rate resample
–disable-channels disable automatic channel conversions
–disable-format disable automatic format conversions
–disable-softvol disable software volume control (softvol)
–test-position test ring buffer position
–test-coef=# test coefficient for ring buffer position (default 8)
expression for validation is: coef * (buffer_size / 2)
–test-nowait do not wait for ring buffer – eats whole CPU
–max-file-time=# start another output file when the old file has recorded
for this many seconds
–process-id-file write the process ID here
–use-strftime apply the strftime facility to the output file name
–dump-hw-params dump hw_params of the device
–fatal-errors treat all errors as fatal
Recognized sample formats are: S8 U8 S16_LE S16_BE U16_LE U16_BE S24_LE S24_BE U24_LE U24_BE S32_LE S32_BE U32_LE U32_BE FLOAT_LE FLOAT_BE FLOAT64_LE FLOAT64_BE IEC958_SUBFRAME_LE IEC958_SUBFRAME_BE MU_LAW A_LAW IMA_ADPCM MPEG GSM SPECIAL S24_3LE S24_3BE U24_3LE U24_3BE S20_3LE S20_3BE U20_3LE U20_3BE S18_3LE S18_3BE U18_3LE U18_3BE G723_24 G723_24_1B G723_40 G723_40_1B DSD_U8 DSD_U16_LE DSD_U32_LE DSD_U16_BE DSD_U32_BE
Some of these may not be available on selected hardware
The available format shortcuts are:
-f cd (16 bit little endian, 44100, stereo)
-f cdr (16 bit big endian, 44100, stereo)
-f dat (16 bit little endian, 48000, stereo)

EXAMPLE

# aplay S16_2CH_48000HZ.wav -D hw:0,0 (codec)
# aplay S16_2CH_48000HZ.wav -D hw:1,0 (codec)
# aplay S16_2CH_48000HZ.wav -D hw:0,2 (spidif)

 


Examples of using MODETEST

ABOUT OPTION.

 Query options:

        -c      list connectors

        -e      list encoders

        -f      list framebuffers

        -p      list CRTCs and planes (pipes)

 Test options:

        -P <plane_id>@<crtc_id>:<w>x<h>[+<x>+<y>][*<scale>][@<format>]  set a plane

        -s <connector_id>[,<connector_id>][@<crtc_id>]:<mode>[-<vrefresh>][@<format>]   set a mode

        -C      test hw cursor

        -v      test vsynced page flipping

        -w <obj_id>:<prop_name>:<value> set property

 Generic options:

        -d      drop master after mode set

        -M module       use the given driver

        -D device       use the given device

        Default is to dump all info.

Example

# modetest -M nexell

Encoders:

id      crtc    type    possible crtcs  possible clones

40      26      TMDS    0x00000003      0x00000000

42      0       TMDS    0x00000003      0x00000000

Connectors:

id      encoder status          name            size (mm)       modes   encoders

41      40      connected       VGA-1           0x0             1       40

  modes:

        name refresh (Hz) hdisp hss hse htot vdisp vss vse vtot)

  1920×720 46 1920 1950 1954 1984 720 730 732 742 68266 flags: phsync, pvsync; type:

  props:

        1 EDID:

                flags: immutable blob

                blobs:

                value:

        2 DPMS:

                flags: enum

                enums: On=0 Standby=1 Suspend=2 Off=3

                value: 0

43      0       disconnected    HDMI-A-1        0x0             0       42

  props:

        1 EDID:

                flags: immutable blob

                blobs:

                value:

        2 DPMS:

                flags: enum

                enums: On=0 Standby=1 Suspend=2 Off=3

                value: 3

CRTCs:

id      fb      pos     size

26      50      (0,0)   (1920×720)

  1920×720 46 1920 1950 1954 1984 720 730 732 742 68266 flags: phsync, pvsync; type:

  props:

35      0       (0,0)   (0x0)

   0 0 0 0 0 0 0 0 0 0 flags: ; type:

  props:

Planes:

id      crtc    fb      CRTC x,y        x,y     gamma size      possible crtcs

18      0       0       0,0             0,0     0               0x00000001

  formats: RG16 BG16 RG24 BG24 XR24 XB24 AR24 AB24

  props:

        5 type:

                flags: immutable enum

                enums: Overlay=0 Primary=1 Cursor=2

                value: 0

        19 transcolor:

                flags: range

                values: 0 4294967295

                value: 0

        20 alphablend:

                flags: range

                values: 0 4294967295

                value: 0

        21 video-priority:

                flags: range

                values: 0 2

                value: 2

22      26      50      0,0             0,0     0               0x00000001

  formats: RG16 BG16 RG24 BG24 XR24 XB24 AR24 AB24

  props:

        5 type:

                flags: immutable enum

                enums: Overlay=0 Primary=1 Cursor=2

                value: 1

        23 transcolor:

                flags: range

                values: 0 4294967295

                value: 0

        24 alphablend:

                flags: range

                values: 0 4294967295

                value: 0

        25 video-priority:

                flags: range

                values: 0 2

                value: 2

27      0       0       0,0             0,0     0               0x00000001

  formats: YUYV YVYU UYVY VYUY NV12 NV21 NV16 NV61 YUV9 YVU9 YU11 YV11 YU12 YV12 YU16 YV16 YU24 YV24

  props:

        5 type:

                flags: immutable enum

                enums: Overlay=0 Primary=1 Cursor=2

                value: 0

        28 colorkey:

                flags: range

                values: 0 4294967295

                value: 0

        29 transcolor:

                flags: range

                values: 0 4294967295

                value: 15

        30 video-priority:

                flags: range

                values: 0 2

                value: 2

31      0       0       0,0             0,0     0               0x00000002

  formats: RG16 BG16 RG24 BG24 XR24 XB24 AR24 AB24

  props:

        5 type:

                flags: immutable enum

                enums: Overlay=0 Primary=1 Cursor=2

                value: 1

        32 transcolor:

                flags: range

                values: 0 4294967295

                value: 0

        33 alphablend:

                flags: range

                values: 0 4294967295

                value: 0

        34 video-priority:

                flags: range

                values: 0 2

                value: 1

36      0       0       0,0             0,0     0               0x00000002

  formats: YUYV YVYU UYVY VYUY NV12 NV21 NV16 NV61 YUV9 YVU9 YU11 YV11 YU12 YV12 YU16 YV16 YU24 YV24

  props:

        5 type:

                flags: immutable enum

                enums: Overlay=0 Primary=1 Cursor=2

                value: 0

        37 colorkey:

                flags: range

                values: 0 4294967295

                value: 0

        38 transcolor:

                flags: range

                values: 0 4294967295

                value: 15

        39 video-priority:

                flags: range

                values: 0 2

                value: 1

Frame buffers:

id      size    pitch

# modetest -M nexell -s 41@26:1920×720

→  Primary Color bar test

# modetest -M nexell -v -s 41@26:1920×720

→  page flipping test

# modetest -M nexell -P 18@26:1920×720@RG24

# modetest -M nexell -v -s 41@26:1920×720 -P 18@26:800×600

# modetest -M nexell -s 41@26:1920×720 -P 22@26:800×600

# modetest -M nexell -w 27:video-priority:0

→  set Planes 27, video-priority 2 –> 0

# modetest -M nexell -s 41@26:1920×720 -P 27@26:800×600@YUYV