[oss_hdaudio] ossxmix: jack controls doesn't work

OSS specific Linux discussion (x86/amd64)

Moderators: hannu, dev, kodachi, cesium

[oss_hdaudio] ossxmix: jack controls doesn't work

Postby qtroll » Tue Apr 02, 2013 10:08 am

(ossinfo -v3 attached)
When I move jack volume control in ossxmix, nothing changes. And after restarting ossxmix jack controls sets to previous position.
Other controls works ok, jack muting also works.
Attachments
oi.txt
(8.54 KiB) Downloaded 44 times
qtroll
 
Posts: 11
Joined: Tue Apr 02, 2013 9:59 am

Re: [oss_hdaudio] ossxmix: jack controls doesn't work

Postby igorzwx » Tue Apr 02, 2013 1:09 pm

qtroll wrote:(ossinfo -v3 attached)
When I move jack volume control in ossxmix, nothing changes. And after restarting ossxmix jack controls sets to previous position.
Other controls works ok, jack muting also works.


This simply means that you are out of luck.

The problem is that "oss_hdaudio" is not a real driver. It is a kind of "generic ersatz driver" http://manuals.opensound.com/usersguide ... audio.html

In general Azalia based systems (laptops/motherboards) would require a custom driver to work properly http://manuals.opensound.com/usersguide ... audio.html


Such custom drivers for HDA codecs/motherboards are not available for OSS4 and ALSA.

Since the producers of motherboards are allowed to connect HDA codecs to motherboards how they want, the users of OSS4/PulseALSA may often experience "audio problems".

Perhaps, you may provide some info about your hardware.
igorzwx
 
Posts: 863
Joined: Sun Jun 28, 2009 9:31 pm

Re: [oss_hdaudio] ossxmix: jack controls doesn't work

Postby qtroll » Tue Apr 02, 2013 8:26 pm

Perhaps, you may provide some info about your hardware.

Sure. Audio device [0403]: NVIDIA Corporation MCP55 High Definition Audio [10de:0371] (rev a2)
(mainboard: MSI K9N Platinum, sound chip built in)
ALSA could work fine, I don't remember if it so.
qtroll
 
Posts: 11
Joined: Tue Apr 02, 2013 9:59 am

Re: [oss_hdaudio] ossxmix: jack controls doesn't work

Postby igorzwx » Tue Apr 02, 2013 8:44 pm

qtroll wrote:
Perhaps, you may provide some info about your hardware.

Sure. Audio device [0403]: NVIDIA Corporation MCP55 High Definition Audio [10de:0371] (rev a2)
(mainboard: MSI K9N Platinum, sound chip built in)
ALSA could work fine, I don't remember if it so.


You may easily find all sorts of "bug reports" with Google: http://www.google.com/search?hl=en-US&q ... ev%20a2%29

Perhaps, "subsystem" is also needed to identify the thing:

Code: Select all
$ lspci -vnn


It looks like you have Realtek ALC889A codec (or something of the sort) http://www.alsa-project.org/pipermail/a ... 24345.html
But it seems to be misidentified as "ALC883", according to your "ossinfo -v3".

Try also:

Code: Select all
$ dmesg | grep oss_hdaudio


It may say something about "unknown codec", or "HDA codec ... not known yet".
igorzwx
 
Posts: 863
Joined: Sun Jun 28, 2009 9:31 pm

Re: [oss_hdaudio] ossxmix: jack controls doesn't work

Postby qtroll » Wed Apr 03, 2013 11:44 am

dmesg/grep is empty, lspci attached.
It looks like you have Realtek ALC889A codec (or something of the sort) http://www.alsa-project.org/pipermail/a ... 24345.html
But it seems to be misidentified as "ALC883", according to your "ossinfo -v3".

Yes, it should be ALC889A, as I remember.
Attachments
lpci.txt
(8.98 KiB) Downloaded 47 times
qtroll
 
Posts: 11
Joined: Tue Apr 02, 2013 9:59 am

Re: [oss_hdaudio] ossxmix: jack controls doesn't work

Postby igorzwx » Wed Apr 03, 2013 1:08 pm

qtroll wrote:dmesg/grep is empty, lspci attached.
It looks like you have Realtek ALC889A codec (or something of the sort) http://www.alsa-project.org/pipermail/a ... 24345.html
But it seems to be misidentified as "ALC883", according to your "ossinfo -v3".

Yes, it should be ALC889A, as I remember.


This seems to be a usual problems. There are many examples with patches on the forum.
You may try to patch it yourself.
See also: https://wiki.archlinux.org/index.php/Patching_in_ABS

There is also a magic tool with which you can create your own "custom mixer driver".

However codecs are different. To make things even worse motherboard
manufacturers have complete freedom to decide which I/O pin they connect
the jacks and other audio inputs and outputs. It is not enough to write
just one mixer driver for each codec. This needs to be done by hand for
every single motherboard (unless there are boards that have the pins
assigned in the same way).
The mixgen.c can be used to create a skeleton of a mixer driver. Then
the result can be fine tuned by using trial and error approach.
Hannu http://permalink.gmane.org/gmane.comp.a ... devel/1155


