hac.c (dee89c4d94433520e4e3977ae203d4cfbfe385fb) hac.c (3ba9e10a6d3b6abf5f5952572cff8f8d5a35ae54)
1/*
2 * Hitachi Audio Controller (AC97) support for SH7760/SH7780
3 *
4 * Copyright (c) 2007 Manuel Lauss <mano@roarinelk.homelinux.net>
5 * licensed under the terms outlined in the file COPYING at the root
6 * of the linux kernel sources.
7 *
8 * dont forget to set IPSEL/OMSEL register bits (in your board code) to

--- 257 unchanged lines hidden (view full) ---

266
267#define AC97_FMTS \
268 SNDRV_PCM_FMTBIT_S16_LE
269
270struct snd_soc_dai sh4_hac_dai[] = {
271{
272 .name = "HAC0",
273 .id = 0,
1/*
2 * Hitachi Audio Controller (AC97) support for SH7760/SH7780
3 *
4 * Copyright (c) 2007 Manuel Lauss <mano@roarinelk.homelinux.net>
5 * licensed under the terms outlined in the file COPYING at the root
6 * of the linux kernel sources.
7 *
8 * dont forget to set IPSEL/OMSEL register bits (in your board code) to

--- 257 unchanged lines hidden (view full) ---

266
267#define AC97_FMTS \
268 SNDRV_PCM_FMTBIT_S16_LE
269
270struct snd_soc_dai sh4_hac_dai[] = {
271{
272 .name = "HAC0",
273 .id = 0,
274 .type = SND_SOC_DAI_AC97,
274 .ac97_control = 1,
275 .playback = {
276 .rates = AC97_RATES,
277 .formats = AC97_FMTS,
278 .channels_min = 2,
279 .channels_max = 2,
280 },
281 .capture = {
282 .rates = AC97_RATES,
283 .formats = AC97_FMTS,
284 .channels_min = 2,
285 .channels_max = 2,
286 },
287 .ops = {
288 .hw_params = hac_hw_params,
289 },
290},
291#ifdef CONFIG_CPU_SUBTYPE_SH7760
292{
293 .name = "HAC1",
275 .playback = {
276 .rates = AC97_RATES,
277 .formats = AC97_FMTS,
278 .channels_min = 2,
279 .channels_max = 2,
280 },
281 .capture = {
282 .rates = AC97_RATES,
283 .formats = AC97_FMTS,
284 .channels_min = 2,
285 .channels_max = 2,
286 },
287 .ops = {
288 .hw_params = hac_hw_params,
289 },
290},
291#ifdef CONFIG_CPU_SUBTYPE_SH7760
292{
293 .name = "HAC1",
294 .ac97_control = 1,
294 .id = 1,
295 .id = 1,
295 .type = SND_SOC_DAI_AC97,
296 .playback = {
297 .rates = AC97_RATES,
298 .formats = AC97_FMTS,
299 .channels_min = 2,
300 .channels_max = 2,
301 },
302 .capture = {
303 .rates = AC97_RATES,

--- 16 unchanged lines hidden ---
296 .playback = {
297 .rates = AC97_RATES,
298 .formats = AC97_FMTS,
299 .channels_min = 2,
300 .channels_max = 2,
301 },
302 .capture = {
303 .rates = AC97_RATES,

--- 16 unchanged lines hidden ---