cmd.c (72154e50728e8a08940332db20884b63dfa6590d) | cmd.c (5ba17b42e1755c3c5cfe96370cfd47f34d01f62c) |
---|---|
1/* 2 * Renesas R-Car CMD support 3 * 4 * Copyright (C) 2015 Renesas Solutions Corp. 5 * Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> 6 * 7 * This program is free software; you can redistribute it and/or modify 8 * it under the terms of the GNU General Public License version 2 as --- 143 unchanged lines hidden (view full) --- 152 if (!cmd) 153 return -ENOMEM; 154 155 priv->cmd_nr = nr; 156 priv->cmd = cmd; 157 158 for_each_rsnd_cmd(cmd, priv, i) { 159 ret = rsnd_mod_init(priv, rsnd_mod_get(cmd), | 1/* 2 * Renesas R-Car CMD support 3 * 4 * Copyright (C) 2015 Renesas Solutions Corp. 5 * Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> 6 * 7 * This program is free software; you can redistribute it and/or modify 8 * it under the terms of the GNU General Public License version 2 as --- 143 unchanged lines hidden (view full) --- 152 if (!cmd) 153 return -ENOMEM; 154 155 priv->cmd_nr = nr; 156 priv->cmd = cmd; 157 158 for_each_rsnd_cmd(cmd, priv, i) { 159 ret = rsnd_mod_init(priv, rsnd_mod_get(cmd), |
160 &rsnd_cmd_ops, NULL, RSND_MOD_CMD, i); | 160 &rsnd_cmd_ops, NULL, 161 rsnd_mod_get_status, RSND_MOD_CMD, i); |
161 if (ret) 162 return ret; 163 } 164 165 return 0; 166} 167 168void rsnd_cmd_remove(struct rsnd_priv *priv) 169{ 170 struct rsnd_cmd *cmd; 171 int i; 172 173 for_each_rsnd_cmd(cmd, priv, i) { 174 rsnd_mod_quit(rsnd_mod_get(cmd)); 175 } 176} | 162 if (ret) 163 return ret; 164 } 165 166 return 0; 167} 168 169void rsnd_cmd_remove(struct rsnd_priv *priv) 170{ 171 struct rsnd_cmd *cmd; 172 int i; 173 174 for_each_rsnd_cmd(cmd, priv, i) { 175 rsnd_mod_quit(rsnd_mod_get(cmd)); 176 } 177} |