In a word, Intel HDA codecs are capable of HW mixing (as well as Intel AC'97 Audio Codecs), although, of course, it may not always work with buggy "generic ersatz drivers" for OSS4, ALSA, or Windows.

For example, ALC887 does support HW mixing with OSS4.

Code: Select all
$ ossmix
Selected mixer 0/High Definition Audio ALC887

$ lspci -vnn
00:1b.0 Audio device [0403]: Intel Corporation 7 Series/C210 Series Chipset Family High Definition Audio Controller [8086:1e20] (rev 04)
   Subsystem: Giga-byte Technology Device [1458:a002]
   Flags: bus master, fast devsel, latency 0, IRQ 22
   Memory at f7e10000 (64-bit, non-prefetchable) [size=16K]
   Capabilities: <access denied>
   Kernel driver in use: oss_hdaudio
   Kernel modules: snd-hda-intel


HW mixing can be enabled/disabled in ossxmix (GUI) with a mouse click.
You can record the so-called "total mixed output" (playback + mic)
viewtopic.php?f=3&t=4656
http://en.wikipedia.org/wiki/Hardware_mixing

HW mixing is easy to detect:
1. Enable "vmix" in ossmix/ossxmix
2. Plug a microphone into your PC.
3. Speak into the microphone (but do not run any recording software).
4. Try different settings in ossxmix.

If you hear your voice in the speakers, it means that HW mixing is enabled.

EXAMPLE:

Code: Select all
$ ossmix
Selected mixer 0/High Definition Audio ALC887
Known controls are:
codec3.jack.green.mode <front|input> (currently front)
codec3.jack.green.mute ON|OFF (currently OFF)
codec3.jack.green.front [<leftvol>:<rightvol>] (currently 52.9:52.9 dB)
codec3.jack.green.front-mute ON|OFF (currently OFF)

[HW Mixing is dissabled. "ON" means "OFF" (muted), "OFF" means "ON" (unmuted)]
codec3.jack.green.input-mix-mut ON|OFF (currently ON)

codec3.jack.pink.mode <front|rear|center/LFE|side|pcm4|input> (currently input)
codec3.jack.pink [<leftvol>:<rightvol>] (currently 9.9:9.9 dB)
codec3.jack.pink.mute ON|OFF (currently OFF)
codec3.jack.fp-pink.mode <front|rear|center/LFE|side|pcm4|input> (currently input)
codec3.jack.fp-pink [<leftvol>:<rightvol>] (currently 29.9:29.9 dB)
codec3.jack.fp-pink.mute ON|OFF (currently OFF)
codec3.jack.blue.mode <front|rear|center/LFE|side|pcm4|input> (currently front)
codec3.jack.blue [<leftvol>:<rightvol>] (currently 29.9:29.9 dB)
codec3.jack.blue.mute ON|OFF (currently OFF)
codec3.jack.fp-green.mode <front|rear|center/LFE|side|pcm4|input> (currently front)
codec3.jack.fp-green [<leftvol>:<rightvol>] (currently 29.9:29.9 dB)
codec3.jack.fp-green.mute ON|OFF (currently OFF)
codec3.record.mix.mute.mic1 ON|OFF (currently OFF)
codec3.record.mix.mute.fp-mic1 ON|OFF (currently OFF)
codec3.record.mix.mute.linein1 ON|OFF (currently OFF)
codec3.record.mix.mute.fp-head1 ON|OFF (currently OFF)
codec3.record.mix.mute.int-cd1 ON|OFF (currently OFF)
codec3.record.mix.mute.front1 ON|OFF (currently OFF)
codec3.record.mix.mute.input-m1 ON|OFF (currently OFF)
codec3.record.mix1 [<leftvol>:<rightvol>] (currently 17.9:17.9 dB)
codec3.record.mix.mute.mic2 ON|OFF (currently OFF)
codec3.record.mix.mute.fp-mic2 ON|OFF (currently OFF)
codec3.record.mix.mute.linein2 ON|OFF (currently OFF)
codec3.record.mix.mute.fp-head2 ON|OFF (currently OFF)
codec3.record.mix.mute.int-cd2 ON|OFF (currently OFF)
codec3.record.mix.mute.front2 ON|OFF (currently OFF)
codec3.record.mix.mute.input-m2 ON|OFF (currently OFF)
codec3.record.mix2 [<leftvol>:<rightvol>] (currently 37.9:37.9 dB)
codec3.misc.rear1 [<leftvol>:<rightvol>] (currently 51.9:51.9 dB)
codec3.misc.center/lfe1 [<leftvol>:<rightvol>] (currently 53.9:53.9 dB)
codec3.misc.side1 [<leftvol>:<rightvol>] (currently 50.9:50.9 dB)
codec3.misc.mic [<leftvol>:<rightvol>] (currently 37.4:37.4 dB)
codec3.misc.fp-mic [<leftvol>:<rightvol>] (currently 29.9:29.9 dB)
codec3.misc.linein [<leftvol>:<rightvol>] (currently 38.9:38.9 dB)
codec3.misc.fp-headphone [<leftvol>:<rightvol>] (currently 38.9:38.9 dB)
codec3.misc.int-cd [<leftvol>:<rightvol>] (currently 38.9:38.9 dB)
codec3.misc.front [<leftvol>:<rightvol>] (currently 38.9:38.9 dB)
codec3.misc.input-mix <mic|fp-mic|linein|int-cd> (currently fp-mic)
codec3.misc.rear-mute ON|OFF (currently OFF)
codec3.misc.input-mix-mute1 ON|OFF (currently OFF)
codec3.misc.rear2 <rear|input-mix> (currently rear)
codec3.misc.center/lfe-mute ON|OFF (currently OFF)
codec3.misc.input-mix-mute2 ON|OFF (currently OFF)
codec3.misc.center/lfe2 <center/LFE|input-mix> (currently center/LFE)
codec3.misc.side-mute ON|OFF (currently OFF)
codec3.misc.input-mix-mute3 ON|OFF (currently OFF)
codec3.misc.side2 <side|input-mix> (currently side)
codec3.misc.pcm41 [<leftvol>:<rightvol>] (currently 45.9:45.9 dB)
codec3.misc.pcm4-mute ON|OFF (currently OFF)
codec3.misc.input-mix-mute4 ON|OFF (currently OFF)
codec3.misc.pcm42 <pcm4|input-mix> (currently pcm4)
codec4.jack.int-digout.mute ON|OFF (currently OFF)
vmix0-enable ON|OFF (currently ON)
vmix0-rate <decimal value> (currently 48000) (Read-only)
vmix0-channels <Stereo|Multich> (currently Stereo)
vmix0-src <Fast|High|High+|Production|OFF> (currently OFF)
vmix0-outvol <monovol> (currently 25.0 dB)
vmix0-invol <monovol> (currently 25.0 dB)
vmix0.pcm9 [<leftvol>:<rightvol>] (currently 25.0:25.0 dB)
vmix0.pcm10 [<leftvol>:<rightvol>] (currently 25.0:25.0 dB)
vmix0.pcm11 [<leftvol>:<rightvol>] (currently 25.0:25.0 dB)
vmix0.pcm12 [<leftvol>:<rightvol>] (currently 25.0:25.0 dB)
igorzwx
 
Posts: 863
Joined: Sun Jun 28, 2009 9:31 pm

Re: [oss_hdaudio] ossxmix: jack controls doesn't work

Postby qtroll » Wed Apr 03, 2013 2:27 pm

You may try to patch it yourself.

Is this the Plan 9 community?

Well, I'll try to do something.
---
But I don't understand, why sound works ok, and muting is still selective and works ok too?
qtroll
 
Posts: 11
Joined: Tue Apr 02, 2013 9:59 am

Re: [oss_hdaudio] ossxmix: jack controls doesn't work

Postby igorzwx » Wed Apr 03, 2013 3:04 pm

qtroll wrote:Well, I'll try to do something.
---
But I don't understand, why sound works ok, and muting is still selective and works ok too?


Because your codec is misidentified, and the generic "mixer driver" fails to detect "jacks" correctly,
see, for example, /usr/lib/oss/conf/oss_hdaudio.conf
Therefore, something works, and something does not.

To fix the problem, you have to patch the OSS4 code and recompile it. There are many examples on the forum.

Azalia based systems (laptops/motherboards) would require a custom driver to work properly
http://manuals.opensound.com/usersguide ... audio.html


Such custom drivers for HDA codecs/motherboards are not available for OSS4 and ALSA. On Windows, you are likely to have similar crap instead of "drivers".

Does the microphone works?
Have you already tried HW mixing or "surround playback"?

You may also try to find the developers. Although, of course, Easter holidays is a kind of "Ramadan".
igorzwx
 
Posts: 863
Joined: Sun Jun 28, 2009 9:31 pm

Re: [oss_hdaudio] ossxmix: jack controls doesn't work

Postby qtroll » Wed Apr 03, 2013 5:14 pm

> Does the microphone works?
No. Even
Code: Select all
ossrecord foo ; ossplay foo
doesn't work.

Playback works with and without vmix enabled.
qtroll
 
Posts: 11
Joined: Tue Apr 02, 2013 9:59 am

Re: [oss_hdaudio] ossxmix: jack controls doesn't work

Postby igorzwx » Wed Apr 03, 2013 6:00 pm

qtroll wrote:> Does the microphone works?
No. Even
Code: Select all
ossrecord foo ; ossplay foo
doesn't work.

Playback works with and without vmix enabled.


You may find a lot of various "patches" on this forum.
For example: viewtopic.php?f=3&t=5158
igorzwx
 
Posts: 863
Joined: Sun Jun 28, 2009 9:31 pm


Return to Linux

Who is online

Users browsing this forum: No registered users and 2 guests