Linux-OMAP Archive on lore.kernel.org
 help / color / Atom feed
* omap-mcbsp 49022000.mcbsp: TX Buffer Overflow!
@ 2020-07-11  3:33 Dave Young
  2020-07-14 18:03 ` Jarkko Nikula
  0 siblings, 1 reply; 5+ messages in thread
From: Dave Young @ 2020-07-11  3:33 UTC (permalink / raw)
  To: Peter Ujfalusi, Jarkko Nikula, alsa-devel, linux-omap

Hi,

I'm trying to use g_audio on my Nokia N900 with mainline kernel. Seems
it does not work.  No sound when I play from a laptop, and also see a
lot of error like below:
[ 4729.557647] omap-mcbsp 49022000.mcbsp: TX Buffer Overflow!
...


Is this a know issue?

Thanks
Dave


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: omap-mcbsp 49022000.mcbsp: TX Buffer Overflow!
  2020-07-11  3:33 omap-mcbsp 49022000.mcbsp: TX Buffer Overflow! Dave Young
@ 2020-07-14 18:03 ` Jarkko Nikula
  2020-07-20  9:03   ` Peter Ujfalusi
  0 siblings, 1 reply; 5+ messages in thread
From: Jarkko Nikula @ 2020-07-14 18:03 UTC (permalink / raw)
  To: Dave Young, Peter Ujfalusi, alsa-devel, linux-omap


[-- Attachment #1: Type: text/plain, Size: 1042 bytes --]

Hi

On 7/11/20 6:33 AM, Dave Young wrote:
> Hi,
> 
> I'm trying to use g_audio on my Nokia N900 with mainline kernel. Seems
> it does not work.  No sound when I play from a laptop, and also see a
> lot of error like below:
> [ 4729.557647] omap-mcbsp 49022000.mcbsp: TX Buffer Overflow!
> ...
> 
Head 0dc589da873b ("Merge tag 'iommu-fixes-v5.8-rc5' of
git://git.kernel.org/pub/scm/linux/kernel/git/joro/iommu") records and
plays fine here (arecord -f dat |aplay), although I see some of those
errors but don't hear any glitches etc.

Peter, does above indicate a serious issue or is it perhaps a false
alarm on OMAP3 (no audible glitches)?

I believe you don't have some mixer knob on, N900 audio path is somewhat
complex and needs bunch of mixer switches and volumes to be set. I
attached my N900 mixer scripts for you to try.

Set first everything off:
./aic34_scripts/shutdown.sh

Then enable internal digital microphone and speakers:
./aic34_scripts/dmic.sh
./aic34_scripts/speakers.sh

Hopefully these help you get going :-)

-- 
Jarkko

[-- Attachment #2: aic34_scripts.tar.bz2 --]
[-- Type: application/octet-stream, Size: 1729 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: omap-mcbsp 49022000.mcbsp: TX Buffer Overflow!
  2020-07-14 18:03 ` Jarkko Nikula
@ 2020-07-20  9:03   ` Peter Ujfalusi
  2020-07-20  9:32     ` Peter Ujfalusi
  0 siblings, 1 reply; 5+ messages in thread
From: Peter Ujfalusi @ 2020-07-20  9:03 UTC (permalink / raw)
  To: Jarkko Nikula, Dave Young, alsa-devel, linux-omap

Hi,

