diff options
author | Stefan Richter <stefanr@s5r6.in-berlin.de> | 2011-05-10 14:52:07 -0400 |
---|---|---|
committer | Stefan Richter <stefanr@s5r6.in-berlin.de> | 2011-05-10 16:50:41 -0400 |
commit | 020abf03cd659388f94cb328e1e1df0656e0d7ff (patch) | |
tree | 40d05011708ad1b4a05928d167eb120420581aa6 /sound/soc/jz4740 | |
parent | 0ff8fbc61727c926883eec381fbd3d32d1fab504 (diff) | |
parent | 693d92a1bbc9e42681c42ed190bd42b636ca876f (diff) |
Merge tag 'v2.6.39-rc7'
in order to pull in changes in drivers/media/dvb/firewire/ and
sound/firewire/.
Diffstat (limited to 'sound/soc/jz4740')
-rw-r--r-- | sound/soc/jz4740/jz4740-i2s.c | 1 | ||||
-rw-r--r-- | sound/soc/jz4740/qi_lb60.c | 14 |
2 files changed, 8 insertions, 7 deletions
diff --git a/sound/soc/jz4740/jz4740-i2s.c b/sound/soc/jz4740/jz4740-i2s.c index f3cffd183401..419bf4f5534a 100644 --- a/sound/soc/jz4740/jz4740-i2s.c +++ b/sound/soc/jz4740/jz4740-i2s.c | |||
@@ -28,7 +28,6 @@ | |||
28 | #include <sound/pcm.h> | 28 | #include <sound/pcm.h> |
29 | #include <sound/pcm_params.h> | 29 | #include <sound/pcm_params.h> |
30 | #include <sound/soc.h> | 30 | #include <sound/soc.h> |
31 | #include <sound/soc-dapm.h> | ||
32 | #include <sound/initval.h> | 31 | #include <sound/initval.h> |
33 | 32 | ||
34 | #include "jz4740-i2s.h" | 33 | #include "jz4740-i2s.h" |
diff --git a/sound/soc/jz4740/qi_lb60.c b/sound/soc/jz4740/qi_lb60.c index ef1a99e6a3bd..49723e3e7e38 100644 --- a/sound/soc/jz4740/qi_lb60.c +++ b/sound/soc/jz4740/qi_lb60.c | |||
@@ -19,7 +19,6 @@ | |||
19 | #include <sound/core.h> | 19 | #include <sound/core.h> |
20 | #include <sound/pcm.h> | 20 | #include <sound/pcm.h> |
21 | #include <sound/soc.h> | 21 | #include <sound/soc.h> |
22 | #include <sound/soc-dapm.h> | ||
23 | #include <linux/gpio.h> | 22 | #include <linux/gpio.h> |
24 | 23 | ||
25 | #define QI_LB60_SND_GPIO JZ_GPIO_PORTB(29) | 24 | #define QI_LB60_SND_GPIO JZ_GPIO_PORTB(29) |
@@ -59,10 +58,11 @@ static int qi_lb60_codec_init(struct snd_soc_pcm_runtime *rtd) | |||
59 | { | 58 | { |
60 | struct snd_soc_codec *codec = rtd->codec; | 59 | struct snd_soc_codec *codec = rtd->codec; |
61 | struct snd_soc_dai *cpu_dai = rtd->cpu_dai; | 60 | struct snd_soc_dai *cpu_dai = rtd->cpu_dai; |
61 | struct snd_soc_dapm_context *dapm = &codec->dapm; | ||
62 | int ret; | 62 | int ret; |
63 | 63 | ||
64 | snd_soc_dapm_nc_pin(codec, "LIN"); | 64 | snd_soc_dapm_nc_pin(dapm, "LIN"); |
65 | snd_soc_dapm_nc_pin(codec, "RIN"); | 65 | snd_soc_dapm_nc_pin(dapm, "RIN"); |
66 | 66 | ||
67 | ret = snd_soc_dai_set_fmt(cpu_dai, QI_LB60_DAIFMT); | 67 | ret = snd_soc_dai_set_fmt(cpu_dai, QI_LB60_DAIFMT); |
68 | if (ret < 0) { | 68 | if (ret < 0) { |
@@ -70,9 +70,11 @@ static int qi_lb60_codec_init(struct snd_soc_pcm_runtime *rtd) | |||
70 | return ret; | 70 | return ret; |
71 | } | 71 | } |
72 | 72 | ||
73 | snd_soc_dapm_new_controls(codec, qi_lb60_widgets, ARRAY_SIZE(qi_lb60_widgets)); | 73 | snd_soc_dapm_new_controls(dapm, qi_lb60_widgets, |
74 | snd_soc_dapm_add_routes(codec, qi_lb60_routes, ARRAY_SIZE(qi_lb60_routes)); | 74 | ARRAY_SIZE(qi_lb60_widgets)); |
75 | snd_soc_dapm_sync(codec); | 75 | snd_soc_dapm_add_routes(dapm, qi_lb60_routes, |
76 | ARRAY_SIZE(qi_lb60_routes)); | ||
77 | snd_soc_dapm_sync(dapm); | ||
76 | 78 | ||
77 | return 0; | 79 | return 0; |
78 | } | 80 | } |