diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2015-02-06 15:50:37 -0500 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2015-02-06 15:50:37 -0500 |
| commit | 2af613d3739b04b16fbd3c2b824b9ebaace89328 (patch) | |
| tree | 4919701fb0f2d09cbe8e0f53cc01179f72e2cca4 | |
| parent | 48beb121f0600070184a4265bae77e7d8382f747 (diff) | |
| parent | d2255c01636569ee13ed7e2e5d64221a62dfe53b (diff) | |
Merge tag 'sound-3.19' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound
Pull sound fixes from Takashi Iwai:
"Hopefully the final pull request for 3.19: this ended up with a
slightly higher volume than wished, but I put them all as they are
either stable or 3.19 regression fixes.
Most of commits are from ASoC, and have been stewed for a while in
linux-next. The only change in the common code is the regression
fixes for ASoC AC97 stuff wrt device registrations. The rest are
device-specific, mostly small fixes in various ASoC drivers and ak411x
on ice1724 boards"
* tag 'sound-3.19' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound:
ASoC: Intel: fix sst firmware path for cht-bsw-rt5672
ARM: dts: Fix I2S1, I2S2 compatible for exynos4 SoCs
ASoC: sgtl5000: add delay before first I2C access
MAINTAINERS: ASoC: add maintainer for Intel BDW/HSW ASoC driver
ASoC: atmel_ssc_dai: fix the setting for DSP mode
ASoC: sgtl5000: Use shift mask when setting codec mode
ASoC: tlv320aic3x: Fix data delay configuration
ALSA: ak411x: Fix stall in work callback
ASoC: Intel: Used lock version to update shim registers
ASoC: wm8731: init mutex in i2c init path
ASoC: atmel_ssc_dai: fix start event for I2S mode
ASoC: rt5640: Add RT5642 ACPI ID for Intel Baytrail
ASoC: wm97xx: Reset AC'97 device before registering it
ASoC: Add support for allocating AC'97 device before registering it
| -rw-r--r-- | MAINTAINERS | 10 | ||||
| -rw-r--r-- | arch/arm/boot/dts/exynos4.dtsi | 4 | ||||
| -rw-r--r-- | include/sound/ak4113.h | 2 | ||||
| -rw-r--r-- | include/sound/ak4114.h | 2 | ||||
| -rw-r--r-- | include/sound/soc.h | 1 | ||||
| -rw-r--r-- | sound/i2c/other/ak4113.c | 17 | ||||
| -rw-r--r-- | sound/i2c/other/ak4114.c | 18 | ||||
| -rw-r--r-- | sound/soc/atmel/atmel_ssc_dai.c | 24 | ||||
| -rw-r--r-- | sound/soc/codecs/rt5640.c | 1 | ||||
| -rw-r--r-- | sound/soc/codecs/sgtl5000.c | 13 | ||||
| -rw-r--r-- | sound/soc/codecs/tlv320aic3x.c | 2 | ||||
| -rw-r--r-- | sound/soc/codecs/wm8731.c | 2 | ||||
| -rw-r--r-- | sound/soc/codecs/wm9705.c | 16 | ||||
| -rw-r--r-- | sound/soc/codecs/wm9712.c | 12 | ||||
| -rw-r--r-- | sound/soc/codecs/wm9713.c | 12 | ||||
| -rw-r--r-- | sound/soc/intel/sst-haswell-ipc.c | 4 | ||||
| -rw-r--r-- | sound/soc/intel/sst/sst_acpi.c | 2 | ||||
| -rw-r--r-- | sound/soc/soc-ac97.c | 36 |
18 files changed, 109 insertions, 69 deletions
diff --git a/MAINTAINERS b/MAINTAINERS index 8d37ce11cc56..d66a97dd3a12 100644 --- a/MAINTAINERS +++ b/MAINTAINERS | |||
| @@ -4953,6 +4953,16 @@ F: Documentation/input/multi-touch-protocol.txt | |||
| 4953 | F: drivers/input/input-mt.c | 4953 | F: drivers/input/input-mt.c |
| 4954 | K: \b(ABS|SYN)_MT_ | 4954 | K: \b(ABS|SYN)_MT_ |
| 4955 | 4955 | ||
| 4956 | INTEL ASoC BDW/HSW DRIVERS | ||
| 4957 | M: Jie Yang <yang.jie@linux.intel.com> | ||
| 4958 | L: alsa-devel@alsa-project.org | ||
| 4959 | S: Supported | ||
| 4960 | F: sound/soc/intel/sst-haswell* | ||
| 4961 | F: sound/soc/intel/sst-dsp* | ||
| 4962 | F: sound/soc/intel/sst-firmware.c | ||
| 4963 | F: sound/soc/intel/broadwell.c | ||
| 4964 | F: sound/soc/intel/haswell.c | ||
| 4965 | |||
| 4956 | INTEL C600 SERIES SAS CONTROLLER DRIVER | 4966 | INTEL C600 SERIES SAS CONTROLLER DRIVER |
| 4957 | M: Intel SCU Linux support <intel-linux-scu@intel.com> | 4967 | M: Intel SCU Linux support <intel-linux-scu@intel.com> |
| 4958 | M: Artur Paszkiewicz <artur.paszkiewicz@intel.com> | 4968 | M: Artur Paszkiewicz <artur.paszkiewicz@intel.com> |
diff --git a/arch/arm/boot/dts/exynos4.dtsi b/arch/arm/boot/dts/exynos4.dtsi index b8168f1f8139..24ff27049ce0 100644 --- a/arch/arm/boot/dts/exynos4.dtsi +++ b/arch/arm/boot/dts/exynos4.dtsi | |||
| @@ -368,7 +368,7 @@ | |||
| 368 | }; | 368 | }; |
| 369 | 369 | ||
| 370 | i2s1: i2s@13960000 { | 370 | i2s1: i2s@13960000 { |
| 371 | compatible = "samsung,s5pv210-i2s"; | 371 | compatible = "samsung,s3c6410-i2s"; |
| 372 | reg = <0x13960000 0x100>; | 372 | reg = <0x13960000 0x100>; |
| 373 | clocks = <&clock CLK_I2S1>; | 373 | clocks = <&clock CLK_I2S1>; |
| 374 | clock-names = "iis"; | 374 | clock-names = "iis"; |
| @@ -378,7 +378,7 @@ | |||
| 378 | }; | 378 | }; |
| 379 | 379 | ||
| 380 | i2s2: i2s@13970000 { | 380 | i2s2: i2s@13970000 { |
| 381 | compatible = "samsung,s5pv210-i2s"; | 381 | compatible = "samsung,s3c6410-i2s"; |
| 382 | reg = <0x13970000 0x100>; | 382 | reg = <0x13970000 0x100>; |
| 383 | clocks = <&clock CLK_I2S2>; | 383 | clocks = <&clock CLK_I2S2>; |
| 384 | clock-names = "iis"; | 384 | clock-names = "iis"; |
diff --git a/include/sound/ak4113.h b/include/sound/ak4113.h index 2609048c1d44..3a34f6edc2d1 100644 --- a/include/sound/ak4113.h +++ b/include/sound/ak4113.h | |||
| @@ -286,7 +286,7 @@ struct ak4113 { | |||
| 286 | ak4113_write_t *write; | 286 | ak4113_write_t *write; |
| 287 | ak4113_read_t *read; | 287 | ak4113_read_t *read; |
| 288 | void *private_data; | 288 | void *private_data; |
| 289 | unsigned int init:1; | 289 | atomic_t wq_processing; |
| 290 | spinlock_t lock; | 290 | spinlock_t lock; |
| 291 | unsigned char regmap[AK4113_WRITABLE_REGS]; | 291 | unsigned char regmap[AK4113_WRITABLE_REGS]; |
| 292 | struct snd_kcontrol *kctls[AK4113_CONTROLS]; | 292 | struct snd_kcontrol *kctls[AK4113_CONTROLS]; |
diff --git a/include/sound/ak4114.h b/include/sound/ak4114.h index 52f02a60dba7..069299a88915 100644 --- a/include/sound/ak4114.h +++ b/include/sound/ak4114.h | |||
| @@ -168,7 +168,7 @@ struct ak4114 { | |||
| 168 | ak4114_write_t * write; | 168 | ak4114_write_t * write; |
| 169 | ak4114_read_t * read; | 169 | ak4114_read_t * read; |
| 170 | void * private_data; | 170 | void * private_data; |
| 171 | unsigned int init: 1; | 171 | atomic_t wq_processing; |
| 172 | spinlock_t lock; | 172 | spinlock_t lock; |
| 173 | unsigned char regmap[6]; | 173 | unsigned char regmap[6]; |
| 174 | unsigned char txcsb[5]; | 174 | unsigned char txcsb[5]; |
diff --git a/include/sound/soc.h b/include/sound/soc.h index b4fca9aed2a2..ac8b333acb4d 100644 --- a/include/sound/soc.h +++ b/include/sound/soc.h | |||
| @@ -498,6 +498,7 @@ int snd_soc_test_bits(struct snd_soc_codec *codec, unsigned int reg, | |||
| 498 | unsigned int mask, unsigned int value); | 498 | unsigned int mask, unsigned int value); |
| 499 | 499 | ||
| 500 | #ifdef CONFIG_SND_SOC_AC97_BUS | 500 | #ifdef CONFIG_SND_SOC_AC97_BUS |
| 501 | struct snd_ac97 *snd_soc_alloc_ac97_codec(struct snd_soc_codec *codec); | ||
| 501 | struct snd_ac97 *snd_soc_new_ac97_codec(struct snd_soc_codec *codec); | 502 | struct snd_ac97 *snd_soc_new_ac97_codec(struct snd_soc_codec *codec); |
| 502 | void snd_soc_free_ac97_codec(struct snd_ac97 *ac97); | 503 | void snd_soc_free_ac97_codec(struct snd_ac97 *ac97); |
| 503 | 504 | ||
diff --git a/sound/i2c/other/ak4113.c b/sound/i2c/other/ak4113.c index 1a3a6fa27158..c6bba99a90b2 100644 --- a/sound/i2c/other/ak4113.c +++ b/sound/i2c/other/ak4113.c | |||
| @@ -56,8 +56,7 @@ static inline unsigned char reg_read(struct ak4113 *ak4113, unsigned char reg) | |||
| 56 | 56 | ||
| 57 | static void snd_ak4113_free(struct ak4113 *chip) | 57 | static void snd_ak4113_free(struct ak4113 *chip) |
| 58 | { | 58 | { |
| 59 | chip->init = 1; /* don't schedule new work */ | 59 | atomic_inc(&chip->wq_processing); /* don't schedule new work */ |
| 60 | mb(); | ||
| 61 | cancel_delayed_work_sync(&chip->work); | 60 | cancel_delayed_work_sync(&chip->work); |
| 62 | kfree(chip); | 61 | kfree(chip); |
| 63 | } | 62 | } |
| @@ -89,6 +88,7 @@ int snd_ak4113_create(struct snd_card *card, ak4113_read_t *read, | |||
| 89 | chip->write = write; | 88 | chip->write = write; |
| 90 | chip->private_data = private_data; | 89 | chip->private_data = private_data; |
| 91 | INIT_DELAYED_WORK(&chip->work, ak4113_stats); | 90 | INIT_DELAYED_WORK(&chip->work, ak4113_stats); |
| 91 | atomic_set(&chip->wq_processing, 0); | ||
| 92 | 92 | ||
| 93 | for (reg = 0; reg < AK4113_WRITABLE_REGS ; reg++) | 93 | for (reg = 0; reg < AK4113_WRITABLE_REGS ; reg++) |
| 94 | chip->regmap[reg] = pgm[reg]; | 94 | chip->regmap[reg] = pgm[reg]; |
| @@ -139,13 +139,11 @@ static void ak4113_init_regs(struct ak4113 *chip) | |||
| 139 | 139 | ||
| 140 | void snd_ak4113_reinit(struct ak4113 *chip) | 140 | void snd_ak4113_reinit(struct ak4113 *chip) |
| 141 | { | 141 | { |
| 142 | chip->init = 1; | 142 | if (atomic_inc_return(&chip->wq_processing) == 1) |
| 143 | mb(); | 143 | cancel_delayed_work_sync(&chip->work); |
| 144 | flush_delayed_work(&chip->work); | ||
| 145 | ak4113_init_regs(chip); | 144 | ak4113_init_regs(chip); |
| 146 | /* bring up statistics / event queing */ | 145 | /* bring up statistics / event queing */ |
| 147 | chip->init = 0; | 146 | if (atomic_dec_and_test(&chip->wq_processing)) |
| 148 | if (chip->kctls[0]) | ||
| 149 | schedule_delayed_work(&chip->work, HZ / 10); | 147 | schedule_delayed_work(&chip->work, HZ / 10); |
| 150 | } | 148 | } |
| 151 | EXPORT_SYMBOL_GPL(snd_ak4113_reinit); | 149 | EXPORT_SYMBOL_GPL(snd_ak4113_reinit); |
| @@ -632,8 +630,9 @@ static void ak4113_stats(struct work_struct *work) | |||
| 632 | { | 630 | { |
| 633 | struct ak4113 *chip = container_of(work, struct ak4113, work.work); | 631 | struct ak4113 *chip = container_of(work, struct ak4113, work.work); |
| 634 | 632 | ||
| 635 | if (!chip->init) | 633 | if (atomic_inc_return(&chip->wq_processing) == 1) |
| 636 | snd_ak4113_check_rate_and_errors(chip, chip->check_flags); | 634 | snd_ak4113_check_rate_and_errors(chip, chip->check_flags); |
| 637 | 635 | ||
| 638 | schedule_delayed_work(&chip->work, HZ / 10); | 636 | if (atomic_dec_and_test(&chip->wq_processing)) |
| 637 | schedule_delayed_work(&chip->work, HZ / 10); | ||
| 639 | } | 638 | } |
diff --git a/sound/i2c/other/ak4114.c b/sound/i2c/other/ak4114.c index c7f56339415d..b70e6eccbd03 100644 --- a/sound/i2c/other/ak4114.c +++ b/sound/i2c/other/ak4114.c | |||
| @@ -66,8 +66,7 @@ static void reg_dump(struct ak4114 *ak4114) | |||
| 66 | 66 | ||
| 67 | static void snd_ak4114_free(struct ak4114 *chip) | 67 | static void snd_ak4114_free(struct ak4114 *chip) |
| 68 | { | 68 | { |
| 69 | chip->init = 1; /* don't schedule new work */ | 69 | atomic_inc(&chip->wq_processing); /* don't schedule new work */ |
| 70 | mb(); | ||
| 71 | cancel_delayed_work_sync(&chip->work); | 70 | cancel_delayed_work_sync(&chip->work); |
| 72 | kfree(chip); | 71 | kfree(chip); |
| 73 | } | 72 | } |
| @@ -100,6 +99,7 @@ int snd_ak4114_create(struct snd_card *card, | |||
| 100 | chip->write = write; | 99 | chip->write = write; |
| 101 | chip->private_data = private_data; | 100 | chip->private_data = private_data; |
| 102 | INIT_DELAYED_WORK(&chip->work, ak4114_stats); | 101 | INIT_DELAYED_WORK(&chip->work, ak4114_stats); |
| 102 | atomic_set(&chip->wq_processing, 0); | ||
| 103 | 103 | ||
| 104 | for (reg = 0; reg < 6; reg++) | 104 | for (reg = 0; reg < 6; reg++) |
| 105 | chip->regmap[reg] = pgm[reg]; | 105 | chip->regmap[reg] = pgm[reg]; |
| @@ -152,13 +152,11 @@ static void ak4114_init_regs(struct ak4114 *chip) | |||
| 152 | 152 | ||
| 153 | void snd_ak4114_reinit(struct ak4114 *chip) | 153 | void snd_ak4114_reinit(struct ak4114 *chip) |
| 154 | { | 154 | { |
| 155 | chip->init = 1; | 155 | if (atomic_inc_return(&chip->wq_processing) == 1) |
| 156 | mb(); | 156 | cancel_delayed_work_sync(&chip->work); |
| 157 | flush_delayed_work(&chip->work); | ||
| 158 | ak4114_init_regs(chip); | ||
