ml26124.c (976e3645923bdd2fe7893aae33fd7a21098bfb28) | ml26124.c (54b5927067dd79b58032a4938ee13b233f1a368c) |
---|---|
1// SPDX-License-Identifier: GPL-2.0-only 2/* 3 * Copyright (C) 2011 LAPIS Semiconductor Co., Ltd. 4 */ 5 6#include <linux/module.h> 7#include <linux/moduleparam.h> 8#include <linux/init.h> --- 358 unchanged lines hidden (view full) --- 367 snd_soc_component_update_bits(component, ML26124_PLLNH, 0x1, coeff_div[i].pllnh); 368 snd_soc_component_update_bits(component, ML26124_PLLML, 0xff, coeff_div[i].pllml); 369 snd_soc_component_update_bits(component, ML26124_PLLMH, 0x3f, coeff_div[i].pllmh); 370 snd_soc_component_update_bits(component, ML26124_PLLDIV, 0x1f, coeff_div[i].plldiv); 371 372 return 0; 373} 374 | 1// SPDX-License-Identifier: GPL-2.0-only 2/* 3 * Copyright (C) 2011 LAPIS Semiconductor Co., Ltd. 4 */ 5 6#include <linux/module.h> 7#include <linux/moduleparam.h> 8#include <linux/init.h> --- 358 unchanged lines hidden (view full) --- 367 snd_soc_component_update_bits(component, ML26124_PLLNH, 0x1, coeff_div[i].pllnh); 368 snd_soc_component_update_bits(component, ML26124_PLLML, 0xff, coeff_div[i].pllml); 369 snd_soc_component_update_bits(component, ML26124_PLLMH, 0x3f, coeff_div[i].pllmh); 370 snd_soc_component_update_bits(component, ML26124_PLLDIV, 0x1f, coeff_div[i].plldiv); 371 372 return 0; 373} 374 |
375static int ml26124_mute(struct snd_soc_dai *dai, int mute) | 375static int ml26124_mute(struct snd_soc_dai *dai, int mute, int direction) |
376{ 377 struct snd_soc_component *component = dai->component; 378 struct ml26124_priv *priv = snd_soc_component_get_drvdata(component); 379 380 switch (priv->substream->stream) { 381 case SNDRV_PCM_STREAM_CAPTURE: 382 snd_soc_component_update_bits(component, ML26124_REC_PLYBAK_RUN, BIT(0), 1); 383 break; --- 103 unchanged lines hidden (view full) --- 487 ML26124_VMID, 0); 488 break; 489 } 490 return 0; 491} 492 493static const struct snd_soc_dai_ops ml26124_dai_ops = { 494 .hw_params = ml26124_hw_params, | 376{ 377 struct snd_soc_component *component = dai->component; 378 struct ml26124_priv *priv = snd_soc_component_get_drvdata(component); 379 380 switch (priv->substream->stream) { 381 case SNDRV_PCM_STREAM_CAPTURE: 382 snd_soc_component_update_bits(component, ML26124_REC_PLYBAK_RUN, BIT(0), 1); 383 break; --- 103 unchanged lines hidden (view full) --- 487 ML26124_VMID, 0); 488 break; 489 } 490 return 0; 491} 492 493static const struct snd_soc_dai_ops ml26124_dai_ops = { 494 .hw_params = ml26124_hw_params, |
495 .digital_mute = ml26124_mute, | 495 .mute_stream = ml26124_mute, |
496 .set_fmt = ml26124_set_dai_fmt, 497 .set_sysclk = ml26124_set_dai_sysclk, | 496 .set_fmt = ml26124_set_dai_fmt, 497 .set_sysclk = ml26124_set_dai_sysclk, |
498 .no_capture_mute = 1, |
|
498}; 499 500static struct snd_soc_dai_driver ml26124_dai = { 501 .name = "ml26124-hifi", 502 .playback = { 503 .stream_name = "Playback", 504 .channels_min = 1, 505 .channels_max = 2, --- 89 unchanged lines hidden --- | 499}; 500 501static struct snd_soc_dai_driver ml26124_dai = { 502 .name = "ml26124-hifi", 503 .playback = { 504 .stream_name = "Playback", 505 .channels_min = 1, 506 .channels_max = 2, --- 89 unchanged lines hidden --- |