Skip to content

Commit

Permalink
Merge remote-tracking branches 'asoc/fix/intel', 'asoc/fix/jz4740', '…
Browse files Browse the repository at this point in the history
…asoc/fix/rcar', 'asoc/fix/tlv320aic31xx' and 'asoc/fix/tlv320aic3x' into asoc-linus
  • Loading branch information
broonie committed Apr 22, 2014
6 parents 22e0c14 + 95e9ee9 + eebdec0 + 79861bb + eb4dd20 + 3b5b243 commit 98810a6
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 15 deletions.
6 changes: 3 additions & 3 deletions Documentation/devicetree/bindings/sound/tlv320aic31xx.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ Required properties:
"ti,tlv320aic3111" - TLV320AIC3111 (stereo speaker amp, MiniDSP)

- reg - <int> - I2C slave address
- HPVDD-supply, SPRVDD-supply, SPLVDD-supply, AVDD-supply, IOVDD-supply,
DVDD-supply : power supplies for the device as covered in
Documentation/devicetree/bindings/regulator/regulator.txt


Optional properties:
Expand All @@ -24,9 +27,6 @@ Optional properties:
3 or MICBIAS_AVDD - MICBIAS output is connected to AVDD
If this node is not mentioned or if the value is unknown, then
micbias is set to 2.0V.
- HPVDD-supply, SPRVDD-supply, SPLVDD-supply, AVDD-supply, IOVDD-supply,
DVDD-supply : power supplies for the device as covered in
Documentation/devicetree/bindings/regulator/regulator.txt

CODEC output pins:
* HPL
Expand Down
9 changes: 7 additions & 2 deletions sound/soc/codecs/tlv320aic3x.c
Original file line number Diff line number Diff line change
Expand Up @@ -1399,7 +1399,6 @@ static int aic3x_probe(struct snd_soc_codec *codec)
}

aic3x_add_widgets(codec);
list_add(&aic3x->list, &reset_list);

return 0;

Expand Down Expand Up @@ -1569,7 +1568,13 @@ static int aic3x_i2c_probe(struct i2c_client *i2c,

ret = snd_soc_register_codec(&i2c->dev,
&soc_codec_dev_aic3x, &aic3x_dai, 1);
return ret;

if (ret != 0)
goto err_gpio;

list_add(&aic3x->list, &reset_list);

return 0;

err_gpio:
if (gpio_is_valid(aic3x->gpio_reset) &&
Expand Down
2 changes: 1 addition & 1 deletion sound/soc/intel/sst-dsp-priv.h
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ struct sst_module_data {
enum sst_data_type data_type; /* type of module data */

u32 size; /* size in bytes */
u32 offset; /* offset in FW file */
int32_t offset; /* offset in FW file */
u32 data_offset; /* offset in ADSP memory space */
void *data; /* module data */
};
Expand Down
7 changes: 4 additions & 3 deletions sound/soc/intel/sst-haswell-ipc.c
Original file line number Diff line number Diff line change
Expand Up @@ -617,7 +617,7 @@ static void hsw_notification_work(struct work_struct *work)
case IPC_POSITION_CHANGED:
trace_ipc_notification("DSP stream position changed for",
stream->reply.stream_hw_id);
sst_dsp_inbox_read(hsw->dsp, pos, sizeof(pos));
sst_dsp_inbox_read(hsw->dsp, pos, sizeof(*pos));

if (stream->notify_position)
stream->notify_position(stream, stream->pdata);
Expand Down Expand Up @@ -991,7 +991,8 @@ int sst_hsw_stream_get_volume(struct sst_hsw *hsw, struct sst_hsw_stream *stream
return -EINVAL;

sst_dsp_read(hsw->dsp, volume,
stream->reply.volume_register_address[channel], sizeof(volume));
stream->reply.volume_register_address[channel],
sizeof(*volume));

return 0;
}
Expand Down Expand Up @@ -1609,7 +1610,7 @@ int sst_hsw_dx_set_state(struct sst_hsw *hsw,
trace_ipc_request("PM enter Dx state", state);

ret = ipc_tx_message_wait(hsw, header, &state_, sizeof(state_),
dx, sizeof(dx));
dx, sizeof(*dx));
if (ret < 0) {
dev_err(hsw->dev, "ipc: error set dx state %d failed\n", state);
return ret;
Expand Down
2 changes: 0 additions & 2 deletions sound/soc/jz4740/Makefile
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
#
# Jz4740 Platform Support
#
snd-soc-jz4740-objs := jz4740-pcm.o
snd-soc-jz4740-i2s-objs := jz4740-i2s.o

obj-$(CONFIG_SND_JZ4740_SOC) += snd-soc-jz4740.o
obj-$(CONFIG_SND_JZ4740_SOC_I2S) += snd-soc-jz4740-i2s.o

# Jz4740 Machine Support
Expand Down
4 changes: 2 additions & 2 deletions sound/soc/sh/rcar/src.c
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ static int rsnd_src_init(struct rsnd_mod *mod,
{
struct rsnd_src *src = rsnd_mod_to_src(mod);

clk_enable(src->clk);
clk_prepare_enable(src->clk);

return 0;
}
Expand All @@ -269,7 +269,7 @@ static int rsnd_src_quit(struct rsnd_mod *mod,
{
struct rsnd_src *src = rsnd_mod_to_src(mod);

clk_disable(src->clk);
clk_disable_unprepare(src->clk);

return 0;
}
Expand Down
4 changes: 2 additions & 2 deletions sound/soc/sh/rcar/ssi.c
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ static void rsnd_ssi_hw_start(struct rsnd_ssi *ssi,
u32 cr;

if (0 == ssi->usrcnt) {
clk_enable(ssi->clk);
clk_prepare_enable(ssi->clk);

if (rsnd_dai_is_clk_master(rdai)) {
if (rsnd_ssi_clk_from_parent(ssi))
Expand Down Expand Up @@ -230,7 +230,7 @@ static void rsnd_ssi_hw_stop(struct rsnd_ssi *ssi,
rsnd_ssi_master_clk_stop(ssi);
}

clk_disable(ssi->clk);
clk_disable_unprepare(ssi->clk);
}

dev_dbg(dev, "ssi%d hw stopped\n", rsnd_mod_id(&ssi->mod));
Expand Down

0 comments on commit 98810a6

Please sign in to comment.