summaryrefslogtreecommitdiff
path: root/sound/soc/codecs/wm8580.h
blob: 1d34656d0dcb1b8711b2996d25857cb8c1f5d672 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
/*
 * wm8580.h  --  audio driver for WM8580
 *
 * Copyright 2008 Samsung Electronics.
 * Author: Ryu Euiyoul
 *         ryu.real@gmail.com
 *
 *  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 2 of the  License, or (at your
 *  option) any later version.
 *
 */

#ifndef _WM8580_H
#define _WM8580_H

#define WM8580_PLLA  1
#define WM8580_PLLB  2

#define WM8580_MCLK       1
#define WM8580_CLKOUTSRC  2

#define WM8580_CLKSRC_MCLK    1
#define WM8580_CLKSRC_PLLA    2
#define WM8580_CLKSRC_PLLB    3
#define WM8580_CLKSRC_OSC     4
#define WM8580_CLKSRC_NONE    5
#define WM8580_CLKSRC_ADCMCLK 6

#define WM8580_DAI_PAIFRX 0
#define WM8580_DAI_PAIFTX 1

#endif

c/codecs/alc5623.c parent731977e97b3697454a862fec656c2561eabc0b87 (diff)
wireless: define cipher/AKM suites using a macro
The spec writes cipher/AKM suites as something like 00-0F-AC:9, but the part after the colon isn't hex, it's decimal, so that we've already had a few mistakes (in other code, or unmerged patches) to e.g. write 0x000FAC10 instead of 0x000FAC0A. Use a macro to avoid that problem. Reviewed-by: Luca Coelho <luciano.coelho@intel.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'sound/soc/codecs/alc5623.c')