diff options
author | Vaibhav Agarwal <vaibhav.agarwal@linaro.org> | 2016-08-04 15:14:35 +0530 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@google.com> | 2016-08-04 19:07:30 +0200 |
commit | 60e7327d54b270eeadc120b6202af50856548376 (patch) | |
tree | aa53aa978f384313be30038fb9a0800dd02c5b26 /drivers/staging/greybus/audio_codec.c | |
parent | b7e7dc0083d662c061dcd547c7dde4db24331ebc (diff) |
greybus: audio: Find data connection based on id
Currently we are using dai->name to identify data connection from list
for a module. Now since we are enabling data path based on widget,
dai->name might be invalid by the time driver receives disable request
for a widget. So, use id fetched from AIF widget->sname to identify data
connection for a module.
Signed-off-by: Vaibhav Agarwal <vaibhav.agarwal@linaro.org>
Reviewed-by: Mark Greer <mgreer@animalcreek.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Diffstat (limited to 'drivers/staging/greybus/audio_codec.c')
-rw-r--r-- | drivers/staging/greybus/audio_codec.c | 80 |
1 files changed, 39 insertions, 41 deletions
diff --git a/drivers/staging/greybus/audio_codec.c b/drivers/staging/greybus/audio_codec.c |