Skip to content

Commit d69d137

Browse files
committed
Merge branch 'for-linus' into for-next
Back-merge of devel branch for further fixes of memalloc helpers. Signed-off-by: Takashi Iwai <[email protected]>
2 parents d59b6f2 + 1abfd71 commit d69d137

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

79 files changed

+596
-278
lines changed

.mailmap

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -414,6 +414,7 @@ TripleX Chung <[email protected]> <[email protected]>
414414
415415
Tsuneo Yoshioka <[email protected]>
416416
417+
417418
Uwe Kleine-König <[email protected]>
418419
Uwe Kleine-König <[email protected]>
419420
Uwe Kleine-König <[email protected]>

Documentation/devicetree/bindings/sound/google,cros-ec-codec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ title: Audio codec controlled by ChromeOS EC
88

99
maintainers:
1010
- Cheng-Yi Chiang <[email protected]>
11-
- Tzung-Bi Shih <tzungbi@google.com>
11+
- Tzung-Bi Shih <tzungbi@kernel.org>
1212

1313
description: |
1414
Google's ChromeOS EC codec is a digital mic codec provided by the

Documentation/devicetree/bindings/sound/realtek,rt1015p.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ $schema: http://devicetree.org/meta-schemas/core.yaml#
77
title: Realtek rt1015p codec devicetree bindings
88

99
maintainers:
10-
- Tzung-Bi Shih <tzungbi@google.com>
10+
- Tzung-Bi Shih <tzungbi@kernel.org>
1111

1212
description: |
1313
Rt1015p is a rt1015 variant which does not support I2C and

MAINTAINERS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4906,7 +4906,7 @@ F: drivers/platform/chrome/
49064906

49074907
CHROMEOS EC CODEC DRIVER
49084908
M: Cheng-Yi Chiang <[email protected]>
4909-
M: Tzung-Bi Shih <tzungbi@google.com>
4909+
M: Tzung-Bi Shih <tzungbi@kernel.org>
49104910
R: Guenter Roeck <[email protected]>
49114911
49124912
S: Maintained

include/sound/control.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,7 @@ int snd_ctl_remove(struct snd_card * card, struct snd_kcontrol * kcontrol);
138138
int snd_ctl_replace(struct snd_card *card, struct snd_kcontrol *kcontrol, bool add_on_replace);
139139
int snd_ctl_remove_id(struct snd_card * card, struct snd_ctl_elem_id *id);
140140
int snd_ctl_rename_id(struct snd_card * card, struct snd_ctl_elem_id *src_id, struct snd_ctl_elem_id *dst_id);
141+
void snd_ctl_rename(struct snd_card *card, struct snd_kcontrol *kctl, const char *name);
141142
int snd_ctl_activate_id(struct snd_card *card, struct snd_ctl_elem_id *id, int active);
142143
struct snd_kcontrol *snd_ctl_find_numid(struct snd_card * card, unsigned int numid);
143144
struct snd_kcontrol *snd_ctl_find_id(struct snd_card * card, struct snd_ctl_elem_id *id);

include/sound/simple_card_utils.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,7 @@ void asoc_simple_convert_fixup(struct asoc_simple_data *data,
177177
struct snd_pcm_hw_params *params);
178178
void asoc_simple_parse_convert(struct device_node *np, char *prefix,
179179
struct asoc_simple_data *data);
180+
bool asoc_simple_is_convert_required(const struct asoc_simple_data *data);
180181

181182
int asoc_simple_parse_routing(struct snd_soc_card *card,
182183
char *prefix);

include/sound/sof/info.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,10 @@ enum sof_ipc_ext_data {
3636
SOF_IPC_EXT_USER_ABI_INFO = 4,
3737
};
3838

39+
/* Build u32 number in format MMmmmppp */
40+
#define SOF_FW_VER(MAJOR, MINOR, PATCH) ((uint32_t)( \
41+
((MAJOR) << 24) | ((MINOR) << 12) | (PATCH)))
42+
3943
/* FW version - SOF_IPC_GLB_VERSION */
4044
struct sof_ipc_fw_version {
4145
struct sof_ipc_hdr hdr;

sound/aoa/soundbus/i2sbus/core.c

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,7 @@ static int i2sbus_get_and_fixup_rsrc(struct device_node *np, int index,
147147
return rc;
148148
}
149149

150+
/* Returns 1 if added, 0 for otherwise; don't return a negative value! */
150151
/* FIXME: look at device node refcounting */
151152
static int i2sbus_add_dev(struct macio_dev *macio,
152153
struct i2sbus_control *control,
@@ -213,7 +214,7 @@ static int i2sbus_add_dev(struct macio_dev *macio,
213214
* either as the second one in that case is just a modem. */
214215
if (!ok) {
215216
kfree(dev);
216-
return -ENODEV;
217+
return 0;
217218
}
218219

219220
mutex_init(&dev->lock);
@@ -302,6 +303,10 @@ static int i2sbus_add_dev(struct macio_dev *macio,
302303

303304
if (soundbus_add_one(&dev->sound)) {
304305
printk(KERN_DEBUG "i2sbus: device registration error!\n");
306+
if (dev->sound.ofdev.dev.kobj.state_initialized) {
307+
soundbus_dev_put(&dev->sound);
308+
return 0;
309+
}
305310
goto err;
306311
}
307312

sound/arm/pxa2xx-ac97-lib.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -402,8 +402,10 @@ int pxa2xx_ac97_hw_probe(struct platform_device *dev)
402402
goto err_clk2;
403403

404404
irq = platform_get_irq(dev, 0);
405-
if (!irq)
405+
if (irq < 0) {
406+
ret = irq;
406407
goto err_irq;
408+
}
407409

408410
ret = request_irq(irq, pxa2xx_ac97_irq, 0, "AC97", NULL);
409411
if (ret < 0)

sound/core/control.c

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -753,6 +753,29 @@ int snd_ctl_rename_id(struct snd_card *card, struct snd_ctl_elem_id *src_id,
753753
}
754754
EXPORT_SYMBOL(snd_ctl_rename_id);
755755

756+
/**
757+
* snd_ctl_rename - rename the control on the card
758+
* @card: the card instance
759+
* @kctl: the control to rename
760+
* @name: the new name
761+
*
762+
* Renames the specified control on the card to the new name.
763+
*
764+
* Make sure to take the control write lock - down_write(&card->controls_rwsem).
765+
*/
766+
void snd_ctl_rename(struct snd_card *card, struct snd_kcontrol *kctl,
767+
const char *name)
768+
{
769+
remove_hash_entries(card, kctl);
770+
771+
if (strscpy(kctl->id.name, name, sizeof(kctl->id.name)) < 0)
772+
pr_warn("ALSA: Renamed control new name '%s' truncated to '%s'\n",
773+
name, kctl->id.name);
774+
775+
add_hash_entries(card, kctl);
776+
}
777+
EXPORT_SYMBOL(snd_ctl_rename);
778+
756779
#ifndef CONFIG_SND_CTL_FAST_LOOKUP
757780
static struct snd_kcontrol *
758781
snd_ctl_find_numid_slow(struct snd_card *card, unsigned int numid)

0 commit comments

Comments
 (0)