Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros
juli.c File Reference
#include <asm/io.h>
#include <linux/delay.h>
#include <linux/interrupt.h>
#include <linux/init.h>
#include <linux/slab.h>
#include <sound/core.h>
#include <sound/tlv.h>
#include "ice1712.h"
#include "envy24ht.h"
#include "juli.h"

Go to the source code of this file.

Data Structures

struct  juli_spec
 

Macros

#define AK4114_ADDR   0x20 /* S/PDIF receiver */
 
#define AK4358_ADDR   0x22 /* DAC */
 
#define GPIO_FREQ_MASK   (3<<0)
 
#define GPIO_FREQ_32KHZ   (0<<0)
 
#define GPIO_FREQ_44KHZ   (1<<0)
 
#define GPIO_FREQ_48KHZ   (2<<0)
 
#define GPIO_MULTI_MASK   (3<<2)
 
#define GPIO_MULTI_4X   (0<<2)
 
#define GPIO_MULTI_2X   (1<<2)
 
#define GPIO_MULTI_1X   (2<<2) /* also external */
 
#define GPIO_MULTI_HALF   (3<<2)
 
#define GPIO_INTERNAL_CLOCK   (1<<4) /* 0 = external, 1 = internal */
 
#define GPIO_CLOCK_MASK   (1<<4)
 
#define GPIO_ANALOG_PRESENT   (1<<5) /* RO only: 0 = present */
 
#define GPIO_RXMCLK_SEL   (1<<7) /* must be 0 */
 
#define GPIO_AK5385A_CKS0   (1<<8)
 
#define GPIO_AK5385A_DFS1   (1<<9)
 
#define GPIO_AK5385A_DFS0   (1<<10)
 
#define GPIO_DIGOUT_MONITOR   (1<<11) /* 1 = active */
 
#define GPIO_DIGIN_MONITOR   (1<<12) /* 1 = active */
 
#define GPIO_ANAIN_MONITOR   (1<<13) /* 1 = active */
 
#define GPIO_AK5385A_CKS1   (1<<14) /* must be 0 */
 
#define GPIO_MUTE_CONTROL   (1<<15) /* output mute, 1 = muted */
 
#define GPIO_RATE_MASK
 
#define GPIO_AK5385A_MASK
 
#define JULI_PCM_RATE
 
#define GPIO_RATE_16000
 
#define GPIO_RATE_22050
 
#define GPIO_RATE_24000
 
#define GPIO_RATE_32000
 
#define GPIO_RATE_44100
 
#define GPIO_RATE_48000
 
#define GPIO_RATE_64000
 
#define GPIO_RATE_88200
 
#define GPIO_RATE_96000
 
#define GPIO_RATE_176400
 
#define GPIO_RATE_192000
 
#define AK_DAC(xname, xch)   { .name = xname, .num_channels = xch }
 
#define PCM_VOLUME   "PCM Playback Volume"
 
#define MONITOR_AN_IN_VOLUME   "Monitor Analog In Volume"
 
#define MONITOR_DIG_IN_VOLUME   "Monitor Digital In Volume"
 
#define MONITOR_DIG_OUT_VOLUME   "Monitor Digital Out Volume"
 
#define juli_mute_info   snd_ctl_boolean_mono_info
 

Macro Definition Documentation

#define AK4114_ADDR   0x20 /* S/PDIF receiver */

Definition at line 46 of file juli.c.

#define AK4358_ADDR   0x22 /* DAC */

Definition at line 47 of file juli.c.

#define AK_DAC (   xname,
  xch 
)    { .name = xname, .num_channels = xch }

Definition at line 272 of file juli.c.

#define GPIO_AK5385A_CKS0   (1<<8)

Definition at line 91 of file juli.c.

#define GPIO_AK5385A_CKS1   (1<<14) /* must be 0 */

Definition at line 97 of file juli.c.

#define GPIO_AK5385A_DFS0   (1<<10)

Definition at line 93 of file juli.c.

#define GPIO_AK5385A_DFS1   (1<<9)

Definition at line 92 of file juli.c.

#define GPIO_AK5385A_MASK
Value:

Definition at line 102 of file juli.c.

#define GPIO_ANAIN_MONITOR   (1<<13) /* 1 = active */

Definition at line 96 of file juli.c.

#define GPIO_ANALOG_PRESENT   (1<<5) /* RO only: 0 = present */

