<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Audio codec sgtl5000 recording in Robotic Hardware</title>
    <link>https://community.nxp.com/t5/Robotic-Hardware/Audio-codec-sgtl5000-recording/m-p/1803641#M143</link>
    <description>&lt;P&gt;Hi team,&lt;/P&gt;&lt;P&gt;I'm working on Qualcomm chipset QCS8250. And Audio codec sgtl5000&amp;nbsp;is wired to record audio via the LINEIN_R/LINEIN_L input and can play audio out the HP_R/HP_L output. Depending on internal register configurations the codec can route audio from any input to any output. Our default configuration plays audio from the I2S interface out the HP_* output and records input from the LINEIN_* input onto I2S into the SOM. The audio codec datasheet can be found from #&lt;A href="https://www.nxp.com/docs/en/data-sheet/SGTL5000.pdf" target="_blank"&gt;https://www.nxp.com/docs/en/data-sheet/SGTL5000.pdf&lt;/A&gt;&amp;nbsp;for the reference.&lt;/P&gt;&lt;P&gt;I'm working on few audio tests and using the setup mentioned in the image.&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="audio test setup" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/262389iE62D94016D7DFE2C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="audio_test_setup.jpg" alt="audio test setup" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;audio test setup&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The play back audio seems working fine. While recording audio channel, I'm able to record stereo and also only left channel on left and right speakers. I can share the register settings for the same is required. Now, I want to record right-only channel on both left and right speakers. Can anyone please share the codec settings for the same.&lt;/P&gt;&lt;P&gt;I'm attaching default&amp;nbsp;reg settings "&lt;SPAN&gt;codec_config_stereo_v2.0.txt&lt;/SPAN&gt; file", which we're using. And below are the left-only channel recording registers settings on top of the default codec settings.&lt;/P&gt;&lt;P&gt;echo -n "0x30 0x40bf" &amp;gt; /sys/kernel/debug/regmap/0-000a/registers&lt;BR /&gt;echo -n "0xa 0x0470" &amp;gt; /sys/kernel/debug/regmap/0-000a/registers&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;BR /&gt;It would be appreciated if anyone can look into this and share the audio codec register settings to record only right channel on both left and right speakers.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Saloni&lt;/P&gt;</description>
    <pubDate>Wed, 07 Feb 2024 19:40:00 GMT</pubDate>
    <dc:creator>sshah05</dc:creator>
    <dc:date>2024-02-07T19:40:00Z</dc:date>
    <item>
      <title>Audio codec sgtl5000 recording</title>
      <link>https://community.nxp.com/t5/Robotic-Hardware/Audio-codec-sgtl5000-recording/m-p/1803641#M143</link>
      <description>&lt;P&gt;Hi team,&lt;/P&gt;&lt;P&gt;I'm working on Qualcomm chipset QCS8250. And Audio codec sgtl5000&amp;nbsp;is wired to record audio via the LINEIN_R/LINEIN_L input and can play audio out the HP_R/HP_L output. Depending on internal register configurations the codec can route audio from any input to any output. Our default configuration plays audio from the I2S interface out the HP_* output and records input from the LINEIN_* input onto I2S into the SOM. The audio codec datasheet can be found from #&lt;A href="https://www.nxp.com/docs/en/data-sheet/SGTL5000.pdf" target="_blank"&gt;https://www.nxp.com/docs/en/data-sheet/SGTL5000.pdf&lt;/A&gt;&amp;nbsp;for the reference.&lt;/P&gt;&lt;P&gt;I'm working on few audio tests and using the setup mentioned in the image.&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="audio test setup" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/262389iE62D94016D7DFE2C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="audio_test_setup.jpg" alt="audio test setup" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;audio test setup&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The play back audio seems working fine. While recording audio channel, I'm able to record stereo and also only left channel on left and right speakers. I can share the register settings for the same is required. Now, I want to record right-only channel on both left and right speakers. Can anyone please share the codec settings for the same.&lt;/P&gt;&lt;P&gt;I'm attaching default&amp;nbsp;reg settings "&lt;SPAN&gt;codec_config_stereo_v2.0.txt&lt;/SPAN&gt; file", which we're using. And below are the left-only channel recording registers settings on top of the default codec settings.&lt;/P&gt;&lt;P&gt;echo -n "0x30 0x40bf" &amp;gt; /sys/kernel/debug/regmap/0-000a/registers&lt;BR /&gt;echo -n "0xa 0x0470" &amp;gt; /sys/kernel/debug/regmap/0-000a/registers&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;BR /&gt;It would be appreciated if anyone can look into this and share the audio codec register settings to record only right channel on both left and right speakers.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Saloni&lt;/P&gt;</description>
      <pubDate>Wed, 07 Feb 2024 19:40:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Robotic-Hardware/Audio-codec-sgtl5000-recording/m-p/1803641#M143</guid>
      <dc:creator>sshah05</dc:creator>
      <dc:date>2024-02-07T19:40:00Z</dc:date>
    </item>
  </channel>
</rss>

