root/trunk/libffado/src/dice/focusrite/saffire_pro40.h

Revision 1794, 1.8 kB (checked in by arnonym, 11 years ago)

This might (or might not) fix #256 by actually implementing EAP-support for the Pro40.

Please someone test this and report back.

Everything should work except:

  • The volume knob doesn't seem to have an effect on the Pro24, don't know about the Pro40. It writes to the right registers but somehow the hardware doesn't recognise it.
  • The "Use ADAT-Out as S/PDIF" and "Pad Output" are not implemented yet.
  • I don't know whether changing to nickname works with the Pro40. It doesn't with the Pro24 altough the correct registers are written to. Probably sending an OP-code is missing...
Line 
1 /*
2  * Copyright (C) 2009 by Pieter Palmers
3  *
4  * This file is part of FFADO
5  * FFADO = Free Firewire (pro-)audio drivers for linux
6  *
7  * FFADO is based upon FreeBoB.
8  *
9  * This program is free software: you can redistribute it and/or modify
10  * it under the terms of the GNU General Public License as published by
11  * the Free Software Foundation, either version 2 of the License, or
12  * (at your option) version 3 of the License.
13  *
14  * This program is distributed in the hope that it will be useful,
15  * but WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17  * GNU General Public License for more details.
18  *
19  * You should have received a copy of the GNU General Public License
20  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
21  *
22  */
23
24 #ifndef DICE_FOCUSRITE_SAFFIRE_PRO40_H
25 #define DICE_FOCUSRITE_SAFFIRE_PRO40_H
26
27 #include "dice/dice_avdevice.h"
28
29 #include "libieee1394/configrom.h"
30
31 #include "focusrite_eap.h"
32
33 namespace Dice {
34 namespace Focusrite {
35
36 class SaffirePro40 : public Dice::Device {
37 public:
38     SaffirePro40( DeviceManager& d,
39                   std::auto_ptr<ConfigRom>( configRom ));
40     virtual ~SaffirePro40();
41
42     bool discover();
43
44     virtual void showDevice();
45
46     bool canChangeNickname() { return true; }
47     bool setNickName(std::string);
48     std::string getNickName();
49
50 private:
51
52     class SaffirePro40EAP : public FocusriteEAP
53     {
54     public:
55         SaffirePro40EAP(Dice::Device& dev) : FocusriteEAP(dev) {
56         }
57
58         int commandToFix(unsigned offset);
59
60         Poti* getMonitorPoti(std::string);
61         Poti* getDimPoti(std::string);
62
63         void setupSources();
64         void setupDestinations();
65     };
66     Dice::EAP* createEAP();
67
68     Dice::Focusrite::FocusriteEAP::MonitorSection *m_monitor;
69 };
70
71 }
72 }
73
74 #endif
75 // vim: et
Note: See TracBrowser for help on using the browser.