Definition at line 89 of file juli.c.

#define GPIO_CLOCK_MASK   (1<<4)

Definition at line 88 of file juli.c.

#define GPIO_DIGIN_MONITOR   (1<<12) /* 1 = active */

Definition at line 95 of file juli.c.

#define GPIO_DIGOUT_MONITOR   (1<<11) /* 1 = active */

Definition at line 94 of file juli.c.

#define GPIO_FREQ_32KHZ   (0<<0)

Definition at line 79 of file juli.c.

#define GPIO_FREQ_44KHZ   (1<<0)

Definition at line 80 of file juli.c.

#define GPIO_FREQ_48KHZ   (2<<0)

Definition at line 81 of file juli.c.

#define GPIO_FREQ_MASK   (3<<0)

Definition at line 78 of file juli.c.

#define GPIO_INTERNAL_CLOCK   (1<<4) /* 0 = external, 1 = internal */

Definition at line 87 of file juli.c.

#define GPIO_MULTI_1X   (2<<2) /* also external */

Definition at line 85 of file juli.c.

#define GPIO_MULTI_2X   (1<<2)

Definition at line 84 of file juli.c.

#define GPIO_MULTI_4X   (0<<2)

Definition at line 83 of file juli.c.

#define GPIO_MULTI_HALF   (3<<2)

Definition at line 86 of file juli.c.

#define GPIO_MULTI_MASK   (3<<2)

Definition at line 82 of file juli.c.

#define GPIO_MUTE_CONTROL   (1<<15) /* output mute, 1 = muted */

Definition at line 98 of file juli.c.

#define GPIO_RATE_16000
Value:
GPIO_INTERNAL_CLOCK)

Definition at line 111 of file juli.c.

#define GPIO_RATE_176400
Value:
GPIO_INTERNAL_CLOCK)

Definition at line 129 of file juli.c.

#define GPIO_RATE_192000
Value:
GPIO_INTERNAL_CLOCK)

Definition at line 131 of file juli.c.

#define GPIO_RATE_22050
Value:
GPIO_INTERNAL_CLOCK)

Definition at line 113 of file juli.c.

#define GPIO_RATE_24000
Value:
GPIO_INTERNAL_CLOCK)

Definition at line 115 of file juli.c.

#define GPIO_RATE_32000
Value:
GPIO_INTERNAL_CLOCK)

Definition at line 117 of file juli.c.

#define GPIO_RATE_44100
Value:
GPIO_INTERNAL_CLOCK)

Definition at line 119 of file juli.c.

#define GPIO_RATE_48000
Value:
GPIO_INTERNAL_CLOCK)

Definition at line 121 of file juli.c.

#define GPIO_RATE_64000
Value:
GPIO_INTERNAL_CLOCK)

Definition at line 123 of file juli.c.

#define GPIO_RATE_88200
Value:
GPIO_INTERNAL_CLOCK)

Definition at line 125 of file juli.c.

#define GPIO_RATE_96000
Value:
GPIO_INTERNAL_CLOCK)

Definition at line 127 of file juli.c.

#define GPIO_RATE_MASK
Value:
GPIO_CLOCK_MASK)

Definition at line 100 of file juli.c.

#define GPIO_RXMCLK_SEL   (1<<7) /* must be 0 */

Definition at line 90 of file juli.c.

#define juli_mute_info   snd_ctl_boolean_mono_info

Definition at line 302 of file juli.c.

#define JULI_PCM_RATE
Value:
SNDRV_PCM_RATE_32000 | SNDRV_PCM_RATE_44100 | \
SNDRV_PCM_RATE_48000 | SNDRV_PCM_RATE_64000 | \
SNDRV_PCM_RATE_88200 | SNDRV_PCM_RATE_96000 | \
SNDRV_PCM_RATE_176400 | SNDRV_PCM_RATE_192000)

Definition at line 105 of file juli.c.

#define MONITOR_AN_IN_VOLUME   "Monitor Analog In Volume"

Definition at line 274 of file juli.c.

#define MONITOR_DIG_IN_VOLUME   "Monitor Digital In Volume"

Definition at line 275 of file juli.c.

#define MONITOR_DIG_OUT_VOLUME   "Monitor Digital Out Volume"

Definition at line 276 of file juli.c.

#define PCM_VOLUME   "PCM Playback Volume"

Definition at line 273 of file juli.c.