Re: [alsa-devel] [PATCH][sound/soc/fsl/mpc8610_hpcd.c] duplicate strcasecmp test for "rj-master" in mpc8610_hpcd_probe()

2008-02-04 Thread Timur Tabi

Mark Brown wrote:

On Mon, Feb 04, 2008 at 10:08:02PM +0100, Roel Kluin wrote:

In linus' git tree I found this problem. Is it also in the alsa tree?
please confirm it's the right fix. The patch was not yet tested.


Timur, this looks like a good catch?


Yes, thank you!  The change below should be made.




--
duplicate test for "rj-master"

Signed-off-by: Roel Kluin <[EMAIL PROTECTED]>
---
diff --git a/sound/soc/fsl/mpc8610_hpcd.c b/sound/soc/fsl/mpc8610_hpcd.c
index f26c4b2..a00aac7 100644
--- a/sound/soc/fsl/mpc8610_hpcd.c
+++ b/sound/soc/fsl/mpc8610_hpcd.c
@@ -314,9 +314,9 @@ static int mpc8610_hpcd_probe(struct of_device *ofdev,
} else if (strcasecmp(sprop, "lj-master") == 0) {
machine_data->dai_format = SND_SOC_DAIFMT_LEFT_J;
machine_data->codec_clk_direction = SND_SOC_CLOCK_IN;
machine_data->cpu_clk_direction = SND_SOC_CLOCK_OUT;
-   } else if (strcasecmp(sprop, "rj-master") == 0) {
+   } else if (strcasecmp(sprop, "rj-slave") == 0) {
machine_data->dai_format = SND_SOC_DAIFMT_RIGHT_J;
machine_data->codec_clk_direction = SND_SOC_CLOCK_OUT;
machine_data->cpu_clk_direction = SND_SOC_CLOCK_IN;
} else if (strcasecmp(sprop, "rj-master") == 0) {

___
Alsa-devel mailing list
[EMAIL PROTECTED]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel




--
Timur Tabi
Linux kernel developer at Freescale
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: [alsa-devel] [PATCH][sound/soc/fsl/mpc8610_hpcd.c] duplicate strcasecmp test for "rj-master" in mpc8610_hpcd_probe()

2008-02-04 Thread Mark Brown
On Mon, Feb 04, 2008 at 10:08:02PM +0100, Roel Kluin wrote:
> In linus' git tree I found this problem. Is it also in the alsa tree?
> please confirm it's the right fix. The patch was not yet tested.

Timur, this looks like a good catch?

> --
> duplicate test for "rj-master"
> 
> Signed-off-by: Roel Kluin <[EMAIL PROTECTED]>
> ---
> diff --git a/sound/soc/fsl/mpc8610_hpcd.c b/sound/soc/fsl/mpc8610_hpcd.c
> index f26c4b2..a00aac7 100644
> --- a/sound/soc/fsl/mpc8610_hpcd.c
> +++ b/sound/soc/fsl/mpc8610_hpcd.c
> @@ -314,9 +314,9 @@ static int mpc8610_hpcd_probe(struct of_device *ofdev,
>   } else if (strcasecmp(sprop, "lj-master") == 0) {
>   machine_data->dai_format = SND_SOC_DAIFMT_LEFT_J;
>   machine_data->codec_clk_direction = SND_SOC_CLOCK_IN;
>   machine_data->cpu_clk_direction = SND_SOC_CLOCK_OUT;
> - } else if (strcasecmp(sprop, "rj-master") == 0) {
> + } else if (strcasecmp(sprop, "rj-slave") == 0) {
>   machine_data->dai_format = SND_SOC_DAIFMT_RIGHT_J;
>   machine_data->codec_clk_direction = SND_SOC_CLOCK_OUT;
>   machine_data->cpu_clk_direction = SND_SOC_CLOCK_IN;
>   } else if (strcasecmp(sprop, "rj-master") == 0) {
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


[PATCH][sound/soc/fsl/mpc8610_hpcd.c] duplicate strcasecmp test for "rj-master" in mpc8610_hpcd_probe()

2008-02-04 Thread Roel Kluin
In linus' git tree I found this problem. Is it also in the alsa tree?
please confirm it's the right fix. The patch was not yet tested.
--
duplicate test for "rj-master"

Signed-off-by: Roel Kluin <[EMAIL PROTECTED]>
---
diff --git a/sound/soc/fsl/mpc8610_hpcd.c b/sound/soc/fsl/mpc8610_hpcd.c
index f26c4b2..a00aac7 100644
--- a/sound/soc/fsl/mpc8610_hpcd.c
+++ b/sound/soc/fsl/mpc8610_hpcd.c
@@ -314,9 +314,9 @@ static int mpc8610_hpcd_probe(struct of_device *ofdev,
} else if (strcasecmp(sprop, "lj-master") == 0) {
machine_data->dai_format = SND_SOC_DAIFMT_LEFT_J;
machine_data->codec_clk_direction = SND_SOC_CLOCK_IN;
machine_data->cpu_clk_direction = SND_SOC_CLOCK_OUT;
-   } else if (strcasecmp(sprop, "rj-master") == 0) {
+   } else if (strcasecmp(sprop, "rj-slave") == 0) {
machine_data->dai_format = SND_SOC_DAIFMT_RIGHT_J;
machine_data->codec_clk_direction = SND_SOC_CLOCK_OUT;
machine_data->cpu_clk_direction = SND_SOC_CLOCK_IN;
} else if (strcasecmp(sprop, "rj-master") == 0) {
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


[PATCH][sound/soc/fsl/mpc8610_hpcd.c] duplicate strcasecmp test for rj-master in mpc8610_hpcd_probe()

2008-02-04 Thread Roel Kluin
In linus' git tree I found this problem. Is it also in the alsa tree?
please confirm it's the right fix. The patch was not yet tested.
--
duplicate test for rj-master

Signed-off-by: Roel Kluin [EMAIL PROTECTED]
---
diff --git a/sound/soc/fsl/mpc8610_hpcd.c b/sound/soc/fsl/mpc8610_hpcd.c
index f26c4b2..a00aac7 100644
--- a/sound/soc/fsl/mpc8610_hpcd.c
+++ b/sound/soc/fsl/mpc8610_hpcd.c
@@ -314,9 +314,9 @@ static int mpc8610_hpcd_probe(struct of_device *ofdev,
} else if (strcasecmp(sprop, lj-master) == 0) {
machine_data-dai_format = SND_SOC_DAIFMT_LEFT_J;
machine_data-codec_clk_direction = SND_SOC_CLOCK_IN;
machine_data-cpu_clk_direction = SND_SOC_CLOCK_OUT;
-   } else if (strcasecmp(sprop, rj-master) == 0) {
+   } else if (strcasecmp(sprop, rj-slave) == 0) {
machine_data-dai_format = SND_SOC_DAIFMT_RIGHT_J;
machine_data-codec_clk_direction = SND_SOC_CLOCK_OUT;
machine_data-cpu_clk_direction = SND_SOC_CLOCK_IN;
} else if (strcasecmp(sprop, rj-master) == 0) {
--
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: [alsa-devel] [PATCH][sound/soc/fsl/mpc8610_hpcd.c] duplicate strcasecmp test for rj-master in mpc8610_hpcd_probe()

2008-02-04 Thread Timur Tabi

Mark Brown wrote:

On Mon, Feb 04, 2008 at 10:08:02PM +0100, Roel Kluin wrote:

In linus' git tree I found this problem. Is it also in the alsa tree?
please confirm it's the right fix. The patch was not yet tested.


Timur, this looks like a good catch?


Yes, thank you!  The change below should be made.




--
duplicate test for rj-master

Signed-off-by: Roel Kluin [EMAIL PROTECTED]
---
diff --git a/sound/soc/fsl/mpc8610_hpcd.c b/sound/soc/fsl/mpc8610_hpcd.c
index f26c4b2..a00aac7 100644
--- a/sound/soc/fsl/mpc8610_hpcd.c
+++ b/sound/soc/fsl/mpc8610_hpcd.c
@@ -314,9 +314,9 @@ static int mpc8610_hpcd_probe(struct of_device *ofdev,
} else if (strcasecmp(sprop, lj-master) == 0) {
machine_data-dai_format = SND_SOC_DAIFMT_LEFT_J;
machine_data-codec_clk_direction = SND_SOC_CLOCK_IN;
machine_data-cpu_clk_direction = SND_SOC_CLOCK_OUT;
-   } else if (strcasecmp(sprop, rj-master) == 0) {
+   } else if (strcasecmp(sprop, rj-slave) == 0) {
machine_data-dai_format = SND_SOC_DAIFMT_RIGHT_J;
machine_data-codec_clk_direction = SND_SOC_CLOCK_OUT;
machine_data-cpu_clk_direction = SND_SOC_CLOCK_IN;
} else if (strcasecmp(sprop, rj-master) == 0) {

___
Alsa-devel mailing list
[EMAIL PROTECTED]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel




--
Timur Tabi
Linux kernel developer at Freescale
--
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: [alsa-devel] [PATCH][sound/soc/fsl/mpc8610_hpcd.c] duplicate strcasecmp test for rj-master in mpc8610_hpcd_probe()

2008-02-04 Thread Mark Brown
On Mon, Feb 04, 2008 at 10:08:02PM +0100, Roel Kluin wrote:
 In linus' git tree I found this problem. Is it also in the alsa tree?
 please confirm it's the right fix. The patch was not yet tested.

Timur, this looks like a good catch?

 --
 duplicate test for rj-master
 
 Signed-off-by: Roel Kluin [EMAIL PROTECTED]
 ---
 diff --git a/sound/soc/fsl/mpc8610_hpcd.c b/sound/soc/fsl/mpc8610_hpcd.c
 index f26c4b2..a00aac7 100644
 --- a/sound/soc/fsl/mpc8610_hpcd.c
 +++ b/sound/soc/fsl/mpc8610_hpcd.c
 @@ -314,9 +314,9 @@ static int mpc8610_hpcd_probe(struct of_device *ofdev,
   } else if (strcasecmp(sprop, lj-master) == 0) {
   machine_data-dai_format = SND_SOC_DAIFMT_LEFT_J;
   machine_data-codec_clk_direction = SND_SOC_CLOCK_IN;
   machine_data-cpu_clk_direction = SND_SOC_CLOCK_OUT;
 - } else if (strcasecmp(sprop, rj-master) == 0) {
 + } else if (strcasecmp(sprop, rj-slave) == 0) {
   machine_data-dai_format = SND_SOC_DAIFMT_RIGHT_J;
   machine_data-codec_clk_direction = SND_SOC_CLOCK_OUT;
   machine_data-cpu_clk_direction = SND_SOC_CLOCK_IN;
   } else if (strcasecmp(sprop, rj-master) == 0) {
--
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/