Patchwork [U-Boot,5/5] Sound: Add FDT support to CMD.

login
register
mail settings
Submitter Rajeshwari Birje
Date Nov. 8, 2012, 5:37 a.m.
Message ID <1352353039-17165-6-git-send-email-rajeshwari.s@samsung.com>
Download mbox | patch
Permalink /patch/197765/
State Superseded
Delegated to: Minkyu Kang
Headers show

Comments

Rajeshwari Birje - Nov. 8, 2012, 5:37 a.m.
This patch adds FDT support to sound init.

Signed-off-by: Rajeshwari Shinde <rajeshwari.s@samsung.com>
---
 common/cmd_sound.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
Simon Glass - Nov. 9, 2012, 1:18 a.m.
Hi Rajeshwari,

On Wed, Nov 7, 2012 at 9:37 PM, Rajeshwari Shinde
<rajeshwari.s@samsung.com> wrote:
> This patch adds FDT support to sound init.
>
> Signed-off-by: Rajeshwari Shinde <rajeshwari.s@samsung.com>
> ---
>  common/cmd_sound.c |    4 ++++
>  1 files changed, 4 insertions(+), 0 deletions(-)
>
> diff --git a/common/cmd_sound.c b/common/cmd_sound.c
> index 459d1eb..ad8669f 100644
> --- a/common/cmd_sound.c
> +++ b/common/cmd_sound.c
> @@ -33,7 +33,11 @@ static int do_init(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[])
>  {
>         int ret;
>
> +#ifdef CONFIG_OF_CONTROL
> +       ret = sound_init(gd->fdt_blob);
> +#else
>         ret = sound_init();
> +#endif

Same comment here.

>         if (ret) {
>                 printf("Initialise Audio driver failed\n");
>                 return CMD_RET_FAILURE;
> --
> 1.7.4.4
>

Regards,
Simon

Patch

diff --git a/common/cmd_sound.c b/common/cmd_sound.c
index 459d1eb..ad8669f 100644
--- a/common/cmd_sound.c
+++ b/common/cmd_sound.c
@@ -33,7 +33,11 @@  static int do_init(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[])
 {
 	int ret;
 
+#ifdef CONFIG_OF_CONTROL
+	ret = sound_init(gd->fdt_blob);
+#else
 	ret = sound_init();
+#endif
 	if (ret) {
 		printf("Initialise Audio driver failed\n");
 		return CMD_RET_FAILURE;