On 14/07/2020 21.03, Jarkko Nikula wrote:
> Hi
> 
> On 7/11/20 6:33 AM, Dave Young wrote:
>> Hi,
>>
>> I'm trying to use g_audio on my Nokia N900 with mainline kernel. Seems
>> it does not work.  No sound when I play from a laptop, and also see a
>> lot of error like below:
>> [ 4729.557647] omap-mcbsp 49022000.mcbsp: TX Buffer Overflow!
>> ...
>>
> Head 0dc589da873b ("Merge tag 'iommu-fixes-v5.8-rc5' of
> git://git.kernel.org/pub/scm/linux/kernel/git/joro/iommu") records and
> plays fine here (arecord -f dat |aplay), although I see some of those
> errors but don't hear any glitches etc.
> 
> Peter, does above indicate a serious issue or is it perhaps a false
> alarm on OMAP3 (no audible glitches)?

I need to dig out my n900 or beagleXM, but it is hard to believe it is
not a result of a glitch.
The DMA is triggered by McBSP and it should write exactly what McBSP
expects to be receiving.

I can not recall any changes in the past years which would have
introduced regressions in McBSP or the sDMA driver.

> I believe you don't have some mixer knob on, N900 audio path is somewhat
> complex and needs bunch of mixer switches and volumes to be set. I
> attached my N900 mixer scripts for you to try.

This could be the reason for the silence, I have asoundrc files
somewhere to restore a 'good' mixer config.

> Set first everything off:
> ./aic34_scripts/shutdown.sh
> 
> Then enable internal digital microphone and speakers:
> ./aic34_scripts/dmic.sh
> ./aic34_scripts/speakers.sh
> 
> Hopefully these help you get going :-)
> 

- Péter

Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki.
Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: omap-mcbsp 49022000.mcbsp: TX Buffer Overflow!
  2020-07-20  9:03   ` Peter Ujfalusi
@ 2020-07-20  9:32     ` Peter Ujfalusi
  2020-07-21  3:18       ` Dave Young
  0 siblings, 1 reply; 5+ messages in thread
From: Peter Ujfalusi @ 2020-07-20  9:32 UTC (permalink / raw)
  To: Jarkko Nikula, Dave Young, alsa-devel, linux-omap

Hi,

On 20/07/2020 12.03, Peter Ujfalusi wrote:
> Hi,
> 
> On 14/07/2020 21.03, Jarkko Nikula wrote:
>> Hi
>>
>> On 7/11/20 6:33 AM, Dave Young wrote:
>>> Hi,
>>>
>>> I'm trying to use g_audio on my Nokia N900 with mainline kernel. Seems
>>> it does not work.  No sound when I play from a laptop, and also see a
>>> lot of error like below:
>>> [ 4729.557647] omap-mcbsp 49022000.mcbsp: TX Buffer Overflow!
>>> ...
>>>
>> Head 0dc589da873b ("Merge tag 'iommu-fixes-v5.8-rc5' of
>> git://git.kernel.org/pub/scm/linux/kernel/git/joro/iommu") records and
>> plays fine here (arecord -f dat |aplay), although I see some of those
>> errors but don't hear any glitches etc.
>>
>> Peter, does above indicate a serious issue or is it perhaps a false
>> alarm on OMAP3 (no audible glitches)?
> 
> I need to dig out my n900 or beagleXM, but it is hard to believe it is
> not a result of a glitch.
> The DMA is triggered by McBSP and it should write exactly what McBSP
> expects to be receiving.
> 
> I can not recall any changes in the past years which would have
> introduced regressions in McBSP or the sDMA driver.

I have booted linux-next on my BeagleXM (OMAP3630, McBSP2 <-> twl4030)
and I don't see the TX overflow print.

I have checked element and threshold modes and it looks fine.
I'm not sure why we have TX Overflow printed on n900.

>> I believe you don't have some mixer knob on, N900 audio path is somewhat
>> complex and needs bunch of mixer switches and volumes to be set. I
>> attached my N900 mixer scripts for you to try.
> 
> This could be the reason for the silence, I have asoundrc files
> somewhere to restore a 'good' mixer config.
> 
>> Set first everything off:
>> ./aic34_scripts/shutdown.sh
>>
>> Then enable internal digital microphone and speakers:
>> ./aic34_scripts/dmic.sh
>> ./aic34_scripts/speakers.sh
>>
>> Hopefully these help you get going :-)
>>
> 
> - Péter
> 
> Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki.
> Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki
> 

- Péter

Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki.
Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: omap-mcbsp 49022000.mcbsp: TX Buffer Overflow!
  2020-07-20  9:32     ` Peter Ujfalusi
@ 2020-07-21  3:18       ` Dave Young
  0 siblings, 0 replies; 5+ messages in thread
From: Dave Young @ 2020-07-21  3:18 UTC (permalink / raw)
  To: Peter Ujfalusi; +Cc: Jarkko Nikula, alsa-devel, linux-omap

Hi Peter
On 07/20/20 at 12:32pm, Peter Ujfalusi wrote:
> Hi,
> 
> On 20/07/2020 12.03, Peter Ujfalusi wrote:
> > Hi,
> > 
> > On 14/07/2020 21.03, Jarkko Nikula wrote:
> >> Hi
> >>
> >> On 7/11/20 6:33 AM, Dave Young wrote:
> >>> Hi,
> >>>
> >>> I'm trying to use g_audio on my Nokia N900 with mainline kernel. Seems
> >>> it does not work.  No sound when I play from a laptop, and also see a
> >>> lot of error like below:
> >>> [ 4729.557647] omap-mcbsp 49022000.mcbsp: TX Buffer Overflow!
> >>> ...
> >>>
> >> Head 0dc589da873b ("Merge tag 'iommu-fixes-v5.8-rc5' of
> >> git://git.kernel.org/pub/scm/linux/kernel/git/joro/iommu") records and
> >> plays fine here (arecord -f dat |aplay), although I see some of those
> >> errors but don't hear any glitches etc.
> >>
> >> Peter, does above indicate a serious issue or is it perhaps a false
> >> alarm on OMAP3 (no audible glitches)?
> > 
> > I need to dig out my n900 or beagleXM, but it is hard to believe it is
> > not a result of a glitch.
> > The DMA is triggered by McBSP and it should write exactly what McBSP
> > expects to be receiving.
> > 
> > I can not recall any changes in the past years which would have
> > introduced regressions in McBSP or the sDMA driver.
> 
> I have booted linux-next on my BeagleXM (OMAP3630, McBSP2 <-> twl4030)
> and I don't see the TX overflow print.

Just to clarify, the sound works well on n900 for normal use cases.
The TX overflow only happens when I use it as an usb audio gadget.
Because n900 is old, I tried to use it as an external audio device.

> 
> I have checked element and threshold modes and it looks fine.
> I'm not sure why we have TX Overflow printed on n900.
> 
> >> I believe you don't have some mixer knob on, N900 audio path is somewhat
> >> complex and needs bunch of mixer switches and volumes to be set. I
> >> attached my N900 mixer scripts for you to try.
> > 
> > This could be the reason for the silence, I have asoundrc files
> > somewhere to restore a 'good' mixer config.
> > 
> >> Set first everything off:
> >> ./aic34_scripts/shutdown.sh
> >>
> >> Then enable internal digital microphone and speakers:
> >> ./aic34_scripts/dmic.sh
> >> ./aic34_scripts/speakers.sh
> >>
> >> Hopefully these help you get going :-)
> >>
> > 
> > - Péter
> > 
> > Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki.
> > Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki
> > 
> 
> - Péter
> 
> Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki.
> Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki
> 

Thanks
Dave


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, back to index

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-11  3:33 omap-mcbsp 49022000.mcbsp: TX Buffer Overflow! Dave Young
2020-07-14 18:03 ` Jarkko Nikula
2020-07-20  9:03   ` Peter Ujfalusi
2020-07-20  9:32     ` Peter Ujfalusi
2020-07-21  3:18       ` Dave Young

Linux-OMAP Archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/linux-omap/0 linux-omap/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 linux-omap linux-omap/ https://lore.kernel.org/linux-omap \
		linux-omap@vger.kernel.org
	public-inbox-index linux-omap

Example config snippet for mirrors

Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/org.kernel.vger.linux-omap


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git