#include "AlsaAudio.h"
#include <YCP.h>
#include <y2util/y2log.h>
#include <alsa/asoundlib.h>
#include <string>
Defines | |
#define | __HAVE_ALSA 1 |
#define | INIT_MIXER |
Functions | |
YCPValue | alsaGetVolume (int card_id, const string &channel_name) |
YCPValue | alsaGetMute (int card_id, const string &channel_name) |
YCPBoolean | alsaSetVolume (int card_id, const string &channel_name, int value) |
YCPBoolean | alsaSetMute (int card_id, const string &channel_name, bool value) |
YCPList | alsaGetChannels (int card_id) |
YCPList | alsaGetCards () |
YCPValue | alsaStore (int card) |
YCPValue | alsaRestore (int card) |
YCPValue | alsaGetCardName (int card_id) |
#define __HAVE_ALSA 1 |
#define INIT_MIXER |
Referenced by alsaGetChannels(), alsaGetMute(), alsaGetVolume(), alsaSetMute(), and alsaSetVolume().
YCPValue alsaGetCardName | ( | int | card_id | ) |
alsaGetCardName returns (long) name of card
Referenced by AudioAgent::Read().
YCPList alsaGetCards | ( | ) |
getCards returns list of running cards- list of strings
References YCPList::add(), and str.
Referenced by AudioAgent::Dir().
YCPList alsaGetChannels | ( | int | card | ) |
getChannels- list of available channels for card id
card | card id |
References YCPList::add(), YastChannelId::asString(), YastChannelId::index(), INIT_MIXER, YastChannelId::name(), and y2milestone.
Referenced by AudioAgent::Dir().
YCPValue alsaGetMute | ( | int | card_id, | |
const string & | channel_name | |||
) |
References YastChannelId::index(), INIT_MIXER, YastChannelId::name(), y2debug, and y2warning.
Referenced by AudioAgent::Read().
YCPValue alsaGetVolume | ( | int | card_id, | |
const string & | channel_name | |||
) |
References YastChannelId::index(), INIT_MIXER, YastChannelId::name(), y2debug, and y2warning.
Referenced by AudioAgent::Read().
YCPValue alsaRestore | ( | int | card = -1 |
) |
restores settings for given card. if card==-1 restore all.
References y2milestone.
Referenced by AudioAgent::Execute().
YCPBoolean alsaSetMute | ( | int | card_id, | |
const string & | channel_name, | |||
bool | value | |||
) |
References INIT_MIXER, y2debug, and y2warning.
Referenced by AudioAgent::Write().
YCPBoolean alsaSetVolume | ( | int | card_id, | |
const string & | channel_name, | |||
int | value | |||
) |
References YastChannelId::index(), INIT_MIXER, YastChannelId::name(), y2debug, and y2warning.
Referenced by AudioAgent::Write().
YCPValue alsaStore | ( | int | card = -1 |
) |
stores setting for given card. if card==-1 store all. param card card id
References y2milestone.
Referenced by AudioAgent::Execute().