diff options
author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2014-01-23 21:39:56 -0500 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-02-03 07:41:36 -0500 |
commit | 41c6221c39accdc4fe2b0c0fa196b6302b704e57 (patch) | |
tree | bdfee78c5d87cf0c2d52cae01eaadabf9ccd4a03 /sound/soc/sh/rcar/scu.c | |
parent | f80e1c96339a45992b5dded0474288e52bd3b18d (diff) |
ASoC: rsnd: explain SRC bypass mode settings in comment
SRC bypass mode is useful for debugging.
This patch explains SRC bypass mode settings in comment
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'sound/soc/sh/rcar/scu.c')
-rw-r--r-- | sound/soc/sh/rcar/scu.c | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/sound/soc/sh/rcar/scu.c b/sound/soc/sh/rcar/scu.c index 872a115cd224..076aa71bc102 100644 --- a/sound/soc/sh/rcar/scu.c +++ b/sound/soc/sh/rcar/scu.c | |||
@@ -40,6 +40,51 @@ struct rsnd_scu { | |||
40 | * | 40 | * |
41 | */ | 41 | */ |
42 | 42 | ||
43 | /* | ||
44 | * How to use SRC bypass mode for debugging | ||
45 | * | ||
46 | * SRC has bypass mode, and it is useful for debugging. | ||
47 | * In Gen2 case, | ||
48 | * SRCm_MODE controls whether SRC is used or not | ||
49 | * SSI_MODE0 controls whether SSIU which receives SRC data | ||
50 | * is used or not. | ||
51 | * Both SRCm_MODE/SSI_MODE0 settings are needed if you use SRC, | ||
52 | * but SRC bypass mode needs SSI_MODE0 only. | ||
53 | * | ||
54 | * This driver request | ||
55 | * struct rsnd_scu_platform_info { | ||
56 | * u32 flags; | ||
57 | * u32 convert_rate; | ||
58 | * } | ||
59 | * | ||
60 | * rsnd_scu_hpbif_is_enable() will be true | ||
61 | * if flags had RSND_SCU_USE_HPBIF, | ||
62 | * and it controls whether SSIU is used or not. | ||
63 | * | ||
64 | * rsnd_scu_convert_rate() indicates | ||
65 | * above convert_rate, and it controls | ||
66 | * whether SRC is used or not. | ||
67 | * | ||
68 | * ex) doesn't use SRC | ||
69 | * struct rsnd_scu_platform_info info = { | ||
70 | * .flags = 0, | ||
71 | * .convert_rate = 0, | ||
72 | * }; | ||
73 | * | ||
74 | * ex) uses SRC | ||
75 | * struct rsnd_scu_platform_info info = { | ||
76 | * .flags = RSND_SCU_USE_HPBIF, | ||
77 | * .convert_rate = 48000, | ||
78 | * }; | ||
79 | * | ||
80 | * ex) uses SRC bypass mode | ||
81 | * struct rsnd_scu_platform_info info = { | ||
82 | * .flags = RSND_SCU_USE_HPBIF, | ||
83 | * .convert_rate = 0, | ||
84 | * }; | ||
85 | * | ||
86 | */ | ||
87 | |||
43 | #define rsnd_mod_to_scu(_mod) \ | 88 | #define rsnd_mod_to_scu(_mod) \ |
44 | container_of((_mod), struct rsnd_scu, mod) | 89 | container_of((_mod), struct rsnd_scu, mod) |
45 | 90 | ||