diff options
author | Sandeep Shinde <sashinde@nvidia.com> | 2010-06-11 13:29:58 +0545 |
---|---|---|
committer | Janne Hellsten <jhellsten@nvidia.com> | 2010-06-14 06:01:21 -0700 |
commit | 69074ee65d452cae27719559c8fe50c8d1b80e75 (patch) | |
tree | 862eea0b40d669363b1a318c270f1c97c61d6228 /sound | |
parent | 8b96e0c553ade21846d2d2d43e9a20e39bc56ec4 (diff) |
tegra ALSA: Making function and struct names generic
Making function and structure names generic instead of being board specific.
Also updated the comment at the start of the file with correct file name.
Change-Id: I45bd23e97a701c06abee7a37a6e5f307708022d8
Reviewed-on: http://git-master/r/2461
Reviewed-by: Vijay Mali <vmali@nvidia.com>
Tested-by: Vijay Mali <vmali@nvidia.com>
Tested-by: Sandeep Shinde <sashinde@nvidia.com>
Reviewed-by: Janne Hellsten <jhellsten@nvidia.com>
Diffstat (limited to 'sound')
-rw-r--r-- | sound/soc/tegra/tegra_soc_audio.c | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/sound/soc/tegra/tegra_soc_audio.c b/sound/soc/tegra/tegra_soc_audio.c index 19ca788d86fd..262d8760902e 100644 --- a/sound/soc/tegra/tegra_soc_audio.c +++ b/sound/soc/tegra/tegra_soc_audio.c @@ -1,5 +1,5 @@ /* - * sound/soc/tegra/tegra_whistler.c + * sound/soc/tegra/tegra_soc_audio.c * * ALSA SOC driver for NVIDIA Tegra SoCs * @@ -48,7 +48,7 @@ struct codec_setup_data { }; extern struct snd_soc_codec_device soc_codec_dev_tegra_generic_codec; -extern struct snd_soc_dai dit_stub_dai; +extern struct snd_soc_dai tegra_generic_codec_dai; static struct platform_device *tegra_snd_device; NvU64 codec_guid; @@ -82,8 +82,8 @@ static int set_clock_source_on_codec(NvU64 codec_guid,int IsEnable) return NV_TRUE; } -static int tegra_whistler_hifi_hw_params(struct snd_pcm_substream *substream, - struct snd_pcm_hw_params *params) +static int tegra_hifi_hw_params(struct snd_pcm_substream *substream, + struct snd_pcm_hw_params *params) { /* Set codec DAI configuration */ struct snd_soc_pcm_runtime *rtd = substream->private_data; @@ -98,11 +98,11 @@ static int tegra_whistler_hifi_hw_params(struct snd_pcm_substream *substream, return 0; } -static struct snd_soc_ops tegra_whistler_hifi_ops = { - .hw_params = tegra_whistler_hifi_hw_params, +static struct snd_soc_ops tegra_hifi_ops = { + .hw_params = tegra_hifi_hw_params, }; -static int tegra_wm8753_init(struct snd_soc_codec *codec) +static int tegra_codec_init(struct snd_soc_codec *codec) { return 0; } @@ -110,24 +110,24 @@ static int tegra_wm8753_init(struct snd_soc_codec *codec) extern struct snd_soc_dai tegra_i2s_rpc_dai; extern struct snd_soc_platform tegra_soc_platform; -static struct snd_soc_dai_link tegra_whistler_dai = { +static struct snd_soc_dai_link tegra_board_dai = { .name = "tegra-generic-codec", .stream_name = "tegra-codec-rpc", .cpu_dai = &tegra_i2s_rpc_dai, - .codec_dai = &dit_stub_dai, - .init = tegra_wm8753_init, - .ops = &tegra_whistler_hifi_ops, + .codec_dai = &tegra_generic_codec_dai, + .init = tegra_codec_init, + .ops = &tegra_hifi_ops, }; -static struct snd_soc_card tegra_whistler = { +static struct snd_soc_card tegra_board = { .name = "tegra", .platform = &tegra_soc_platform, - .dai_link = &tegra_whistler_dai, + .dai_link = &tegra_board_dai, .num_links = 1, }; -static struct snd_soc_device tegra_whistler_snd_devdata = { - .card = &tegra_whistler, +static struct snd_soc_device tegra_board_snd_devdata = { + .card = &tegra_board, .codec_dev = &soc_codec_dev_tegra_generic_codec, }; @@ -138,8 +138,8 @@ static int __init tegra_soc_init(void) if (!tegra_snd_device) return -ENOMEM; - platform_set_drvdata(tegra_snd_device, &tegra_whistler_snd_devdata); - tegra_whistler_snd_devdata.dev = &tegra_snd_device->dev; + platform_set_drvdata(tegra_snd_device, &tegra_board_snd_devdata); + tegra_board_snd_devdata.dev = &tegra_snd_device->dev; ret = platform_device_add(tegra_snd_device); if (ret) { |