Skip to content

Commit

Permalink
ASoC: UDA1380: refactor device registration
Browse files Browse the repository at this point in the history
This patch mostly follows commit 5998102
"ASoC: Refactor WM8731 device registration" to make UDA1380 use standard
device instantiation. Similarly, the I2C device registration temporarily
moves into the magician machine driver before it will find its final
resting place in the board file.

At the same time, platform specific configuration is moved to platform data
and common power/reset GPIO handling moves into the codec driver.

Signed-off-by: Philipp Zabel <philipp.zabel@gmail.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
  • Loading branch information
Philipp Zabel authored and Mark Brown committed Jun 15, 2009
1 parent b3b50b3 commit 1abd918
Show file tree
Hide file tree
Showing 4 changed files with 221 additions and 176 deletions.
22 changes: 22 additions & 0 deletions include/sound/uda1380.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
/*
* UDA1380 ALSA SoC Codec driver
*
* Copyright 2009 Philipp Zabel
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*/

#ifndef __UDA1380_H
#define __UDA1380_H

struct uda1380_platform_data {
int gpio_power;
int gpio_reset;
int dac_clk;
#define UDA1380_DAC_CLK_SYSCLK 0
#define UDA1380_DAC_CLK_WSPLL 1
};

#endif /* __UDA1380_H */
Loading

0 comments on commit 1abd918

Please sign in to comment.