cs4270.c (ff09d49ad0176a5f52a398c137a7ff5f669d6be4) | cs4270.c (6335d05548eece40092000aa91b64a50310d69d5) |
---|---|
1/* 2 * CS4270 ALSA SoC (ASoC) codec driver 3 * 4 * Author: Timur Tabi <timur@freescale.com> 5 * 6 * Copyright 2007-2009 Freescale Semiconductor, Inc. This file is licensed 7 * under the terms of the GNU General Public License version 2. This 8 * program is licensed "as is" without any warranty of any kind, whether --- 489 unchanged lines hidden (view full) --- 498 * cs4270_i2c_probe() to cs4270_probe(). Unfortunately, there is no good 499 * way to synchronize these two functions. cs4270_i2c_probe() can be called 500 * multiple times before cs4270_probe() is called even once. So for now, we 501 * also only allow cs4270_i2c_probe() to be run once. That means that we do 502 * not support more than one cs4270 device in the system, at least for now. 503 */ 504static struct snd_soc_codec *cs4270_codec; 505 | 1/* 2 * CS4270 ALSA SoC (ASoC) codec driver 3 * 4 * Author: Timur Tabi <timur@freescale.com> 5 * 6 * Copyright 2007-2009 Freescale Semiconductor, Inc. This file is licensed 7 * under the terms of the GNU General Public License version 2. This 8 * program is licensed "as is" without any warranty of any kind, whether --- 489 unchanged lines hidden (view full) --- 498 * cs4270_i2c_probe() to cs4270_probe(). Unfortunately, there is no good 499 * way to synchronize these two functions. cs4270_i2c_probe() can be called 500 * multiple times before cs4270_probe() is called even once. So for now, we 501 * also only allow cs4270_i2c_probe() to be run once. That means that we do 502 * not support more than one cs4270 device in the system, at least for now. 503 */ 504static struct snd_soc_codec *cs4270_codec; 505 |
506static struct snd_soc_dai_ops cs4270_dai_ops = { 507 .hw_params = cs4270_hw_params, 508 .set_sysclk = cs4270_set_dai_sysclk, 509 .set_fmt = cs4270_set_dai_fmt, 510 .digital_mute = cs4270_mute, 511}; 512 |
|
506struct snd_soc_dai cs4270_dai = { 507 .name = "cs4270", 508 .playback = { 509 .stream_name = "Playback", 510 .channels_min = 1, 511 .channels_max = 2, 512 .rates = 0, 513 .formats = CS4270_FORMATS, 514 }, 515 .capture = { 516 .stream_name = "Capture", 517 .channels_min = 1, 518 .channels_max = 2, 519 .rates = 0, 520 .formats = CS4270_FORMATS, 521 }, | 513struct snd_soc_dai cs4270_dai = { 514 .name = "cs4270", 515 .playback = { 516 .stream_name = "Playback", 517 .channels_min = 1, 518 .channels_max = 2, 519 .rates = 0, 520 .formats = CS4270_FORMATS, 521 }, 522 .capture = { 523 .stream_name = "Capture", 524 .channels_min = 1, 525 .channels_max = 2, 526 .rates = 0, 527 .formats = CS4270_FORMATS, 528 }, |
522 .ops = { 523 .hw_params = cs4270_hw_params, 524 .set_sysclk = cs4270_set_dai_sysclk, 525 .set_fmt = cs4270_set_dai_fmt, 526 .digital_mute = cs4270_mute, 527 }, | 529 .ops = &cs4270_dai_ops, |
528}; 529EXPORT_SYMBOL_GPL(cs4270_dai); 530 531/** 532 * cs4270_probe - ASoC probe function 533 * @pdev: platform device 534 * 535 * This function is called when ASoC has all the pieces it needs to --- 277 unchanged lines hidden --- | 530}; 531EXPORT_SYMBOL_GPL(cs4270_dai); 532 533/** 534 * cs4270_probe - ASoC probe function 535 * @pdev: platform device 536 * 537 * This function is called when ASoC has all the pieces it needs to --- 277 unchanged lines hidden --- |