diff options
Diffstat (limited to 'sound/soc/codecs/wm8731.c')
-rw-r--r-- | sound/soc/codecs/wm8731.c | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/sound/soc/codecs/wm8731.c b/sound/soc/codecs/wm8731.c index 9e7ebcc2c491..e043e3f60008 100644 --- a/sound/soc/codecs/wm8731.c +++ b/sound/soc/codecs/wm8731.c | |||
@@ -433,6 +433,15 @@ static int wm8731_set_bias_level(struct snd_soc_codec *codec, | |||
433 | #define WM8731_FORMATS (SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S20_3LE |\ | 433 | #define WM8731_FORMATS (SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S20_3LE |\ |
434 | SNDRV_PCM_FMTBIT_S24_LE) | 434 | SNDRV_PCM_FMTBIT_S24_LE) |
435 | 435 | ||
436 | static struct snd_soc_dai_ops wm8731_dai_ops = { | ||
437 | .prepare = wm8731_pcm_prepare, | ||
438 | .hw_params = wm8731_hw_params, | ||
439 | .shutdown = wm8731_shutdown, | ||
440 | .digital_mute = wm8731_mute, | ||
441 | .set_sysclk = wm8731_set_dai_sysclk, | ||
442 | .set_fmt = wm8731_set_dai_fmt, | ||
443 | }; | ||
444 | |||
436 | struct snd_soc_dai wm8731_dai = { | 445 | struct snd_soc_dai wm8731_dai = { |
437 | .name = "WM8731", | 446 | .name = "WM8731", |
438 | .playback = { | 447 | .playback = { |
@@ -447,14 +456,7 @@ struct snd_soc_dai wm8731_dai = { | |||
447 | .channels_max = 2, | 456 | .channels_max = 2, |
448 | .rates = WM8731_RATES, | 457 | .rates = WM8731_RATES, |
449 | .formats = WM8731_FORMATS,}, | 458 | .formats = WM8731_FORMATS,}, |
450 | .ops = { | 459 | .ops = &wm8731_dai_ops, |
451 | .prepare = wm8731_pcm_prepare, | ||
452 | .hw_params = wm8731_hw_params, | ||
453 | .shutdown = wm8731_shutdown, | ||
454 | .digital_mute = wm8731_mute, | ||
455 | .set_sysclk = wm8731_set_dai_sysclk, | ||
456 | .set_fmt = wm8731_set_dai_fmt, | ||
457 | } | ||
458 | }; | 460 | }; |
459 | EXPORT_SYMBOL_GPL(wm8731_dai); | 461 | EXPORT_SYMBOL_GPL(wm8731_dai); |
460 | 462 | ||