diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2013-11-16 15:50:53 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-11-16 15:50:53 -0500 |
commit | 73d75ba99e3bdd627275afd3fe48cc933723084b (patch) | |
tree | 8923aa413662c6eee1f36b473b211aab52474ec2 /sound/soc | |
parent | 71f777ed50e9109c235c14604d5e23d2f8e7453c (diff) | |
parent | abfe69dd2e313d0c8226ca4a12329e3d829cfd7c (diff) |
Merge tag 'sound-fix-3.13-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound
Pull sound fixes from Takashi Iwai:
"Two peaks in diffstat are for the audio EQ init of IDT codecs and the
EMU2004 usb mixer addition, both of which are pretty device-specific,
so safe to apply. The rest are a bunch of small fixes, most of them
are regression fixes"
* tag 'sound-fix-3.13-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound: (26 commits)
ALSA: hda - load EQ params into IDT codec on HP bNB13 systems
ASoC: cs42l52: Correct MIC CTL mask
ASoC: wm8962: Turn on regcache_cache_only before disabling regulator
ALSA: jack: Unregister input device at disconnection
ALSA: pcsp: Fix the order of input device unregistration
ASoC: fsl: imx-pcm-fiq: omit fiq counter to avoid harm in unbalanced situations
ASoC: blackfin: Fix missing break
ALSA: usb-audio: add front jack channel selector for EMU0204
ALSA: hda - Don't clear the power state at snd_hda_codec_reset()
ASoC: arizona: Fix typo in name of EQ coefficient controls
ALSA: hda - Control EAPD for Master volume on Lenovo N100
ALSA: hda - Don't turn off EAPD for headphone on Lenovo N100
ALSA: isa: not allocating enough space
ALSA: snd-aoa: two copy and paste bugs
ASoC: wm8997: Correct typo in ISRC mux routes
ALSA: hda - Check keep_eapd_on before inv_eapd
ALSA: hda - Fix Line Out automute on Realtek multifunction jacks
ALSA: msnd: Avoid duplicated driver name
ALSA: compress_core: don't return -EBADFD from poll if paused
ALSA: hda - hdmi: Fix wrong baseline length in ATI/AMD generated ELD
...
Diffstat (limited to 'sound/soc')
-rw-r--r-- | sound/soc/blackfin/bf5xx-i2s.c | 1 | ||||
-rw-r--r-- | sound/soc/codecs/cs42l52.h | 2 | ||||
-rw-r--r-- | sound/soc/codecs/wm5102.c | 8 | ||||
-rw-r--r-- | sound/soc/codecs/wm5110.c | 8 | ||||
-rw-r--r-- | sound/soc/codecs/wm8962.c | 2 | ||||
-rw-r--r-- | sound/soc/codecs/wm8997.c | 10 | ||||
-rw-r--r-- | sound/soc/fsl/imx-pcm-fiq.c | 29 |
7 files changed, 34 insertions, 26 deletions
diff --git a/sound/soc/blackfin/bf5xx-i2s.c b/sound/soc/blackfin/bf5xx-i2s.c index 9a174fc47d39..39d774839b3e 100644 --- a/sound/soc/blackfin/bf5xx-i2s.c +++ b/sound/soc/blackfin/bf5xx-i2s.c | |||
@@ -121,6 +121,7 @@ static int bf5xx_i2s_hw_params(struct snd_pcm_substream *substream, | |||
121 | bf5xx_i2s->tcr2 |= 7; | 121 | bf5xx_i2s->tcr2 |= 7; |
122 | bf5xx_i2s->rcr2 |= 7; | 122 | bf5xx_i2s->rcr2 |= 7; |
123 | sport_handle->wdsize = 1; | 123 | sport_handle->wdsize = 1; |
124 | break; | ||
124 | case SNDRV_PCM_FORMAT_S16_LE: | 125 | case SNDRV_PCM_FORMAT_S16_LE: |
125 | bf5xx_i2s->tcr2 |= 15; | 126 | bf5xx_i2s->tcr2 |= 15; |
126 | bf5xx_i2s->rcr2 |= 15; | 127 | bf5xx_i2s->rcr2 |= 15; |
diff --git a/sound/soc/codecs/cs42l52.h b/sound/soc/codecs/cs42l52.h index 1a9412d86d17..6fb8f00f4191 100644 --- a/sound/soc/codecs/cs42l52.h +++ b/sound/soc/codecs/cs42l52.h | |||
@@ -179,7 +179,7 @@ | |||
179 | #define CS42L52_MICB_CTL 0x11 | 179 | #define CS42L52_MICB_CTL 0x11 |
180 | #define CS42L52_MIC_CTL_MIC_SEL_MASK 0xBF | 180 | #define CS42L52_MIC_CTL_MIC_SEL_MASK 0xBF |
181 | #define CS42L52_MIC_CTL_MIC_SEL_SHIFT 6 | 181 | #define CS42L52_MIC_CTL_MIC_SEL_SHIFT 6 |
182 | #define CS42L52_MIC_CTL_TYPE_MASK 0xDF | 182 | #define CS42L52_MIC_CTL_TYPE_MASK 0x20 |
183 | #define CS42L52_MIC_CTL_TYPE_SHIFT 5 | 183 | #define CS42L52_MIC_CTL_TYPE_SHIFT 5 |
184 | 184 | ||
185 | 185 | ||
diff --git a/sound/soc/codecs/wm5102.c b/sound/soc/codecs/wm5102.c index 8bbddc151aa8..a08e8bf6d07c 100644 --- a/sound/soc/codecs/wm5102.c +++ b/sound/soc/codecs/wm5102.c | |||
@@ -685,13 +685,13 @@ ARIZONA_MIXER_CONTROLS("EQ2", ARIZONA_EQ2MIX_INPUT_1_SOURCE), | |||
685 | ARIZONA_MIXER_CONTROLS("EQ3", ARIZONA_EQ3MIX_INPUT_1_SOURCE), | 685 | ARIZONA_MIXER_CONTROLS("EQ3", ARIZONA_EQ3MIX_INPUT_1_SOURCE), |
686 | ARIZONA_MIXER_CONTROLS("EQ4", ARIZONA_EQ4MIX_INPUT_1_SOURCE), | 686 | ARIZONA_MIXER_CONTROLS("EQ4", ARIZONA_EQ4MIX_INPUT_1_SOURCE), |
687 | 687 | ||
688 | SND_SOC_BYTES_MASK("EQ1 Coefficeints", ARIZONA_EQ1_1, 21, | 688 | SND_SOC_BYTES_MASK("EQ1 Coefficients", ARIZONA_EQ1_1, 21, |
689 | ARIZONA_EQ1_ENA_MASK), | 689 | ARIZONA_EQ1_ENA_MASK), |
690 | SND_SOC_BYTES_MASK("EQ2 Coefficeints", ARIZONA_EQ2_1, 21, | 690 | SND_SOC_BYTES_MASK("EQ2 Coefficients", ARIZONA_EQ2_1, 21, |
691 | ARIZONA_EQ2_ENA_MASK), | 691 | ARIZONA_EQ2_ENA_MASK), |
692 | SND_SOC_BYTES_MASK("EQ3 Coefficeints", ARIZONA_EQ3_1, 21, | 692 | SND_SOC_BYTES_MASK("EQ3 Coefficients", ARIZONA_EQ3_1, 21, |
693 | ARIZONA_EQ3_ENA_MASK), | 693 | ARIZONA_EQ3_ENA_MASK), |
694 | SND_SOC_BYTES_MASK("EQ4 Coefficeints", ARIZONA_EQ4_1, 21, | 694 | SND_SOC_BYTES_MASK("EQ4 Coefficients", ARIZONA_EQ4_1, 21, |
695 | ARIZONA_EQ4_ENA_MASK), | 695 | ARIZONA_EQ4_ENA_MASK), |
696 | 696 | ||
697 | SOC_SINGLE_TLV("EQ1 B1 Volume", ARIZONA_EQ1_1, ARIZONA_EQ1_B1_GAIN_SHIFT, | 697 | SOC_SINGLE_TLV("EQ1 B1 Volume", ARIZONA_EQ1_1, ARIZONA_EQ1_B1_GAIN_SHIFT, |
diff --git a/sound/soc/codecs/wm5110.c b/sound/soc/codecs/wm5110.c index 8c91be5d67e3..f2d1094424b9 100644 --- a/sound/soc/codecs/wm5110.c +++ b/sound/soc/codecs/wm5110.c | |||
@@ -101,13 +101,13 @@ ARIZONA_MIXER_CONTROLS("EQ2", ARIZONA_EQ2MIX_INPUT_1_SOURCE), | |||
101 | ARIZONA_MIXER_CONTROLS("EQ3", ARIZONA_EQ3MIX_INPUT_1_SOURCE), | 101 | ARIZONA_MIXER_CONTROLS("EQ3", ARIZONA_EQ3MIX_INPUT_1_SOURCE), |
102 | ARIZONA_MIXER_CONTROLS("EQ4", ARIZONA_EQ4MIX_INPUT_1_SOURCE), | 102 | ARIZONA_MIXER_CONTROLS("EQ4", ARIZONA_EQ4MIX_INPUT_1_SOURCE), |
103 | 103 | ||
104 | SND_SOC_BYTES_MASK("EQ1 Coefficeints", ARIZONA_EQ1_1, 21, | 104 | SND_SOC_BYTES_MASK("EQ1 Coefficients", ARIZONA_EQ1_1, 21, |
105 | ARIZONA_EQ1_ENA_MASK), | 105 | ARIZONA_EQ1_ENA_MASK), |
106 | SND_SOC_BYTES_MASK("EQ2 Coefficeints", ARIZONA_EQ2_1, 21, | 106 | SND_SOC_BYTES_MASK("EQ2 Coefficients", ARIZONA_EQ2_1, 21, |
107 | ARIZONA_EQ2_ENA_MASK), | 107 | ARIZONA_EQ2_ENA_MASK), |
108 | SND_SOC_BYTES_MASK("EQ3 Coefficeints", ARIZONA_EQ3_1, 21, | 108 | SND_SOC_BYTES_MASK("EQ3 Coefficients", ARIZONA_EQ3_1, 21, |
109 | ARIZONA_EQ3_ENA_MASK), | 109 | ARIZONA_EQ3_ENA_MASK), |
110 | SND_SOC_BYTES_MASK("EQ4 Coefficeints", ARIZONA_EQ4_1, 21, | 110 | SND_SOC_BYTES_MASK("EQ4 Coefficients", ARIZONA_EQ4_1, 21, |
111 | ARIZONA_EQ4_ENA_MASK), | 111 | ARIZONA_EQ4_ENA_MASK), |
112 | 112 | ||
113 | SOC_SINGLE_TLV("EQ1 B1 Volume", ARIZONA_EQ1_1, ARIZONA_EQ1_B1_GAIN_SHIFT, | 113 | SOC_SINGLE_TLV("EQ1 B1 Volume", ARIZONA_EQ1_1, ARIZONA_EQ1_B1_GAIN_SHIFT, |
diff --git a/sound/soc/codecs/wm8962.c b/sound/soc/codecs/wm8962.c index ac1ff9947a90..543c5c2631b6 100644 --- a/sound/soc/codecs/wm8962.c +++ b/sound/soc/codecs/wm8962.c | |||
@@ -3728,6 +3728,8 @@ static int wm8962_i2c_probe(struct i2c_client *i2c, | |||
3728 | if (ret < 0) | 3728 | if (ret < 0) |
3729 | goto err_enable; | 3729 | goto err_enable; |
3730 | 3730 | ||
3731 | regcache_cache_only(wm8962->regmap, true); | ||
3732 | |||
3731 | /* The drivers should power up as needed */ | 3733 | /* The drivers should power up as needed */ |
3732 | regulator_bulk_disable(ARRAY_SIZE(wm8962->supplies), wm8962->supplies); | 3734 | regulator_bulk_disable(ARRAY_SIZE(wm8962->supplies), wm8962->supplies); |
3733 | 3735 | ||
diff --git a/sound/soc/codecs/wm8997.c b/sound/soc/codecs/wm8997.c index 6ec3de3efa4f..1392bb3c9254 100644 --- a/sound/soc/codecs/wm8997.c +++ b/sound/soc/codecs/wm8997.c | |||
@@ -170,13 +170,13 @@ ARIZONA_MIXER_CONTROLS("EQ2", ARIZONA_EQ2MIX_INPUT_1_SOURCE), | |||
170 | ARIZONA_MIXER_CONTROLS("EQ3", ARIZONA_EQ3MIX_INPUT_1_SOURCE), | 170 | ARIZONA_MIXER_CONTROLS("EQ3", ARIZONA_EQ3MIX_INPUT_1_SOURCE), |
171 | ARIZONA_MIXER_CONTROLS("EQ4", ARIZONA_EQ4MIX_INPUT_1_SOURCE), | 171 | ARIZONA_MIXER_CONTROLS("EQ4", ARIZONA_EQ4MIX_INPUT_1_SOURCE), |
172 | 172 | ||
173 | SND_SOC_BYTES_MASK("EQ1 Coefficeints", ARIZONA_EQ1_1, 21, | 173 | SND_SOC_BYTES_MASK("EQ1 Coefficients", ARIZONA_EQ1_1, 21, |
174 | ARIZONA_EQ1_ENA_MASK), | 174 | ARIZONA_EQ1_ENA_MASK), |
175 | SND_SOC_BYTES_MASK("EQ2 Coefficeints", ARIZONA_EQ2_1, 21, | 175 | SND_SOC_BYTES_MASK("EQ2 Coefficients", ARIZONA_EQ2_1, 21, |
176 | ARIZONA_EQ2_ENA_MASK), | 176 | ARIZONA_EQ2_ENA_MASK), |
177 | SND_SOC_BYTES_MASK("EQ3 Coefficeints", ARIZONA_EQ3_1, 21, | 177 | SND_SOC_BYTES_MASK("EQ3 Coefficients", ARIZONA_EQ3_1, 21, |
178 | ARIZONA_EQ3_ENA_MASK), | 178 | ARIZONA_EQ3_ENA_MASK), |
179 | SND_SOC_BYTES_MASK("EQ4 Coefficeints", ARIZONA_EQ4_1, 21, | 179 | SND_SOC_BYTES_MASK("EQ4 Coefficients", ARIZONA_EQ4_1, 21, |
180 | ARIZONA_EQ4_ENA_MASK), | 180 | ARIZONA_EQ4_ENA_MASK), |
181 | 181 | ||
182 | SOC_SINGLE_TLV("EQ1 B1 Volume", ARIZONA_EQ1_1, ARIZONA_EQ1_B1_GAIN_SHIFT, | 182 | SOC_SINGLE_TLV("EQ1 B1 Volume", ARIZONA_EQ1_1, ARIZONA_EQ1_B1_GAIN_SHIFT, |
@@ -887,7 +887,7 @@ static const struct snd_soc_dapm_route wm8997_dapm_routes[] = { | |||
887 | ARIZONA_MIXER_ROUTES("Mic Mute Mixer", "Mic"), | 887 | ARIZONA_MIXER_ROUTES("Mic Mute Mixer", "Mic"), |
888 | 888 | ||
889 | ARIZONA_MUX_ROUTES("ISRC1INT1", "ISRC1INT1"), | 889 | ARIZONA_MUX_ROUTES("ISRC1INT1", "ISRC1INT1"), |
890 | ARIZONA_MUX_ROUTES("ISRC1INT2", "ISRC2INT2"), | 890 | ARIZONA_MUX_ROUTES("ISRC1INT2", "ISRC1INT2"), |
891 | 891 | ||
892 | ARIZONA_MUX_ROUTES("ISRC1DEC1", "ISRC1DEC1"), | 892 | ARIZONA_MUX_ROUTES("ISRC1DEC1", "ISRC1DEC1"), |
893 | ARIZONA_MUX_ROUTES("ISRC1DEC2", "ISRC1DEC2"), | 893 | ARIZONA_MUX_ROUTES("ISRC1DEC2", "ISRC1DEC2"), |
diff --git a/sound/soc/fsl/imx-pcm-fiq.c b/sound/soc/fsl/imx-pcm-fiq.c index 41740e488820..c75d43bb2e92 100644 --- a/sound/soc/fsl/imx-pcm-fiq.c +++ b/sound/soc/fsl/imx-pcm-fiq.c | |||
@@ -42,7 +42,8 @@ struct imx_pcm_runtime_data { | |||
42 | struct hrtimer hrt; | 42 | struct hrtimer hrt; |
43 | int poll_time_ns; | 43 | int poll_time_ns; |
44 | struct snd_pcm_substream *substream; | 44 | struct snd_pcm_substream *substream; |
45 | atomic_t running; | 45 | atomic_t playing; |
46 | atomic_t capturing; | ||
46 | }; | 47 | }; |
47 | 48 | ||
48 | static enum hrtimer_restart snd_hrtimer_callback(struct hrtimer *hrt) | 49 | static enum hrtimer_restart snd_hrtimer_callback(struct hrtimer *hrt) |
@@ -52,7 +53,7 @@ static enum hrtimer_restart snd_hrtimer_callback(struct hrtimer *hrt) | |||
52 | struct snd_pcm_substream *substream = iprtd->substream; | 53 | struct snd_pcm_substream *substream = iprtd->substream; |
53 | struct pt_regs regs; | 54 | struct pt_regs regs; |
54 | 55 | ||
55 | if (!atomic_read(&iprtd->running)) | 56 | if (!atomic_read(&iprtd->playing) && !atomic_read(&iprtd->capturing)) |
56 | return HRTIMER_NORESTART; | 57 | return HRTIMER_NORESTART; |
57 | 58 | ||
58 | get_fiq_regs(®s); | 59 | get_fiq_regs(®s); |
@@ -106,7 +107,6 @@ static int snd_imx_pcm_prepare(struct snd_pcm_substream *substream) | |||
106 | return 0; | 107 | return 0; |
107 | } | 108 | } |
108 | 109 | ||
109 | static int fiq_enable; | ||
110 | static int imx_pcm_fiq; | 110 | static int imx_pcm_fiq; |
111 | 111 | ||
112 | static int snd_imx_pcm_trigger(struct snd_pcm_substream *substream, int cmd) | 112 | static int snd_imx_pcm_trigger(struct snd_pcm_substream *substream, int cmd) |
@@ -118,23 +118,27 @@ static int snd_imx_pcm_trigger(struct snd_pcm_substream *substream, int cmd) | |||
118 | case SNDRV_PCM_TRIGGER_START: | 118 | case SNDRV_PCM_TRIGGER_START: |
119 | case SNDRV_PCM_TRIGGER_RESUME: | 119 | case SNDRV_PCM_TRIGGER_RESUME: |
120 | case SNDRV_PCM_TRIGGER_PAUSE_RELEASE: | 120 | case SNDRV_PCM_TRIGGER_PAUSE_RELEASE: |
121 | atomic_set(&iprtd->running, 1); | 121 | if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) |
122 | atomic_set(&iprtd->playing, 1); | ||
123 | else | ||
124 | atomic_set(&iprtd->capturing, 1); | ||
122 | hrtimer_start(&iprtd->hrt, ns_to_ktime(iprtd->poll_time_ns), | 125 | hrtimer_start(&iprtd->hrt, ns_to_ktime(iprtd->poll_time_ns), |
123 | HRTIMER_MODE_REL); | 126 | HRTIMER_MODE_REL); |
124 | if (++fiq_enable == 1) | 127 | enable_fiq(imx_pcm_fiq); |
125 | enable_fiq(imx_pcm_fiq); | ||
126 | |||
127 | break; | 128 | break; |
128 | 129 | ||
129 | case SNDRV_PCM_TRIGGER_STOP: | 130 | case SNDRV_PCM_TRIGGER_STOP: |
130 | case SNDRV_PCM_TRIGGER_SUSPEND: | 131 | case SNDRV_PCM_TRIGGER_SUSPEND: |
131 | case SNDRV_PCM_TRIGGER_PAUSE_PUSH: | 132 | case SNDRV_PCM_TRIGGER_PAUSE_PUSH: |
132 | atomic_set(&iprtd->running, 0); | 133 | if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) |
133 | 134 | atomic_set(&iprtd->playing, 0); | |
134 | if (--fiq_enable == 0) | 135 | else |
136 | atomic_set(&iprtd->capturing, 0); | ||
137 | if (!atomic_read(&iprtd->playing) && | ||
138 | !atomic_read(&iprtd->capturing)) | ||
135 | disable_fiq(imx_pcm_fiq); | 139 | disable_fiq(imx_pcm_fiq); |
136 | |||
137 | break; | 140 | break; |
141 | |||
138 | default: | 142 | default: |
139 | return -EINVAL; | 143 | return -EINVAL; |
140 | } | 144 | } |
@@ -182,7 +186,8 @@ static int snd_imx_open(struct snd_pcm_substream *substream) | |||
182 | 186 | ||
183 | iprtd->substream = substream; | 187 | iprtd->substream = substream; |
184 | 188 | ||
185 | atomic_set(&iprtd->running, 0); | 189 | atomic_set(&iprtd->playing, 0); |
190 | atomic_set(&iprtd->capturing, 0); | ||
186 | hrtimer_init(&iprtd->hrt, CLOCK_MONOTONIC, HRTIMER_MODE_REL); | 191 | hrtimer_init(&iprtd->hrt, CLOCK_MONOTONIC, HRTIMER_MODE_REL); |
187 | iprtd->hrt.function = snd_hrtimer_callback; | 192 | iprtd->hrt.function = snd_hrtimer_callback; |
188 | 193 | ||