* [PATCH 1/4] ASoC: tegra: Replace instances of rtd->codec->card with rtd->card
@ 2014-05-19 9:41 Lars-Peter Clausen
2014-05-19 9:41 ` [PATCH 2/4] ASoC: omap: " Lars-Peter Clausen
` (2 more replies)
0 siblings, 3 replies; 9+ messages in thread
From: Lars-Peter Clausen @ 2014-05-19 9:41 UTC (permalink / raw)
To: Mark Brown, Liam Girdwood
Cc: alsa-devel, Lars-Peter Clausen, Stephen Warren, Fabio Baltieri,
Peter Ujfalusi, Jarkko Nikula
No need to go via the CODEC to get a pointer to the card. This will help to
eventually remove the card field from the snd_soc_codec struct.
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
---
sound/soc/tegra/tegra_alc5632.c | 5 ++---
sound/soc/tegra/tegra_max98090.c | 5 ++---
sound/soc/tegra/tegra_rt5640.c | 5 ++---
sound/soc/tegra/tegra_wm8753.c | 3 +--
sound/soc/tegra/tegra_wm8903.c | 5 ++---
sound/soc/tegra/trimslice.c | 3 +--
6 files changed, 10 insertions(+), 16 deletions(-)
diff --git a/sound/soc/tegra/tegra_alc5632.c b/sound/soc/tegra/tegra_alc5632.c
index c61ea3a..21ad9bd 100644
--- a/sound/soc/tegra/tegra_alc5632.c
+++ b/sound/soc/tegra/tegra_alc5632.c
@@ -41,8 +41,7 @@ static int tegra_alc5632_asoc_hw_params(struct snd_pcm_substream *substream,
{
struct snd_soc_pcm_runtime *rtd = substream->private_data;
struct snd_soc_dai *codec_dai = rtd->codec_dai;
- struct snd_soc_codec *codec = codec_dai->codec;
- struct snd_soc_card *card = codec->card;
+ struct snd_soc_card *card = rtd->card;
struct tegra_alc5632 *alc5632 = snd_soc_card_get_drvdata(card);
int srate, mclk;
int err;
@@ -105,7 +104,7 @@ static int tegra_alc5632_asoc_init(struct snd_soc_pcm_runtime *rtd)
struct snd_soc_dai *codec_dai = rtd->codec_dai;
struct snd_soc_codec *codec = codec_dai->codec;
struct snd_soc_dapm_context *dapm = &codec->dapm;
- struct tegra_alc5632 *machine = snd_soc_card_get_drvdata(codec->card);
+ struct tegra_alc5632 *machine = snd_soc_card_get_drvdata(rtd->card);
snd_soc_jack_new(codec, "Headset Jack", SND_JACK_HEADSET,
&tegra_alc5632_hs_jack);
diff --git a/sound/soc/tegra/tegra_max98090.c b/sound/soc/tegra/tegra_max98090.c
index 0283cfb..b867b27 100644
--- a/sound/soc/tegra/tegra_max98090.c
+++ b/sound/soc/tegra/tegra_max98090.c
@@ -49,8 +49,7 @@ static int tegra_max98090_asoc_hw_params(struct snd_pcm_substream *substream,
{
struct snd_soc_pcm_runtime *rtd = substream->private_data;
struct snd_soc_dai *codec_dai = rtd->codec_dai;
- struct snd_soc_codec *codec = codec_dai->codec;
- struct snd_soc_card *card = codec->card;
+ struct snd_soc_card *card = rtd->card;
struct tegra_max98090 *machine = snd_soc_card_get_drvdata(card);
int srate, mclk;
int err;
@@ -127,7 +126,7 @@ static int tegra_max98090_asoc_init(struct snd_soc_pcm_runtime *rtd)
{
struct snd_soc_dai *codec_dai = rtd->codec_dai;
struct snd_soc_codec *codec = codec_dai->codec;
- struct tegra_max98090 *machine = snd_soc_card_get_drvdata(codec->card);
+ struct tegra_max98090 *machine = snd_soc_card_get_drvdata(rtd->card);
if (gpio_is_valid(machine->gpio_hp_det)) {
snd_soc_jack_new(codec, "Headphones", SND_JACK_HEADPHONE,
diff --git a/sound/soc/tegra/tegra_rt5640.c b/sound/soc/tegra/tegra_rt5640.c
index 4511c5a..d720bd7 100644
--- a/sound/soc/tegra/tegra_rt5640.c
+++ b/sound/soc/tegra/tegra_rt5640.c
@@ -51,8 +51,7 @@ static int tegra_rt5640_asoc_hw_params(struct snd_pcm_substream *substream,
{
struct snd_soc_pcm_runtime *rtd = substream->private_data;
struct snd_soc_dai *codec_dai = rtd->codec_dai;
- struct snd_soc_codec *codec = codec_dai->codec;
- struct snd_soc_card *card = codec->card;
+ struct snd_soc_card *card = rtd->card;
struct tegra_rt5640 *machine = snd_soc_card_get_drvdata(card);
int srate, mclk;
int err;
@@ -110,7 +109,7 @@ static int tegra_rt5640_asoc_init(struct snd_soc_pcm_runtime *rtd)
{
struct snd_soc_dai *codec_dai = rtd->codec_dai;
struct snd_soc_codec *codec = codec_dai->codec;
- struct tegra_rt5640 *machine = snd_soc_card_get_drvdata(codec->card);
+ struct tegra_rt5640 *machine = snd_soc_card_get_drvdata(rtd->card);
snd_soc_jack_new(codec, "Headphones", SND_JACK_HEADPHONE,
&tegra_rt5640_hp_jack);
diff --git a/sound/soc/tegra/tegra_wm8753.c b/sound/soc/tegra/tegra_wm8753.c
index 8e774d1..769e28f 100644
--- a/sound/soc/tegra/tegra_wm8753.c
+++ b/sound/soc/tegra/tegra_wm8753.c
@@ -55,8 +55,7 @@ static int tegra_wm8753_hw_params(struct snd_pcm_substream *substream,
{
struct snd_soc_pcm_runtime *rtd = substream->private_data;
struct snd_soc_dai *codec_dai = rtd->codec_dai;
- struct snd_soc_codec *codec = codec_dai->codec;
- struct snd_soc_card *card = codec->card;
+ struct snd_soc_card *card = rtd->card;
struct tegra_wm8753 *machine = snd_soc_card_get_drvdata(card);
int srate, mclk;
int err;
diff --git a/sound/soc/tegra/tegra_wm8903.c b/sound/soc/tegra/tegra_wm8903.c
index 4ac7373..e795424 100644
--- a/sound/soc/tegra/tegra_wm8903.c
+++ b/sound/soc/tegra/tegra_wm8903.c
@@ -60,8 +60,7 @@ static int tegra_wm8903_hw_params(struct snd_pcm_substream *substream,
{
struct snd_soc_pcm_runtime *rtd = substream->private_data;
struct snd_soc_dai *codec_dai = rtd->codec_dai;
- struct snd_soc_codec *codec = codec_dai->codec;
- struct snd_soc_card *card = codec->card;
+ struct snd_soc_card *card = rtd->card;
struct tegra_wm8903 *machine = snd_soc_card_get_drvdata(card);
int srate, mclk;
int err;
@@ -173,7 +172,7 @@ static int tegra_wm8903_init(struct snd_soc_pcm_runtime *rtd)
struct snd_soc_dai *codec_dai = rtd->codec_dai;
struct snd_soc_codec *codec = codec_dai->codec;
struct snd_soc_dapm_context *dapm = &codec->dapm;
- struct snd_soc_card *card = codec->card;
+ struct snd_soc_card *card = rtd->card;
struct tegra_wm8903 *machine = snd_soc_card_get_drvdata(card);
if (gpio_is_valid(machine->gpio_hp_det)) {
diff --git a/sound/soc/tegra/trimslice.c b/sound/soc/tegra/trimslice.c
index 734bfcd..589d2d9 100644
--- a/sound/soc/tegra/trimslice.c
+++ b/sound/soc/tegra/trimslice.c
@@ -50,8 +50,7 @@ static int trimslice_asoc_hw_params(struct snd_pcm_substream *substream,
{
struct snd_soc_pcm_runtime *rtd = substream->private_data;
struct snd_soc_dai *codec_dai = rtd->codec_dai;
- struct snd_soc_codec *codec = codec_dai->codec;
- struct snd_soc_card *card = codec->card;
+ struct snd_soc_card *card = rtd->card;
struct tegra_trimslice *trimslice = snd_soc_card_get_drvdata(card);
int srate, mclk;
int err;
--
1.8.0
^ permalink raw reply related [flat|nested] 9+ messages in thread* [PATCH 2/4] ASoC: omap: Replace instances of rtd->codec->card with rtd->card
2014-05-19 9:41 [PATCH 1/4] ASoC: tegra: Replace instances of rtd->codec->card with rtd->card Lars-Peter Clausen
@ 2014-05-19 9:41 ` Lars-Peter Clausen
2014-05-20 4:40 ` Jarkko Nikula
2014-05-20 21:55 ` Mark Brown
2014-05-19 9:41 ` [PATCH 3/4] ASoC: davinci-evm: " Lars-Peter Clausen
2014-05-19 9:41 ` [PATCH 4/4] ASoC: mop500_ab8500: " Lars-Peter Clausen
2 siblings, 2 replies; 9+ messages in thread
From: Lars-Peter Clausen @ 2014-05-19 9:41 UTC (permalink / raw)
To: Mark Brown, Liam Girdwood
Cc: alsa-devel, Lars-Peter Clausen, Stephen Warren, Fabio Baltieri,
Peter Ujfalusi, Jarkko Nikula
No need to go via the CODEC to get a pointer to the card. This will help to
eventually remove the card field from the snd_soc_codec struct.
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
---
sound/soc/omap/omap-abe-twl6040.c | 5 ++---
sound/soc/omap/omap-twl4030.c | 5 ++---
sound/soc/omap/rx51.c | 2 +-
3 files changed, 5 insertions(+), 7 deletions(-)
diff --git a/sound/soc/omap/omap-abe-twl6040.c b/sound/soc/omap/omap-abe-twl6040.c
index 1a89e5b..cec836e 100644
--- a/sound/soc/omap/omap-abe-twl6040.c
+++ b/sound/soc/omap/omap-abe-twl6040.c
@@ -47,8 +47,7 @@ static int omap_abe_hw_params(struct snd_pcm_substream *substream,
{
struct snd_soc_pcm_runtime *rtd = substream->private_data;
struct snd_soc_dai *codec_dai = rtd->codec_dai;
- struct snd_soc_codec *codec = rtd->codec;
- struct snd_soc_card *card = codec->card;
+ struct snd_soc_card *card = rtd->card;
struct abe_twl6040 *priv = snd_soc_card_get_drvdata(card);
int clk_id, freq;
int ret;
@@ -168,7 +167,7 @@ static const struct snd_soc_dapm_route audio_map[] = {
static int omap_abe_twl6040_init(struct snd_soc_pcm_runtime *rtd)
{
struct snd_soc_codec *codec = rtd->codec;
- struct snd_soc_card *card = codec->card;
+ struct snd_soc_card *card = rtd->card;
struct abe_twl6040 *priv = snd_soc_card_get_drvdata(card);
int hs_trim;
int ret = 0;
diff --git a/sound/soc/omap/omap-twl4030.c b/sound/soc/omap/omap-twl4030.c
index 0c83e20..64141db 100644
--- a/sound/soc/omap/omap-twl4030.c
+++ b/sound/soc/omap/omap-twl4030.c
@@ -55,8 +55,7 @@ static int omap_twl4030_hw_params(struct snd_pcm_substream *substream,
struct snd_soc_pcm_runtime *rtd = substream->private_data;
struct snd_soc_dai *codec_dai = rtd->codec_dai;
struct snd_soc_dai *cpu_dai = rtd->cpu_dai;
- struct snd_soc_codec *codec = rtd->codec;
- struct snd_soc_card *card = codec->card;
+ struct snd_soc_card *card = rtd->card;
unsigned int fmt;
int ret;
@@ -179,7 +178,7 @@ static inline void twl4030_disconnect_pin(struct snd_soc_dapm_context *dapm,
static int omap_twl4030_init(struct snd_soc_pcm_runtime *rtd)
{
struct snd_soc_codec *codec = rtd->codec;
- struct snd_soc_card *card = codec->card;
+ struct snd_soc_card *card = rtd->card;
struct snd_soc_dapm_context *dapm = &codec->dapm;
struct omap_tw4030_pdata *pdata = dev_get_platdata(card->dev);
struct omap_twl4030 *priv = snd_soc_card_get_drvdata(card);
diff --git a/sound/soc/omap/rx51.c b/sound/soc/omap/rx51.c
index 866578b..6951dc8 100644
--- a/sound/soc/omap/rx51.c
+++ b/sound/soc/omap/rx51.c
@@ -286,7 +286,7 @@ static const struct snd_kcontrol_new aic34_rx51_controls[] = {
static int rx51_aic34_init(struct snd_soc_pcm_runtime *rtd)
{
struct snd_soc_codec *codec = rtd->codec;
- struct snd_soc_card *card = codec->card;
+ struct snd_soc_card *card = rtd->card;
struct rx51_audio_pdata *pdata = snd_soc_card_get_drvdata(card);
struct snd_soc_dapm_context *dapm = &codec->dapm;
--
1.8.0
^ permalink raw reply related [flat|nested] 9+ messages in thread* Re: [PATCH 2/4] ASoC: omap: Replace instances of rtd->codec->card with rtd->card
2014-05-19 9:41 ` [PATCH 2/4] ASoC: omap: " Lars-Peter Clausen
@ 2014-05-20 4:40 ` Jarkko Nikula
2014-05-20 21:55 ` Mark Brown
1 sibling, 0 replies; 9+ messages in thread
From: Jarkko Nikula @ 2014-05-20 4:40 UTC (permalink / raw)
To: Lars-Peter Clausen
Cc: alsa-devel, Stephen Warren, Fabio Baltieri, Liam Girdwood,
Peter Ujfalusi, Mark Brown
On Mon, May 19, 2014 at 11:41:46AM +0200, Lars-Peter Clausen wrote:
> No need to go via the CODEC to get a pointer to the card. This will help to
> eventually remove the card field from the snd_soc_codec struct.
>
> Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
> ---
> sound/soc/omap/omap-abe-twl6040.c | 5 ++---
> sound/soc/omap/omap-twl4030.c | 5 ++---
> sound/soc/omap/rx51.c | 2 +-
> 3 files changed, 5 insertions(+), 7 deletions(-)
>
Acked-by: Jarkko Nikula <jarkko.nikula@bitmer.com>
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH 2/4] ASoC: omap: Replace instances of rtd->codec->card with rtd->card
2014-05-19 9:41 ` [PATCH 2/4] ASoC: omap: " Lars-Peter Clausen
2014-05-20 4:40 ` Jarkko Nikula
@ 2014-05-20 21:55 ` Mark Brown
1 sibling, 0 replies; 9+ messages in thread
From: Mark Brown @ 2014-05-20 21:55 UTC (permalink / raw)
To: Lars-Peter Clausen
Cc: alsa-devel, Stephen Warren, Fabio Baltieri, Liam Girdwood,
Peter Ujfalusi, Jarkko Nikula
[-- Attachment #1.1: Type: text/plain, Size: 230 bytes --]
On Mon, May 19, 2014 at 11:41:46AM +0200, Lars-Peter Clausen wrote:
> No need to go via the CODEC to get a pointer to the card. This will help to
> eventually remove the card field from the snd_soc_codec struct.
Applied, thanks.
[-- Attachment #1.2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
[-- Attachment #2: Type: text/plain, Size: 0 bytes --]
^ permalink raw reply [flat|nested] 9+ messages in thread
* [PATCH 3/4] ASoC: davinci-evm: Replace instances of rtd->codec->card with rtd->card
2014-05-19 9:41 [PATCH 1/4] ASoC: tegra: Replace instances of rtd->codec->card with rtd->card Lars-Peter Clausen
2014-05-19 9:41 ` [PATCH 2/4] ASoC: omap: " Lars-Peter Clausen
@ 2014-05-19 9:41 ` Lars-Peter Clausen
2014-05-26 7:08 ` Peter Ujfalusi
2014-05-26 15:35 ` Mark Brown
2014-05-19 9:41 ` [PATCH 4/4] ASoC: mop500_ab8500: " Lars-Peter Clausen
2 siblings, 2 replies; 9+ messages in thread
From: Lars-Peter Clausen @ 2014-05-19 9:41 UTC (permalink / raw)
To: Mark Brown, Liam Girdwood
Cc: alsa-devel, Lars-Peter Clausen, Stephen Warren, Fabio Baltieri,
Peter Ujfalusi, Jarkko Nikula
No need to go via the CODEC to get a pointer to the card. This will help to
eventually remove the card field from the snd_soc_codec struct.
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
---
sound/soc/davinci/davinci-evm.c | 9 ++++-----
1 file changed, 4 insertions(+), 5 deletions(-)
diff --git a/sound/soc/davinci/davinci-evm.c b/sound/soc/davinci/davinci-evm.c
index cab98a5..a50010e 100644
--- a/sound/soc/davinci/davinci-evm.c
+++ b/sound/soc/davinci/davinci-evm.c
@@ -38,7 +38,7 @@ struct snd_soc_card_drvdata_davinci {
static int evm_startup(struct snd_pcm_substream *substream)
{
struct snd_soc_pcm_runtime *rtd = substream->private_data;
- struct snd_soc_card *soc_card = rtd->codec->card;
+ struct snd_soc_card *soc_card = rtd->card;
struct snd_soc_card_drvdata_davinci *drvdata =
snd_soc_card_get_drvdata(soc_card);
@@ -51,7 +51,7 @@ static int evm_startup(struct snd_pcm_substream *substream)
static void evm_shutdown(struct snd_pcm_substream *substream)
{
struct snd_soc_pcm_runtime *rtd = substream->private_data;
- struct snd_soc_card *soc_card = rtd->codec->card;
+ struct snd_soc_card *soc_card = rtd->card;
struct snd_soc_card_drvdata_davinci *drvdata =
snd_soc_card_get_drvdata(soc_card);
@@ -65,8 +65,7 @@ static int evm_hw_params(struct snd_pcm_substream *substream,
struct snd_soc_pcm_runtime *rtd = substream->private_data;
struct snd_soc_dai *codec_dai = rtd->codec_dai;
struct snd_soc_dai *cpu_dai = rtd->cpu_dai;
- struct snd_soc_codec *codec = rtd->codec;
- struct snd_soc_card *soc_card = codec->card;
+ struct snd_soc_card *soc_card = rtd->card;
int ret = 0;
unsigned sysclk = ((struct snd_soc_card_drvdata_davinci *)
snd_soc_card_get_drvdata(soc_card))->sysclk;
@@ -125,7 +124,7 @@ static int evm_aic3x_init(struct snd_soc_pcm_runtime *rtd)
{
struct snd_soc_card *card = rtd->card;
struct snd_soc_codec *codec = rtd->codec;
- struct device_node *np = codec->card->dev->of_node;
+ struct device_node *np = card->dev->of_node;
int ret;
/* Add davinci-evm specific widgets */
--
1.8.0
^ permalink raw reply related [flat|nested] 9+ messages in thread* Re: [PATCH 3/4] ASoC: davinci-evm: Replace instances of rtd->codec->card with rtd->card
2014-05-19 9:41 ` [PATCH 3/4] ASoC: davinci-evm: " Lars-Peter Clausen
@ 2014-05-26 7:08 ` Peter Ujfalusi
2014-05-26 15:35 ` Mark Brown
1 sibling, 0 replies; 9+ messages in thread
From: Peter Ujfalusi @ 2014-05-26 7:08 UTC (permalink / raw)
To: Lars-Peter Clausen, Mark Brown, Liam Girdwood
Cc: Fabio Baltieri, alsa-devel, Jarkko Nikula, Stephen Warren
On 05/19/2014 12:41 PM, Lars-Peter Clausen wrote:
> No need to go via the CODEC to get a pointer to the card. This will help to
> eventually remove the card field from the snd_soc_codec struct.
>
> Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Acked-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
> ---
> sound/soc/davinci/davinci-evm.c | 9 ++++-----
> 1 file changed, 4 insertions(+), 5 deletions(-)
>
> diff --git a/sound/soc/davinci/davinci-evm.c b/sound/soc/davinci/davinci-evm.c
> index cab98a5..a50010e 100644
> --- a/sound/soc/davinci/davinci-evm.c
> +++ b/sound/soc/davinci/davinci-evm.c
> @@ -38,7 +38,7 @@ struct snd_soc_card_drvdata_davinci {
> static int evm_startup(struct snd_pcm_substream *substream)
> {
> struct snd_soc_pcm_runtime *rtd = substream->private_data;
> - struct snd_soc_card *soc_card = rtd->codec->card;
> + struct snd_soc_card *soc_card = rtd->card;
> struct snd_soc_card_drvdata_davinci *drvdata =
> snd_soc_card_get_drvdata(soc_card);
>
> @@ -51,7 +51,7 @@ static int evm_startup(struct snd_pcm_substream *substream)
> static void evm_shutdown(struct snd_pcm_substream *substream)
> {
> struct snd_soc_pcm_runtime *rtd = substream->private_data;
> - struct snd_soc_card *soc_card = rtd->codec->card;
> + struct snd_soc_card *soc_card = rtd->card;
> struct snd_soc_card_drvdata_davinci *drvdata =
> snd_soc_card_get_drvdata(soc_card);
>
> @@ -65,8 +65,7 @@ static int evm_hw_params(struct snd_pcm_substream *substream,
> struct snd_soc_pcm_runtime *rtd = substream->private_data;
> struct snd_soc_dai *codec_dai = rtd->codec_dai;
> struct snd_soc_dai *cpu_dai = rtd->cpu_dai;
> - struct snd_soc_codec *codec = rtd->codec;
> - struct snd_soc_card *soc_card = codec->card;
> + struct snd_soc_card *soc_card = rtd->card;
> int ret = 0;
> unsigned sysclk = ((struct snd_soc_card_drvdata_davinci *)
> snd_soc_card_get_drvdata(soc_card))->sysclk;
> @@ -125,7 +124,7 @@ static int evm_aic3x_init(struct snd_soc_pcm_runtime *rtd)
> {
> struct snd_soc_card *card = rtd->card;
> struct snd_soc_codec *codec = rtd->codec;
> - struct device_node *np = codec->card->dev->of_node;
> + struct device_node *np = card->dev->of_node;
> int ret;
>
> /* Add davinci-evm specific widgets */
>
--
Péter
^ permalink raw reply [flat|nested] 9+ messages in thread* Re: [PATCH 3/4] ASoC: davinci-evm: Replace instances of rtd->codec->card with rtd->card
2014-05-19 9:41 ` [PATCH 3/4] ASoC: davinci-evm: " Lars-Peter Clausen
2014-05-26 7:08 ` Peter Ujfalusi
@ 2014-05-26 15:35 ` Mark Brown
1 sibling, 0 replies; 9+ messages in thread
From: Mark Brown @ 2014-05-26 15:35 UTC (permalink / raw)
To: Lars-Peter Clausen
Cc: alsa-devel, Stephen Warren, Fabio Baltieri, Liam Girdwood,
Peter Ujfalusi, Jarkko Nikula
[-- Attachment #1.1: Type: text/plain, Size: 230 bytes --]
On Mon, May 19, 2014 at 11:41:47AM +0200, Lars-Peter Clausen wrote:
> No need to go via the CODEC to get a pointer to the card. This will help to
> eventually remove the card field from the snd_soc_codec struct.
Applied, thanks.
[-- Attachment #1.2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
[-- Attachment #2: Type: text/plain, Size: 0 bytes --]
^ permalink raw reply [flat|nested] 9+ messages in thread
* [PATCH 4/4] ASoC: mop500_ab8500: Replace instances of rtd->codec->card with rtd->card
2014-05-19 9:41 [PATCH 1/4] ASoC: tegra: Replace instances of rtd->codec->card with rtd->card Lars-Peter Clausen
2014-05-19 9:41 ` [PATCH 2/4] ASoC: omap: " Lars-Peter Clausen
2014-05-19 9:41 ` [PATCH 3/4] ASoC: davinci-evm: " Lars-Peter Clausen
@ 2014-05-19 9:41 ` Lars-Peter Clausen
2014-05-20 21:55 ` Mark Brown
2 siblings, 1 reply; 9+ messages in thread
From: Lars-Peter Clausen @ 2014-05-19 9:41 UTC (permalink / raw)
To: Mark Brown, Liam Girdwood
Cc: alsa-devel, Lars-Peter Clausen, Stephen Warren, Fabio Baltieri,
Peter Ujfalusi, Jarkko Nikula
No need to go via the CODEC to get a pointer to the card. This will help to
eventually remove the card field from the snd_soc_codec struct.
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
---
sound/soc/ux500/mop500_ab8500.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sound/soc/ux500/mop500_ab8500.c b/sound/soc/ux500/mop500_ab8500.c
index 7e923ec..be4f1ac7 100644
--- a/sound/soc/ux500/mop500_ab8500.c
+++ b/sound/soc/ux500/mop500_ab8500.c
@@ -411,7 +411,7 @@ int mop500_ab8500_machine_init(struct snd_soc_pcm_runtime *rtd)
drvdata->mclk_sel = MCLK_ULPCLK;
/* Add controls */
- ret = snd_soc_add_card_controls(codec->card, mop500_ab8500_ctrls,
+ ret = snd_soc_add_card_controls(rtd->card, mop500_ab8500_ctrls,
ARRAY_SIZE(mop500_ab8500_ctrls));
if (ret < 0) {
pr_err("%s: Failed to add machine-controls (%d)!\n",
--
1.8.0
^ permalink raw reply related [flat|nested] 9+ messages in thread* Re: [PATCH 4/4] ASoC: mop500_ab8500: Replace instances of rtd->codec->card with rtd->card
2014-05-19 9:41 ` [PATCH 4/4] ASoC: mop500_ab8500: " Lars-Peter Clausen
@ 2014-05-20 21:55 ` Mark Brown
0 siblings, 0 replies; 9+ messages in thread
From: Mark Brown @ 2014-05-20 21:55 UTC (permalink / raw)
To: Lars-Peter Clausen
Cc: alsa-devel, Stephen Warren, Fabio Baltieri, Liam Girdwood,
Peter Ujfalusi, Jarkko Nikula
[-- Attachment #1.1: Type: text/plain, Size: 230 bytes --]
On Mon, May 19, 2014 at 11:41:48AM +0200, Lars-Peter Clausen wrote:
> No need to go via the CODEC to get a pointer to the card. This will help to
> eventually remove the card field from the snd_soc_codec struct.
Applied, thanks.
[-- Attachment #1.2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
[-- Attachment #2: Type: text/plain, Size: 0 bytes --]
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2014-05-26 15:35 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-05-19 9:41 [PATCH 1/4] ASoC: tegra: Replace instances of rtd->codec->card with rtd->card Lars-Peter Clausen
2014-05-19 9:41 ` [PATCH 2/4] ASoC: omap: " Lars-Peter Clausen
2014-05-20 4:40 ` Jarkko Nikula
2014-05-20 21:55 ` Mark Brown
2014-05-19 9:41 ` [PATCH 3/4] ASoC: davinci-evm: " Lars-Peter Clausen
2014-05-26 7:08 ` Peter Ujfalusi
2014-05-26 15:35 ` Mark Brown
2014-05-19 9:41 ` [PATCH 4/4] ASoC: mop500_ab8500: " Lars-Peter Clausen
2014-05-20 21:55 ` Mark Brown
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox