Re: Artifacts present in AIC23 capture for 48 KHz sampling rate

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

 



> -----Original Message-----
> From: Aggarwal, Anuj
> Sent: Friday, November 06, 2009 6:28 PM
> To: alsa-devel@xxxxxxxxxxxxxxxx; 'linux-omap@xxxxxxxxxxxxxxx'
> Subject: Artifacts present in AIC23 capture for 48 KHz sampling rate
> 
> Hi,
> 
> I am observing artifacts (sharp spikes at fixed intervals) while
> capturing audio on AM3517 EVM and AIC23 codec. They are present only
> in one of the channels when I am capturing at 48 KHz. All other
> sampling rates are working fine with the above said combination.
> 
> I have also attached the screenshot taken with the help of Audacity
> utility. Here, I tried recording silence but artifacts were observed
> on one channel.
> 
> Has anyone also observed the similar behavior with AIC23 codec? Any
> hints on what could be the root cause?
[Aggarwal, Anuj] On further debugging, I found that the function
find_rate() in sound/soc/codecs/tlv320aic23.c is not returning 
the correct value for capture in 48KHz sample rate. In USB mode
(MCLK=12MHz), for 48KHz, it returns 0x7D (CLKOUT=0, CLKIN=1, 
SR[3:0]=0xF, BOSR=1, Normal=1) whereas as per the AIC23B spec, 
it should have been 0x5D (CLKOUT=0, CLKIN=1, SR[3:0]=0x7, 
BOSR=1, Normal=1). When I forcefully write the above said value
to the Sample Rate Control register, things work fine for me
for 48KHz capture.
Is my understanding correct for this problem? Can someone help
me understand how the function calculates the appropriate value?
> 
> Regards,
> Anuj Aggarwal

_______________________________________________
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