~ubuntu-branches/ubuntu/wily/libffado/wily-proposed

« back to all changes in this revision

Viewing changes to support/tools/ffado-diag.in

  • Committer: Bazaar Package Importer
  • Author(s): Adrian Knoth
  • Date: 2011-01-24 11:26:14 UTC
  • mfrom: (8.1.10 experimental)
  • Revision ID: james.westby@ubuntu.com-20110124112614-4sqqkml2lm07zgru
Tags: 2.0.99+svn1949-1
* Imported Upstream version 2.0.99+svn1949
* Fixed MIDI channel detection on Echo AudioFire series
* Added support for Mackie Onyx i-Series

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
 
4
4
#
5
5
# Copyright (C) 2008 Pieter Palmers
 
6
#               2009-2010 Arnold Krille
6
7
#
7
8
# This program is free software: you can redistribute it and/or modify
8
9
# it under the terms of the GNU General Public License as published by
38
39
FFADO diagnostic utility """ + FFADODIAG_VERSION + """
39
40
============================
40
41
(C) 2008 Pieter Palmers
 
42
    2009-2010 Arnold Krille
41
43
 
42
44
"""
43
45
 
71
73
    # check kernel
72
74
    kernel_version = get_kernel_version()
73
75
    print "  kernel version............ " + str(kernel_version)
74
 
    kernel_is_rt_patched = get_kernel_rt_patched()
75
 
    print "   RT patched............... " + str(kernel_is_rt_patched)
 
76
    # Hint: The main parts of the rt patches are in mainline-kernels nowadays. Performance with stock kernels is sufficient...
 
77
    #kernel_is_rt_patched = get_kernel_rt_patched()
 
78
    #print "   RT patched............... " + str(kernel_is_rt_patched)
76
79
    
77
80
    # check modules
78
81
    oldstack_present = check_1394oldstack_present()
134
137
    print "   Host controllers:"
135
138
    list_host_controllers()
136
139
    print "   CPU info:"
137
 
    print run_command("cat /proc/cpuinfo")
 
140
    if len(run_command("which lscpu")) > 0:
 
141
        print run_command("lscpu")
 
142
    else:
 
143
        print run_command("cat /proc/cpuinfo")
138
144
 
139
145
    print " Configuration..."
140
146
    # check RT settings