OpenNuvoton / NUC970_Linux_Kernel

Linux Kernel Source Code for NUC970 Series Microprocessor
Other
68 stars 69 forks source link

how to enable PCM Interface in Sound #67

Closed chandong83 closed 2 years ago

chandong83 commented 3 years ago

hello,

I would like to use i2s pcm interface mode.

do you have anything for reference?

and i would also like to know how to change from i2s mode to 24bit 384fs.

thank you

yachen commented 3 years ago

Hi, Currently we don't have reference for PCM mode driver.

chandong83 commented 3 years ago

Hi, @yachen i am sorry i was also making inquiries from "NUC970_NonOS_BSP". and is there any reference to I2S 16-bits on 24-bits frame? thank you.

yachen commented 3 years ago

Please try

  1. Modify BITS_SELECT_16 to BITS_SELECT_24 in nuc970-i2s.c, and
  2. Change 256 to 284 at line 109 in the same file.
chandong83 commented 3 years ago

@yachen Thank you for your reply. in case this I2S(16-bits on 24-bits frame) left justified format is supported?

yachen commented 3 years ago

Yes, FORMAT (I2S_CON[3]) control bit is used to select data format.

chandong83 commented 3 years ago

Hi, @yachen i will check them. thank you