aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/sh/rcar/src.c
diff options
context:
space:
mode:
Diffstat (limited to 'sound/soc/sh/rcar/src.c')
-rw-r--r--sound/soc/sh/rcar/src.c20
1 files changed, 2 insertions, 18 deletions
diff --git a/sound/soc/sh/rcar/src.c b/sound/soc/sh/rcar/src.c
index 76a477a3ccb5..7aa239e28491 100644
--- a/sound/soc/sh/rcar/src.c
+++ b/sound/soc/sh/rcar/src.c
@@ -12,10 +12,6 @@
12 12
13#define SRC_NAME "src" 13#define SRC_NAME "src"
14 14
15/* SRCx_STATUS */
16#define OUF_SRCO ((1 << 12) | (1 << 13))
17#define OUF_SRCI ((1 << 9) | (1 << 8))
18
19/* SCU_SYSTEM_STATUS0/1 */ 15/* SCU_SYSTEM_STATUS0/1 */
20#define OUF_SRC(id) ((1 << (id + 16)) | (1 << id)) 16#define OUF_SRC(id) ((1 << (id + 16)) | (1 << id))
21 17
@@ -55,20 +51,6 @@ struct rsnd_src {
55 * 51 *
56 */ 52 */
57 53
58/*
59 * src.c is caring...
60 *
61 * Gen1
62 *
63 * [mem] -> [SRU] -> [SSI]
64 * |--------|
65 *
66 * Gen2
67 *
68 * [mem] -> [SRC] -> [SSIU] -> [SSI]
69 * |-----------------|
70 */
71
72static void rsnd_src_activation(struct rsnd_mod *mod) 54static void rsnd_src_activation(struct rsnd_mod *mod)
73{ 55{
74 rsnd_mod_write(mod, SRC_SWRSR, 0); 56 rsnd_mod_write(mod, SRC_SWRSR, 0);
@@ -515,6 +497,7 @@ static int rsnd_src_pcm_new(struct rsnd_mod *mod,
515 rsnd_io_is_play(io) ? 497 rsnd_io_is_play(io) ?
516 "SRC Out Rate Switch" : 498 "SRC Out Rate Switch" :
517 "SRC In Rate Switch", 499 "SRC In Rate Switch",
500 rsnd_kctrl_accept_anytime,
518 rsnd_src_set_convert_rate, 501 rsnd_src_set_convert_rate,
519 &src->sen, 1); 502 &src->sen, 1);
520 if (ret < 0) 503 if (ret < 0)
@@ -524,6 +507,7 @@ static int rsnd_src_pcm_new(struct rsnd_mod *mod,
524 rsnd_io_is_play(io) ? 507 rsnd_io_is_play(io) ?
525 "SRC Out Rate" : 508 "SRC Out Rate" :
526 "SRC In Rate", 509 "SRC In Rate",
510 rsnd_kctrl_accept_runtime,
527 rsnd_src_set_convert_rate, 511 rsnd_src_set_convert_rate,
528 &src->sync, 192000); 512 &src->sync, 192000);
529 513