|
@@ -285,14 +285,15 @@ struct rsnd_mod {
|
|
#define rsnd_mod_to_dma(mod) (&(mod)->dma)
|
|
#define rsnd_mod_to_dma(mod) (&(mod)->dma)
|
|
#define rsnd_mod_to_io(mod) ((mod)->io)
|
|
#define rsnd_mod_to_io(mod) ((mod)->io)
|
|
#define rsnd_mod_id(mod) ((mod)->id)
|
|
#define rsnd_mod_id(mod) ((mod)->id)
|
|
-#define rsnd_mod_hw_start(mod) clk_prepare_enable((mod)->clk)
|
|
|
|
-#define rsnd_mod_hw_stop(mod) clk_disable_unprepare((mod)->clk)
|
|
|
|
|
|
+#define rsnd_mod_hw_start(mod) clk_enable((mod)->clk)
|
|
|
|
+#define rsnd_mod_hw_stop(mod) clk_disable((mod)->clk)
|
|
|
|
|
|
-void rsnd_mod_init(struct rsnd_mod *mod,
|
|
|
|
|
|
+int rsnd_mod_init(struct rsnd_mod *mod,
|
|
struct rsnd_mod_ops *ops,
|
|
struct rsnd_mod_ops *ops,
|
|
struct clk *clk,
|
|
struct clk *clk,
|
|
enum rsnd_mod_type type,
|
|
enum rsnd_mod_type type,
|
|
int id);
|
|
int id);
|
|
|
|
+void rsnd_mod_quit(struct rsnd_mod *mod);
|
|
char *rsnd_mod_name(struct rsnd_mod *mod);
|
|
char *rsnd_mod_name(struct rsnd_mod *mod);
|
|
struct dma_chan *rsnd_mod_dma_req(struct rsnd_mod *mod);
|
|
struct dma_chan *rsnd_mod_dma_req(struct rsnd_mod *mod);
|
|
|
|
|
|
@@ -496,6 +497,8 @@ int rsnd_kctrl_new_e(struct rsnd_mod *mod,
|
|
int rsnd_src_probe(struct platform_device *pdev,
|
|
int rsnd_src_probe(struct platform_device *pdev,
|
|
const struct rsnd_of_data *of_data,
|
|
const struct rsnd_of_data *of_data,
|
|
struct rsnd_priv *priv);
|
|
struct rsnd_priv *priv);
|
|
|
|
+void rsnd_src_remove(struct platform_device *pdev,
|
|
|
|
+ struct rsnd_priv *priv);
|
|
struct rsnd_mod *rsnd_src_mod_get(struct rsnd_priv *priv, int id);
|
|
struct rsnd_mod *rsnd_src_mod_get(struct rsnd_priv *priv, int id);
|
|
unsigned int rsnd_src_get_ssi_rate(struct rsnd_priv *priv,
|
|
unsigned int rsnd_src_get_ssi_rate(struct rsnd_priv *priv,
|
|
struct rsnd_dai_stream *io,
|
|
struct rsnd_dai_stream *io,
|
|
@@ -514,6 +517,8 @@ int rsnd_src_ssi_irq_disable(struct rsnd_mod *ssi_mod);
|
|
int rsnd_ssi_probe(struct platform_device *pdev,
|
|
int rsnd_ssi_probe(struct platform_device *pdev,
|
|
const struct rsnd_of_data *of_data,
|
|
const struct rsnd_of_data *of_data,
|
|
struct rsnd_priv *priv);
|
|
struct rsnd_priv *priv);
|
|
|
|
+void rsnd_ssi_remove(struct platform_device *pdev,
|
|
|
|
+ struct rsnd_priv *priv);
|
|
struct rsnd_mod *rsnd_ssi_mod_get(struct rsnd_priv *priv, int id);
|
|
struct rsnd_mod *rsnd_ssi_mod_get(struct rsnd_priv *priv, int id);
|
|
int rsnd_ssi_is_pin_sharing(struct rsnd_mod *mod);
|
|
int rsnd_ssi_is_pin_sharing(struct rsnd_mod *mod);
|
|
int rsnd_ssi_is_dma_mode(struct rsnd_mod *mod);
|
|
int rsnd_ssi_is_dma_mode(struct rsnd_mod *mod);
|