summaryrefslogtreecommitdiff
path: root/sound/soc/starfive
AgeCommit message (Collapse)AuthorFilesLines
2023-08-31Merge tag 'JH7110_515_SDK_v5.7.0' into vf2-515-develAndy Hu2-69/+29
2023-08-29ASoC: starfive: fixup according to dma changeWalker Chen2-69/+29
Need to change some interface as dma driver changes. Signed-off-by: Walker Chen <walker.chen@starfivetech.com>
2023-08-14ASoC: starfive: Add TDM dai driver for SOFcarter.li3-0/+430
in sof arch, the host linux dai driver sets clock and reset. the control of audio params is handled in dsp side. Signed-off-by: carter.li <carter.li@starfivetech.com>
2023-06-07driver/include/sound: Normalize the copyright licensesXingyu Wu4-54/+15
Normalize the copyright licenses about clocktree/watchdog/timer/spdif/pwmdac. Signed-off-by: Xingyu Wu <xingyu.wu@starfivetech.com>
2023-02-10Merge branch 'CR_3312_TDM_KO_Not_Work' into 'jh7110-5.15.y-devel'andy.hu2-115/+43
CR_3312_TDM_KO_Not_Work See merge request sdk/linux!694
2023-02-10CR_3312_TDM_KO_Not_WorkWalker Chen2-115/+43
Fixed the bug that tdm cat not work when it is build as module. Signed-off-by: Walker Chen <walker.chen@starfivetech.com>
2023-02-10Merge branch 'CR_3319_I2S_Hibernation_Module_Xingyu.Wu' into ↵andy.hu1-4/+145
'jh7110-5.15.y-devel' CR_3319_I2S_Hibernation_Module_Xingyu.Wu See merge request sdk/linux!692
2023-02-10CR_3323_PDM_KO_Can_Work_walker.chenWalker Chen1-142/+84
1. Build as ko module, can work normally after multiple loading and unloading. 2. can record normally after hibernation resume. Signed-off-by: Walker Chen <walker.chen@starfivetech.com>
2023-02-10sound: starfive: I2S: Fixed error after hibernation when building moduleXingyu Wu1-4/+145
When I2S resume but WM8960 has not resume and no clock, I2S should use inner clock instead of wm8960's clock first. Signed-off-by: Xingyu Wu <xingyu.wu@starfivetech.com>
2023-02-03Merge branch 'CR_3151_TDM_Hibernation_walker.chen' into 'jh7110-5.15.y-devel'andy.hu1-52/+48
CR_3151_TDM_Hibernation_walker.chen See merge request sdk/linux!682
2023-02-03CR_3151_TDM_Hibernation_walker.chenWalker Chen1-52/+48
Resolved the error of reording and playing simultaneously after performing hibernation resume. Signed-off-by: Walker Chen <walker.chen@starfivetech.com>
2023-02-01sound: starfive: pwmdac: Support module buildingXingyu Wu2-2/+9
Change Makefile and Kconfig to support module building. Signed-off-by: Xingyu Wu <xingyu.wu@starfivetech.com>
2023-01-11Merge branch 'CR_3025_hibernation_tdm_walker.chen' into 'jh7110-5.15.y-devel'andy.hu2-1/+48
CR_3025_hibernation_tdm_walker.chen See merge request sdk/linux!666
2023-01-11Merge branch 'CR_2964_hibernation_spdif_Xingyu.Wu' into 'jh7110-5.15.y-devel'andy.hu3-4/+29
CR_2964_hibernation_spdif_Xingyu.Wu See merge request sdk/linux!664
2023-01-11CR_3025_Hibernation_TDM_Walker.chenWalker Chen2-1/+48
Fixed playback failed after hibernation by saving and restoring registers' data. Signed-off-by: Walker Chen <walker.chen@starfivetech.com>
2023-01-11sound: starfive: pwmdac: Fixed playback failed after hibernationXingyu Wu2-8/+16
Fixed playback failed after hibernation by saving and restoring register data. Fixed error when open PWMDAC_PCM. Signed-off-by: Xingyu Wu <xingyu.wu@starfivetech.com>
2023-01-11sound: starfive: spdif: Fixed playback failed after hibernationXingyu Wu3-4/+29
Fixed playback failed after hibernation by saving and restoring registers' data. Signed-off-by: Xingyu Wu <xingyu.wu@starfivetech.com>
2022-12-08sound:starfive:Move playback and capture driver as slave to starfive I2SXingyu Wu2-60/+265
Move playback and capture driver as slave from snps I2S merge to starfive I2S. Signed-off-by: Xingyu Wu <xingyu.wu@starfivetech.com>
2022-10-27sound:starfive:pwmdac:Add runtime pm operationXingyu Wu1-28/+91
Add runtime pm operation in PWMDAC driver. Signed-off-by: Xingyu Wu <xingyu.wu@starfivetech.com>
2022-10-27CR_2345_Audio_DevicePM_walker.chenWalker Chen1-2/+2
Fix the bug that pdm function name spell error. Signed-off-by: Walker Chen <walker.chen@starfivetech.com>
2022-10-27CR_2345_Audio_DevicePM_walker.chenWalker Chen2-8/+18
Disable clock when audio driver is loaded. Signed-off-by: Walker Chen <walker.chen@starfivetech.com>
2022-10-27sound:starfive:Add hibernation in I2SXingyu Wu1-68/+29
Add hibernation in starfive I2S driver. Signed-off-by: Xingyu Wu <xingyu.wu@starfivetech.com>
2022-10-27sound:starfive:spdif:Add hibernation operationXingyu Wu3-19/+86
Add runtime pm and system pm in spdif driver. Signed-off-by: Xingyu Wu <xingyu.wu@starfivetech.com>
2022-10-27CR_2345_Audio_DevicePM_walker.chenWalker Chen3-34/+228
Implement Runtime PM and System PM for PDM and TDM module. Signed-off-by: Walker Chen <walker.chen@linux.starfivetech.com>
2022-10-14Merge branch 'CR_2307_PWMDAC_515_walker.chen' into 'jh7110-5.15.y-devel'andy.hu1-99/+126
CR_2307_PWMDAC_515: fix playback repeatly issue See merge request sdk/linux!524
2022-10-12sound:starfive:Remove i2srx-master and merge into starfive_i2sXingyu Wu6-1070/+199
Remove i2srx-master.c and i2srx-master.h files, and merge into starfive_i2s.c and starfive_i2s.h files. Signed-off-by: Xingyu Wu <xingyu.wu@starfivetech.com>
2022-10-12sound:starfive:Change the order about mclk_ext's operationXingyu Wu1-6/+6
Change the order about setting parent to mclk_ext after resets when PDM registering. Signed-off-by: Xingyu Wu <xingyu.wu@starfivetech.com>
2022-10-12sound:starfive:Add I2S driverXingyu Wu4-0/+1071
Add I2S driver for starfive. Signed-off-by: Xingyu Wu <xingyu.wu@starfivetech.com>
2022-10-10CR_2307_PWMDAC_515: fix playback repeatly issueWalker Chen1-99/+126
fix the bug that error occurs when playback repleatly. Signed-off-by: Walker Chen <walker.chen@linux.starfivetech.com>
2022-09-15sound:starfive:spdif:Use mclk_inner about 11k and 22kXingyu Wu1-8/+46
Use mclk_inner clock from 1188m PLL2 will be better about 11k and 22k. Signed-off-by: Xingyu Wu <xingyu.wu@starfivetech.com>
2022-09-15sound:starfive:pdm:Use mclk_ext external clockXingyu Wu1-31/+6
Use mclk_ext instead of mclk_inner. Signed-off-by: Xingyu Wu <xingyu.wu@starfivetech.com>
2022-09-15sound:starfive:spdif:Use extrenal mclkXingyu Wu2-15/+15
Use extrenal mclk_ext instead of mclk_inner. Signed-off-by: Xingyu Wu <xingyu.wu@starfivetech.com>
2022-09-07Merge branch 'CR_2076_515_I2S_AC108_Xingyu.Wu' into 'jh7110-5.15.y-devel'andy.hu1-0/+6
CR_2076 & 2077 & 2078 & 2075 :I2S and AC108 See merge request sdk/linux!469
2022-09-07Merge branch 'CR_2071_compatible_standard_515_walker.chen' into ↵andy.hu3-11/+9
'jh7110-5.15.y-devel' CR_2071_audio_compatible_standard_515 See merge request sdk/linux!450
2022-09-06sound:wm8960:pdm:Fix some noise with first captureXingyu Wu1-0/+6
Use delay to fix some noise with first capture. Signed-off-by: Xingyu Wu <xingyu.wu@starfivetech.com>
2022-09-02CR_2071_audio_compatible_standard_515Walker Chen3-11/+9
Standardization naming of compatible for device id and dts Signed-off-by: Walker Chen <walker.chen@starfivetech.com>
2022-09-01sound:starfive:spdif:Modify compatible nameXingyu Wu1-3/+3
1.Modify compatible name to 'starfive,jh7110-spdif'. 2.Remove spdif-receiver node. Signed-off-by: Xingyu Wu <xingyu.wu@starfivetech.com>
2022-09-01sound:starfive:pwmdac:Modify compatible nameXingyu Wu2-4/+4
Modify compatible name to 'starfive,jh7110-pwmdac'. Signed-off-by: Xingyu Wu <xingyu.wu@starfivetech.com>
2022-08-26Merge branch 'CR_1560_v4l2_changhuang.liang' into 'jh7110-5.15.y-devel'andy.hu2-0/+0
CR_1560_v4l2_changhuang.liang v4l2: use axi wr reset See merge request sdk/linux!423
2022-08-26CR_1827_cannot_record_play_simultaneouslyWalker Chen7-44/+1153
1.Resolved playback and record can work simultaneously. 2.Rearrange audio configuration in kernel menu. Signed-off-by: Walker Chen <walker.chen@starfivetech.com>
2022-08-04Merge branch 'CR_1705_TDM_32bit_48k_NotWork_walker.chen' into ↵Jason Zhou1-25/+14
'jh7110-5.15.y-devel' CR_1705_TDM_32bit: fix 48k not work and can support 8k sample rate See merge request sdk/linux!347
2022-08-03sound:starfive:spdif:Adjust mclk rate under 22.05k sample rateXingyu Wu1-1/+13
Change audio_root clock's rate and make spdif_core clock close to the required frequency of 22.05k. Signed-off-by: Xingyu Wu <xingyu.wu@starfivetech.com>
2022-08-02CR_1705_TDM_32bit: fix 48k not work and can support 8k sample rateWalker Chen1-25/+14
1. Fix 48k sample rate not work. 2. Support 8k sample rate when using 32bit. Signed-off-by: Walker Chen <walker.chen@starfivetech.com>
2022-08-01sound:starfive:spdif:Remove apb0 clock controllerXingyu Wu2-33/+5
apb0 is the parent of spdif-apb clock and it should not be got and enabled. And audio_root and mclk_inner is divider clock, they should not be enabled. Signed-off-by: Xingyu Wu <xingyu.wu@starfivetech.com>
2022-08-01sound:starfive:spdif:Add S24_3LEXingyu Wu2-2/+21
support audio files of 24 bit in 3bytes. To adapt S24_3LE and ALSA pass parameter of S24_LE. Data operation of S24_LE should be same to S24_3LE. So it would wrong when playback S24_LE file. Signed-off-by: Xingyu Wu <xingyu.wu@starfivetech.com>
2022-07-28sound:starfive:spdif:Modify formatXingyu Wu3-83/+71
Modify files' format and remove capture. Signed-off-by: Xingyu Wu <xingyu.wu@starfivetech.com>
2022-07-28sound:starfive:spdif:Add single-channelXingyu Wu3-26/+71
Spdif supports single-channel audio playback. Signed-off-by: Xingyu Wu <xingyu.wu@starfivetech.com>
2022-07-28CR_1735_TDM: meet compatible testWalker Chen2-17/+12
1.Meeting compatible testing. 2.Supporting playback or record with 1 channel. Signed-off-by: Walker Chen <walker.chen@starfivetech.com>
2022-07-22Merge branch 'CR_1584_pwmdac_11025_compatible_issue_minda' into ↵Jason Zhou1-0/+4
'jh7110-5.15.y-devel' CR_1584 pwmdac:sound: support 11025hz sample rate. See merge request sdk/linux!275
2022-07-21pwmdac:sound: support 11025hz play mode.minda.chen1-0/+4
1. set the correct clock rate and sample cnt. 2. using aplay 11.025kz wave file can pass. 3. fix issue redmine 1584 Signed-off-by: minda.chen <minda.chen@starfivetech.com>