* AIC23 SOC Driver on OSK5912
@ 2008-10-07 11:48 Jesslyn Abdul Salam
2008-10-07 11:54 ` Mark Brown
0 siblings, 1 reply; 10+ messages in thread
From: Jesslyn Abdul Salam @ 2008-10-07 11:48 UTC (permalink / raw)
To: alsa-devel
Hi all,
I have been trying to use the AIC23 ALSA SoC driver for OSK5912 for the past
few days. I got the driver patch from the linux-omap/alsa-devel mailing
lists. The driver got compiled along just fine. But when the kernel boots,
no sound cards have been listed.
Advanced Linux Sound Architecture Driver Version 1.0.17.
ASoC version
0.13.2
AIC23 Audio Codec
0.1
MCLK = 12000000 [12000000], usecount =
0
ALSA device
list:
No soundcards
found.
Any one have tested this before ?
- Jesslyn Abdul Salam
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: AIC23 SOC Driver on OSK5912
2008-10-07 11:48 AIC23 SOC Driver on OSK5912 Jesslyn Abdul Salam
@ 2008-10-07 11:54 ` Mark Brown
2008-10-07 12:02 ` Arun KS
0 siblings, 1 reply; 10+ messages in thread
From: Mark Brown @ 2008-10-07 11:54 UTC (permalink / raw)
To: Jesslyn Abdul Salam; +Cc: alsa-devel, Arun KS
On Tue, Oct 07, 2008 at 05:18:55PM +0530, Jesslyn Abdul Salam wrote:
> I have been trying to use the AIC23 ALSA SoC driver for OSK5912 for the past
> few days. I got the driver patch from the linux-omap/alsa-devel mailing
> lists. The driver got compiled along just fine. But when the kernel boots,
> no sound cards have been listed.
CCing in Arun KS <arunks@mistralsolutions.com> who contributed that
support.
> Advanced Linux Sound Architecture Driver Version 1.0.17.
> ASoC version
> 0.13.2
> AIC23 Audio Codec
> 0.1
> MCLK = 12000000 [12000000], usecount =
> 0
> ALSA device
> list:
> No soundcards
> found.
> Any one have tested this before ?
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: AIC23 SOC Driver on OSK5912
2008-10-07 11:54 ` Mark Brown
@ 2008-10-07 12:02 ` Arun KS
[not found] ` <e762f7a90810070506q2d4e299eqe2d6d9bc515aeec0@mail.gmail.com>
0 siblings, 1 reply; 10+ messages in thread
From: Arun KS @ 2008-10-07 12:02 UTC (permalink / raw)
To: Mark Brown; +Cc: alsa-devel, Jesslyn Abdul Salam
On Tue, Oct 7, 2008 at 5:24 PM, Mark Brown <broonie@sirena.org.uk> wrote:
> On Tue, Oct 07, 2008 at 05:18:55PM +0530, Jesslyn Abdul Salam wrote:
>
>> I have been trying to use the AIC23 ALSA SoC driver for OSK5912 for the past
>> few days. I got the driver patch from the linux-omap/alsa-devel mailing
>> lists. The driver got compiled along just fine. But when the kernel boots,
>> no sound cards have been listed.
>
> CCing in Arun KS <arunks@mistralsolutions.com> who contributed that
> support.
>
>> Advanced Linux Sound Architecture Driver Version 1.0.17.
>
>> ASoC version
>> 0.13.2
>> AIC23 Audio Codec
>> 0.1
>> MCLK = 12000000 [12000000], usecount =
>> 0
>> ALSA device
>> list:
>> No soundcards
>> found.
>
>> Any one have tested this before ?
Can you check i2c?
# cat /sys/bus/i2c/devices/1-001b/name
tlv320aic23
> _______________________________________________
> Alsa-devel mailing list
> Alsa-devel@alsa-project.org
> http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
>
^ permalink raw reply [flat|nested] 10+ messages in thread
* Fwd: AIC23 SOC Driver on OSK5912
[not found] ` <e762f7a90810070506q2d4e299eqe2d6d9bc515aeec0@mail.gmail.com>
@ 2008-10-07 12:06 ` Jesslyn Abdul Salam
2008-10-07 12:18 ` Jesslyn Abdul Salam
2008-10-07 12:19 ` Fwd: " Arun KS
0 siblings, 2 replies; 10+ messages in thread
From: Jesslyn Abdul Salam @ 2008-10-07 12:06 UTC (permalink / raw)
To: alsa-devel
---------- Forwarded message ----------
From: Jesslyn Abdul Salam <jesslyn.abdulsalam@gmail.com>
Date: Tue, Oct 7, 2008 at 5:36 PM
Subject: Re: [alsa-devel] AIC23 SOC Driver on OSK5912
To: Arun KS <arunks@mistralsolutions.com>
Yes, it is there. but it shows as "tlv320aic23b" instead of "tlv320aic" Will
that be the reason ????
On Tue, Oct 7, 2008 at 5:32 PM, Arun KS <arunks@mistralsolutions.com> wrote:
> On Tue, Oct 7, 2008 at 5:24 PM, Mark Brown <broonie@sirena.org.uk> wrote:
> > On Tue, Oct 07, 2008 at 05:18:55PM +0530, Jesslyn Abdul Salam wrote:
> >
> >> I have been trying to use the AIC23 ALSA SoC driver for OSK5912 for the
> past
> >> few days. I got the driver patch from the linux-omap/alsa-devel mailing
> >> lists. The driver got compiled along just fine. But when the kernel
> boots,
> >> no sound cards have been listed.
> >
> > CCing in Arun KS <arunks@mistralsolutions.com> who contributed that
> > support.
> >
> >> Advanced Linux Sound Architecture Driver Version 1.0.17.
> >
> >> ASoC version
> >> 0.13.2
> >> AIC23 Audio Codec
> >> 0.1
> >> MCLK = 12000000 [12000000], usecount =
> >> 0
> >> ALSA device
> >> list:
> >> No soundcards
> >> found.
> >
> >> Any one have tested this before ?
>
> Can you check i2c?
>
> # cat /sys/bus/i2c/devices/1-001b/name
> tlv320aic23
>
> > _______________________________________________
> > Alsa-devel mailing list
> > Alsa-devel@alsa-project.org
> > http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
> >
>
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: AIC23 SOC Driver on OSK5912
2008-10-07 12:06 ` Fwd: " Jesslyn Abdul Salam
@ 2008-10-07 12:18 ` Jesslyn Abdul Salam
[not found] ` <48EB6820.3090809@mistralsolutions.com>
2008-10-07 12:19 ` Fwd: " Arun KS
1 sibling, 1 reply; 10+ messages in thread
From: Jesslyn Abdul Salam @ 2008-10-07 12:18 UTC (permalink / raw)
To: alsa-devel
I got it working. I2C_BOARD_INFO macro was wrongly intialized. Instead of
tlv320aic23 i had written tlvaic23. Thanks to Arun for pointing this error
Jesslyn Abdul Salam
On Tue, Oct 7, 2008 at 5:36 PM, Jesslyn Abdul Salam <
jesslyn.abdulsalam@gmail.com> wrote:
>
>
> ---------- Forwarded message ----------
> From: Jesslyn Abdul Salam <jesslyn.abdulsalam@gmail.com>
> Date: Tue, Oct 7, 2008 at 5:36 PM
> Subject: Re: [alsa-devel] AIC23 SOC Driver on OSK5912
> To: Arun KS <arunks@mistralsolutions.com>
>
>
> Yes, it is there. but it shows as "tlv320aic23b" instead of "tlv320aic"
> Will that be the reason ????
>
>
>
>
> On Tue, Oct 7, 2008 at 5:32 PM, Arun KS <arunks@mistralsolutions.com>wrote:
>
>> On Tue, Oct 7, 2008 at 5:24 PM, Mark Brown <broonie@sirena.org.uk> wrote:
>> > On Tue, Oct 07, 2008 at 05:18:55PM +0530, Jesslyn Abdul Salam wrote:
>> >
>> >> I have been trying to use the AIC23 ALSA SoC driver for OSK5912 for the
>> past
>> >> few days. I got the driver patch from the linux-omap/alsa-devel mailing
>> >> lists. The driver got compiled along just fine. But when the kernel
>> boots,
>> >> no sound cards have been listed.
>> >
>> > CCing in Arun KS <arunks@mistralsolutions.com> who contributed that
>> > support.
>> >
>> >> Advanced Linux Sound Architecture Driver Version 1.0.17.
>> >
>> >> ASoC version
>> >> 0.13.2
>> >> AIC23 Audio Codec
>> >> 0.1
>> >> MCLK = 12000000 [12000000], usecount =
>> >> 0
>> >> ALSA device
>> >> list:
>> >> No soundcards
>> >> found.
>> >
>> >> Any one have tested this before ?
>>
>> Can you check i2c?
>>
>> # cat /sys/bus/i2c/devices/1-001b/name
>> tlv320aic23
>>
>> > _______________________________________________
>> > Alsa-devel mailing list
>> > Alsa-devel@alsa-project.org
>> > http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
>> >
>>
>
>
>
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Fwd: AIC23 SOC Driver on OSK5912
2008-10-07 12:06 ` Fwd: " Jesslyn Abdul Salam
2008-10-07 12:18 ` Jesslyn Abdul Salam
@ 2008-10-07 12:19 ` Arun KS
1 sibling, 0 replies; 10+ messages in thread
From: Arun KS @ 2008-10-07 12:19 UTC (permalink / raw)
To: Jesslyn Abdul Salam; +Cc: alsa-devel
On Tue, Oct 7, 2008 at 5:36 PM, Jesslyn Abdul Salam
<jesslyn.abdulsalam@gmail.com> wrote:
> ---------- Forwarded message ----------
> From: Jesslyn Abdul Salam <jesslyn.abdulsalam@gmail.com>
> Date: Tue, Oct 7, 2008 at 5:36 PM
> Subject: Re: [alsa-devel] AIC23 SOC Driver on OSK5912
> To: Arun KS <arunks@mistralsolutions.com>
>
>
> Yes, it is there. but it shows as "tlv320aic23b" instead of "tlv320aic" Will
> that be the reason ????
Yes. Change it to tlv320aic23. Hope it is in the board file.
arch/arm/mach-omap1/board-osk.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/arch/arm/mach-omap1/board-osk.c b/arch/arm/mach-omap1/board-osk.c
index 3e766e4..e506aef 100644
--- a/arch/arm/mach-omap1/board-osk.c
+++ b/arch/arm/mach-omap1/board-osk.c
@@ -258,8 +258,10 @@ static struct i2c_board_info __initdata
osk_i2c_board_info[] = {
.platform_data = &tps_board,
},
+ {
+ I2C_BOARD_INFO("tlv320aic23", 0x1B),
+ },
/* TODO when driver support is ready:
- * - aic23 audio chip at 0x1a
* - on Mistral, 24c04 eeprom at 0x50
* - optionally on Mistral, ov9640 camera sensor at 0x30
*/
-- 1.5.3.4
>
>
> On Tue, Oct 7, 2008 at 5:32 PM, Arun KS <arunks@mistralsolutions.com> wrote:
>
>> On Tue, Oct 7, 2008 at 5:24 PM, Mark Brown <broonie@sirena.org.uk> wrote:
>> > On Tue, Oct 07, 2008 at 05:18:55PM +0530, Jesslyn Abdul Salam wrote:
>> >
>> >> I have been trying to use the AIC23 ALSA SoC driver for OSK5912 for the
>> past
>> >> few days. I got the driver patch from the linux-omap/alsa-devel mailing
>> >> lists. The driver got compiled along just fine. But when the kernel
>> boots,
>> >> no sound cards have been listed.
>> >
>> > CCing in Arun KS <arunks@mistralsolutions.com> who contributed that
>> > support.
>> >
>> >> Advanced Linux Sound Architecture Driver Version 1.0.17.
>> >
>> >> ASoC version
>> >> 0.13.2
>> >> AIC23 Audio Codec
>> >> 0.1
>> >> MCLK = 12000000 [12000000], usecount =
>> >> 0
>> >> ALSA device
>> >> list:
>> >> No soundcards
>> >> found.
>> >
>> >> Any one have tested this before ?
>>
>> Can you check i2c?
>>
>> # cat /sys/bus/i2c/devices/1-001b/name
>> tlv320aic23
>>
>> > _______________________________________________
>> > Alsa-devel mailing list
>> > Alsa-devel@alsa-project.org
>> > http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
>> >
>>
> _______________________________________________
> Alsa-devel mailing list
> Alsa-devel@alsa-project.org
> http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
>
^ permalink raw reply related [flat|nested] 10+ messages in thread
* Re: AIC23 SOC Driver on OSK5912
[not found] ` <48EB6820.3090809@mistralsolutions.com>
@ 2008-10-07 13:50 ` Jesslyn Abdul Salam
2008-10-07 15:09 ` [alsa-devel] " Arun KS
0 siblings, 1 reply; 10+ messages in thread
From: Jesslyn Abdul Salam @ 2008-10-07 13:50 UTC (permalink / raw)
To: Arun KS; +Cc: alsa-devel
Not yet. Would please share what you have done to make it work ? Also when I
tried to strace aplay , it keeps looking for a
</share/alsa/cards/tlv320aic23.conf> file which is not there in the alsa-lib
package. Any idea what goes in that file ?
Regards
Jesslyn
On Tue, Oct 7, 2008 at 7:16 PM, Arun KS <arunks@mistralsolutions.com> wrote:
> Jesslyn Abdul Salam wrote:
>
>> I got it working. I2C_BOARD_INFO macro was wrongly intialized. Instead of
>> tlv320aic23 i had written tlvaic23. Thanks to Arun for pointing this error
>>
>>
> Can you hear audio playing?
> Because i had done some hack to make it working in 5912osk.
> I want to know you are not facing it or not.
>
> Arun
>
> Jesslyn Abdul Salam
>>
>>
>> On Tue, Oct 7, 2008 at 5:36 PM, Jesslyn Abdul Salam <
>> jesslyn.abdulsalam@gmail.com> wrote:
>>
>>
>>
>>> ---------- Forwarded message ----------
>>> From: Jesslyn Abdul Salam <jesslyn.abdulsalam@gmail.com>
>>> Date: Tue, Oct 7, 2008 at 5:36 PM
>>> Subject: Re: [alsa-devel] AIC23 SOC Driver on OSK5912
>>> To: Arun KS <arunks@mistralsolutions.com>
>>>
>>>
>>> Yes, it is there. but it shows as "tlv320aic23b" instead of "tlv320aic"
>>> Will that be the reason ????
>>>
>>>
>>>
>>>
>>> On Tue, Oct 7, 2008 at 5:32 PM, Arun KS <arunks@mistralsolutions.com
>>> >wrote:
>>>
>>>
>>>
>>>> On Tue, Oct 7, 2008 at 5:24 PM, Mark Brown <broonie@sirena.org.uk>
>>>> wrote:
>>>>
>>>>
>>>>> On Tue, Oct 07, 2008 at 05:18:55PM +0530, Jesslyn Abdul Salam wrote:
>>>>>
>>>>>
>>>>>
>>>>>> I have been trying to use the AIC23 ALSA SoC driver for OSK5912 for
>>>>>> the
>>>>>>
>>>>>>
>>>>> past
>>>>
>>>>
>>>>> few days. I got the driver patch from the linux-omap/alsa-devel mailing
>>>>>> lists. The driver got compiled along just fine. But when the kernel
>>>>>>
>>>>>>
>>>>> boots,
>>>>
>>>>
>>>>> no sound cards have been listed.
>>>>>>
>>>>>>
>>>>> CCing in Arun KS <arunks@mistralsolutions.com> who contributed that
>>>>> support.
>>>>>
>>>>>
>>>>>
>>>>>> Advanced Linux Sound Architecture Driver Version 1.0.17.
>>>>>> ASoC version
>>>>>> 0.13.2
>>>>>> AIC23 Audio Codec
>>>>>> 0.1
>>>>>> MCLK = 12000000 [12000000], usecount =
>>>>>> 0
>>>>>> ALSA device
>>>>>> list:
>>>>>> No soundcards
>>>>>> found.
>>>>>> Any one have tested this before ?
>>>>>>
>>>>>>
>>>>> Can you check i2c?
>>>>
>>>> # cat /sys/bus/i2c/devices/1-001b/name
>>>> tlv320aic23
>>>>
>>>>
>>>>
>>>>> _______________________________________________
>>>>> Alsa-devel mailing list
>>>>> Alsa-devel@alsa-project.org
>>>>> http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
>>>>>
>>>>>
>>>>>
>>>>
>>>
>>>
>> _______________________________________________
>> Alsa-devel mailing list
>> Alsa-devel@alsa-project.org
>> http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
>>
>>
>>
>>
>
>
> Please do not print this email unless it is absolutely necessary. Spread
> environmental awareness.
>
>
> -------------------------------------------------------DISCLAIMER------------------------------------------------------
> The information transmitted herewith is confidential and proprietary
> information intended only for use by the individual or entity to which it is
> addressed. If the reader of this message is not the intended recipient, you
> are hereby notified that any review, retransmission, dissemination,
> distribution, copying or other use of, or taking of any action in reliance
> upon this information is strictly prohibited. If you have received this
> communication in error, please contact the sender and delete the material
> from your computer.
>
> --------------------------------------------------------------------------------------------------------------------------------
>
>
>
>
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [alsa-devel] AIC23 SOC Driver on OSK5912
2008-10-07 13:50 ` Jesslyn Abdul Salam
@ 2008-10-07 15:09 ` Arun KS
2008-10-07 15:12 ` Mark Brown
2008-10-08 10:42 ` Jesslyn Abdul Salam
0 siblings, 2 replies; 10+ messages in thread
From: Arun KS @ 2008-10-07 15:09 UTC (permalink / raw)
To: Jesslyn Abdul Salam; +Cc: alsa-devel, linux-omap@vger.kernel.org List
On Tue, Oct 7, 2008 at 7:20 PM, Jesslyn Abdul Salam
<jesslyn.abdulsalam@gmail.com> wrote:
> Not yet. Would please share what you have done to make it work ? Also when I
> tried to strace aplay , it keeps looking for a
> </share/alsa/cards/tlv320aic23.conf> file which is not there in the alsa-lib
> package. Any idea what goes in that file ?
CCing in l-o mailing list too.
I dont know about that file. I didnt face that issue.
This is what i did to make it working. I guess its some omap1 related issue.
This makes the omap_mcbsp_request(0) at boot time, instead of runtime.
diff --git a/sound/soc/omap/omap-mcbsp.c b/sound/soc/omap/omap-mcbsp.c
index 3a4cc4b..6369703 100644
--- a/sound/soc/omap/omap-mcbsp.c
+++ b/sound/soc/omap/omap-mcbsp.c
@@ -151,8 +151,8 @@ static int omap_mcbsp_dai_startup(struct
snd_pcm_substream *substream)
struct omap_mcbsp_data *mcbsp_data = to_mcbsp(cpu_dai->private_data);
int err = 0;
- if (!cpu_dai->active)
- err = omap_mcbsp_request(mcbsp_data->bus_id);
+// if (!cpu_dai->active)
+// err = omap_mcbsp_request(mcbsp_data->bus_id);
return err;
}
@@ -164,7 +164,7 @@ static void omap_mcbsp_dai_shutdown(struct
snd_pcm_substream *substream)
struct omap_mcbsp_data *mcbsp_data = to_mcbsp(cpu_dai->private_data);
if (!cpu_dai->active) {
- omap_mcbsp_free(mcbsp_data->bus_id);
+// omap_mcbsp_free(mcbsp_data->bus_id);
mcbsp_data->configured = 0;
}
}
diff --git a/sound/soc/omap/osk5912.c b/sound/soc/omap/osk5912.c
index 9477d18..98f1566 100644
--- a/sound/soc/omap/osk5912.c
+++ b/sound/soc/omap/osk5912.c
@@ -209,6 +209,7 @@ static int __init osk_soc_init(void)
(uint) clk_get_rate(tlv320aic23_mclk), CODEC_CLOCK,
clk_get_usecount(tlv320aic23_mclk));
+ omap_mcbsp_request(0);
return 0;
err1:
>
> Regards
>
> Jesslyn
>
> On Tue, Oct 7, 2008 at 7:16 PM, Arun KS <arunks@mistralsolutions.com> wrote:
>
>> Jesslyn Abdul Salam wrote:
>>
>>> I got it working. I2C_BOARD_INFO macro was wrongly intialized. Instead of
>>> tlv320aic23 i had written tlvaic23. Thanks to Arun for pointing this error
>>>
>>>
>> Can you hear audio playing?
>> Because i had done some hack to make it working in 5912osk.
>> I want to know you are not facing it or not.
>>
>> Arun
>>
>> Jesslyn Abdul Salam
>>>
>>>
>>> On Tue, Oct 7, 2008 at 5:36 PM, Jesslyn Abdul Salam <
>>> jesslyn.abdulsalam@gmail.com> wrote:
>>>
>>>
>>>
>>>> ---------- Forwarded message ----------
>>>> From: Jesslyn Abdul Salam <jesslyn.abdulsalam@gmail.com>
>>>> Date: Tue, Oct 7, 2008 at 5:36 PM
>>>> Subject: Re: [alsa-devel] AIC23 SOC Driver on OSK5912
>>>> To: Arun KS <arunks@mistralsolutions.com>
>>>>
>>>>
>>>> Yes, it is there. but it shows as "tlv320aic23b" instead of "tlv320aic"
>>>> Will that be the reason ????
>>>>
>>>>
>>>>
>>>>
>>>> On Tue, Oct 7, 2008 at 5:32 PM, Arun KS <arunks@mistralsolutions.com
>>>> >wrote:
>>>>
>>>>
>>>>
>>>>> On Tue, Oct 7, 2008 at 5:24 PM, Mark Brown <broonie@sirena.org.uk>
>>>>> wrote:
>>>>>
>>>>>
>>>>>> On Tue, Oct 07, 2008 at 05:18:55PM +0530, Jesslyn Abdul Salam wrote:
>>>>>>
>>>>>>
>>>>>>
>>>>>>> I have been trying to use the AIC23 ALSA SoC driver for OSK5912 for
>>>>>>> the
>>>>>>>
>>>>>>>
>>>>>> past
>>>>>
>>>>>
>>>>>> few days. I got the driver patch from the linux-omap/alsa-devel mailing
>>>>>>> lists. The driver got compiled along just fine. But when the kernel
>>>>>>>
>>>>>>>
>>>>>> boots,
>>>>>
>>>>>
>>>>>> no sound cards have been listed.
>>>>>>>
>>>>>>>
>>>>>> CCing in Arun KS <arunks@mistralsolutions.com> who contributed that
>>>>>> support.
>>>>>>
>>>>>>
>>>>>>
>>>>>>> Advanced Linux Sound Architecture Driver Version 1.0.17.
>>>>>>> ASoC version
>>>>>>> 0.13.2
>>>>>>> AIC23 Audio Codec
>>>>>>> 0.1
>>>>>>> MCLK = 12000000 [12000000], usecount =
>>>>>>> 0
>>>>>>> ALSA device
>>>>>>> list:
>>>>>>> No soundcards
>>>>>>> found.
>>>>>>> Any one have tested this before ?
>>>>>>>
>>>>>>>
>>>>>> Can you check i2c?
>>>>>
>>>>> # cat /sys/bus/i2c/devices/1-001b/name
>>>>> tlv320aic23
>>>>>
>>>>>
>>>>>
>>>>>> _______________________________________________
>>>>>> Alsa-devel mailing list
>>>>>> Alsa-devel@alsa-project.org
>>>>>> http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>
>>>>
>>> _______________________________________________
>>> Alsa-devel mailing list
>>> Alsa-devel@alsa-project.org
>>> http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
>>>
>>>
>>>
>>>
>>
>>
>> Please do not print this email unless it is absolutely necessary. Spread
>> environmental awareness.
>>
>>
>> -------------------------------------------------------DISCLAIMER------------------------------------------------------
>> The information transmitted herewith is confidential and proprietary
>> information intended only for use by the individual or entity to which it is
>> addressed. If the reader of this message is not the intended recipient, you
>> are hereby notified that any review, retransmission, dissemination,
>> distribution, copying or other use of, or taking of any action in reliance
>> upon this information is strictly prohibited. If you have received this
>> communication in error, please contact the sender and delete the material
>> from your computer.
>>
>> --------------------------------------------------------------------------------------------------------------------------------
>>
>>
>>
>>
> _______________________________________________
> Alsa-devel mailing list
> Alsa-devel@alsa-project.org
> http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
>
^ permalink raw reply related [flat|nested] 10+ messages in thread
* Re: AIC23 SOC Driver on OSK5912
2008-10-07 15:09 ` [alsa-devel] " Arun KS
@ 2008-10-07 15:12 ` Mark Brown
2008-10-08 10:42 ` Jesslyn Abdul Salam
1 sibling, 0 replies; 10+ messages in thread
From: Mark Brown @ 2008-10-07 15:12 UTC (permalink / raw)
To: Arun KS; +Cc: alsa-devel, linux-omap@vger.kernel.org List, Jesslyn Abdul Salam
On Tue, Oct 07, 2008 at 08:39:07PM +0530, Arun KS wrote:
> On Tue, Oct 7, 2008 at 7:20 PM, Jesslyn Abdul Salam
> > Not yet. Would please share what you have done to make it work ? Also when I
> > tried to strace aplay , it keeps looking for a
> > </share/alsa/cards/tlv320aic23.conf> file which is not there in the alsa-lib
> > package. Any idea what goes in that file ?
> CCing in l-o mailing list too.
> I dont know about that file. I didnt face that issue.
It's perfectly normal to check that file, it doesn't need to be there -
it contains optional ALSA control configuration for the card in the same
format as the other files in there. Note that usually it'd appear in
/usr/share rather than /usr, this may indicate that your ALSA user space
is not configured as one would expect.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: AIC23 SOC Driver on OSK5912
2008-10-07 15:09 ` [alsa-devel] " Arun KS
2008-10-07 15:12 ` Mark Brown
@ 2008-10-08 10:42 ` Jesslyn Abdul Salam
1 sibling, 0 replies; 10+ messages in thread
From: Jesslyn Abdul Salam @ 2008-10-08 10:42 UTC (permalink / raw)
To: Arun KS; +Cc: alsa-devel
Hi Arun,
Thanks for the update! Finally i was able to play a wav file without
much problems.
But i came across few difficulties. Most probably it is due to the way
i built the alsa-libs and alsa-utils.
Earlier when i tried to play a sample wav file this was the result.
[root@osk5912 /]# aplay openal-1.wav
ALSA lib dlmisc.c:118:(snd_dlsym_verify) unable to verify version for
symbol _snd_pcm_empty_open
ALSA lib pcm.c:2148:(snd_pcm_open_conf) symbol _snd_pcm_empty_open is
not defined inside [builtin]
aplay: main:583: audio open error: No such device or address
[root@osk5912 /]#
Then I figured out we need to set the device when playing.
[root@osk5912 /]# aplay -D hw:0,0 openal-1.wav
Playing WAVE 'openal-1.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo
(it plays)
I tried encoding a wav file from a mp3 file and played using aplay
[root@osk5912 /]# aplay -D hw:0,0 rock.wav
Playing WAVE 'rock.wav' : Signed 32 bit Little Endian, Rate 44100 Hz, Stereo
aplay: set_params:954: Sample format non available
[root@osk5912 /]#
This file is 32bit and the previous one is 16. I reencoded the wav
file using the gstreamer to change the depth to 16bit
[root@osk5912 /]# aplay -D hw:0,0 rock2.wav
Playing WAVE 'rock2.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo
(it plays file even though reencoding was not proper)
Then i tried sample files found in alsa-lib.
[root@osk5912 /]# aplay -D hw:0,0 Side_Left.wav
Playing WAVE 'Side_Left.wav' : Signed 16 bit Little Endian, Rate 48000 Hz, Mono
aplay: set_params:959: Channels count non available
[root@osk5912 /]#
So it cannot play MONO and 32 bit files ?? Any ideas how to fix this
are welcome !!!!
- Jesslyn
On Tue, Oct 7, 2008 at 8:39 PM, Arun KS <arunks@mistralsolutions.com> wrote:
>
> On Tue, Oct 7, 2008 at 7:20 PM, Jesslyn Abdul Salam
> <jesslyn.abdulsalam@gmail.com> wrote:
> > Not yet. Would please share what you have done to make it work ? Also when I
> > tried to strace aplay , it keeps looking for a
> > </share/alsa/cards/tlv320aic23.conf> file which is not there in the alsa-lib
> > package. Any idea what goes in that file ?
>
> CCing in l-o mailing list too.
>
> I dont know about that file. I didnt face that issue.
>
> This is what i did to make it working. I guess its some omap1 related issue.
> This makes the omap_mcbsp_request(0) at boot time, instead of runtime.
>
> diff --git a/sound/soc/omap/omap-mcbsp.c b/sound/soc/omap/omap-mcbsp.c
> index 3a4cc4b..6369703 100644
> --- a/sound/soc/omap/omap-mcbsp.c
> +++ b/sound/soc/omap/omap-mcbsp.c
> @@ -151,8 +151,8 @@ static int omap_mcbsp_dai_startup(struct
> snd_pcm_substream *substream)
> struct omap_mcbsp_data *mcbsp_data = to_mcbsp(cpu_dai->private_data);
> int err = 0;
>
> - if (!cpu_dai->active)
> - err = omap_mcbsp_request(mcbsp_data->bus_id);
> +// if (!cpu_dai->active)
> +// err = omap_mcbsp_request(mcbsp_data->bus_id);
>
> return err;
> }
> @@ -164,7 +164,7 @@ static void omap_mcbsp_dai_shutdown(struct
> snd_pcm_substream *substream)
> struct omap_mcbsp_data *mcbsp_data = to_mcbsp(cpu_dai->private_data);
>
> if (!cpu_dai->active) {
> - omap_mcbsp_free(mcbsp_data->bus_id);
> +// omap_mcbsp_free(mcbsp_data->bus_id);
> mcbsp_data->configured = 0;
> }
> }
> diff --git a/sound/soc/omap/osk5912.c b/sound/soc/omap/osk5912.c
> index 9477d18..98f1566 100644
> --- a/sound/soc/omap/osk5912.c
> +++ b/sound/soc/omap/osk5912.c
> @@ -209,6 +209,7 @@ static int __init osk_soc_init(void)
> (uint) clk_get_rate(tlv320aic23_mclk), CODEC_CLOCK,
> clk_get_usecount(tlv320aic23_mclk));
>
> + omap_mcbsp_request(0);
>
> return 0;
> err1:
>
> >
> > Regards
> >
> > Jesslyn
> >
> > On Tue, Oct 7, 2008 at 7:16 PM, Arun KS <arunks@mistralsolutions.com> wrote:
> >
> >> Jesslyn Abdul Salam wrote:
> >>
> >>> I got it working. I2C_BOARD_INFO macro was wrongly intialized. Instead of
> >>> tlv320aic23 i had written tlvaic23. Thanks to Arun for pointing this error
> >>>
> >>>
> >> Can you hear audio playing?
> >> Because i had done some hack to make it working in 5912osk.
> >> I want to know you are not facing it or not.
> >>
> >> Arun
> >>
> >> Jesslyn Abdul Salam
> >>>
> >>>
> >>> On Tue, Oct 7, 2008 at 5:36 PM, Jesslyn Abdul Salam <
> >>> jesslyn.abdulsalam@gmail.com> wrote:
> >>>
> >>>
> >>>
> >>>> ---------- Forwarded message ----------
> >>>> From: Jesslyn Abdul Salam <jesslyn.abdulsalam@gmail.com>
> >>>> Date: Tue, Oct 7, 2008 at 5:36 PM
> >>>> Subject: Re: [alsa-devel] AIC23 SOC Driver on OSK5912
> >>>> To: Arun KS <arunks@mistralsolutions.com>
> >>>>
> >>>>
> >>>> Yes, it is there. but it shows as "tlv320aic23b" instead of "tlv320aic"
> >>>> Will that be the reason ????
> >>>>
> >>>>
> >>>>
> >>>>
> >>>> On Tue, Oct 7, 2008 at 5:32 PM, Arun KS <arunks@mistralsolutions.com
> >>>> >wrote:
> >>>>
> >>>>
> >>>>
> >>>>> On Tue, Oct 7, 2008 at 5:24 PM, Mark Brown <broonie@sirena.org.uk>
> >>>>> wrote:
> >>>>>
> >>>>>
> >>>>>> On Tue, Oct 07, 2008 at 05:18:55PM +0530, Jesslyn Abdul Salam wrote:
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>> I have been trying to use the AIC23 ALSA SoC driver for OSK5912 for
> >>>>>>> the
> >>>>>>>
> >>>>>>>
> >>>>>> past
> >>>>>
> >>>>>
> >>>>>> few days. I got the driver patch from the linux-omap/alsa-devel mailing
> >>>>>>> lists. The driver got compiled along just fine. But when the kernel
> >>>>>>>
> >>>>>>>
> >>>>>> boots,
> >>>>>
> >>>>>
> >>>>>> no sound cards have been listed.
> >>>>>>>
> >>>>>>>
> >>>>>> CCing in Arun KS <arunks@mistralsolutions.com> who contributed that
> >>>>>> support.
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>> Advanced Linux Sound Architecture Driver Version 1.0.17.
> >>>>>>> ASoC version
> >>>>>>> 0.13.2
> >>>>>>> AIC23 Audio Codec
> >>>>>>> 0.1
> >>>>>>> MCLK = 12000000 [12000000], usecount =
> >>>>>>> 0
> >>>>>>> ALSA device
> >>>>>>> list:
> >>>>>>> No soundcards
> >>>>>>> found.
> >>>>>>> Any one have tested this before ?
> >>>>>>>
> >>>>>>>
> >>>>>> Can you check i2c?
> >>>>>
> >>>>> # cat /sys/bus/i2c/devices/1-001b/name
> >>>>> tlv320aic23
> >>>>>
> >>>>>
> >>>>>
> >>>>>> _______________________________________________
> >>>>>> Alsa-devel mailing list
> >>>>>> Alsa-devel@alsa-project.org
> >>>>>> http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>
> >>>>
> >>>>
> >>> _______________________________________________
> >>> Alsa-devel mailing list
> >>> Alsa-devel@alsa-project.org
> >>> http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
> >>>
> >>>
> >>>
> >>>
> >>
> >>
> >> Please do not print this email unless it is absolutely necessary. Spread
> >> environmental awareness.
> >>
> >>
> >> -------------------------------------------------------DISCLAIMER------------------------------------------------------
> >> The information transmitted herewith is confidential and proprietary
> >> information intended only for use by the individual or entity to which it is
> >> addressed. If the reader of this message is not the intended recipient, you
> >> are hereby notified that any review, retransmission, dissemination,
> >> distribution, copying or other use of, or taking of any action in reliance
> >> upon this information is strictly prohibited. If you have received this
> >> communication in error, please contact the sender and delete the material
> >> from your computer.
> >>
> >> --------------------------------------------------------------------------------------------------------------------------------
> >>
> >>
> >>
> >>
> > _______________________________________________
> > Alsa-devel mailing list
> > Alsa-devel@alsa-project.org
> > http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
> >
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2008-10-08 10:42 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-07 11:48 AIC23 SOC Driver on OSK5912 Jesslyn Abdul Salam
2008-10-07 11:54 ` Mark Brown
2008-10-07 12:02 ` Arun KS
[not found] ` <e762f7a90810070506q2d4e299eqe2d6d9bc515aeec0@mail.gmail.com>
2008-10-07 12:06 ` Fwd: " Jesslyn Abdul Salam
2008-10-07 12:18 ` Jesslyn Abdul Salam
[not found] ` <48EB6820.3090809@mistralsolutions.com>
2008-10-07 13:50 ` Jesslyn Abdul Salam
2008-10-07 15:09 ` [alsa-devel] " Arun KS
2008-10-07 15:12 ` Mark Brown
2008-10-08 10:42 ` Jesslyn Abdul Salam
2008-10-07 12:19 ` Fwd: " Arun KS
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.