Lines Matching refs:card
63 struct snd_soc_card *card = rtd->card; in tegra_wm8903_hw_params() local
64 struct tegra_wm8903 *machine = snd_soc_card_get_drvdata(card); in tegra_wm8903_hw_params()
85 dev_err(card->dev, "Can't configure clocks\n"); in tegra_wm8903_hw_params()
92 dev_err(card->dev, "codec_dai clock not set\n"); in tegra_wm8903_hw_params()
132 struct snd_soc_card *card = dapm->card; in tegra_wm8903_event_int_spk() local
133 struct tegra_wm8903 *machine = snd_soc_card_get_drvdata(card); in tegra_wm8903_event_int_spk()
148 struct snd_soc_card *card = dapm->card; in tegra_wm8903_event_hp() local
149 struct tegra_wm8903 *machine = snd_soc_card_get_drvdata(card); in tegra_wm8903_event_hp()
174 struct snd_soc_card *card = rtd->card; in tegra_wm8903_init() local
175 struct tegra_wm8903 *machine = snd_soc_card_get_drvdata(card); in tegra_wm8903_init()
179 snd_soc_card_jack_new(rtd->card, "Headphone Jack", in tegra_wm8903_init()
188 snd_soc_card_jack_new(rtd->card, "Mic Jack", SND_JACK_MICROPHONE, in tegra_wm8903_init()
195 snd_soc_dapm_force_enable_pin(&card->dapm, "MICBIAS"); in tegra_wm8903_init()
200 static int tegra_wm8903_remove(struct snd_soc_card *card) in tegra_wm8903_remove() argument
202 struct snd_soc_pcm_runtime *rtd = &(card->rtd[0]); in tegra_wm8903_remove()
205 struct tegra_wm8903 *machine = snd_soc_card_get_drvdata(card); in tegra_wm8903_remove()
244 struct snd_soc_card *card = &snd_soc_tegra_wm8903; in tegra_wm8903_driver_probe() local
255 card->dev = &pdev->dev; in tegra_wm8903_driver_probe()
256 platform_set_drvdata(pdev, card); in tegra_wm8903_driver_probe()
257 snd_soc_card_set_drvdata(card, machine); in tegra_wm8903_driver_probe()
267 dev_err(card->dev, "cannot get spkr_en gpio\n"); in tegra_wm8903_driver_probe()
280 dev_err(card->dev, "cannot get hp_mute gpio\n"); in tegra_wm8903_driver_probe()
299 dev_err(card->dev, "cannot get int_mic_en gpio\n"); in tegra_wm8903_driver_probe()
314 dev_err(card->dev, "cannot get ext_mic_en gpio\n"); in tegra_wm8903_driver_probe()
319 ret = snd_soc_of_parse_card_name(card, "nvidia,model"); in tegra_wm8903_driver_probe()
323 ret = snd_soc_of_parse_audio_routing(card, "nvidia,audio-routing"); in tegra_wm8903_driver_probe()
351 ret = snd_soc_register_card(card); in tegra_wm8903_driver_probe()
368 struct snd_soc_card *card = platform_get_drvdata(pdev); in tegra_wm8903_driver_remove() local
369 struct tegra_wm8903 *machine = snd_soc_card_get_drvdata(card); in tegra_wm8903_driver_remove()
371 snd_soc_unregister_card(card); in tegra_wm8903_driver_remove()