Problem with alsamixer, amixer
Hello!
This is an old problem I reported a year or so ago.
I have SBPCI 128 with ak4531 codec. The problem is that I can't set capture to certain channels (the channels that are using capture route CD, Line, PCM 1) if they are muted. Or if capture is already set, muting those channels will switch capture off.
This is happening if I am using alsamixer or amixer with sset. If I am using amixer with cset I can set anything I want.
I guess the problem lies in the ak4531 and the way simple controls are handled. I don't know enough about alsa internals so poking around the sources of alsamixer, amixer and ak4531 didn't help me understand what should I do to make it working.
What is the relation of sset to cset ?
Can this be addressed generally or should there be a workaround for ak4531?
Thanks and take care,
Miha...
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
At 10 Oct 2002 17:08:11 +0200,
Quoted 10 lines · Miha Tomsic
Hello!
This is an old problem I reported a year or so ago.
I have SBPCI 128 with ak4531 codec. The problem is that I can't set capture to certain channels (the channels that are using capture route CD, Line, PCM 1) if they are muted. Or if capture is already set, muting those channels will switch capture off.
Quoted 7 lines
This is happening if I am using alsamixer or amixer with sset. If I am using amixer with cset I can set anything I want.
I guess the problem lies in the ak4531 and the way simple controls are handled. I don't know enough about alsa internals so poking around the sources of alsamixer, amixer and ak4531 didn't help me understand what should I do to make it working.
can you change each one switch or volume value by the follwoing way?
- call "alsactl -f foo store"
- modify the file "foo"
- call "alsactl -f foo restore"
if it works, then the problem is alsamixer or alsa-lib. the latest alsamixer can handle playback and capture separately, so this problem should have been fixed.
Takashi
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
Hello Takashi!
Quoted 7 lines · Takashi Iwai
can you change each one switch or volume value by the follwoing way?
- call "alsactl -f foo store"
- modify the file "foo"
- call "alsactl -f foo restore"
if it works, then the problem is alsamixer or alsa-lib. the latest alsamixer can handle playback and capture separately, so this problem should have been fixed.
Yes, this works too. Only the simple controls (or simple mixer elements) don't work correctly.
And I forgot to mention that I am using alsa-*-0.9.0rc3.
Should I get the CVS version? Is the new CVS compatible with rc3? I am not following the discussions too closely, but will it break rc3 native ALSA apps? I've seen that there are patches for jack to make it work with new CVS alsa.
Is rc4 comming any time soon?
Thanks and take care,
Miha...
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
Hi,
At 10 Oct 2002 17:34:36 +0200,
Quoted 10 lines · Miha Tomsic
Quoted 7 lines · Takashi Iwai
can you change each one switch or volume value by the follwoing way?
- call "alsactl -f foo store"
- modify the file "foo"
- call "alsactl -f foo restore"
if it works, then the problem is alsamixer or alsa-lib. the latest alsamixer can handle playback and capture separately, so this problem should have been fixed.
Quoted 2 lines
Yes, this works too. Only the simple controls (or simple mixer elements) don't work correctly.
the simple mixer controls via amixer cannot distinguish the switch direction for playback and capture. it's a feature :) try to cset/cget instead.
Quoted 3 lines
And I forgot to mention that I am using alsa-*-0.9.0rc3.
Should I get the CVS version? Is the new CVS compatible with rc3?
yes, the binary compatibility must be kept.
Takashi
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf