lowland.c (b3e5ced63e051e8f911b795ac5b06229a5328f7b) | lowland.c (239ad6a18142271ac0cb332671c199d28d144f7f) |
---|---|
1/* 2 * Lowland audio support 3 * 4 * Copyright 2011 Wolfson Microelectronics 5 * 6 * This program is free software; you can redistribute it and/or modify it 7 * under the terms of the GNU General Public License as published by the 8 * Free Software Foundation; either version 2 of the License, or (at your --- 58 unchanged lines hidden (view full) --- 67 68 return 0; 69} 70 71static int lowland_wm9081_init(struct snd_soc_pcm_runtime *rtd) 72{ 73 struct snd_soc_codec *codec = rtd->codec; 74 | 1/* 2 * Lowland audio support 3 * 4 * Copyright 2011 Wolfson Microelectronics 5 * 6 * This program is free software; you can redistribute it and/or modify it 7 * under the terms of the GNU General Public License as published by the 8 * Free Software Foundation; either version 2 of the License, or (at your --- 58 unchanged lines hidden (view full) --- 67 68 return 0; 69} 70 71static int lowland_wm9081_init(struct snd_soc_pcm_runtime *rtd) 72{ 73 struct snd_soc_codec *codec = rtd->codec; 74 |
75 snd_soc_dapm_nc_pin(&codec->dapm, "LINEOUT"); | 75 snd_soc_dapm_nc_pin(&rtd->card->dapm, "LINEOUT"); |
76 77 /* At any time the WM9081 is active it will have this clock */ 78 return snd_soc_codec_set_sysclk(codec, WM9081_SYSCLK_MCLK, 0, 79 CLKOUT_RATE, 0); 80} 81 82static const struct snd_soc_pcm_stream sub_params = { 83 .formats = SNDRV_PCM_FMTBIT_S32_LE, --- 122 unchanged lines hidden --- | 76 77 /* At any time the WM9081 is active it will have this clock */ 78 return snd_soc_codec_set_sysclk(codec, WM9081_SYSCLK_MCLK, 0, 79 CLKOUT_RATE, 0); 80} 81 82static const struct snd_soc_pcm_stream sub_params = { 83 .formats = SNDRV_PCM_FMTBIT_S32_LE, --- 122 unchanged lines hidden --- |