| 1 |
#!/usr/bin/python |
|---|
| 2 |
# |
|---|
| 3 |
|
|---|
| 4 |
# |
|---|
| 5 |
# Copyright (C) 2008 Pieter Palmers |
|---|
| 6 |
# |
|---|
| 7 |
# This program is free software: you can redistribute it and/or modify |
|---|
| 8 |
# it under the terms of the GNU General Public License as published by |
|---|
| 9 |
# the Free Software Foundation, version 3 of the License. |
|---|
| 10 |
# |
|---|
| 11 |
# This program is distributed in the hope that it will be useful, |
|---|
| 12 |
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
|---|
| 13 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|---|
| 14 |
# GNU General Public License for more details. |
|---|
| 15 |
# |
|---|
| 16 |
# You should have received a copy of the GNU General Public License |
|---|
| 17 |
# along with this program. If not, see <http://www.gnu.org/licenses/>. |
|---|
| 18 |
# |
|---|
| 19 |
|
|---|
| 20 |
# |
|---|
| 21 |
# Help strings for ffado problems |
|---|
| 22 |
# |
|---|
| 23 |
|
|---|
| 24 |
class HelpStrings: |
|---|
| 25 |
def __init__(self): |
|---|
| 26 |
strings = {} |
|---|
| 27 |
strings['MODULES_OLD_STACK_NOT_INSTALLED']=""" |
|---|
| 28 |
FireWire kernel stack not present. Please compile the kernel with |
|---|
| 29 |
FireWire support. |
|---|
| 30 |
""" |
|---|
| 31 |
strings['MODULES_BOTH_STACKS_LOADED']=""" |
|---|
| 32 |
Both old and new FireWire kernel modules are loaded, your system |
|---|
| 33 |
configuration is bogus. |
|---|
| 34 |
""" |
|---|
| 35 |
strings['MODULES_NEW_STACK_LOADED']=""" |
|---|
| 36 |
The new FireWire kernel stack is loaded. |
|---|
| 37 |
This stack is not supported by FFADO. Please use the old stack. |
|---|
| 38 |
""" |
|---|
| 39 |
strings['MODULES_OLD_STACK_NOT_LOADED']=""" |
|---|
| 40 |
FireWire kernel module(s) not found. |
|---|
| 41 |
Please ensure that the raw1394 module is loaded. |
|---|
| 42 |
""" |
|---|
| 43 |
strings['DEVNODE_OLD_STACK_NOT_PRESENT']=""" |
|---|
| 44 |
/dev/raw1394 device node not present. |
|---|
| 45 |
Please fix your udev configuration or add it as a static node. |
|---|
| 46 |
""" |
|---|
| 47 |
strings['DEVNODE_OLD_STACK_NO_PERMISSION']=""" |
|---|
| 48 |
Not enough permissions to access /dev/raw1394 device. |
|---|
| 49 |
Please fix your udev configuration, the node permissions or |
|---|
| 50 |
the user/group permissions. |
|---|
| 51 |
""" |
|---|
| 52 |
|
|---|
| 53 |
self.strings=strings |
|---|
| 54 |
|
|---|
| 55 |
def get(self, sid): |
|---|
| 56 |
return self.strings[sid] |
|---|
| 57 |
|
|---|
| 58 |
def show(self, sid): |
|---|
| 59 |
print self.get(sid) |
|---|
| 60 |
|
|---|