ak4535.c (6627a653bceb3a54e55e5cdc478ec5b8d5c9cc44) | ak4535.c (6335d05548eece40092000aa91b64a50310d69d5) |
---|---|
1/* 2 * ak4535.c -- AK4535 ALSA Soc Audio driver 3 * 4 * Copyright 2005 Openedhand Ltd. 5 * 6 * Author: Richard Purdie <richard@openedhand.com> 7 * 8 * Based on wm8753.c by Liam Girdwood --- 407 unchanged lines hidden (view full) --- 416 codec->bias_level = level; 417 return 0; 418} 419 420#define AK4535_RATES (SNDRV_PCM_RATE_8000 | SNDRV_PCM_RATE_11025 |\ 421 SNDRV_PCM_RATE_16000 | SNDRV_PCM_RATE_22050 |\ 422 SNDRV_PCM_RATE_44100 | SNDRV_PCM_RATE_48000) 423 | 1/* 2 * ak4535.c -- AK4535 ALSA Soc Audio driver 3 * 4 * Copyright 2005 Openedhand Ltd. 5 * 6 * Author: Richard Purdie <richard@openedhand.com> 7 * 8 * Based on wm8753.c by Liam Girdwood --- 407 unchanged lines hidden (view full) --- 416 codec->bias_level = level; 417 return 0; 418} 419 420#define AK4535_RATES (SNDRV_PCM_RATE_8000 | SNDRV_PCM_RATE_11025 |\ 421 SNDRV_PCM_RATE_16000 | SNDRV_PCM_RATE_22050 |\ 422 SNDRV_PCM_RATE_44100 | SNDRV_PCM_RATE_48000) 423 |
424static struct snd_soc_dai_ops ak4535_dai_ops = { 425 .hw_params = ak4535_hw_params, 426 .set_fmt = ak4535_set_dai_fmt, 427 .digital_mute = ak4535_mute, 428 .set_sysclk = ak4535_set_dai_sysclk, 429}; 430 |
|
424struct snd_soc_dai ak4535_dai = { 425 .name = "AK4535", 426 .playback = { 427 .stream_name = "Playback", 428 .channels_min = 1, 429 .channels_max = 2, 430 .rates = AK4535_RATES, 431 .formats = SNDRV_PCM_FMTBIT_S16_LE,}, 432 .capture = { 433 .stream_name = "Capture", 434 .channels_min = 1, 435 .channels_max = 2, 436 .rates = AK4535_RATES, 437 .formats = SNDRV_PCM_FMTBIT_S16_LE,}, | 431struct snd_soc_dai ak4535_dai = { 432 .name = "AK4535", 433 .playback = { 434 .stream_name = "Playback", 435 .channels_min = 1, 436 .channels_max = 2, 437 .rates = AK4535_RATES, 438 .formats = SNDRV_PCM_FMTBIT_S16_LE,}, 439 .capture = { 440 .stream_name = "Capture", 441 .channels_min = 1, 442 .channels_max = 2, 443 .rates = AK4535_RATES, 444 .formats = SNDRV_PCM_FMTBIT_S16_LE,}, |
438 .ops = { 439 .hw_params = ak4535_hw_params, 440 .set_fmt = ak4535_set_dai_fmt, 441 .digital_mute = ak4535_mute, 442 .set_sysclk = ak4535_set_dai_sysclk, 443 }, | 445 .ops = &ak4535_dai_ops, |
444}; 445EXPORT_SYMBOL_GPL(ak4535_dai); 446 447static int ak4535_suspend(struct platform_device *pdev, pm_message_t state) 448{ 449 struct snd_soc_device *socdev = platform_get_drvdata(pdev); 450 struct snd_soc_codec *codec = socdev->card->codec; 451 --- 240 unchanged lines hidden --- | 446}; 447EXPORT_SYMBOL_GPL(ak4535_dai); 448 449static int ak4535_suspend(struct platform_device *pdev, pm_message_t state) 450{ 451 struct snd_soc_device *socdev = platform_get_drvdata(pdev); 452 struct snd_soc_codec *codec = socdev->card->codec; 453 --- 240 unchanged lines hidden --- |