[linux-audio-user] HDSP & amixer: What's Changed?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi, Thomas:

In a different post from the one below, you recently suggested I should
now be able to use amixer to set levels on the hdsp mf using the most
recent, alsa 1.0.9RC1 driver. At least, that's how I understood your
message.

I'm still unable to do that, including with the script you provide
below. The script runs without errors, but the values don't change no
matter what value I put where you have 32768.

>From amixer querry I get:

#amixer cget numid=5
numid=5,iface=HWDEP,name='Mixer'
  ; type=INTEGER,access=rw---,values=3,min=0,max=65536,step=1
  : values=0,0,0

Of course, having executed hdspmixer, I do have sound. I'm just unable
to do my own settings yet.

I thought it important to report this.

thomas charbonnel writes:
> Janina Sajka wrote :
> > Something about amixer's control of the HDSP Multiface has changed. And,
> > I can't seem to hack how to fix things. Please help!
> > 
> > I used to use the simple bash script (as published in Linux Journal)
> > 
> > #!/bin/bash
> > for i in $(seq 1 18);do
> > 	        amixer cset name=Chn,index=$i 32768
> > 	done
> > 
> > to set all the channels to unity, but this script no longer works. I
> > get:
> > 	 
> > amixer: Control default cinfo error: No such file or directory
> > 
> > Meanwhile, my hdsp is definitely clipping and I can't quite tell where
> > to tweak it.
> > 
> > alsamixer is also no longer available, gives an error:
> > 
> > No mixer elems found
> > 
> > This is with Fedora 3, so alsa 1.0.6 and the alsa-firmware tools
> > (hdsploader, hdspconfig, hdspmixer).
> > 
> > PS: hdspmixer is not accessible to me because I need an eyes-free
> > interface.
> > 
> > I suppose knowing where/how to tweak the hdspmixer default presets might
> > do it??
> > 
> > Thanks for any help.
> > Janina
> 
> Hi Janina,
> 
> You have to use the 'Mixer' ctl with amixer (numid=5).
> It takes three parameters: source, destination, and gain
> source: 0-25 -> the physical inputs 
> 		(on the multiface only 0-17)
> 	26-51 -> the playbacks (software output)
> 		 (only 26-43 on the mf)
> destination: 0-25 -> physical outputs (mf: 0-17)
> 	     26-27 -> line out (phone)
> gain: 0-65536 -> 0 is minus infinity, 32768 is 0 dB, 65535 is + 6dB
> 
> You can use the following script, equivalent to the 1st hdspmixer
> preset :
> 
> #! /bin/bash
> 
> for out_left in $(seq 0 2 25);
> do
> let out_right=$out_left+1
> let in_left=$out_left+26
> let in_right=$out_right+26
> amixer cset numid=5 $in_left,$out_left,32768
> amixer cset numid=5 $in_left,26,16384
> amixer cset numid=5 $in_right,$out_right,32768
> amixer cset numid=5 $in_right,27,16384;
> done;
> 
> Thomas
> 


-- 

Janina Sajka				Phone: +1.202.494.7040
Partner, Capital Accessibility LLC	http://www.CapitalAccessibility.Com

Chair, Accessibility Workgroup		Free Standards Group (FSG)
janina@xxxxxxxxxxxxxxxxx		http://a11y.org

If Linux can't solve your computing problem, you need a different problem.


[Index of Archives]     [Linux Sound]     [ALSA Users]     [Pulse Audio]     [ALSA Devel]     [Sox Users]     [Linux Media]     [Kernel]     [Photo Sharing]     [Gimp]     [Yosemite News]     [Linux Media]

  Powered by Linux