summaryrefslogtreecommitdiff
path: root/audio.c
diff options
context:
space:
mode:
authorJohns <johns98@gmx.net>2012-02-09 16:01:36 +0100
committerJohns <johns98@gmx.net>2012-02-09 16:01:36 +0100
commit8c16466d318350b769615ee365ecc2b6a85dda5d (patch)
tree4ef965fb993d373268fdae7e4e3a4bd668ef15e8 /audio.c
parentced54a5cf15e49c3da6baed3ad2a0758d2897735 (diff)
downloadvdr-plugin-softhddevice-8c16466d318350b769615ee365ecc2b6a85dda5d.tar.gz
vdr-plugin-softhddevice-8c16466d318350b769615ee365ecc2b6a85dda5d.tar.bz2
Set mixer channel through command line option
Diffstat (limited to 'audio.c')
-rw-r--r--audio.c14
1 files changed, 13 insertions, 1 deletions
diff --git a/audio.c b/audio.c
index 4a72161..5dec74a 100644
--- a/audio.c
+++ b/audio.c
@@ -822,7 +822,7 @@ static void AlsaInitMixer(void)
const char *name;
name = snd_mixer_selem_get_name(alsa_mixer_elem);
- if (strcasecmp(name, alsa_mixer_elem_name) == 0) {
+ if (!strcasecmp(name, alsa_mixer_elem_name)) {
snd_mixer_selem_get_playback_volume_range(alsa_mixer_elem,
&alsa_mixer_elem_min, &alsa_mixer_elem_max);
AlsaRatio =
@@ -2151,6 +2151,18 @@ void AudioSetDeviceAC3(const char *device)
}
/**
+** Set pcm audio mixer channel.
+**
+** @param channel name of the mixer channel (fe. PCM or Master)
+**
+** @note this is currently used to select alsa/OSS output module.
+*/
+void AudioSetChannel(const char *channel)
+{
+ AudioMixerChannel = channel;
+}
+
+/**
** Initialize audio output module.
**
** @todo FIXME: make audio output module selectable.