Re: [patch 5/6] orion/kirkwood: Add i2s support

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> +       /* First disable and clear windows */
> +       for (win_num = 0; win_num < ORION_MAX_AUDIO_WIN; win_num++) {
> +               writel(0, base + ORION_AUDIO_WIN_CTRL_REG(win_num));
> +               writel(0, base + ORION_AUDIO_WIN_BASE_REG(win_num));
> +       }
> +
> +       /* Setup windows for DDR */
> +       for (win_num = 0; win_num < ORION_MAX_AUDIO_WIN; win_num++) {
> +               /* We will set the Window to DRAM_CS1 in default */
> +               struct mbus_dram_window *cs = &dram->cs[1];
> +               writel(cs->base & 0xffff0000,
> +                      base + ORION_AUDIO_WIN_BASE_REG(win_num));
> +               writel(((cs->size - 1) & 0xffff0000) |
> +                      (cs->mbus_attr << 8) |
> +                      (dram->mbus_dram_target_id << 4) | 1,
> +                       base + ORION_AUDIO_WIN_CTRL_REG(win_num));
> +       }
> +}
The i2s controller has one window for playback, so that window must be
set according to the current dma address, i.e, if the dma address
falls into csX then the window should be configured to csX. same for
record.
sorry for the late comment.
saeed
_______________________________________________
Alsa-devel mailing list
Alsa-devel@xxxxxxxxxxxxxxxx
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel


[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux