Hi, 

(Sorry for the late reply.)

On Mon, 30 Nov 2020 10:41:03 +0900
Takashi Sakamoto <o-taka...@sakamocchi.jp> wrote:

> I suggest some points:
> 
> 1. clone the repository by normal user into your home directory instead of 
> /tmp
> 2. run cargo build by the normal user
> 3. check access permission to /dev/snd/* and /dev/fw* before running the
>    executable binary
> 4. run cargo run in the cloned directory or run the executable directly
>    by the normal user    

Thank you for the advice.
With these advice, now I can operate my AudioFire4 as a non-root user. The 
latest version of snd-fireworks-ctl-service also works well. But I find some 
inconvenience with mixer apps and would like to be given some advice again 
below.

> > I'd like to post the install log of alsa-gobject and libhinawa ,if it is 
> > also needed.
> > (I didn't put them in this post because I afraid they make this post far 
> > too long.)    
> 
> If you'd like to install libhinawa in Linux kernel v5.3 or former, we
> need to add changes to libhinawa and create new release. In the case,
> the log will be helpful for the work, but not planned yet.    

I understand. Perhaps I need not install them with the kernel older than 5.4. 
So I'll stop posting the logs.

Now let me move on to the problems I'm having. There are two.

The first problem is on the notaion of volume level.
When I operate my AF4 via alsa mixer apps, I can't set/get the value of a 
volume in decibel(dB), while I can do that with the on-board sound of my 
motherboard:

    [~]$ amixer -c2 set 'output-volume' -20dB
    amixer: invalid option -- '2'
    Invalid switch or option needs an argument.
    amixer: invalid option -- '0'
    Invalid switch or option needs an argument.
    amixer: invalid option -- 'B'
    Invalid switch or option needs an argument.


    [~]$ amixer -c1 sset 'Master' 0dB
    Simple mixer control 'Master',0
      Capabilities: pvolume pvolume-joined pswitch pswitch-joined
      Playback channels: Mono
      Limits: Playback 0 - 64
      Mono: Playback 64 [100%] [0.00dB] [on]

I also can't read meters of AF4 in dB:

    [~]$ amixer -c2 get 'input-meter'
    Simple mixer control 'input-meter',0
      Capabilities: volume
      Playback channels: Front Left - Front Right - Rear Left - Rear Right - 
Front Center - Woofer
      Capture channels: Front Left - Front Right - Rear Left - Rear Right - 
Front Center - Woofer
      Limits: 0 - 8388607
      Front Left: 0 [0%]
      Front Right: 0 [0%]
      Rear Left: 0 [0%]
      Rear Right: 0 [0%]
      Front Center: 0 [0%]
      Woofer: 0 [0%]

Can I use dB suffix in these operations with some additional settings?

The second is on storing the mixer settings into my AF4.
The users manual of AF4 for the Windows users [1] states;

    When the console is closed, all the console mixer settings for your 
AudioFire are
    saved to flash memory in the AudioFire. So, these settings will be recalled 
when
    you reboot your AudioFire or move it to another computer.

    Your AudioFire need not be connected to a computer to operate. This is 
called
    stand-alone mode. Simply set the mixer setting as you desire in the console 
and
    close the console to save those settings to flash memory. Then, when you 
turn on
    your AudioFire, those settings will automatically be loaded into the 
AudioFire’s
    internal mixer. 

But actually when I turn my AF4's power off, the mixer setting is lost.
Can I use these features in Linux via ALSA and snd-fireworks-ctl-service? 

Of course any other means is also OK. But I've not found such means yet. 

Though FFADO mixer has a button to explicitly store the settings to AF4, it 
seemed not to work properly even in the latest version. I'm also trying to save 
the settings in my desktop with "alsactl store" command but I'm struggling to 
make it work.

So if I can use the features above via ALSA and the service, it is very 
helpful. And they are also convenient for my another use case, in which my AF4 
works as a standalone mic preamp.

I would appreciate any advice or suggestions to solve these problems.

[1] "Owner’s Manual Version 2.2 for Windows" p.39 
http://files.echoaudio.com/manuals/audiofire_windows_manual_v2.2.pdf

Regards,
Susie B.


_______________________________________________
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user

Reply via email to