I've been trying to use OSS audio with MythTV 0.21 (LinHES R6.00.01) and now MythTV 0.22012 (LinHES R6 Testing), but for some reason I cannot get the volume control to work under MythTV. Just wondering if anyone else is able to do this successfully. I've been trying OSS audio because the ALSA driver on R6 does not seem to support my new motherboard (so I suppose the easiest solution may to be upgrade ALSA).
I've selected OSS Audio in the LinHES service menu, and the audio seems to work fine except for the volume control. I can run ossmixer and control the volume, but there is no response to volume adjustments within MythTV. I have MythTV configured for audio device /dev/dsp, and mixer device /dev/mixer (have tried /dev/mixer0 and /dev/mixer1), "stereo" sound, and tried both "master" & "pcm" control options.
The following messages appear in mythfrontend.log:
Code:
2010-02-28 23:46:30.047 Opening audio device '/dev/dsp'. ch 2(2) sr 48000
2010-02-28 23:46:30.047 Opening OSS audio device '/dev/dsp'.
2010-02-28 23:46:30.052 AudioOuputOSS, Error: Error Setting initial Master Volume
eno: Invalid argument (22)
2010-02-28 23:46:30.052 AudioOuputOSS, Error: Error setting initial PCM Volume
eno: Invalid argument (22)
2010-02-28 23:46:30.052 Error reading volume for channel 0
Reading PCM volume: : Invalid argument
2010-02-28 23:46:30.052 Error reading volume for channel 1
Reading PCM volume: : Invalid argument
2010-02-28 23:46:30.052 Error setting volume on channel: 0
Setting volume: : Invalid argument
2010-02-28 23:46:30.052 Error reading volume for channel 0
Reading PCM volume: : Invalid argument
2010-02-28 23:46:30.052 Error setting volume on channel: 1
Setting volume: : Invalid argument
OSS audio seems to be loaded OK and there seems to be a mixer device:
Code:
> ls -l /dev/mix*
crw-rw-rw- 1 root root 250, 1 Feb 28 23:14 /dev/mixer
lrwxrwxrwx 1 root root 22 Feb 28 23:14 /dev/mixer0 -> /dev/oss/oss_ich0/mix0
lrwxrwxrwx 1 root root 26 Feb 28 23:14 /dev/mixer1 -> /dev/oss/oss_hdaudio0/mix0
> ls -l /dev/dsp*
lrwxrwxrwx 1 root root 26 Feb 28 23:14 /dev/dsp -> /dev/oss/oss_hdaudio0/pcm0
lrwxrwxrwx 1 root root 22 Feb 28 23:14 /dev/dsp0 -> /dev/oss/oss_ich0/pcm0
lrwxrwxrwx 1 root root 26 Feb 28 23:14 /dev/dsp1 -> /dev/oss/oss_hdaudio0/pcm0
lrwxrwxrwx 1 root root 28 Feb 28 23:14 /dev/dsp10 -> /dev/oss/oss_hdaudio0/spdin0
lrwxrwxrwx 1 root root 26 Feb 28 23:14 /dev/dsp2 -> /dev/oss/oss_hdaudio0/pcm1
lrwxrwxrwx 1 root root 26 Feb 28 23:14 /dev/dsp3 -> /dev/oss/oss_hdaudio0/pcm2
lrwxrwxrwx 1 root root 26 Feb 28 23:14 /dev/dsp4 -> /dev/oss/oss_hdaudio0/pcm3
lrwxrwxrwx 1 root root 26 Feb 28 23:14 /dev/dsp5 -> /dev/oss/oss_hdaudio0/pcm4
lrwxrwxrwx 1 root root 29 Feb 28 23:14 /dev/dsp6 -> /dev/oss/oss_hdaudio0/spdout0
lrwxrwxrwx 1 root root 28 Feb 28 23:14 /dev/dsp7 -> /dev/oss/oss_hdaudio0/pcmin0
lrwxrwxrwx 1 root root 28 Feb 28 23:14 /dev/dsp8 -> /dev/oss/oss_hdaudio0/pcmin1
lrwxrwxrwx 1 root root 28 Feb 28 23:14 /dev/dsp9 -> /dev/oss/oss_hdaudio0/pcmin2
lrwxrwxrwx 1 root root 22 Feb 28 23:14 /dev/dsp_ac3 -> /dev/oss/oss_ich0/pcm0
lrwxrwxrwx 1 root root 26 Feb 28 23:14 /dev/dsp_in -> /dev/oss/oss_hdaudio0/pcm0
lrwxrwxrwx 1 root root 22 Feb 28 23:14 /dev/dsp_mmap -> /dev/oss/oss_ich0/pcm0
lrwxrwxrwx 1 root root 22 Feb 28 23:14 /dev/dsp_multich -> /dev/oss/oss_ich0/pcm0
lrwxrwxrwx 1 root root 26 Feb 28 23:14 /dev/dsp_out -> /dev/oss/oss_hdaudio0/pcm0
> ossinfo
Version info: OSS 4.1 (b 1051/200902180218) (0x00040100) GPL
Platform: Linux/i686 2.6.28-LinHES #1 SMP PREEMPT Sun Nov 1 06:47:02 UTC 2009 (MythTV)
Number of audio devices: 10
Number of audio engines: 14
Number of mixer devices: 1
Device objects
0: osscore0 OSS core services
1: oss_usb0 USB audio core services
2: oss_hdaudio0 Intel HD Audio interrupts=46271 (46271)
HD Audio controller Intel HD Audio
Vendor ID 0x80863a3e
Subvendor ID 0x1458a002
Codec 2: ALC885 (0x10ec0885/0x1458a102)
Mixer devices
0: High Definition Audio ALC885 (Mixer 0 of device object 2)
Audio devices
HD Audio play front /dev/oss/oss_hdaudio0/pcm0 (device index 0)
HD Audio play rear /dev/oss/oss_hdaudio0/pcm1 (device index 1)
HD Audio play center/LFE /dev/oss/oss_hdaudio0/pcm2 (device index 2)
HD Audio play side /dev/oss/oss_hdaudio0/pcm3 (device index 3)
HD Audio play pcm4 /dev/oss/oss_hdaudio0/pcm4 (device index 4)
HD Audio play spdif-out /dev/oss/oss_hdaudio0/spdout0 (device index 5)
HD Audio rec mix /dev/oss/oss_hdaudio0/pcmin0 (device index 6)
HD Audio rec mix /dev/oss/oss_hdaudio0/pcmin1 (device index 7)
HD Audio rec mix /dev/oss/oss_hdaudio0/pcmin2 (device index 8)
HD Audio rec spdifin /dev/oss/oss_hdaudio0/spdin0 (device index 9)
> ossinfo -v9
Version info: OSS 4.1 (b 1051/200902180218) (0x00040100) GPL
Platform: Linux/i686 2.6.28-LinHES #1 SMP PREEMPT Sun Nov 1 06:47:02 UTC 2009 (MythTV)
Number of audio devices: 10
Number of audio engines: 14
Number of mixer devices: 1
Device objects
0: osscore0 OSS core services
1: oss_usb0 USB audio core services
2: oss_hdaudio0 Intel HD Audio interrupts=46271 (46271)
HD Audio controller Intel HD Audio
Vendor ID 0x80863a3e
Subvendor ID 0x1458a002
Codec 2: ALC885 (0x10ec0885/0x1458a102)
Mixer devices
0: High Definition Audio ALC885 (Mixer 0 of device object 2)
Device file /dev/oss/oss_hdaudio0/mix0, Legacy device /dev/mixer1
Priority: 10
Caps:
Device handle: PCIa0021458-0000:00:1b.0-mx01
Device priority: 10
Audio devices
HD Audio play front /dev/oss/oss_hdaudio0/pcm0 (device index 0)
Legacy device /dev/dsp1
Caps: DUPLEX TRIGGER MMAP
Modes: IN/OUT
Out engine 1: 0/HD Audio play front
Available for use
Engine 2: 10/HD Audio play front (vmix)
Available for use
Engine 3: 11/HD Audio play front (vmix)
Available for use
Engine 4: 12/HD Audio play front (vmix)
Available for use
Engine 5: 13/HD Audio play front (vmix)
Available for use
Input formats (0x00001010):
AFMT_S16_LE - 16 bit signed little endian
AFMT_S32_LE - 32 bit signed little endian
Output formats (0x00001010):
AFMT_S16_LE - 16 bit signed little endian
AFMT_S32_LE - 32 bit signed little endian
Device handle: PCIa0021458-0000:00:1b.0-au01
Related mixer dev: 0
Sample rate source: 0
Preferred channel configuration: Not indicated
Supported number of channels (min - max): 2 - 8
Native sample rates (min - max): 44100 - 192000 (44100,48000,96000,192000)
HW Type: Not indicated.
Minimum latency: Not indicated
HD Audio play rear /dev/oss/oss_hdaudio0/pcm1 (device index 1)
Legacy device /dev/dsp2
Caps: TRIGGER MMAP
Modes: OUTPUT
Out engine 1: 1/HD Audio play rear
Available for use
Input formats (0x00001010):
AFMT_S16_LE - 16 bit signed little endian
AFMT_S32_LE - 32 bit signed little endian
Output formats (0x00001010):
AFMT_S16_LE - 16 bit signed little endian
AFMT_S32_LE - 32 bit signed little endian
Device handle: PCIa0021458-0000:00:1b.0-au02
Related mixer dev: 0
Sample rate source: 0
Preferred channel configuration: Not indicated
Supported number of channels (min - max): 2 - 2
Native sample rates (min - max): 44100 - 192000 (44100,48000,96000,192000)
HW Type: Not indicated.
Minimum latency: Not indicated
HD Audio play center/LFE /dev/oss/oss_hdaudio0/pcm2 (device index 2)
Legacy device /dev/dsp3
Caps: TRIGGER MMAP
Modes: OUTPUT
Out engine 1: 2/HD Audio play center/LFE
Available for use
Input formats (0x00001010):
AFMT_S16_LE - 16 bit signed little endian
AFMT_S32_LE - 32 bit signed little endian
Output formats (0x00001010):
AFMT_S16_LE - 16 bit signed little endian
AFMT_S32_LE - 32 bit signed little endian
Device handle: PCIa0021458-0000:00:1b.0-au03
Related mixer dev: 0
Sample rate source: 0
Preferred channel configuration: Not indicated
Supported number of channels (min - max): 2 - 2
Native sample rates (min - max): 44100 - 192000 (44100,48000,96000,192000)
HW Type: Not indicated.
Minimum latency: Not indicated
HD Audio play side /dev/oss/oss_hdaudio0/pcm3 (device index 3)
Legacy device /dev/dsp4
Caps: TRIGGER MMAP
Modes: OUTPUT
Out engine 1: 3/HD Audio play side
Available for use
Input formats (0x00001010):
AFMT_S16_LE - 16 bit signed little endian
AFMT_S32_LE - 32 bit signed little endian
Output formats (0x00001010):
AFMT_S16_LE - 16 bit signed little endian
AFMT_S32_LE - 32 bit signed little endian
Device handle: PCIa0021458-0000:00:1b.0-au04
Related mixer dev: 0
Sample rate source: 0
Preferred channel configuration: Not indicated
Supported number of channels (min - max): 2 - 2
Native sample rates (min - max): 44100 - 192000 (44100,48000,96000,192000)
HW Type: Not indicated.
Minimum latency: Not indicated
HD Audio play pcm4 /dev/oss/oss_hdaudio0/pcm4 (device index 4)
Legacy device /dev/dsp5
Caps: TRIGGER MMAP
Modes: OUTPUT
Out engine 1: 4/HD Audio play pcm4
Available for use
Input formats (0x00001010):
AFMT_S16_LE - 16 bit signed little endian
AFMT_S32_LE - 32 bit signed little endian
Output formats (0x00001010):
AFMT_S16_LE - 16 bit signed little endian
AFMT_S32_LE - 32 bit signed little endian
Device handle: PCIa0021458-0000:00:1b.0-au05
Related mixer dev: 0
Sample rate source: 0
Preferred channel configuration: Not indicated
Supported number of channels (min - max): 2 - 2
Native sample rates (min - max): 44100 - 192000 (44100,48000,96000,192000)
HW Type: Not indicated.
Minimum latency: Not indicated
HD Audio play spdif-out /dev/oss/oss_hdaudio0/spdout0 (device index 5)
Legacy device /dev/dsp6
Caps: TRIGGER MMAP
Modes: OUTPUT
Out engine 1: 5/HD Audio play spdif-out
Available for use
Input formats (0x00001410):
AFMT_S16_LE - 16 bit signed little endian
AFMT_AC3 - AC3 (Dolby Digital) encoded audio
AFMT_S32_LE - 32 bit signed little endian
Output formats (0x00001410):
AFMT_S16_LE - 16 bit signed little endian
AFMT_AC3 - AC3 (Dolby Digital) encoded audio
AFMT_S32_LE - 32 bit signed little endian
Device handle: PCIa0021458-0000:00:1b.0-au06
Related mixer dev: 0
Sample rate source: 0
Preferred channel configuration: Not indicated
Supported number of channels (min - max): 2 - 2
Native sample rates (min - max): 44100 - 192000 (44100,48000,88200,96000,192000)
HW Type: Not indicated.
Minimum latency: Not indicated
HD Audio rec mix /dev/oss/oss_hdaudio0/pcmin0 (device index 6)
Legacy device /dev/dsp7
Caps: DUPLEX TRIGGER MMAP
Modes: IN/OUT
In engine 1: 6/HD Audio rec mix
Available for use
Engine 2: 10/HD Audio play front (vmix)
Available for use
Engine 3: 11/HD Audio play front (vmix)
Available for use
Engine 4: 12/HD Audio play front (vmix)
Available for use
Engine 5: 13/HD Audio play front (vmix)
Available for use
Input formats (0x00001010):
AFMT_S16_LE - 16 bit signed little endian
AFMT_S32_LE - 32 bit signed little endian
Output formats (0x00001010):
AFMT_S16_LE - 16 bit signed little endian
AFMT_S32_LE - 32 bit signed little endian
Device handle: PCIa0021458-0000:00:1b.0-au07
Related mixer dev: 0
Sample rate source: 0
Preferred channel configuration: Not indicated
Supported number of channels (min - max): 2 - 2
Native sample rates (min - max): 44100 - 192000 (44100,48000,96000,192000)
HW Type: Not indicated.
Minimum latency: Not indicated
HD Audio rec mix /dev/oss/oss_hdaudio0/pcmin1 (device index 7)
Legacy device /dev/dsp8
Caps: TRIGGER MMAP
Modes: INPUT
In engine 1: 7/HD Audio rec mix
Available for use
Input formats (0x00001010):
AFMT_S16_LE - 16 bit signed little endian
AFMT_S32_LE - 32 bit signed little endian
Output formats (0x00001010):
AFMT_S16_LE - 16 bit signed little endian
AFMT_S32_LE - 32 bit signed little endian
Device handle: PCIa0021458-0000:00:1b.0-au08
Related mixer dev: 0
Sample rate source: 0
Preferred channel configuration: Not indicated
Supported number of channels (min - max): 2 - 2
Native sample rates (min - max): 44100 - 192000 (44100,48000,96000,192000)
HW Type: Not indicated.
Minimum latency: Not indicated
HD Audio rec mix /dev/oss/oss_hdaudio0/pcmin2 (device index 8)
Legacy device /dev/dsp9
Caps: TRIGGER MMAP
Modes: INPUT
In engine 1: 8/HD Audio rec mix
Available for use
Input formats (0x00001010):
AFMT_S16_LE - 16 bit signed little endian
AFMT_S32_LE - 32 bit signed little endian
Output formats (0x00001010):
AFMT_S16_LE - 16 bit signed little endian
AFMT_S32_LE - 32 bit signed little endian
Device handle: PCIa0021458-0000:00:1b.0-au09
Related mixer dev: 0
Sample rate source: 0
Preferred channel configuration: Not indicated
Supported number of channels (min - max): 2 - 2
Native sample rates (min - max): 44100 - 192000 (44100,48000,96000,192000)
HW Type: Not indicated.
Minimum latency: Not indicated
HD Audio rec spdifin /dev/oss/oss_hdaudio0/spdin0 (device index 9)
Legacy device /dev/dsp10
Caps: TRIGGER MMAP
Modes: INPUT
In engine 1: 9/HD Audio rec spdifin
Available for use
Input formats (0x00001410):
AFMT_S16_LE - 16 bit signed little endian
AFMT_AC3 - AC3 (Dolby Digital) encoded audio
AFMT_S32_LE - 32 bit signed little endian
Output formats (0x00001410):
AFMT_S16_LE - 16 bit signed little endian
AFMT_AC3 - AC3 (Dolby Digital) encoded audio
AFMT_S32_LE - 32 bit signed little endian
Device handle: PCIa0021458-0000:00:1b.0-au10
Related mixer dev: 0
Sample rate source: 0
Preferred channel configuration: Not indicated
Supported number of channels (min - max): 2 - 2
Native sample rates (min - max): 44100 - 192000 (44100,48000,96000,192000)
HW Type: Not indicated.
Minimum latency: Not indicated
Looks to me like MythTV is not passing the correct bits to the OSS mixer character device. Please let me know if you have ideas (other than just setting the volume on the TV itself or using ALSA instead
, that would be too easy). Thanks!