Linux Audio

Check our new training course

Embedded Linux Audio

Check our new training course
with Creative Commons CC-BY-SA
lecture materials

Bootlin logo

Elixir Cross Referencer

Loading...
/*
 * drivers/sbus/audio/dummy.h
 *
 * Copyright (C) 1998 Derrick J. Brashear (shadow@dementia.org)
 */

#ifndef _DUMMY_H_
#define _DUMMY_H_

#include <linux/types.h>
#include <linux/tqueue.h>

#define DUMMY_OUTFILE "/usr/tmp/dummy.au"

/* Our structure for each chip */

struct dummy_chip {
  struct audio_info perchip_info;
  unsigned int playlen;
  struct tq_struct tqueue;
};

#define DUMMY_MIN_ATEN     (0)
#define DUMMY_MAX_ATEN     (31)
#define DUMMY_MAX_DEV_ATEN (63)

#define DUMMY_MON_MIN_ATEN         (0)
#define DUMMY_MON_MAX_ATEN         (63)

#define DUMMY_DEFAULT_PLAYGAIN     (132)
#define DUMMY_DEFAULT_RECGAIN      (126)

#define DUMMY_MIN_GAIN     (0)
#define DUMMY_MAX_GAIN     (15)

#define DUMMY_PRECISION    (8)             /* # of bits/sample */
#define DUMMY_CHANNELS     (1)             /* channels/sample */

#define DUMMY_RATE   (8000)                /* default sample rate */

#endif