diff options
author | Christian Gromm <christian.gromm@microchip.com> | 2015-09-28 17:18:53 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-09-29 03:18:52 +0200 |
commit | fb0056a8aef0561727602c08951e9b4fd79a0e5f (patch) | |
tree | f559bdba8f587754983a9d7ab3c766267e8ab9bf /drivers/staging/most | |
parent | 31e91e0f40547816f9256d5865d39d504706ad06 (diff) |
staging: most: rename function
This patch renames the function audio_set_pcm_format(). Since the
function doesn't only set the PCM format anymore and to guard against
misunderstandings, its name needs to be changed.
Signed-off-by: Christian Gromm <christian.gromm@microchip.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/most')
-rw-r--r-- | drivers/staging/most/aim-sound/sound.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/most/aim-sound/sound.c b/drivers/staging/most/aim-sound/sound.c index 59e1294c31cb..ee02273598d2 100644 --- a/drivers/staging/most/aim-sound/sound.c +++ b/drivers/staging/most/aim-sound/sound.c @@ -496,7 +496,7 @@ static int split_arg_list(char *buf, char **card_name, char **pcm_format) return 0; } -static int audio_set_pcm_format(struct snd_pcm_hardware *pcm_hw, +static int audio_set_hw_params(struct snd_pcm_hardware *pcm_hw, char *pcm_format, struct most_channel_config *cfg) { @@ -616,7 +616,7 @@ static int audio_probe_channel(struct most_interface *iface, int channel_id, channel->id = channel_id; init_pcm_hardware(&channel->pcm_hardware); - if (audio_set_pcm_format(&channel->pcm_hardware, pcm_format, cfg)) + if (audio_set_hw_params(&channel->pcm_hardware, pcm_format, cfg)) goto err_free_card; snprintf(card->driver, sizeof(card->driver), "%s", DRIVER_NAME); |