TV cards configuration |
modules/Tv.ycp |
Data for configuration of tv, input and output functions. | |
|
|
This module has an unstable interface. |
List of all the configured cards. It is read in ReadDialog()
- Example
-
[ $[ "name" : string "module" : string, "parameters" : $[ string : string ], "unique_key" : string, "sound_card_no" : integer ], ... ]
List of cards which user chooses to delete.
If the list of the cards changes, this is set to true and Write() must be called.
The card which is currently being configured. It will become an entry in the "cards" list.
The number of card which is currently being configured. It has its meaning only when editing the entry.
List of all the detected cards. It is initialized in ReadDialog()
- Example
-
[ $[ "name" : string, "module" : string, "unique_key" : string, ], ... ]
Database of the TV cards for the manual configuration. It is a list of maps with vendors, and each of the vendor contains a list of cards with the kernel module and its parameters. It is read in ReadDialog()
- Example
-
[ $[ "name" : "ATI", "cards" : [ $[ "name" : "ATI TV-Wonder VE", "module" : "bttv", "parameters" : $[ "card" : "64" ] ], ... ], ], ... ]
Database of the tuners for the manual configuration. It is a map, where the name of the kernel module is the key and a list of maps with name and the module parameters is the value. It is read in ReadDialog()
- Example
-
$[ "kernel_module1" : [ $[ "name" : "Alps HSBH1", "parameters" : $[ "tuner" : "9" ] ], ... ], ... ]
Tuner database organized in map of the form $[ tuner_id : tuner_map]
- Example
-
$[ "bttv" : $[ "9": $[ "name" : "Alps HSBH1", "parameters" : $[ "tuner" : "9" ]] ] ]
Map of available TV kernel modules and their parameters.
Becomes true, when the module is initialized for proposal.
If YaST should check the presence of TV/radio application
yast temporary directory
This is true, if tv data were read from /etc/modprobe.conf On write, they shoud be removed and written only to /etc/modprobe.d/50-tv.conf
Were TV stations modified?
Configuration of TV stations (contents of /etc/X11/xawtvrc file)
kerenel module used for lirc
configuration file for IR control
Is IRC used?
Is IRC modified?
Kernel modules for LIRC
Map of lirc modules, together with their description (from modinfo)
Paths to config files of various remote controls
TV cards using irc_kbd_gpio module (matching card numbers from tv_cards.ycp)
id's of TV cards, using irc_kbd_gpio module gathered from lirc_gpio.c and bttv-cards.c
Set confirmation flag - when set to false the extra recommended packages are installed automatically
- Parameters:
-
ask new confirmation flag
Get the current value of the confirmation flag
- Return value:
-
true if confirmation is enabled
Dialog which asks for installing proposed application
- Parameters:
-
apps list of applications to install text text to show in dialog
Read the state of "not_ask" variable (if the TV/radio application presence should be checked again next time)
- Return value:
-
not_ask value
Read the database of the TV cards.
- Return value:
-
Was the read successful?
Read the database of the tuners.
- Return value:
-
Was the read successful?
Return description of one kernel module
- Parameters:
-
modname
Get a list of the available v4l kernel modules and store it to kernel_modules map.
- Return value:
-
Returns true.
Returns a list of all char-major-81-* in modprobe config file
- Parameters:
-
mod_path path to agent (using modprobe.conf or modprobe.d/50-tv.conf)
- Return value:
-
List [ "char-major-81-0", "char-major-81-3" ] or so...
Returns a list of all char-major-212-* in modprobe config file
- Parameters:
-
mod_path path to agent (using modprobe.conf or modprobe.d/50-tv.conf)
- Return value:
-
List [ "char-major-212-3" ] or so...
Read parameters of one module.
- Parameters:
-
mod_path path to agent (using modprobe.conf or modprobe.d/50-tv.conf) module_name Name of the module
- Return value:
-
Map with parameters
- Example
-
$[ parameter_name: // parameter name $[ 0: nil, // its value for 1st card 1: "3", // 2nd card ...
Reads saved TV cards data from given file
- Parameters:
-
mod_path path to agent (using modprobe.conf or modprobe.d/50-tv.conf)
- Return value:
-
of TV cards
Install firmware for all configured cards
- Return value:
-
True on success
Fill the map of all tv settings from the SCR.
- Return value:
-
Was the reading succesfull?
Writes parameters of the modules. As an input, it uses a map with modules and all their parameters:
$[ "module" : // name of the module [ no_last_param, // number of cards using this modules $[ parameter_name: // parameter name $[ 0: nil, // its value for 1st card 1: "3", // 2nd card
- Parameters:
-
modules_parameters Map with the modules and parameters
- Return value:
-
Was the write successful?
Removes all hwcfg files created by this module (they are not needed anymore)
Remove the configured cards from the blacklist (/etc/modprobe.d/blacklist) to enable automatic module loading after reboot of the system (see bug #330109).
Write the TV settings to the SCR.
- Return value:
-
Was the reading successful?
Write the sound settings needed for TV to the SCR.
- Return value:
-
Was the reading succesfull?
Scan for the TV cards.
- Return value:
-
Return false if the module should be terminated.
Returns a list with the overview of the installed cards. It can be used in Summary::DevicesList().
- Return value:
-
Description of the installed cards
Get indexth card.
- Parameters:
-
index Index of the card to get.
- Return value:
-
The 'index'th card or nil
Add the current_card to the cards. Try to fill holes after removes.
- Return value:
-
Index of the added card.
Replace indexth card with the current_card.
- Parameters:
-
index The index of the card to replace.
- Return value:
-
Returns true if successfully replaced.
Remove indexth card. Does not touch current_card. (In fact, we just replace the card on the position of 'index' with nil.)
- Parameters:
-
index The index of the card to remove.
- Return value:
-
Returns true if the card was erased.
If the configuration was changed by the user, this will return true.
- Return value:
-
Has the configuration changed?
Creates a list of unique keys of cards that are already installed.
- Return value:
-
List of the unque keys.
Return card index
- Parameters:
-
uniq Unique ID of the card
- Return value:
-
index or nil if ID was not found
Creates the content of the "configured card" Table in OverviewDialog()
- Return value:
-
List of `item()s
Creates the content of the "configured card" Table in OverviewDialog()
- Return value:
-
List of `item()s
Get indexth card.
- Parameters:
-
index Index of the card to get.
- Return value:
-
The 'index'th card or nil
List of the TV cards acceptable by the Selection Box widget in the DetectedDialog(). The already installed cards are filtered out.
- Return value:
-
List of TV cards including Other (not detected) with `id(-1))
Grab the TV card from the database
- Parameters:
-
card_model model ID (to be set as "card=xx" module parameter) modname kernel module name (not necessary, used only to differene the cards with same id)
- Return value:
-
card map
Create a list of items for the "Vendors:" SelectionBox in the ManualDialog() screen.
- Parameters:
-
autodetected The autodetected card must be present in the database so we add it if needed. parameters Parameters of card that should be preselected. mod Kernel module the reselected card uses
- Return value:
-
List of list of `item()s and number of the vendor to preselect
Create a list of cards of the selected vendor.
- Parameters:
-
autodetected The autodetected card must be present in the database so we add it if needed. sel_vendor The number of the selected vendor.
- Return value:
-
List of cards of the selected vendor.
Returns the tuner map according to its ID
- Parameters:
-
kernel_name Name of the main module for this card. tuner_id ID of selected tuner
- Return value:
-
Tuner
Are there any tuners for the kernel_module?
- Parameters:
-
kernel_module Name of the main module for this card.
- Return value:
-
Are there available tuners for it?
List of tuners for TV cards acceptable by the SelectionBox widget.
- Parameters:
-
kernel_module The module for which do we need the list. selected_tuner The previously selected tuner.
- Return value:
-
List of `item()s.
Return the numberth tuner.
- Parameters:
-
kernel_module The module for which do we need the list. number The number of the tuner to be selected.
- Return value:
-
Tuner.
List of the kernel modules for radio cards acceptable by the Combo Box widget in the ManualDetailsDialog().
- Parameters:
-
modules selected_module The module which should be selected in the widget
- Return value:
-
List of `item()s
List of the parameters for the selected kernel module acceptable by the Table widget in the ManualDetailsDialog().
- Parameters:
-
modules selected_module The module which is selected in the Combo Box. parameters The current values of the kernel module parameters.
- Return value:
-
List of `item()s.
Read IRC settings
- Return value:
-
Symbol for next or abort dialog.
Write IRC settings
- Return value:
-
Symbol for next or abort dialog.
Load the desription of irc kernel modules (modinfo)
Decides which LIRC module can be used accoring to current TV card
- Return value:
-
module name
Read the whole contents of xawtvrc file and return it as a map
- Parameters:
-
pth
Write to /etc/X11/xawtvrc
Load the modules for TV suport now, use current (not yet saved) options It calls something like 'modprobe -C /dev/null bttv card=2 tuner=23'
- Return value:
-
empty string on success, error message otherwise
Initialize stations configuration (read global config etc.)
Read all TV card settings from the SCR
- Parameters:
-
abort A block that can be called by Read to find out whether abort is requested. Returns true if abort was pressed.
- Return value:
-
True on success
Update the SCR according to tv settings
- Parameters:
-
abort A block that can be called by Write to find out whether abort is requested. Returns true if abort was pressed.
- Return value:
-
True on success
Get all TV settings from the first parameter (For use by autoinstallation.)
- Parameters:
-
settings The YCP structure to be imported.
- Return value:
-
True on success
Dump the tv settings to a single map (For use by autoinstallation.)
- Return value:
-
Dumped settings (later acceptable by Import ())
Create a configuration automagically.
Build a textual summary that can be used e.g. in inst_hw_config () or something similar.
- Return value:
-
Summary of the configuration.