diff options
author | Nikesh Oswal <noswal@nvidia.com> | 2011-09-09 17:25:51 +0530 |
---|---|---|
committer | Annamaria Pyreddy <apyreddy@nvidia.com> | 2011-09-14 19:26:00 -0700 |
commit | b50fa4b907ec555738ce802d629251898654ad71 (patch) | |
tree | 201186891ec3260123628bec4f7c0e7ca89a4772 | |
parent | 027e44f4c68ad2d3418083290da6f7d379077d67 (diff) |
arm: tegra: wm8753: add dai ops for the dummy dai
there was a crash in soc suspend as dai ops were not defined for the
dummy voice dai used when wm8753 mode is hi-fi over hi-fi interface
Bug: 873365
Change-Id: Id58520f33743fccbee3d9e064c23ff332691a042
Reviewed-on: http://git-master/r/51571
Tested-by: Nikesh Oswal <noswal@nvidia.com>
Reviewed-by: Ravindra Lokhande <rlokhande@nvidia.com>
Reviewed-by: Sumit Bhattacharya <sumitb@nvidia.com>
Reviewed-by: Scott Peterson <speterson@nvidia.com>
-rw-r--r-- | sound/soc/codecs/wm8753.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sound/soc/codecs/wm8753.c b/sound/soc/codecs/wm8753.c index b59f349c5218..d6659bb8e1fc 100644 --- a/sound/soc/codecs/wm8753.c +++ b/sound/soc/codecs/wm8753.c @@ -1347,6 +1347,8 @@ static struct snd_soc_dai_ops wm8753_dai_ops_hifi_mode4 = { .set_sysclk = wm8753_set_dai_sysclk, }; +static struct snd_soc_dai_ops wm8753_dai_ops_voice_dummy; + static const struct snd_soc_dai wm8753_all_dai[] = { /* DAI HiFi mode 1 */ { .name = "WM8753 HiFi", @@ -1423,6 +1425,11 @@ static const struct snd_soc_dai wm8753_all_dai[] = { /* DAI Voice mode 3 - dummy */ { .name = "WM8753 Voice", .id = 3, + .playback = { + .stream_name = "Dummy Voice Playback",}, + .capture = { + .stream_name = "Dummy Capture",}, + .ops = &wm8753_dai_ops_voice_dummy, }, /* DAI HiFi mode 4 */ { .name = "WM8753 HiFi", |