aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/cx20442.c
diff options
context:
space:
mode:
authorJarkko Nikula <jhnikula@gmail.com>2010-11-05 14:35:21 -0400
committerMark Brown <broonie@opensource.wolfsonmicro.com>2010-11-06 11:28:35 -0400
commit3a45b8672d3f8542e430e7a5c7366ec9bdded054 (patch)
treee15feaaddb1f81727c0e9c0af3a9b5d642b96684 /sound/soc/codecs/cx20442.c
parentd6ce4cf3967dca78f967cd0bf70b175084885f40 (diff)
ASoC: Move pop time from DAPM context to sound card
Based on discussion the dapm_pop_time in debugsfs should be per card rather than per device. Single pop time value for entire card is cleaner when the DAPM sequencing is extended to cross-device paths. debugfs/asoc/{card->name}/{codec dir}/dapm_pop_time -> debugfs/asoc/{card->name}/dapm_pop_time Signed-off-by: Jarkko Nikula <jhnikula@gmail.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc/codecs/cx20442.c')
-rw-r--r--sound/soc/codecs/cx20442.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sound/soc/codecs/cx20442.c b/sound/soc/codecs/cx20442.c
index 11beb1a77c4e..a9521acad99c 100644
--- a/sound/soc/codecs/cx20442.c
+++ b/sound/soc/codecs/cx20442.c
@@ -264,7 +264,7 @@ static void v253_close(struct tty_struct *tty)
264 /* Prevent the codec driver from further accessing the modem */ 264 /* Prevent the codec driver from further accessing the modem */
265 codec->hw_write = NULL; 265 codec->hw_write = NULL;
266 cx20442->control_data = NULL; 266 cx20442->control_data = NULL;
267 codec->dapm.pop_time = 0; 267 codec->card->pop_time = 0;
268} 268}
269 269
270/* Line discipline .hangup() */ 270/* Line discipline .hangup() */
@@ -292,7 +292,7 @@ static void v253_receive(struct tty_struct *tty,
292 /* Set up codec driver access to modem controls */ 292 /* Set up codec driver access to modem controls */
293 cx20442->control_data = tty; 293 cx20442->control_data = tty;
294 codec->hw_write = (hw_write_t)tty->ops->write; 294 codec->hw_write = (hw_write_t)tty->ops->write;
295 codec->dapm.pop_time = 1; 295 codec->card->pop_time = 1;
296 } 296 }
297} 297}
298 298
@@ -349,7 +349,7 @@ static int cx20442_codec_probe(struct snd_soc_codec *codec)
349 349
350 cx20442->control_data = NULL; 350 cx20442->control_data = NULL;
351 codec->hw_write = NULL; 351 codec->hw_write = NULL;
352 codec->dapm.pop_time = 0; 352 codec->card->pop_time = 0;
353 353
354 return 0; 354 return 0;
355} 355}