mirror of
https://github.com/torvalds/linux.git
synced 2024-11-14 16:12:02 +00:00
17be5522f6
Convert the wm8580 codec driver to the new (standard) device driver binding model. Signed-off-by: Jean Delvare <khali@linux-fr.org> Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
44 lines
964 B
C
44 lines
964 B
C
/*
|
|
* 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_DAC_CLKSEL 2
|
|
#define WM8580_CLKOUTSRC 3
|
|
|
|
#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
|
|
|
|
struct wm8580_setup_data {
|
|
int i2c_bus;
|
|
unsigned short i2c_address;
|
|
};
|
|
|
|
#define WM8580_DAI_PAIFRX 0
|
|
#define WM8580_DAI_PAIFTX 1
|
|
|
|
extern struct snd_soc_dai wm8580_dai[];
|
|
extern struct snd_soc_codec_device soc_codec_dev_wm8580;
|
|
|
|
#endif
|
|
|