inno_rk3036.c (fcf005a645e6855d68f98b9455f6b47ac2ed161c) | inno_rk3036.c (a180ba45b1cf630b3bd5912ce235b2ee16606b8e) |
---|---|
1/* 2 * Driver of Inno codec for rk3036 by Rockchip Inc. 3 * 4 * Author: Rockchip Inc. 5 * Author: Zheng ShunQian<zhengsq@rock-chips.com> 6 */ 7 8#include <sound/soc.h> --- 296 unchanged lines hidden (view full) --- 305 SNDRV_PCM_RATE_48000 | \ 306 SNDRV_PCM_RATE_96000) 307 308#define RK3036_CODEC_FMTS (SNDRV_PCM_FMTBIT_S16_LE | \ 309 SNDRV_PCM_FMTBIT_S20_3LE | \ 310 SNDRV_PCM_FMTBIT_S24_LE | \ 311 SNDRV_PCM_FMTBIT_S32_LE) 312 | 1/* 2 * Driver of Inno codec for rk3036 by Rockchip Inc. 3 * 4 * Author: Rockchip Inc. 5 * Author: Zheng ShunQian<zhengsq@rock-chips.com> 6 */ 7 8#include <sound/soc.h> --- 296 unchanged lines hidden (view full) --- 305 SNDRV_PCM_RATE_48000 | \ 306 SNDRV_PCM_RATE_96000) 307 308#define RK3036_CODEC_FMTS (SNDRV_PCM_FMTBIT_S16_LE | \ 309 SNDRV_PCM_FMTBIT_S20_3LE | \ 310 SNDRV_PCM_FMTBIT_S24_LE | \ 311 SNDRV_PCM_FMTBIT_S32_LE) 312 |
313static const struct snd_soc_dai_ops rk3036_codec_dai_ops = { | 313static struct snd_soc_dai_ops rk3036_codec_dai_ops = { |
314 .set_fmt = rk3036_codec_dai_set_fmt, 315 .hw_params = rk3036_codec_dai_hw_params, 316}; 317 318static struct snd_soc_dai_driver rk3036_codec_dai_driver[] = { 319 { 320 .name = "rk3036-codec-dai", 321 .playback = { --- 49 unchanged lines hidden (view full) --- 371 break; 372 default: 373 break; 374 } 375 376 return 0; 377} 378 | 314 .set_fmt = rk3036_codec_dai_set_fmt, 315 .hw_params = rk3036_codec_dai_hw_params, 316}; 317 318static struct snd_soc_dai_driver rk3036_codec_dai_driver[] = { 319 { 320 .name = "rk3036-codec-dai", 321 .playback = { --- 49 unchanged lines hidden (view full) --- 371 break; 372 default: 373 break; 374 } 375 376 return 0; 377} 378 |
379static struct snd_soc_codec_driver rk3036_codec_driver = { | 379static const struct snd_soc_codec_driver rk3036_codec_driver = { |
380 .probe = rk3036_codec_probe, 381 .remove = rk3036_codec_remove, 382 .set_bias_level = rk3036_codec_set_bias_level, 383 .component_driver = { 384 .controls = rk3036_codec_dapm_controls, 385 .num_controls = ARRAY_SIZE(rk3036_codec_dapm_controls), 386 .dapm_routes = rk3036_codec_dapm_routes, 387 .num_dapm_routes = ARRAY_SIZE(rk3036_codec_dapm_routes), --- 105 unchanged lines hidden --- | 380 .probe = rk3036_codec_probe, 381 .remove = rk3036_codec_remove, 382 .set_bias_level = rk3036_codec_set_bias_level, 383 .component_driver = { 384 .controls = rk3036_codec_dapm_controls, 385 .num_controls = ARRAY_SIZE(rk3036_codec_dapm_controls), 386 .dapm_routes = rk3036_codec_dapm_routes, 387 .num_dapm_routes = ARRAY_SIZE(rk3036_codec_dapm_routes), --- 105 unchanged lines hidden --- |