/*
* Copyright (C) 2005-2007 by Daniel Wagner
* Copyright (C) 2005-2007 by Pieter Palmers
*
* This file is part of FFADO
* FFADO = Free Firewire (pro-)audio drivers for linux
*
* FFADO is based upon FreeBoB.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*
*/
#ifndef MAUDIODEVICE_H
#define MAUDIODEVICE_H
#include "debugmodule/debugmodule.h"
#include "libavc/avc_definitions.h"
#include "libavc/general/avc_extended_cmd_generic.h"
#include "bebob/bebob_avdevice.h"
#include "libstreaming/amdtp/AmdtpReceiveStreamProcessor.h"
#include "libstreaming/amdtp/AmdtpTransmitStreamProcessor.h"
#include "libstreaming/amdtp/AmdtpPort.h"
#include "libstreaming/amdtp/AmdtpPortInfo.h"
#include "ffadodevice.h"
class ConfigRom;
class Ieee1394Service;
namespace MAudio {
struct VendorModelEntry {
unsigned int vendor_id;
unsigned int model_id;
char *vendor_name;
char *model_name;
char *filename;
};
class AvDevice : public BeBoB::AvDevice {
public:
AvDevice(std::auto_ptr( configRom ));
virtual ~AvDevice();
static bool probe( ConfigRom& configRom );
static FFADODevice * createDevice(std::auto_ptr( configRom ));
virtual bool discover();
static int getConfigurationId( );
virtual void showDevice();
virtual bool setSamplingFrequency( int );
virtual int getSamplingFrequency( );
virtual bool prepare();
protected:
struct VendorModelEntry* m_model;
};
}
#endif