diff options
author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2010-07-12 23:13:00 -0400 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2010-07-13 07:35:36 -0400 |
commit | a7ffb52bb31ef5cff1b8bb312d5a3425a983563f (patch) | |
tree | 86d93c6bcdedb72d17a7b0ce490cf6b15dcb8d94 /sound/soc/sh | |
parent | a09370cb8c8144744cef4d8cc993472f6f8edcb7 (diff) |
ASoC: fsi: remove noisy CR_FMT macro
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Acked-by: Liam Girdwood <lrg@slimlogic.co.uk>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc/sh')
-rw-r--r-- | sound/soc/sh/fsi.c | 25 |
1 files changed, 12 insertions, 13 deletions
diff --git a/sound/soc/sh/fsi.c b/sound/soc/sh/fsi.c index 55a03db6daaf..28aae0d01545 100644 --- a/sound/soc/sh/fsi.c +++ b/sound/soc/sh/fsi.c | |||
@@ -48,13 +48,12 @@ | |||
48 | 48 | ||
49 | /* DO_FMT */ | 49 | /* DO_FMT */ |
50 | /* DI_FMT */ | 50 | /* DI_FMT */ |
51 | #define CR_FMT(param) ((param) << 4) | 51 | #define CR_MONO (0x0 << 4) |
52 | # define CR_MONO 0x0 | 52 | #define CR_MONO_D (0x1 << 4) |
53 | # define CR_MONO_D 0x1 | 53 | #define CR_PCM (0x2 << 4) |
54 | # define CR_PCM 0x2 | 54 | #define CR_I2S (0x3 << 4) |
55 | # define CR_I2S 0x3 | 55 | #define CR_TDM (0x4 << 4) |
56 | # define CR_TDM 0x4 | 56 | #define CR_TDM_D (0x5 << 4) |
57 | # define CR_TDM_D 0x5 | ||
58 | 57 | ||
59 | /* DOFF_CTL */ | 58 | /* DOFF_CTL */ |
60 | /* DIFF_CTL */ | 59 | /* DIFF_CTL */ |
@@ -690,30 +689,30 @@ static int fsi_dai_startup(struct snd_pcm_substream *substream, | |||
690 | fmt = is_play ? SH_FSI_GET_OFMT(flags) : SH_FSI_GET_IFMT(flags); | 689 | fmt = is_play ? SH_FSI_GET_OFMT(flags) : SH_FSI_GET_IFMT(flags); |
691 | switch (fmt) { | 690 | switch (fmt) { |
692 | case SH_FSI_FMT_MONO: | 691 | case SH_FSI_FMT_MONO: |
693 | data = CR_FMT(CR_MONO); | 692 | data = CR_MONO; |
694 | fsi->chan = 1; | 693 | fsi->chan = 1; |
695 | break; | 694 | break; |
696 | case SH_FSI_FMT_MONO_DELAY: | 695 | case SH_FSI_FMT_MONO_DELAY: |
697 | data = CR_FMT(CR_MONO_D); | 696 | data = CR_MONO_D; |
698 | fsi->chan = 1; | 697 | fsi->chan = 1; |
699 | break; | 698 | break; |
700 | case SH_FSI_FMT_PCM: | 699 | case SH_FSI_FMT_PCM: |
701 | data = CR_FMT(CR_PCM); | 700 | data = CR_PCM; |
702 | fsi->chan = 2; | 701 | fsi->chan = 2; |
703 | break; | 702 | break; |
704 | case SH_FSI_FMT_I2S: | 703 | case SH_FSI_FMT_I2S: |
705 | data = CR_FMT(CR_I2S); | 704 | data = CR_I2S; |
706 | fsi->chan = 2; | 705 | fsi->chan = 2; |
707 | break; | 706 | break; |
708 | case SH_FSI_FMT_TDM: | 707 | case SH_FSI_FMT_TDM: |
709 | fsi->chan = is_play ? | 708 | fsi->chan = is_play ? |
710 | SH_FSI_GET_CH_O(flags) : SH_FSI_GET_CH_I(flags); | 709 | SH_FSI_GET_CH_O(flags) : SH_FSI_GET_CH_I(flags); |
711 | data = CR_FMT(CR_TDM) | (fsi->chan - 1); | 710 | data = CR_TDM | (fsi->chan - 1); |
712 | break; | 711 | break; |
713 | case SH_FSI_FMT_TDM_DELAY: | 712 | case SH_FSI_FMT_TDM_DELAY: |
714 | fsi->chan = is_play ? | 713 | fsi->chan = is_play ? |
715 | SH_FSI_GET_CH_O(flags) : SH_FSI_GET_CH_I(flags); | 714 | SH_FSI_GET_CH_O(flags) : SH_FSI_GET_CH_I(flags); |
716 | data = CR_FMT(CR_TDM_D) | (fsi->chan - 1); | 715 | data = CR_TDM_D | (fsi->chan - 1); |
717 | break; | 716 | break; |
718 | default: | 717 | default: |
719 | dev_err(dai->dev, "unknown format.\n"); | 718 | dev_err(dai->dev, "unknown format.\n"); |