* M-Audio Fast Track Ultra (8r) mixer: How to verify dB information?
@ 2010-09-09 21:37 Felix Homann
2010-09-10 7:18 ` Clemens Ladisch
0 siblings, 1 reply; 4+ messages in thread
From: Felix Homann @ 2010-09-09 21:37 UTC (permalink / raw)
To: alsa-devel
Hi list,
after some struggle I managed to get the mixer in the M-Audio working.
Before I submit a patch I would like to know if there's an way to test
the dB information for the controls. I'm using the mixer_vol_tlv TLV
callback right now but I'm not sure it produces correct data.
Kind regards,
Felix
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: M-Audio Fast Track Ultra (8r) mixer: How to verify dB information?
2010-09-09 21:37 M-Audio Fast Track Ultra (8r) mixer: How to verify dB information? Felix Homann
@ 2010-09-10 7:18 ` Clemens Ladisch
2010-09-10 7:48 ` Felix Homann
0 siblings, 1 reply; 4+ messages in thread
From: Clemens Ladisch @ 2010-09-10 7:18 UTC (permalink / raw)
To: Felix Homann; +Cc: alsa-devel
Felix Homann wrote:
> after some struggle I managed to get the mixer in the M-Audio working.
> Before I submit a patch I would like to know if there's an way to test
> the dB information for the controls. I'm using the mixer_vol_tlv TLV
> callback right now but I'm not sure it produces correct data.
Try alsamixer. Or just post the output of "amixer contents" here.
Regards,
Clemens
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: M-Audio Fast Track Ultra (8r) mixer: How to verify dB information?
2010-09-10 7:18 ` Clemens Ladisch
@ 2010-09-10 7:48 ` Felix Homann
2010-09-10 10:33 ` Clemens Ladisch
0 siblings, 1 reply; 4+ messages in thread
From: Felix Homann @ 2010-09-10 7:48 UTC (permalink / raw)
To: Clemens Ladisch; +Cc: Felix Homann, alsa-devel
Hi Clemens,
Am 10.09.2010 09:18, schrieb Clemens Ladisch:
> I'm using the mixer_vol_tlv TLV
>> callback right now but I'm not sure it produces correct data.
>>
> Try alsamixer. Or just post the output of "amixer contents" here.
>
>
Well, according to alsamixer the mixer values are mapped to a range from
0 to -128 dB.
'amixer contents' show entries of the form
numid=112,iface=MIXER,name='DIn8 - Out7 Playback Volume'
; type=INTEGER,access=rw---R--,values=1,min=0,max=32768,step=0
: values=-32768
| unk-4-0xffffce00,0x00000000,
(numid and name changing of xourse for each control ).
Here are some examples of setting values with amixer:
:~$ amixer -c 2 cset numid=1 50%
numid=1,iface=MIXER,name='AIn1 - Out1 Playback Volume'
; type=INTEGER,access=rw---R--,values=1,min=0,max=32768,step=0
: values=16384
| unk-4-0xffffce00,0x00000000,
:~$ amixer -c 2 cset numid=1 80%
numid=1,iface=MIXER,name='AIn1 - Out1 Playback Volume'
; type=INTEGER,access=rw---R--,values=1,min=0,max=32768,step=0
: values=26215
| unk-4-0xffffce00,0x00000000,
:~$ amixer -c 2 cset numid=1 100%
numid=1,iface=MIXER,name='AIn1 - Out1 Playback Volume'
; type=INTEGER,access=rw---R--,values=1,min=0,max=32768,step=0
: values=32768
| unk-4-0xffffce00,0x00000000,
cat /proc/asound/F8R/usbmixer gives lines like this:
Unit: 5
Control: name="DIn8 - Out7 Playback Volume", index=0
Info: id=5, control=7, cmask=0x8000, channels=1, type="S16"
Volume: min=-32768, max=0, dBmin=-12800, dBmax=0
How do I tell the controls value range is correctly mapped to the dB values?
Kind regards,
Felix
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: M-Audio Fast Track Ultra (8r) mixer: How to verify dB information?
2010-09-10 7:48 ` Felix Homann
@ 2010-09-10 10:33 ` Clemens Ladisch
0 siblings, 0 replies; 4+ messages in thread
From: Clemens Ladisch @ 2010-09-10 10:33 UTC (permalink / raw)
To: Felix Homann; +Cc: alsa-devel
Felix Homann wrote:
> Well, according to alsamixer the mixer values are mapped to a range from
> 0 to -128 dB.
>
> 'amixer contents' show entries of the form
>
> | unk-4-0xffffce00,0x00000000,
Install the latest alsa-utils, or if you already have it, recompile it.
Regards,
Clemens
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2010-09-10 10:32 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-09-09 21:37 M-Audio Fast Track Ultra (8r) mixer: How to verify dB information? Felix Homann
2010-09-10 7:18 ` Clemens Ladisch
2010-09-10 7:48 ` Felix Homann
2010-09-10 10:33 ` Clemens Ladisch
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox