summaryrefslogtreecommitdiffstats
path: root/drivers/staging/greybus/audio_codec.c
diff options
context:
space:
mode:
authorVaibhav Agarwal2016-08-04 11:44:31 +0200
committerGreg Kroah-Hartman2016-08-04 19:07:30 +0200
commit1568159868f6b6c4ab17aa28ef4d5d4fc02317f1 (patch)
treebef751aa758ee4d9e75f0d3800940b3751d0e115 /drivers/staging/greybus/audio_codec.c
parentgreybus: audio: Split helper APIs based on stream direction (diff)
downloadkernel-qcow2-linux-1568159868f6b6c4ab17aa28ef4d5d4fc02317f1.tar.gz
kernel-qcow2-linux-1568159868f6b6c4ab17aa28ef4d5d4fc02317f1.tar.xz
kernel-qcow2-linux-1568159868f6b6c4ab17aa28ef4d5d4fc02317f1.zip
greybus: audio: Update dai_driver table with appropriate fields
Currently, the stream name for the DAI driver is generically set to "GB Audio Playback" and "GB Audio Capture". This is OK since we use a single interface on APB1 but that could change in the future. Update the DAI driver table entries to properly reflect the interface used. 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.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/staging/greybus/audio_codec.c b/drivers/staging/greybus/audio_codec.c
index 70b9a797afc8..a6f843784f2f 100644
--- a/drivers/staging/greybus/audio_codec.c
+++ b/drivers/staging/greybus/audio_codec.c
@@ -950,10 +950,10 @@ static unsigned int gbcodec_read(struct snd_soc_codec *codec,
static struct snd_soc_dai_driver gbaudio_dai[] = {
{
- .name = "greybus-apb1",
+ .name = "apb-i2s0",
.id = 0,
.playback = {
- .stream_name = "GB Audio Playback",
+ .stream_name = "I2S 0 Playback",
.rates = SNDRV_PCM_RATE_48000,
.formats = SNDRV_PCM_FORMAT_S16_LE,
.rate_max = 48000,
@@ -962,7 +962,7 @@ static struct snd_soc_dai_driver gbaudio_dai[] = {
.channels_max = 2,
},
.capture = {
- .stream_name = "GB Audio Capture",
+ .stream_name = "I2S 0 Capture",
.rates = SNDRV_PCM_RATE_48000,
.formats = SNDRV_PCM_FORMAT_S16_LE,
.rate_max = 48000,