Graybyt3 Was Here
Linux vps-4656817-x.dattaweb.com 5.14.0-570.33.2.el9_6.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Aug 14 07:37:35 EDT 2025 x86_64
Apache
200.58.107.103
/
lib
/
python3.9
/
site-packages
/
tuned
/
plugins
/
__pycache__
[ HOME ]
Exec
Submit
plugin_audio.cpython-39.opt-1.pyc
a ,�g� � @ sn d dl mZ d dlT ddlZddlmZ ddlZddlZddl Z ddl Z ej�� Z e� ZG dd� dej�ZdS )� )�hotplug)�*� N)�commandsc @ s� e Zd ZdZdd� Zdd� Zdd� Zdd � Zed d� �Z dd � Z dd� Zeddd�dd� �Z ed�ddd��Zeddd�dd� �Zed�ddd��ZdS ) �AudioPlugina� Sets audio cards power saving options. The plug-in sets the auto suspend timeout for audio codecs to the value specified by the [option]`timeout` option. Currently, the `snd_hda_intel` and `snd_ac97_codec` codecs are supported and the [option]`timeout` value is in seconds. To disable auto suspend for these codecs, set the [option]`timeout` value to `0`. To enforce the controller reset, set the option [option]`reset_controller` to `true`. Note that power management is supported per module. Hence, the kernel module names are used as device names. .Set the timeout value to 10s and enforce the controller reset ==== ---- [audio] timeout=10 reset_controller=true ---- ==== c C sP d| _ t� | _t� | _| j�d��d�D ]"}| �|�}|dv r(| j�|� q(d S )NTZsoundzcard*)Z snd_hda_intelZsnd_ac97_codec) Z_devices_supported�setZ_assigned_devicesZ _free_devicesZ_hardware_inventoryZget_devicesZmatch_sys_name�_device_module_name�add)�self�deviceZmodule_name� r �>/usr/lib/python3.9/site-packages/tuned/plugins/plugin_audio.py� _init_devices&