[PATCH RFC 1/1] Asoc: rt5640: add more machine/board information for user

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

 



Add more machine/board information for PA and UCM.

Signed-off-by: Lu, Han <han.lu at intel.com>

diff --git a/sound/soc/intel/boards/bytcr_rt5640.c
 b/sound/soc/intel/boards/bytcr_rt5640.c
index 032a2e7..9bd5e21 100644
--- a/sound/soc/intel/boards/bytcr_rt5640.c
+++ b/sound/soc/intel/boards/bytcr_rt5640.c
@@ -160,6 +160,12 @@ static int byt_rt5640_init(struct snd_soc_pcm_runtime
 *runtime)
        const struct snd_soc_dapm_route *custom_map;
        int num_routes;

+       if (!card->long_name) {
+               card->long_name = dmi_get_system_info(DMI_PRODUCT_NAME);
+               strcat((char *)card->long_name, ":");
+               strcat((char *)card->long_name, card->name);
+       }
+
        card->dapm.idle_bias_off = true;

        rt5640_sel_asrc_clk_src(codec,
--
2.5.0	

BR,
Han
> 
> _______________________________________________
> pulseaudio-discuss mailing list
> pulseaudio-discuss at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/pulseaudio-discuss


[Index of Archives]     [Linux Audio Users]     [AMD Graphics]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux